{
  "openapi": "3.0.1",
  "info": {
    "title": "Telegram Channel Scraper & Keyword Monitor (No Login)",
    "description": "Extract and incrementally monitor public Telegram channel posts without phone numbers, sessions, or proxies. Pre-filter messages before sending to n8n or AI agents.",
    "version": "0.0",
    "x-build-id": "30MllQHvMCiVgGbGB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topaz_anemone~telegram-channel-monitor-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topaz_anemone-telegram-channel-monitor-pro",
        "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/topaz_anemone~telegram-channel-monitor-pro/runs": {
      "post": {
        "operationId": "runs-sync-topaz_anemone-telegram-channel-monitor-pro",
        "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/topaz_anemone~telegram-channel-monitor-pro/run-sync": {
      "post": {
        "operationId": "run-sync-topaz_anemone-telegram-channel-monitor-pro",
        "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": [
          "channels"
        ],
        "properties": {
          "channels": {
            "title": "Public channels",
            "type": "array",
            "description": "Public Telegram channel usernames or links, e.g. 'durov', '@telegram' or 'https://t.me/s/durov'. Only channels with a public web preview (t.me/s/...) can be read; private groups and user profiles are skipped with a clear reason in the SUMMARY record.",
            "items": {
              "type": "string"
            },
            "default": [
              "durov"
            ]
          },
          "maxMessagesPerChannel": {
            "title": "Max messages per channel",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of matching posts returned (and charged) per channel in one run (1-2000). Posts are read newest first.",
            "default": 20
          },
          "incrementalMode": {
            "title": "Incremental mode (only new posts since the last run)",
            "type": "boolean",
            "description": "Recommended for schedules, n8n and AI-agent monitors. The Actor remembers the newest post ID it has scanned for each channel in a named key-value store and, on the next run, stops as soon as it reaches that cursor, so you never pay twice for the same post. The first run behaves like a normal scrape and creates the cursors.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name (incremental mode)",
            "type": "string",
            "description": "Name of the key-value store (created automatically in your account) that keeps one cursor per channel. Use a different name for each independent monitor, for example 'crypto-alerts' and 'ai-news'. Allowed: a-z, 0-9 and '-'.",
            "default": "telegram-monitor-state"
          },
          "includeKeywords": {
            "title": "Include keywords (any match)",
            "type": "array",
            "description": "Keep only posts that contain at least one of these keywords (case-insensitive). Matched keywords are returned in 'matchedKeywords' so you can route alerts. Leave empty to keep every post.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop posts that contain any of these keywords, e.g. 'giveaway', 'airdrop', 'promo'.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywordMatch": {
            "title": "Keyword matching",
            "enum": [
              "word",
              "substring"
            ],
            "type": "string",
            "description": "'Whole word' (default) makes 'AI' match 'AI agents' but not 'said', and 'SOL' match '$SOL' but not 'solution'. Keywords in Chinese, Japanese, Russian and other non-Latin scripts are always matched as substrings. 'Substring' restores plain substring matching.",
            "default": "word"
          },
          "regexPattern": {
            "title": "Regex filter",
            "type": "string",
            "description": "Optional case-insensitive Python regular expression applied to the post text, e.g. '\\$(BTC|ETH|SOL)\\b' or '(?:raised|series [abc])'."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many views (e.g. 5000 for high-engagement posts). 0 disables the filter.",
            "default": 0
          },
          "sinceDate": {
            "title": "Since date (UTC)",
            "type": "string",
            "description": "Stop reading a channel once posts are older than this date or timestamp, e.g. '2026-11-01' or '2026-11-28T00:00:00Z'."
          },
          "sinceMessageId": {
            "title": "Since message ID (manual cursor)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return posts with an ID greater than this value. Message IDs are per channel, so use it with a single channel; for multi-channel monitors use incremental mode instead."
          },
          "compactLlmMode": {
            "title": "Compact output for LLMs and n8n",
            "type": "boolean",
            "description": "Return lean records (channel, ID, date, views, reactions, text, URL, media types, forwarded-from, matched keywords) without link lists and reaction breakdowns. Cuts downstream LLM tokens by roughly 60%.",
            "default": false
          },
          "channelConcurrency": {
            "title": "Channels scanned in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many channels are read at the same time (1-10). Higher values finish large monitor lists faster.",
            "default": 4
          },
          "maxPagesPerChannel": {
            "title": "Max history pages per channel",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on pagination requests per channel; each page holds about 20 posts.",
            "default": 25
          },
          "requestDelayMs": {
            "title": "Delay between pages (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Polite delay between pagination requests of the same channel, in milliseconds.",
            "default": 250
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}