{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Keyword Search Scraper [USD 0.50/1K]: Posts & Channels",
    "description": "Search public Telegram channels by keyword without login. Every post is matched by Telegram's own in-channel search. Find channels by topic with exact subscriber counts. Date range, only new posts. USD 0.50 per 1,000 posts.",
    "version": "1.0",
    "x-build-id": "p3cOJZUnwBIWTVOAi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/usefulapi~telegram-keyword-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-usefulapi-telegram-keyword-search",
        "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/usefulapi~telegram-keyword-search/runs": {
      "post": {
        "operationId": "runs-sync-usefulapi-telegram-keyword-search",
        "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/usefulapi~telegram-keyword-search/run-sync": {
      "post": {
        "operationId": "run-sync-usefulapi-telegram-keyword-search",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases to search for, one per line (up to 20). Every keyword is searched in every channel with Telegram's own in-channel search, so a post is only returned when Telegram itself matched it. Telegram also matches word forms (<code>coin</code> can match <code>coins</code>); switch on Exact match only to keep only posts that contain the keyword as typed.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to find",
            "enum": [
              "posts",
              "channels"
            ],
            "type": "string",
            "description": "<b>Posts</b>: matching posts with views, reactions, media and channel details. <b>Channels</b>: a list of public channels for your keywords with title, exact subscriber count, description and the date of their last post.",
            "default": "posts"
          },
          "channels": {
            "title": "Channels to search",
            "type": "array",
            "description": "Public channel usernames or links, one per line: <code>WatcherGuru</code>, <code>@bitcoin</code>, <code>https://t.me/durov</code>. Searched first, every time. Optional when Find channels on Lyzem is on.",
            "items": {
              "type": "string"
            }
          },
          "discoverChannels": {
            "title": "Find channels on Lyzem",
            "type": "boolean",
            "description": "Also search channels found for each keyword on Lyzem (lyzem.com), a free public index of Telegram. Names Lyzem lists that are dead, personal accounts or have no public preview are dropped and never billed. Lyzem is an independent site with no published terms or API, so it can change or stop working; if it does, the run still searches your own channels and the summary says so.",
            "default": true
          },
          "maxChannelsPerKeyword": {
            "title": "Channels to take from Lyzem per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many channel names to take from Lyzem for each keyword. Channels whose posts matched on Lyzem come first, then channels whose name matched (the other way round in channels mode). In tests on 3 November 2026, 42% to 64% of them were live public channels.",
            "default": 25
          },
          "maxChannels": {
            "title": "Max channels per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit on channels looked at in one run, your list included.",
            "default": 200
          },
          "maxResultsPerChannel": {
            "title": "Max posts per channel and keyword",
            "minimum": 1,
            "maximum": 22,
            "type": "integer",
            "description": "Telegram's search returns at most the 22 newest matching posts per channel and keyword (measured October and November 2026), so 22 is the most any tool can get this way.",
            "default": 22
          },
          "fromDate": {
            "title": "Posts from (date)",
            "type": "string",
            "description": "Only posts on or after this date: <code>2026-10-01</code>, an ISO date-time, or relative like <code>7 days</code>."
          },
          "toDate": {
            "title": "Posts until (date)",
            "type": "string",
            "description": "Only posts on or before this date (a bare date means the whole day)."
          },
          "strictMatch": {
            "title": "Exact match only",
            "type": "boolean",
            "description": "Keep only posts whose text (or link preview, poll or file name) contains the keyword exactly as typed, ignoring case.",
            "default": false
          },
          "minSubscribers": {
            "title": "Min subscribers (Lyzem channels)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels found on Lyzem with fewer subscribers. Your own channels are always searched.",
            "default": 0
          },
          "activeWithinDays": {
            "title": "Active within days (channels mode)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Channels mode: keep only Lyzem channels whose last post is at most this many days old."
          },
          "onlyRelevantChannels": {
            "title": "Only on-topic channels (channels mode)",
            "type": "boolean",
            "description": "Channels mode: keep a channel found on Lyzem only when a keyword is in its name, title or description, or when Telegram's own search finds at least 3 of its posts with the keyword. Lyzem lists many channels that mentioned a word once; this drops them before they are billed. Every channel row says why it qualified (<code>keywordInChannelInfo</code>, <code>postsMatchingKeyword</code>).",
            "default": true
          },
          "onlyNewPosts": {
            "title": "Only new posts since the last run",
            "type": "boolean",
            "description": "For scheduled runs: each channel and keyword remembers the newest match saved, and the next run returns only newer matches. Positions are kept in a store on your own Apify account (<code>telegram-keyword-search-watch</code>). Keep Max posts per channel and keyword at 22 for monitoring: the position moves to the newest match, so a lower number skips older new matches.",
            "default": false
          },
          "stateName": {
            "title": "Watch list name",
            "type": "string",
            "description": "Separate monitors keep separate positions: give each schedule its own name.",
            "default": "default"
          },
          "includeChannelInfo": {
            "title": "Channel details row (posts mode)",
            "type": "boolean",
            "description": "Also save one row per channel searched: title, subscribers, description, photo (USD 1.00 per 1,000 channel rows). Post rows already carry the channel title and subscriber count.",
            "default": false
          },
          "exactSubscriberCount": {
            "title": "Exact subscriber count",
            "type": "boolean",
            "description": "Read the exact count from the channel's t.me card (one extra page per channel) instead of Telegram's rounded figure such as 10.4M.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed in our tests. Apify datacenter proxy or your own proxy URLs are allowed (used for Telegram only); residential proxy is not supported."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}