{"openapi":"3.1.0","info":{"title":"Telegram Channel Scraper - Posts & AI Digest","description":"Public Telegram channels as JSON: profile and exact subscribers, posts with views, reactions and media, search, and an AI digest of recent posts.","version":"v1"},"servers":[{"url":"https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/telegram/channel":{"get":{"tags":["Channels"],"summary":"Channel profile: title, description, exact subscribers, activity","description":"Check how big and active a public channel is: title, description,\npicture, verified badge, exact subscribers, media counters and newest post\ndate. 404 `channel_not_found` (unknown or private), 400 `not_a_channel`\n(groups, bots, people), neither billed. 1 credit.","operationId":"getChannelInfo","parameters":[{"name":"channel","in":"query","required":true,"schema":{"type":"string","maxLength":200,"description":"Public channel: username, @handle or t.me link.","examples":["durov"],"title":"Channel"},"description":"Public channel: username, @handle or t.me link."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Channel"},"examples":{"Get Channel Info":{"summary":"Get Channel Info","value":{"username":"durov","title":"Pavel Durov","url":"https://t.me/durov","description":"Founder/CEO/Owner of Telegram.","verified":false,"subscribers":9880262,"subscribers_exact":false,"counters":{"links":203,"photos":106,"videos":47},"preview_available":true,"last_post":{"id":570,"date":"2026-11-24T16:05:12+00:00"}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Channel Info"}},"/v1/telegram/channels":{"post":{"tags":["Channels"],"summary":"Profiles of up to 20 channels in one call","description":"The same profile for up to 20 channels, in order: shortlist channels by\naudience and activity. A channel that cannot be read gets its error code\nand is not billed. 1 credit per channel found.","operationId":"getChannelsInBulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelsRequest"},"examples":{"Get Channels in Bulk":{"summary":"Get Channels in Bulk","value":{"channels":["durov","@telegram","https://t.me/s/bbcrussian"]}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelsResponse"},"examples":{"Get Channels in Bulk":{"summary":"Get Channels in Bulk","value":{"results":[{"channel":{"username":"durov","title":"Pavel Durov","url":"https://t.me/durov","description":"Founder/CEO/Owner of Telegram.","verified":false,"subscribers":9880262,"subscribers_exact":false,"counters":{"links":203,"photos":106,"videos":47},"preview_available":true,"last_post":{"id":570,"date":"2026-11-24T16:05:12+00:00"}}}],"summary":{"failed":1,"found":2}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Channels in Bulk"}},"/v1/telegram/posts":{"get":{"tags":["Posts"],"summary":"Latest posts of a channel, with paging","description":"Read a public channel's latest posts, newest first: text, date, views,\nreactions, media links, documents, polls, links, buttons, forwards and\nreplies. Page back with `before` = `next_before`; poll for new posts with\n`after`. 1 credit per 20 posts returned (1 minimum).","operationId":"getChannelPosts","parameters":[{"name":"channel","in":"query","required":true,"schema":{"type":"string","maxLength":200,"description":"Public channel: username, @handle or t.me link.","examples":["durov"],"title":"Channel"},"description":"Public channel: username, @handle or t.me link."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Posts to return, 1-100.","default":20,"title":"Limit"},"description":"Posts to return, 1-100."},{"name":"before","in":"query","required":false,"schema":{"type":"integer","maximum":1000000000000,"minimum":1,"description":"Only posts older than this post id (the `next_before` of the previous page).","examples":[531],"title":"Before"},"description":"Only posts older than this post id (the `next_before` of the previous page)."},{"name":"after","in":"query","required":false,"schema":{"type":"integer","maximum":1000000000000,"minimum":0,"description":"Only posts newer than this id: poll a channel with the newest id you already have, then follow `next_after` while it is set. Not with `before`, e.g. after=540.","title":"After"},"description":"Only posts newer than this id: poll a channel with the newest id you already have, then follow `next_after` while it is set. Not with `before`, e.g. after=540."},{"name":"since","in":"query","required":false,"schema":{"type":"string","maxLength":40,"description":"Stop at posts older than this date (2026-11-01) or ISO date-time.","examples":["2026-11-01"],"title":"Since"},"description":"Stop at posts older than this date (2026-11-01) or ISO date-time."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostsResponse"},"examples":{"Get Channel Posts":{"summary":"Get Channel Posts (real response)","value":{"channel":{"username":"durov","title":"Pavel Durov","url":"https://t.me/durov","description":"Founder/CEO/Owner of Telegram.\n\nFounder of TON/Gram.\n\nHalf-part troll.","photo":"https://cdn4.telesco.pe/file/dlY-pWv1M0zHrFRk5ZyAURHmcT...","verified":true,"subscribers":9880000,"subscribers_exact":false,"counters":{"photos":106,"videos":47,"links":203},"preview_available":true,"last_post":{"id":570,"date":"2026-11-23T21:00:12+00:00"}},"count":5,"posts":[{"id":570,"url":"https://t.me/durov/570","date":"2026-11-23T21:00:12+00:00","edited":true,"text":"🎉 Jensen's back.\n\nNvidia's board finally understood that a CEO has to evaluate Chinese models personally.\n\nYou can't delegate that.","views":780000,"reactions":[{"emoji":"⭐","paid":true,"count":6550},{"custom_emoji_id":"5334575279731909928","paid":false,"count":36300},{"custom_emoji_id":"5399847211989246390","paid":false,"count":11400},{"custom_emoji_id":"5373223594484587136","paid":false,"count":10100}],"reactions_total":64350,"media":[],"links":[],"hashtags":[],"buttons":[],"unsupported":false},{"id":568,"url":"https://t.me/durov/568","date":"2026-11-21T22:48:52+00:00","edited":false,"text":"You won't look professional in 2027 if your QR is unpimped.","views":1260000,"reactions":[{"emoji":"⭐","paid":true,"count":1850},{"custom_emoji_id":"5373223594484587136","paid":false,"count":20500},{"custom_emoji_id":"5399847211989246390","paid":false,"count":6560},{"custom_emoji_id":"5334575279731909928","paid":false,"count":5410}],"reactions_total":34320,"media":[{"type":"video","url":"https://cdn4.telesco.pe/file/e865fee2c6.mp4?token=clU6Un2qxa...","thumbnail":"https://cdn4.telesco.pe/file/VhQ0d7isXj5O5Kx_rO8FK37Z6oXnk2X...","duration":24}],"links":[],"hashtags":[],"buttons":[],"unsupported":false}],"next_before":566,"credits":1}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Channel Posts"}},"/v1/telegram/post":{"get":{"tags":["Posts"],"summary":"One post by its link or id","description":"One post with everything Get Channel Posts returns, from its link\n(t.me/durov/551) or channel + id. 404 `post_not_found` when it was\ndeleted (not billed). 1 credit.","operationId":"getSinglePost","parameters":[{"name":"channel","in":"query","required":true,"schema":{"type":"string","maxLength":200,"description":"Channel username, or the post's link (t.me/durov/551).","examples":["https://t.me/durov/551"],"title":"Channel"},"description":"Channel username, or the post's link (t.me/durov/551)."},{"name":"id","in":"query","required":false,"schema":{"type":"integer","maximum":1000000000000,"minimum":1,"description":"Post id, when `channel` is not a post link.","examples":[551],"title":"Id"},"description":"Post id, when `channel` is not a post link."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostResponse"},"examples":{"Get Single Post":{"summary":"Get Single Post","value":{"channel":{"username":"durov","title":"Pavel Durov","url":"https://t.me/durov","description":"Founder/CEO/Owner of Telegram.","verified":false,"subscribers":9880262,"subscribers_exact":false,"counters":{"links":203,"photos":106,"videos":47},"preview_available":true,"last_post":{"id":570,"date":"2026-11-24T16:05:12+00:00"}},"post":{"id":551,"url":"https://t.me/durov/551","date":"2026-10-10T14:22:43+00:00","edited":false,"views":3440000,"reactions":[{"paid":false}],"reactions_total":0,"media":[{"type":"photo"}],"link_preview":{},"poll":{"type":"Anonymous poll","options":[{}]},"buttons":[{}],"forwarded_from":{},"unsupported":false}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Single Post"}},"/v1/telegram/search":{"get":{"tags":["Posts"],"summary":"Search a channel's posts by keyword or hashtag","description":"Telegram's own search inside one channel, newest first, with the same\npost fields as Get Channel Posts. Page back with `before` = `next_before`.\n1 credit per 20 posts returned (1 minimum).","operationId":"searchChannelPosts","parameters":[{"name":"channel","in":"query","required":true,"schema":{"type":"string","maxLength":200,"description":"Public channel: username, @handle or t.me link.","examples":["durov"],"title":"Channel"},"description":"Public channel: username, @handle or t.me link."},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Words or a #hashtag, any language.","examples":["TON"],"title":"Q"},"description":"Words or a #hashtag, any language."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Posts to return, 1-100.","default":20,"title":"Limit"},"description":"Posts to return, 1-100."},{"name":"before","in":"query","required":false,"schema":{"type":"integer","maximum":1000000000000,"minimum":1,"description":"Only posts older than this post id (the `next_before` of the previous page).","examples":[531],"title":"Before"},"description":"Only posts older than this post id (the `next_before` of the previous page)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostsResponse"},"examples":{"Search Channel Posts":{"summary":"Search Channel Posts","value":{"channel":{"username":"durov","title":"Pavel Durov","url":"https://t.me/durov","description":"Founder/CEO/Owner of Telegram.","verified":false,"subscribers":9880262,"subscribers_exact":false,"counters":{"links":203,"photos":106,"videos":47},"preview_available":true,"last_post":{"id":570,"date":"2026-11-24T16:05:12+00:00"}},"posts":[{"id":551,"url":"https://t.me/durov/551","date":"2026-10-10T14:22:43+00:00","edited":false,"views":3440000,"reactions":[{"paid":false}],"reactions_total":0,"media":[{"type":"photo"}],"link_preview":{},"poll":{"type":"Anonymous poll","options":[{}]},"buttons":[{}],"forwarded_from":{},"unsupported":false}],"credits":1}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Search Channel Posts"}},"/v1/telegram/digest":{"get":{"tags":["AI Digest"],"summary":"AI digest of a channel's recent posts: topics, facts, sentiment","description":"Summarize what a channel has been posting: an AI digest in your\nlanguage with summary, topics, key facts, sentiment, links and stats,\nevery point tied to a real post. 400 `no_posts` for an empty channel or\nsearch (not billed). 30 credits per digest, whatever the number of posts.","operationId":"getChannelDigest","parameters":[{"name":"channel","in":"query","required":true,"schema":{"type":"string","maxLength":200,"description":"Public channel: username, @handle or t.me link.","examples":["durov"],"title":"Channel"},"description":"Public channel: username, @handle or t.me link."},{"name":"posts","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":5,"description":"Latest posts to read, 5-100.","default":30,"title":"Posts"},"description":"Latest posts to read, 5-100."},{"name":"language","in":"query","required":false,"schema":{"type":"string","maxLength":40,"description":"Language of the digest, whatever the channel's: English, French, es, Deutsch...","default":"English","title":"Language"},"description":"Language of the digest, whatever the channel's: English, French, es, Deutsch..."},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Only posts matching this search (what does the channel say about X?).","examples":["TON"],"title":"Q"},"description":"Only posts matching this search (what does the channel say about X?)."},{"name":"before","in":"query","required":false,"schema":{"type":"integer","maximum":1000000000000,"minimum":1,"description":"Only posts older than this post id (the `next_before` of the previous page).","examples":[531],"title":"Before"},"description":"Only posts older than this post id (the `next_before` of the previous page)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigestResponse"},"examples":{"Get Channel Digest":{"summary":"Get Channel Digest","value":{"channel":{"username":"durov","title":"Pavel Durov","url":"https://t.me/durov","description":"Founder/CEO/Owner of Telegram.","verified":false,"subscribers":9880262,"subscribers_exact":false,"counters":{"links":203,"photos":106,"videos":47},"preview_available":true,"last_post":{"id":570,"date":"2026-11-24T16:05:12+00:00"}},"language":"English","channel_language":"en","topics":[{}],"key_facts":[{}],"sentiment":{"label":"positive"},"important_links":[{}],"stats":{"posts":30,"posts_read":30,"posts_per_day":2.4,"total_reactions":0,"with_media":0,"forwarded":0,"top_posts":[{"reactions":0}]},"credits":20}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Channel Digest"}}},"components":{"schemas":{"Button":{"properties":{"text":{"type":"string","title":"Text"},"url":{"type":"string","title":"Url"}},"type":"object","required":["text","url"],"title":"Button"},"Channel":{"properties":{"username":{"type":"string","title":"Username","examples":["durov"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","examples":["Pavel Durov"]},"url":{"type":"string","title":"Url","examples":["https://t.me/durov"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","examples":["Founder/CEO/Owner of Telegram."]},"photo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo","description":"Channel picture (Telegram CDN link, expires)."},"verified":{"type":"boolean","title":"Verified","default":false},"subscribers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscribers","examples":[9880262]},"subscribers_exact":{"type":"boolean","title":"Subscribers Exact","description":"True when the count is exact (Get Channel Info); post listings show Telegram's rounded figure (9.88M).","default":false},"counters":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counters","description":"Media counters Telegram shows: photos, videos, files, links...","examples":[{"links":203,"photos":106,"videos":47}]},"preview_available":{"type":"boolean","title":"Preview Available","description":"Whether Telegram shows the channel's posts on the web. When false, only this profile can be read.","default":true},"last_post":{"anyOf":[{"$ref":"#/components/schemas/LastPost"},{"type":"null"}],"description":"Newest post, a quick activity signal."}},"type":"object","required":["username","url"],"title":"Channel"},"ChannelResult":{"properties":{"input":{"type":"string","title":"Input"},"channel":{"anyOf":[{"$ref":"#/components/schemas/Channel"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"invalid_channel, channel_not_found, not_a_channel, private_channel or source_unavailable. Not billed."}},"type":"object","required":["input"],"title":"ChannelResult"},"ChannelsRequest":{"properties":{"channels":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Channels","description":"Up to 20 channels: usernames, @handles or t.me links.","examples":[["durov","@telegram","https://t.me/s/bbcrussian"]]}},"type":"object","required":["channels"],"title":"ChannelsRequest"},"ChannelsResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/ChannelResult"},"type":"array","title":"Results"},"summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Summary","examples":[{"failed":1,"found":2}]}},"type":"object","required":["results","summary"],"title":"ChannelsResponse"},"DigestFact":{"properties":{"fact":{"type":"string","title":"Fact"},"post_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Id"}},"type":"object","required":["fact"],"title":"DigestFact"},"DigestLink":{"properties":{"url":{"type":"string","title":"Url"},"why":{"type":"string","title":"Why"},"post_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Id"}},"type":"object","required":["url","why"],"title":"DigestLink"},"DigestResponse":{"properties":{"channel":{"$ref":"#/components/schemas/Channel"},"language":{"type":"string","title":"Language","examples":["English"]},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"channel_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Language","examples":["en"]},"summary":{"type":"string","title":"Summary"},"topics":{"items":{"$ref":"#/components/schemas/DigestTopic"},"type":"array","title":"Topics"},"key_facts":{"items":{"$ref":"#/components/schemas/DigestFact"},"type":"array","title":"Key Facts"},"sentiment":{"$ref":"#/components/schemas/DigestSentiment"},"important_links":{"items":{"$ref":"#/components/schemas/DigestLink"},"type":"array","title":"Important Links"},"stats":{"$ref":"#/components/schemas/DigestStats"},"credits":{"type":"integer","title":"Credits","examples":[20]}},"type":"object","required":["channel","language","summary","topics","key_facts","sentiment","important_links","stats","credits"],"title":"DigestResponse"},"DigestSentiment":{"properties":{"label":{"type":"string","enum":["positive","neutral","negative","mixed"],"title":"Label"},"score":{"type":"number","title":"Score","description":"-1 (very negative) to 1 (very positive)."},"rationale":{"type":"string","title":"Rationale"}},"type":"object","required":["label","score","rationale"],"title":"DigestSentiment"},"DigestStats":{"properties":{"posts":{"type":"integer","title":"Posts","description":"Posts in the window.","examples":[30]},"posts_read":{"type":"integer","title":"Posts Read","description":"Posts the AI read: all of them, unless very long posts filled its input (then the newest ones).","default":0,"examples":[30]},"first_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Date"},"last_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Date"},"posts_per_day":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Posts Per Day","examples":[2.4]},"average_views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Average Views"},"total_reactions":{"type":"integer","title":"Total Reactions","default":0},"with_media":{"type":"integer","title":"With Media","default":0},"forwarded":{"type":"integer","title":"Forwarded","default":0},"top_posts":{"items":{"$ref":"#/components/schemas/TopPost"},"type":"array","title":"Top Posts","description":"Most viewed posts of the window."}},"type":"object","required":["posts"],"title":"DigestStats"},"DigestTopic":{"properties":{"name":{"type":"string","title":"Name"},"summary":{"type":"string","title":"Summary"},"post_ids":{"items":{"type":"integer"},"type":"array","title":"Post Ids"}},"type":"object","required":["name","summary"],"title":"DigestTopic"},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"Forward":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Source channel, when shown."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","title":"Forward"},"LastPost":{"properties":{"id":{"type":"integer","title":"Id","examples":[570]},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","examples":["2026-11-24T16:05:12+00:00"]}},"type":"object","required":["id"],"title":"LastPost"},"LinkPreview":{"properties":{"url":{"type":"string","title":"Url"},"site_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["url"],"title":"LinkPreview"},"Media":{"properties":{"type":{"type":"string","enum":["photo","video","round_video","gif","voice","audio","document","sticker","location"],"title":"Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"File or image on Telegram's CDN (temporary link); for documents and audio, the post link."},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail"},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration","description":"Seconds (video, voice)."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Document or audio title."},"details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Details","description":"Size or performer, as shown."}},"type":"object","required":["type"],"title":"Media"},"Poll":{"properties":{"question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","examples":["Anonymous poll"]},"options":{"items":{"$ref":"#/components/schemas/PollOption"},"type":"array","title":"Options"},"voters":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Voters"}},"type":"object","title":"Poll"},"PollOption":{"properties":{"text":{"type":"string","title":"Text"},"percent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Percent"}},"type":"object","required":["text"],"title":"PollOption"},"Post":{"properties":{"id":{"type":"integer","title":"Id","examples":[551]},"url":{"type":"string","title":"Url","examples":["https://t.me/durov/551"]},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","examples":["2026-10-10T14:22:43+00:00"]},"edited":{"type":"boolean","title":"Edited","default":false},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Plain text, line breaks kept."},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views","examples":[3440000]},"reactions":{"items":{"$ref":"#/components/schemas/Reaction"},"type":"array","title":"Reactions"},"reactions_total":{"type":"integer","title":"Reactions Total","default":0},"media":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","title":"Media"},"links":{"items":{"type":"string"},"type":"array","title":"Links","description":"Web links of the text and buttons."},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"},"link_preview":{"anyOf":[{"$ref":"#/components/schemas/LinkPreview"},{"type":"null"}]},"poll":{"anyOf":[{"$ref":"#/components/schemas/Poll"},{"type":"null"}]},"buttons":{"items":{"$ref":"#/components/schemas/Button"},"type":"array","title":"Buttons"},"forwarded_from":{"anyOf":[{"$ref":"#/components/schemas/Forward"},{"type":"null"}]},"reply_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply To","description":"Id of the post answered."},"unsupported":{"type":"boolean","title":"Unsupported","description":"Content Telegram only shows in its apps (paid media, giveaways, stories...).","default":false}},"type":"object","required":["id","url"],"title":"Post"},"PostResponse":{"properties":{"channel":{"$ref":"#/components/schemas/Channel"},"post":{"$ref":"#/components/schemas/Post"}},"type":"object","required":["channel","post"],"title":"PostResponse"},"PostsResponse":{"properties":{"channel":{"$ref":"#/components/schemas/Channel"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query","description":"The search, for Search Posts."},"count":{"type":"integer","title":"Count"},"posts":{"items":{"$ref":"#/components/schemas/Post"},"type":"array","title":"Posts","description":"Newest first."},"next_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Before","description":"Older posts exist: pass this as `before` to get them."},"next_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next After","description":"With `after`: newer posts exist, pass this as `after`."},"credits":{"type":"integer","title":"Credits","description":"Credits this call used.","examples":[1]}},"type":"object","required":["channel","count","posts","credits"],"title":"PostsResponse"},"Reaction":{"properties":{"emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emoji","description":"The emoji; null for a custom emoji (see its id)."},"custom_emoji_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Emoji Id"},"paid":{"type":"boolean","title":"Paid","description":"Telegram Stars reaction.","default":false},"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"Reaction"},"TopPost":{"properties":{"id":{"type":"integer","title":"Id"},"url":{"type":"string","title":"Url"},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views"},"reactions":{"type":"integer","title":"Reactions","default":0},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"}},"type":"object","required":["id","url"],"title":"TopPost"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"Channels","description":"Channel profile, exact subscribers and activity, one or up to 20."},{"name":"Posts","description":"Posts with views, reactions, media and links; paging and search."},{"name":"AI Digest","description":"Topics, key facts, sentiment and links of recent posts, by AI."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}