{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Keyword Search Scraper | Telegram Channel Search",
    "description": "Search public Telegram posts by keyword: from the channels the web knows for each keyword, the channels you name, or a channel's history. Views, reactions, media links, exact subscribers, channel rows. Only posts whose own text holds the keyword are charged. Misses free. No login, no API key.",
    "version": "0.1",
    "x-build-id": "U6NXsf5xdBt3px522"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~telegram-keyword-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-telegram-keyword-search-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-keyword-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-telegram-keyword-search-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-keyword-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-telegram-keyword-search-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": {
          "keywords": {
            "title": "Keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "Words to find in public Telegram posts, one a line, in any language (artificial intelligence, искусственный интеллект, #AI). Each keyword is its own search: the Actor finds the channels that write about it and searches inside each one. A post is delivered and charged only when its own text holds the keyword (see Match mode).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "maxItems": 5000,
            "type": "array",
            "description": "Public channels, one a line: a username, @username or a t.me link (a link another site wraps is read too; a post link names its channel in a keyword search, while the channel mode reads no single post). With keywords, only these channels are searched (turn on Also find channels to add the channels the web knows for the keyword). Without keywords, or with Mode channel, each channel's posts are read newest first (the channel mode).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "keyword",
              "channel"
            ],
            "type": "string",
            "description": "Keyword search finds posts that hold your keywords; Channel history reads the named channels' posts newest first. Empty: keyword search when keywords are given, else channel history."
          },
          "maxResultsPerKeyword": {
            "title": "Max posts per keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most posts delivered for one keyword, across all its channels.",
            "default": 100
          },
          "maxChannelsPerKeyword": {
            "title": "Max channels per keyword",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "The most channels searched for one keyword (a group, a bot or a person the web searches name does not count). Telegram's own search shows at most 22 hits in one channel, so more channels means more posts.",
            "default": 30
          },
          "matchMode": {
            "title": "Match mode",
            "enum": [
              "phrase",
              "allWords",
              "anyWord"
            ],
            "type": "string",
            "description": "What a post's own text must hold to be delivered and charged. Telegram's search also matches the channel's name, a link preview and stemmed words: those hits are counted on the keyword's row, free. In a keyword, \"quoted words\" stay one phrase.",
            "default": "phrase"
          },
          "excludeKeywords": {
            "title": "Leave out posts with these words",
            "type": "array",
            "description": "A post whose own text holds any of these words or phrases is not delivered.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "discoverChannels": {
            "title": "Also find channels when you name some",
            "type": "boolean",
            "description": "With channels named, find more channels for each keyword too (without named channels the Actor always finds them).",
            "default": false
          },
          "deepSearch": {
            "title": "Deep search past Telegram's 22-hit limit",
            "type": "boolean",
            "description": "Telegram's search shows at most 22 hits in one channel. On, each channel that reaches that limit is read further back, post by post, with the same text check (up to 1,000 posts a channel, or to the start of Published after). Slower; more posts.",
            "default": false
          },
          "countryCode": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "it",
              "es",
              "pt",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "hu",
              "ro",
              "gr",
              "ua",
              "ru",
              "tr",
              "il",
              "sa",
              "ae",
              "eg",
              "za",
              "ng",
              "in",
              "pk",
              "bd",
              "jp",
              "kr",
              "cn",
              "id",
              "vn",
              "th",
              "br",
              "mx",
              "ar"
            ],
            "type": "string",
            "description": "The country the web search that finds channels is asked from: it changes which channels are found (Telegram's posts are the same everywhere).",
            "default": "us"
          },
          "languageCode": {
            "title": "Language",
            "enum": [
              "en",
              "de",
              "fr",
              "it",
              "es",
              "pt",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "cs",
              "hu",
              "ro",
              "el",
              "uk",
              "ru",
              "tr",
              "ar",
              "he",
              "fa",
              "hi",
              "bn",
              "id",
              "vi",
              "th",
              "zh",
              "ja",
              "ko"
            ],
            "type": "string",
            "description": "The language of your keywords. Where the country's web search has a region in that language (Belgium, Canada or Switzerland in French, Switzerland in Italian) the channels are found in it; elsewhere the country decides.",
            "default": "en"
          },
          "afterDate": {
            "title": "Published after",
            "type": "string",
            "description": "Only posts published on or after this date (2026-11-01), or a relative time (7 days). The post's own date decides."
          },
          "beforeDate": {
            "title": "Published before",
            "type": "string",
            "description": "Only posts published before this date."
          },
          "minViews": {
            "title": "Min views",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many views (as the page shows them).",
            "default": 0
          },
          "minReactions": {
            "title": "Min reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many reactions in all.",
            "default": 0
          },
          "minSubscribers": {
            "title": "Min channel subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Only channels with at least this many subscribers (the exact count on the channel's card).",
            "default": 0
          },
          "maxSubscribers": {
            "title": "Max channel subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Only channels with at most this many subscribers; 0 = no limit.",
            "default": 0
          },
          "onlyWithMedia": {
            "title": "Only posts with media",
            "type": "boolean",
            "description": "Only posts with a photo, a video, a file or audio.",
            "default": false
          },
          "excludeForwards": {
            "title": "Leave out forwarded posts",
            "type": "boolean",
            "description": "Leave out posts forwarded from another chat.",
            "default": false
          },
          "excludeChannels": {
            "title": "Skip these channels",
            "type": "array",
            "description": "Channels never searched (username, @username or link).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeChannelRows": {
            "title": "Add a row per channel found",
            "type": "boolean",
            "description": "One extra row for each channel or public group searched for a keyword: its title, exact subscribers or members, description, verified and Telegram's FAKE or SCAM label, read live, and the date of its newest post. Charged as its own row.",
            "default": false
          },
          "includeCommentsCount": {
            "title": "Add the comments count",
            "type": "boolean",
            "description": "Read each delivered post's comments count (one more call a post; where the channel has no discussion, the row says so).",
            "default": false
          },
          "includeTextHtml": {
            "title": "Add the text's HTML",
            "type": "boolean",
            "description": "Add the post's text as HTML, with Telegram's own highlight of the matched words.",
            "default": false
          },
          "channelMaxMessages": {
            "title": "Max posts per channel",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Channel history: the most posts read from one channel, newest first.",
            "default": 100
          },
          "channelAfterDate": {
            "title": "Channel history: published after",
            "type": "string",
            "description": "Channel history: stop at posts older than this date (or a relative time, 30 days)."
          },
          "includeServiceMessages": {
            "title": "Include service messages",
            "type": "boolean",
            "description": "Channel history: also deliver the channel's service messages (\"Channel created\", a new photo).",
            "default": false
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run (posts and channel rows); 0 = no cap beyond your charge limit.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}