{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Keyword Search Scraper",
    "description": "Find public Telegram posts that mention your keywords. No channel list needed: a built-in catalog of 6,700 active channels by topic and language. Only-new mode for monitoring, date, views and media filters. No login, no API key.",
    "version": "0.1",
    "x-build-id": "t5R5qSVWjlb8RjlJe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalharvest~telegram-keyword-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalharvest-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/signalharvest~telegram-keyword-search/runs": {
      "post": {
        "operationId": "runs-sync-signalharvest-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/signalharvest~telegram-keyword-search/run-sync": {
      "post": {
        "operationId": "run-sync-signalharvest-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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "minItems": 1,
            "type": "array",
            "description": "Words or phrases to find. Each keyword is searched separately in every channel.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Public channels to search in, as @username, username, https://t.me/username or https://t.me/s/username. Optional: leave empty and the Actor picks channels from its built-in catalog.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics (catalog)",
            "type": "array",
            "description": "Pick channels from the built-in catalog of active public channels by topic. A channel matches if it has any of the chosen topics. Topics are assigned automatically by keywords, so they are approximate.",
            "items": {
              "type": "string",
              "enum": [
                "crypto",
                "finance",
                "news",
                "politics",
                "technology",
                "ai",
                "business",
                "science",
                "gaming",
                "jobs",
                "sports",
                "education"
              ],
              "enumTitles": [
                "Crypto",
                "Finance and markets",
                "News",
                "Politics and war",
                "Technology",
                "AI",
                "Business and startups",
                "Science",
                "Gaming",
                "Jobs",
                "Sports",
                "Education"
              ]
            }
          },
          "languages": {
            "title": "Languages (catalog)",
            "type": "array",
            "description": "Pick catalog channels by their main language, detected automatically from recent posts. Combined with Topics: a channel must match both.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "uk",
                "ru",
                "fr",
                "de",
                "pt"
              ],
              "enumTitles": [
                "English",
                "Ukrainian",
                "Russian",
                "French",
                "German",
                "Portuguese"
              ]
            }
          },
          "minSubscribers": {
            "title": "Minimum subscribers (catalog)",
            "minimum": 0,
            "type": "integer",
            "description": "Only catalog channels with at least this many subscribers. The catalog itself contains channels with 1,000 subscribers or more.",
            "default": 1000
          },
          "maxChannels": {
            "title": "Max catalog channels",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit of catalog channels to search. Channels whose title or description contains a keyword come first, then the largest by subscribers. Channels are searched 100 at a time, and the run stops early once every keyword has enough recent posts (Max results per keyword, from the last 30 days or from your date range). Each channel costs one or two requests per keyword.",
            "default": 1000
          },
          "postsFrom": {
            "title": "Posts from",
            "type": "string",
            "description": "Only posts published on or after this date (UTC). The search only reaches the newest matches Telegram returns (about 22 per keyword and channel), not the full history."
          },
          "postsTo": {
            "title": "Posts to",
            "type": "string",
            "description": "Only posts published on or before this date (UTC)."
          },
          "lastDays": {
            "title": "Last days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only posts from the last N days (UTC). When Posts from is also set, the later of the two dates applies."
          },
          "maxResultsPerKeyword": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total number of posts to return for each keyword across all channels. When more posts match, the newest ones across all channels are kept.",
            "default": 100
          },
          "maxResultsPerChannel": {
            "title": "Max results per channel",
            "minimum": 1,
            "maximum": 22,
            "type": "integer",
            "description": "Number of posts to return for each keyword in each channel. Telegram's public search returns at most about 22 newest matching posts per keyword in a channel.",
            "default": 20
          },
          "exactMatch": {
            "title": "Exact match",
            "type": "boolean",
            "description": "Keep only posts whose text contains the keyword exactly (case-insensitive). Telegram's search also returns word forms (for example \"wallets\" for \"wallet\") and posts where the word appears only inside a link; turn this off to keep them.",
            "default": true
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop posts whose text contains any of these words or phrases (case-insensitive), for example giveaway or sponsored.",
            "items": {
              "type": "string"
            }
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many views. Telegram rounds large view counts (12.3K), so the check uses the rounded number.",
            "default": 0
          },
          "onlyWithMedia": {
            "title": "Only posts with media",
            "type": "boolean",
            "description": "Only posts that have a photo, video, document or audio attached.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new posts",
            "type": "boolean",
            "description": "Return only posts newer than the ones returned by your previous runs for the same keyword and channel. Use it with a schedule to monitor mentions.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}