{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Channel Scraper & Monitor: Posts, Search, No Login",
    "description": "Scrape public Telegram channels without login or API key: full post history, views, reactions, media, comments, subscribers and channel stats. Search all of Telegram by keyword. Only-new-posts monitoring for news, crypto, brand tracking and AI agents.",
    "version": "1.0",
    "x-build-id": "KzdIw3aOMedfn9ZBR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/panix~telegram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-panix-telegram-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/panix~telegram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-panix-telegram-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/panix~telegram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-panix-telegram-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": "Channels, groups or post links",
            "type": "array",
            "description": "Public channels as usernames (durov), @handles or links (https://t.me/durov, https://t.me/s/durov). A post link (https://t.me/durov/123) returns that one post. Public groups without a post preview return their info row (members, online). Invite links and personal accounts are skipped (not charged).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search all of Telegram (keywords)",
            "type": "array",
            "description": "Keywords, brands or topics. The Actor finds public channels that talk about each keyword, then uses Telegram's own search inside each channel and returns the newest matching posts from all of them. Charged once per keyword searched (search event, free when no channels are found), plus each post.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerChannel": {
            "title": "Max posts per channel",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Newest posts first, then older pages back to the start of the channel. 0 = channel info row only.",
            "default": 20
          },
          "searchInChannels": {
            "title": "Only posts that match (Telegram search inside the channels)",
            "type": "string",
            "description": "Optional. A word, phrase or #hashtag. Uses Telegram's own search inside every channel above, so old matching posts are found without reading the whole history."
          },
          "maxPostsPerSearch": {
            "title": "Max posts per search keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Newest matching posts across all channels found for one keyword.",
            "default": 30
          },
          "maxChannelsPerSearch": {
            "title": "Max channels searched per keyword",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many public channels found for a keyword are searched for matching posts.",
            "default": 10
          },
          "searchLanguage": {
            "title": "Search language",
            "type": "string",
            "description": "Two-letter language code used to find channels for keywords (en, es, ru, de, ar, hi ...). Posts are not translated.",
            "default": "en"
          },
          "searchCountry": {
            "title": "Search country",
            "type": "string",
            "description": "Two-letter country code used to find channels for keywords (us, gb, in, br ...).",
            "default": "us"
          },
          "postedAfter": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "A date (2026-01-31) or a relative time like '7 days', '24 hours', '3 months'. Paging stops once older posts are reached."
          },
          "postedBefore": {
            "title": "Only posts older than",
            "type": "string",
            "description": "A date (2026-01-31, that whole day included) or a relative time like '1 day'."
          },
          "includeKeywords": {
            "title": "Keep posts containing any of these words",
            "type": "array",
            "description": "Case-insensitive match on the post text, link preview title and poll question.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip posts containing any of these words",
            "type": "array",
            "description": "Case-insensitive. Skipped posts are free.",
            "items": {
              "type": "string"
            }
          },
          "mediaTypes": {
            "title": "Only posts with this media",
            "type": "array",
            "description": "Keep posts with any of these: text (no media), photo, video, round_video, voice, audio, document, sticker, poll, location. Empty = all posts.",
            "items": {
              "type": "string"
            }
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer views (free)."
          },
          "skipServiceMessages": {
            "title": "Skip service messages",
            "type": "boolean",
            "description": "Leave out 'channel photo updated', 'pinned a message' and similar system lines.",
            "default": true
          },
          "includeComments": {
            "title": "Add public comments",
            "type": "boolean",
            "description": "For channels with a public discussion group: the comments under each post as separate rows (comment event), plus commentsCount on the post row. Comment author names are hidden by Telegram for logged-out visitors.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Newest comments under each post, up to 100.",
            "default": 20
          },
          "includeChannelInfo": {
            "title": "Add a channel row with stats",
            "type": "boolean",
            "description": "One row per channel: title, description, links, subscribers, photo/video/file/link counts, verified, plus average and median views, view rate (views / subscribers), reaction rate, posts per day, top reactions and last post time.",
            "default": true
          },
          "onlyNewPosts": {
            "title": "Only new posts (monitoring)",
            "type": "boolean",
            "description": "Remembers what earlier runs delivered (per channel and keyword) and returns only newer posts, so a schedule pays only for new posts. The channel row then shows subscribersChange since the last run.",
            "default": false
          },
          "memoryName": {
            "title": "Memory name",
            "type": "string",
            "description": "Separate memories for different schedules or tasks (letters, digits, - and _).",
            "default": "default"
          },
          "maxResults": {
            "title": "Maximum posts in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the run after this many posts (comments and channel rows not counted). Empty = no limit."
          },
          "maxConcurrency": {
            "title": "Parallel inputs",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many channels and keywords are read at the same time.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for Telegram. Keyword search always uses Apify's Google search 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}