{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Comments Scraper | Telegram Channel Comments & Replies",
    "description": "Telegram comments scraper, no login: every comment under public channel posts, from post links or channels. Commenter name, username and photo, exact text, date, the comment it answers, reactions, media. Whole threads to their end, a free row per post with Telegram's count. Misses free.",
    "version": "0.1",
    "x-build-id": "o4e45v9IDYif00ASZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~telegram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-telegram-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/hyperbach~telegram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-telegram-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/hyperbach~telegram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-telegram-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "postUrls": {
            "title": "Post links",
            "maxItems": 5000,
            "type": "array",
            "description": "Links to public channel posts, one a line: https://t.me/<channel>/<post id> (also t.me/s/…, telegram.me, a link with ?comment= or ?single, a link another site wraps). Each post's comments are read, newest first. A channel name pasted here is read as a channel. A private link (t.me/c/…) or an invite link gets a free row that says why.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "maxItems": 1000,
            "type": "array",
            "description": "Public channels, one a line: a username, @username or a t.me link. The channel's newest posts are read (Max posts per channel, the date window or the post-id range below), and the comments of each. A post link pasted here is read as that post. Only channels whose discussion Telegram shows on the web have comments to read: every other post gets a free row with Telegram's own words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerChannel": {
            "title": "Max posts per channel",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The newest posts read from each channel (service messages not counted); 0 = every post the date window or the id range holds.",
            "default": 10
          },
          "oldestPostDate": {
            "title": "Posts published on or after",
            "type": "string",
            "description": "Channels: only posts published on or after this date (2026-11-01), or a relative time (7 days). The walk stops at the first older post."
          },
          "newestPostDate": {
            "title": "Posts published on or before",
            "type": "string",
            "description": "Channels: only posts published on or before this date (the whole day counts)."
          },
          "fromPostId": {
            "title": "From post id",
            "minimum": 1,
            "type": "integer",
            "description": "Channels: only posts with this id or a higher one (the number at the end of a post link). With the id of the newest post you already have + 1, a run reads only the newer posts."
          },
          "toPostId": {
            "title": "To post id",
            "minimum": 1,
            "type": "integer",
            "description": "Channels: only posts with this id or a lower one; the walk starts there."
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most comments delivered for one post, newest first; 0 = the whole thread, read to its end. The post's row says whether its comments were all read (COMPLETE), the list ended under Telegram's count (LIST_END), or this cap stopped it (CAPPED).",
            "default": 0
          },
          "commentsPostedAfter": {
            "title": "Comments posted on or after",
            "type": "string",
            "description": "Only comments posted on or after this date (2026-11-01), or a relative time (24 hours, 7 days). Older comments are not delivered and not charged; the walk of a thread stops at the first older page."
          },
          "commentKeywords": {
            "title": "Comment keywords",
            "maxItems": 200,
            "type": "array",
            "description": "Only comments whose own text holds one of these words or phrases (any case, any language). Others are not delivered and not charged; each post's row counts them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minCommentReactions": {
            "title": "Min reactions per comment",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Only comments with at least this many reactions (all emoji together); 0 = every comment.",
            "default": 0
          },
          "onlyTopLevelComments": {
            "title": "Only top-level comments",
            "type": "boolean",
            "description": "Leave out replies to other comments (not delivered, not charged).",
            "default": false
          },
          "minComments": {
            "title": "Min comments per post",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Read only posts with at least this many comments (Telegram's own count, read first for about 3.5 KB a post); a post under it gets a free row and no comment is read. 0 = every post.",
            "default": 0
          },
          "detectLanguage": {
            "title": "Detect each comment's language",
            "type": "boolean",
            "description": "Name each comment's language (an ISO 639-1 code such as ru, en, uk) from its text of 20 letters or more; null when the text is shorter or the language is not clear. Off by default: the detection takes the run's processor about as long as reading the comments.",
            "default": false
          },
          "maxItems": {
            "title": "Max comments (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged comments of the whole run; 0 = no cap beyond your charge limit. Post, channel and status rows are free and do not count.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}