{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Channel Scraper & Keyword Search — No Login, $2.5/1k",
    "description": "Telegram Channel Scraper: messages, views, reactions, replies, polls and media from public channels. Find channels by keyword, date windows, monitor new posts via webhook. No login or cookies. MCP-ready for AI agents. $2.5 per 1,000 records.",
    "version": "1.0",
    "x-build-id": "WbgJPFVd50nm47q8c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/velvety_bedbug~telegram-channel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-velvety_bedbug-telegram-channel-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/velvety_bedbug~telegram-channel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-velvety_bedbug-telegram-channel-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/velvety_bedbug~telegram-channel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-velvety_bedbug-telegram-channel-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": {
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Public channel usernames or links: durov, @durov, t.me/durov, https://t.me/s/durov. Groups, bots and users return a profile row (their messages are not public). Leave empty and the run reads @durov as a sample.",
            "items": {
              "type": "string"
            }
          },
          "listUrl": {
            "title": "Channel list URL (CSV or Google Sheet)",
            "type": "string",
            "description": "Optional link to a CSV / TXT file or a Google Sheet shared as \"anyone with the link\". The first column of every row is read as a channel; a header row is skipped."
          },
          "maxItems": {
            "title": "Max messages per channel",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Newest first. Each page holds about 20 messages.",
            "default": 10
          },
          "searchInChannel": {
            "title": "Search inside channels",
            "type": "string",
            "description": "Telegram's own in-channel search (t.me/s/<channel>?q=...). Returns only messages that match, across the channel's whole history."
          },
          "keywordFilter": {
            "title": "Keep messages matching (regex)",
            "type": "string",
            "description": "Case-insensitive regular expression tested on the message text, e.g. bitcoin|ethereum. Non-matching messages are skipped and not charged."
          },
          "oldestMessageDate": {
            "title": "Messages on or after",
            "type": "string",
            "description": "YYYY-MM-DD, an ISO timestamp, or a relative value such as 7 days, 2 weeks, 1 month. Paging stops once older messages are reached."
          },
          "newestMessageDate": {
            "title": "Messages on or before",
            "type": "string",
            "description": "YYYY-MM-DD (inclusive, end of day UTC) or ISO timestamp. Newer messages are skipped."
          },
          "afterMessageId": {
            "title": "Only messages after ID",
            "minimum": 0,
            "type": "integer",
            "description": "Exclusive cursor: only messages with a larger message ID are returned and paging stops at this ID. Useful for incremental exports."
          },
          "includeChannelInfo": {
            "title": "Add a channel-info record",
            "type": "boolean",
            "description": "One record per channel with title, description, subscriber count, media counts, verified badge and avatar.",
            "default": true
          },
          "profileOnly": {
            "title": "Profile only",
            "type": "boolean",
            "description": "Return only the channel / group / bot / user profile row and skip messages.",
            "default": false
          },
          "includeMedia": {
            "title": "Include media details",
            "type": "boolean",
            "description": "Add the media array (photo, video, round video, voice, document, sticker, location with URLs, thumbnails and durations) and the reactionsList array. photos, videos and reactions are always included.",
            "default": true
          },
          "searchKeywords": {
            "title": "Find channels by keyword",
            "type": "array",
            "description": "Discover public channels about a topic (ranked by subscribers, via TGStat's channel catalogue). Each found channel returns a channel row plus its messages that mention the keyword.",
            "items": {
              "type": "string"
            }
          },
          "searchMaxChannels": {
            "title": "Channels per keyword",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "How many channels to take for each keyword (30 per search page).",
            "default": 10
          },
          "searchMessagesInChannels": {
            "title": "Fetch matching messages",
            "type": "boolean",
            "description": "For each discovered channel also return up to \"Max messages per channel\" messages that contain the keyword. Off = channel rows only.",
            "default": true
          },
          "searchCountry": {
            "title": "Channel country",
            "type": "string",
            "description": "Optional: a country name (USA, India, Germany, Brazil...) or code (us, in, de)."
          },
          "searchLanguage": {
            "title": "Channel language",
            "type": "string",
            "description": "Optional: a language name (English, Spanish, Arabic...) or code (en, es, ar)."
          },
          "searchCategory": {
            "title": "Channel category",
            "type": "string",
            "description": "Optional: Cryptocurrencies, News and media, Technologies, Career, Business and startups, Marketing, PR, advertising, Education, Sport, Economics..."
          },
          "searchMinSubscribers": {
            "title": "Minimum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: skip channels smaller than this."
          },
          "onlyNew": {
            "title": "Only new messages (monitor)",
            "type": "boolean",
            "description": "Remember the newest message ID of every channel between runs and return only messages posted since the last run. Schedule the actor to get a feed of new posts.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate memories for different monitors (e.g. crypto-news, competitors). Defaults to \"default\"."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional: with \"Only new messages\", POST the new messages (up to 50) as JSON to this URL when there are any."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. t.me and TGStat answer Apify's servers without a proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}