{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Keyword Search Scraper: Posts by Topic, No Login",
    "description": "Telegram keyword search across public channels: returns posts whose own text contains your query, with channel, date, views and links. No login, phone number or API key. Every post checked, date filter, cost cap per run. $0.01 per query and $1.20-$1.50 per 1,000 posts.",
    "version": "1.0",
    "x-build-id": "He3pGcdAXXvuXT2Ez"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/osint-forge~telegram-keyword-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-osint-forge-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/osint-forge~telegram-keyword-search/runs": {
      "post": {
        "operationId": "runs-sync-osint-forge-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/osint-forge~telegram-keyword-search/run-sync": {
      "post": {
        "operationId": "run-sync-osint-forge-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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Keywords or phrases, one per item, in any language. Example: [\"bitcoin etf\", \"solar panels\"]. A post is returned when its own text contains every word of the query; quotation marks require the exact phrase. Up to 10 queries, 2 to 100 characters each. Topics only: a phone number, an @username, a link, an e-mail address or a query with seven or more digits is refused (a year beside a short number is fine; search each number as its own query). A refused query is skipped; the others are searched.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Maximum posts per query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The most posts to return for each query, newest matches first within each channel. This is the main cost control: one event is billed per returned post ($0.0015 on the Free plan, less on higher plans).",
            "default": 20
          },
          "maxCostUsd": {
            "title": "Cost limit for this run (USD)",
            "minimum": 0.02,
            "maximum": 100,
            "type": "number",
            "description": "Hard cap on what this run can charge, in US dollars, counting every event: the start ($0.001), each query searched ($0.01) and each post delivered ($0.0015 or less). The run stops before the next query or post would pass the cap and keeps everything already delivered. Works from the API and from AI agents (MCP). Smallest value $0.02 (one query and six posts). When empty, a default cap of $1 applies."
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only posts published after this moment. A date (2026-11-01), a full timestamp (2026-11-01T12:00:00Z) or an age (\"7 days\", \"12 hours\", \"1 month\"). Posts outside the window are not returned and not billed."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only posts published before this moment. Same formats as \"Posted after\"."
          },
          "language": {
            "title": "Language",
            "maxLength": 2,
            "type": "string",
            "description": "Optional two-letter language code, for example \"en\", \"ru\", \"es\". Posts whose text is detected as another language are not returned and not billed. Posts too short to detect are kept."
          },
          "alsoSearchChannels": {
            "title": "Also search these channels",
            "maxItems": 20,
            "type": "array",
            "description": "Optional. Public channels you already know, searched directly for every query, next to the channels the search finds. Each item is a username (durov), @username or a link (https://t.me/durov). Up to 20. To read a channel in full, use the channel reader Actor of the same publisher.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerChannel": {
            "title": "Maximum posts per channel",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "The most posts to return from one channel for one query, so results are spread over several channels. Telegram returns at most about 22 of the newest matches per channel and query.",
            "default": 5
          },
          "compactOutput": {
            "title": "Compact records",
            "type": "boolean",
            "description": "Return a short record per post (id, url, channel, date, text, links, views, query, matchedTerms). Smaller results cost fewer tokens in chat tools and AI agents. The price per post is the same.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}