{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Keyword Search Scraper | Channel Posts & Views",
    "description": "Get public Telegram channel posts that match your keywords: post text, date, views, reactions, photos, links and channel subscribers. Finds channels via Google and/or your list, runs Telegram's own in-channel search, optional deep history scan and date filter. No login.",
    "version": "0.0",
    "x-build-id": "JFvs6mVbgC5ZMBA2f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~telegram-keyword-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-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/genial_candlestand~telegram-keyword-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-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/genial_candlestand~telegram-keyword-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-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",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Keywords",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "One keyword search per line, e.g. bitcoin etf. A post matches when it contains all words of the line (AND); case and word order do not matter, hashtags (#bitcoin) work, whole words only. OR, -word and quotes are treated as plain words. Empty lines are rejected. 1–50 lines.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels to search (optional)",
            "type": "array",
            "description": "Public channels to search for every keyword, as username, @username or t.me link (durov, @durov, https://t.me/s/durov). Groups, bots, users and invite links (t.me/+…) are skipped with a warning. Searched in addition to the channels found by discovery.",
            "items": {
              "type": "string"
            }
          },
          "discoverChannels": {
            "title": "Discover channels via Google",
            "type": "boolean",
            "description": "Find channels for each keyword with a Google search of t.me pages, then search inside them. Turn off to search only your listed channels (Channels is then required).",
            "default": true
          },
          "maxChannelsPerQuery": {
            "title": "Max discovered channels per keyword",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many channels Google discovery may add per keyword, 1–30 (up to 5 Google pages are read). Your own channels are not counted.",
            "default": 10
          },
          "maxPostsPerChannel": {
            "title": "Max posts per channel and keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit of matching posts per channel and keyword, newest first, 1–1000. Telegram's search returns at most about 22 recent matches per channel; turn on Deep search for more.",
            "default": 50
          },
          "deepSearch": {
            "title": "Deep search (older matches)",
            "type": "boolean",
            "description": "When Telegram's search hits its ~22-post cap in a channel, also scan older history (20 posts per page) and keep posts that contain every word of the keyword. Slower; bounded by Max scanned posts.",
            "default": false
          },
          "deepSearchMaxScannedPosts": {
            "title": "Max scanned posts per channel (deep search)",
            "minimum": 20,
            "maximum": 10000,
            "type": "integer",
            "description": "How many older posts Deep search reads per channel and keyword before it stops, 20–10000. Only used when Deep search is on.",
            "default": 500
          },
          "publishedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Keep only posts published on or after this date: YYYY-MM-DD or relative like 30 days. Empty = any date. Must not be in the future."
          },
          "language": {
            "title": "Discovery language",
            "enum": [
              "en",
              "ru",
              "es",
              "pt",
              "de",
              "fr",
              "it",
              "tr",
              "ar",
              "fa",
              "hi",
              "id",
              "uk",
              "uz",
              "kk",
              "zh-CN",
              "ja",
              "ko",
              "vi",
              "pl"
            ],
            "type": "string",
            "description": "Interface language of the Google search used for channel discovery (helps find channels in that language). Does not filter posts; ignored when discovery is off.",
            "default": "en"
          },
          "maxItems": {
            "title": "Max posts in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the run after this many posts across all keywords and channels.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy for t.me",
            "type": "object",
            "description": "Proxy for the Telegram pages (Apify proxy by default). Google discovery always uses the Apify Google SERP proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}