{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Scraper API – Channels & Keyword Search, No Login",
    "description": "Telegram channel scraper and Telegram keyword search API, no login: export public channel messages, search keywords, hashtags and brand mentions, find channels for a topic, pull emails and links for leads, and monitor new posts. 500 messages free monthly.",
    "version": "0.3",
    "x-build-id": "xL644JDAeSMEnBL8m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/k-data-lab~telegram-channel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-k-data-lab-telegram-channel-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/k-data-lab~telegram-channel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-k-data-lab-telegram-channel-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/k-data-lab~telegram-channel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-k-data-lab-telegram-channel-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words, phrases or hashtags to look for in public Telegram messages, e.g. <code>bitcoin</code>, <code>your brand</code> or <code>#ETF</code>. Leave empty to export channel history. With channels below, we search those. Without channels, we first find relevant public channels.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Public Telegram channels to export or search: <code>durov</code>, <code>@durov</code> or <code>https://t.me/durov</code>. A post link (<code>https://t.me/durov/300</code>) returns that one post.",
            "items": {
              "type": "string"
            }
          },
          "discoverChannels": {
            "title": "Find more channels for my keywords",
            "type": "boolean",
            "description": "Uses web search to find other public channels about each keyword, then searches inside them. Turn off to search only your channels.",
            "default": true
          },
          "resultType": {
            "title": "Return",
            "enum": [
              "messages",
              "channels"
            ],
            "type": "string",
            "description": "Messages returns one row per post. Channels only returns one row per channel with its bio, subscribers, last post date and published contacts: use it to look up channels or build a channel or lead list for a topic.",
            "default": "messages"
          },
          "maxResults": {
            "title": "Max results in total",
            "minimum": 0,
            "type": "integer",
            "description": "The run stops at this many rows. For a cheap first test use 10. 0 means no limit. Your Apify spending limit always applies too.",
            "default": 1000
          },
          "maxMessagesPerChannel": {
            "title": "Max messages per channel",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Per channel, and per keyword when you use keywords.",
            "default": 100
          },
          "maxChannelsPerKeyword": {
            "title": "Max channels to find per keyword",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How many public channels to find for each keyword.",
            "default": 20
          },
          "since": {
            "title": "From date",
            "type": "string",
            "description": "Only messages on or after this date. Use <code>2026-01-31</code> or a relative age: <code>24 hours</code>, <code>7 days</code>, <code>2 weeks</code>, <code>1 month</code>."
          },
          "until": {
            "title": "To date",
            "type": "string",
            "description": "Only messages on or before this date, same formats."
          },
          "onlyNewMessages": {
            "title": "Only new messages since my last run",
            "type": "boolean",
            "description": "For scheduled runs. We remember the newest message per channel and keyword, so each run returns and charges only what's new. The first run returns everything within your limits.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keep separate memory for different schedules, e.g. <code>crypto-watch</code>.",
            "default": "default"
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip messages with fewer views. Skipped messages aren't charged."
          },
          "minSubscribers": {
            "title": "Minimum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Channels only mode: skip smaller channels."
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Skip messages containing any of these, e.g. <code>giveaway</code>. Not case-sensitive.",
            "items": {
              "type": "string"
            }
          },
          "exactMatch": {
            "title": "Exact keyword only",
            "type": "boolean",
            "description": "Telegram's search also matches word forms (update → updates). Turn on to keep only messages with your exact text.",
            "default": false
          },
          "onlyWithMedia": {
            "title": "Only messages with media",
            "type": "boolean",
            "description": "Skip text-only messages.",
            "default": false
          },
          "onlyWithContacts": {
            "title": "Only rows with contacts",
            "type": "boolean",
            "description": "For lead lists. Keeps only channels whose bio, or messages whose text, has an email or an @handle other than the channel's own. Skipped rows aren't charged.",
            "default": false
          },
          "country": {
            "title": "Country for finding channels",
            "type": "string",
            "description": "Two-letter country code, e.g. <code>kr</code>, <code>de</code>, <code>br</code>. Only affects which channels are found.",
            "default": "us"
          },
          "language": {
            "title": "Language for finding channels",
            "type": "string",
            "description": "Two-letter language code, e.g. <code>ko</code>, <code>de</code>, <code>pt</code>. Only affects which channels are found.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}