{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Scraper: Channel Posts & Keyword Search, No Login",
    "description": "Telegram scraper for public channel posts: read whole channels or search the channels you list by keyword. No bot token, phone login or API credentials. Text, views, dates, media URLs, links and the matched keyword. Schedule it for new posts only. JSON, CSV or API. $1.20–$2.00 per 1,000 posts.",
    "version": "0.1",
    "x-build-id": "KKzlVOQ16MdmJr4GB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tugelbay~telegram-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tugelbay-telegram-posts-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/tugelbay~telegram-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tugelbay-telegram-posts-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/tugelbay~telegram-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tugelbay-telegram-posts-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": "Channel handles",
            "type": "array",
            "description": "Public Telegram channel handles, @handles, or channel URLs such as https://t.me/durov and https://t.me/s/durov. Repeated forms of the same channel are fetched once in input order. Use postUrls for links with a post ID and before for pagination; channel URLs must not contain query parameters or fragments. Each channel must be public and have previews enabled.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords to find inside the channels",
            "type": "array",
            "description": "Optional. Return only posts that match these words or phrases, searched inside each channel listed above with Telegram's own public channel search. Each keyword is searched separately; a post that matches several keywords is delivered once. Matching follows Telegram: it ignores letter case and may match word forms. This does not search all of Telegram, only the channels you list. Up to 20 keywords, 100 characters each.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Specific post URLs",
            "type": "array",
            "description": "Full Telegram post URLs (e.g. https://t.me/durov/478). If set together with channels, both sources are scraped.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Exact channel handle lookup",
            "type": "string",
            "description": "Exact handle lookup using t.me/s/<handle>, not a search for channels by topic. Returns newest matching posts from that public preview. Leave empty if using channels/postUrls."
          },
          "maxItems": {
            "title": "Max posts",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum delivered posts shared across all sources. Ordinary channels return newest matching posts first, in channel input order. Filtered scans inspect up to 5x the remaining limit, with a minimum of 100 and maximum of 10000 posts per channel.",
            "default": 10
          },
          "before": {
            "title": "Start before post ID",
            "type": "integer",
            "description": "Begin pagination at posts OLDER than this ID. Leave empty for newest first. Useful for catching up a specific date range. Ignored when incremental mode is enabled."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "full",
              "minimal",
              "rag"
            ],
            "type": "string",
            "description": "'full' includes every Telegram field (media, link preview, forwards). 'minimal' keeps key fields. 'rag' outputs one Markdown block per post, ready for vector DB.",
            "default": "full"
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer than N views. 0 = no filter. Useful for feed-scanning to keep only viral posts.",
            "default": 0
          },
          "sinceIso": {
            "title": "Only posts after this date",
            "type": "string",
            "description": "ISO-8601 timestamp (e.g. 2026-01-01T00:00:00Z). Posts older than this are skipped before the delivered-post limit. Timestamps without an offset are interpreted as UTC. Leave empty for all posts."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Telegram has very light rate limits on /s/ pages, but Apify proxy is recommended for large runs. The default uses any Apify group.",
            "default": {
              "useApifyProxy": true
            }
          },
          "incremental": {
            "title": "Only new posts on scheduled runs",
            "type": "boolean",
            "description": "Opt in to private cursor tracking for channel sources. The first run returns the latest sample; later runs with the same monitor key return only unseen posts. With keywords, each channel and keyword pair keeps its own cursor. Use this in an Apify Task + Schedule. The before field is ignored while enabled.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Optional cursor namespace inside this automatically isolated Apify Task, for example daily-competitors. Keep it stable across runs; change it to start a fresh cursor."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}