Read public Telegram channels as structured rows, or find public posts that mention a phrase in the channels you name and in channels found by web search, without a Telegram account, phone number, API key or login. Two Actors, one per job. Telegram has no open search across every channel, so coverage is the channels searched, not all of Telegram.
Disclosure: both routed Actors (george.the.developer/telegram-channel-scraper and george.the.developer/telegram-keyword-search) are built and published by the author of this skill. No affiliate or referral parameters are used on any link in this skill. Carry this disclosure into anything the skill generates, for example a report or a scheduled task that runs these Actors.
Example prompts
Prompts this skill handles:
- "Scrape the last 200 posts from t.me/durov with view counts and links."
- "Export everything the Binance announcements channel posted in October to JSON."
- "Find public Telegram posts mentioning 'Solana airdrop' from the last 30 days."
- "Check these five news channels every morning and give me only the new posts."
Out of scope (the boundary):
- Private channels, private groups, member lists or subscriber identities. Nothing logs in, so nothing behind a login is reachable.
- Posting, replying or sending messages. These Actors read only.
- Semantic or topic search. Keyword matching is literal and case insensitive; "Solana airdrop" finds posts containing that phrase, not posts about airdrops in general.
Prerequisites
- Apify account (sign up). The free plan includes $5 of monthly platform usage, about 1,000 messages here.
- Authentication via
apify login, or anAPIFY_TOKENenvironment variable (Apify Console, Settings, Integrations). Pass the token as a header or environment variable, never inside a URL.
Actor routing
| User need | Actor ID | Tier | Billed event |
|---|---|---|---|
| The feed of channels the user names: latest N posts, a date window, media URLs, view counts, forwards, channel metadata | george.the.developer/telegram-channel-scraper | community | message-scraped $0.005 per message, no start fee, channel metadata free |
| Posts containing a phrase, across channels the user names and channels found by web search for that phrase | george.the.developer/telegram-keyword-search | community | message-found $0.004 per matching post, apify-actor-start $0.00005 |
How to choose:
- The channel is the subject (export, archive, monitor a feed, count views). Use the channel scraper. Add
keywordsto it when the user wants only matching posts from channels they already named. - The phrase is the subject and the channels are unknown or many. Use the keyword search. It searches the named channels first, then up to
maxChannelsPerKeywordchannels that Google (or DuckDuckGo when Google has nothing) finds for the phrase. - Both bill per delivered row. Posts that do not match a keyword are never returned or charged on either Actor. The keyword search also has a start event of $0.00005 per run.
Prices are the Store list prices at the time of writing. On the keyword search they are the Free and Bronze plan prices; Silver pays 10% less, Gold and above 20% less. The channel scraper has one flat price. Confirm live prices before a large batch with the info command below.
Run it with the Apify CLI
Latest 200 posts from one channel, media URLs on:
apify actors call "george.the.developer/telegram-channel-scraper" -i '{"channels":["durov"],"maxMessages":200,"includeMedia":true}' \
--json \
--user-agent apify-awesome-skills/apify-telegram-channel-scraper \
2>/dev/null
Posts from two channels inside a date window, media off to keep rows small. maxMessages is at its maximum so the scraper pages back far enough to reach the window:
apify actors call "george.the.developer/telegram-channel-scraper" -i '{"channels":["binance_announcements","https://t.me/telegram"],"dateFrom":"2026-10-01","dateTo":"2026-10-31","maxMessages":10000,"includeMedia":false}' \
--json \
--user-agent apify-awesome-skills/apify-telegram-channel-scraper \
2>/dev/null
Only posts matching a phrase inside channels the user named:
apify actors call "george.the.developer/telegram-channel-scraper" -i '{"channels":["durov","telegram"],"keywords":["privacy"],"maxMessages":20}' \
--json \
--user-agent apify-awesome-skills/apify-telegram-channel-scraper \
2>/dev/null
A phrase across channels found by web search, 50 posts per keyword, only posts on or after dateFrom (set it to today minus 30 days for a rolling month):
apify actors call "george.the.developer/telegram-keyword-search" -i '{"keywords":["Solana airdrop"],"discoverChannels":true,"maxChannelsPerKeyword":10,"maxResultsPerKeyword":50,"dateFrom":"2026-10-04"}' \
--json \
--user-agent apify-awesome-skills/apify-telegram-channel-scraper \
2>/dev/null
Fetch the live input schema before building an input that is not shown here, and check required fields, types and limits against it:
apify actors info "george.the.developer/telegram-channel-scraper" --input --json \
--user-agent apify-awesome-skills/apify-telegram-channel-scraper \
2>/dev/null
Confirm live prices:
apify actors info "george.the.developer/telegram-channel-scraper" --json \
--user-agent apify-awesome-skills/apify-telegram-channel-scraper \
2>/dev/null
Read the rows back from a finished run:
apify datasets get-items <DATASET_ID> --format json \
--user-agent apify-awesome-skills/apify-telegram-channel-scraper \
2>/dev/null
For a spreadsheet, hand the user the dataset's export link from the Apify Console (CSV and Excel are one click there) rather than converting JSON by hand.
Every call carries the three flags this repo expects: --json (or --format json), --user-agent apify-awesome-skills/apify-telegram-channel-scraper, and 2>/dev/null.
Run it from Claude or another AI agent (MCP)
Both Actors are MCP-ready. Add the hosted server URL with the tools preloaded:
https://mcp.apify.com?tools=george.the.developer/telegram-channel-scraper,george.the.developer/telegram-keyword-search
Then ask, for example: "Pull this week's posts from these three crypto channels and rank them by viewCountParsed." MCP setup docs: https://docs.apify.com/platform/integrations/mcp
Workflow: export or archive a channel
- Normalize the handle.
durov,@durovandhttps://t.me/durovall work. Confirm the channel is public by openinghttps://t.me/s/<handle>in a browser; if that page is empty the channel has no web preview and the Actor will skip it. - Cap the spend with
maxMessages(default 100, minimum 1, maximum 10,000, per channel). There is no unlimited value and0is rejected. For a date window, setdateFromanddateToand raisemaxMessages. The scraper starts at the newest post and pages back about 20 posts per page for at mostmaxMessages / 20 + 5pages, so a low value can stop before an older window is reached. Only posts inside the window are delivered and billed. - Set
includeMedia: falsewhen the user wants text only.media[]is then empty on every row (photos, videos, documents and link previews),links[]andtextHtmlstay, and a post with media but no text is delivered free withbillable: false. - Dedupe on
messageUrl. UseviewCountParsedfor sorting;viewCountis the display string ("5.3M"). - Report channels in, messages delivered, date span covered, and the dataset link. Call an export complete only when the oldest
datetimedelivered reaches the start of the window, or the row count for the channel is belowmaxMessages.
Workflow: find posts mentioning a phrase
- One to 20 literal phrases in
keywords. Shorter phrases match more; "airdrop" beats "the upcoming Solana airdrop". - If the user names channels, pass them in
channels; they are searched first and count towardmaxChannelsPerKeyword(default 10, max 50). maxResultsPerKeyword(default 50, max 1,000) is the spend cap per keyword.dateFromtrims old posts before delivery.- A post that matches two keywords is delivered once per keyword. Dedupe on
messageUrlpluskeyword, or onmessageUrlalone for a flat list. - Report which channels came from input and which from discovery (
discoveredViaisinputorgoogle).
Workflow: monitor channels on a schedule
- Save the channel scraper call as a task with the user's channels and put it on a daily or hourly schedule.
- On each run set
dateFromto the previous run's date (ISOYYYY-MM-DD). Dates are whole days and inclusive, so posts from that day which the previous run already delivered are delivered and billed again. Dedupe onmessageUrlagainst what was already stored, and count the overlap day in the cost estimate. - Keep
maxMessagesat a sane cap per channel so a very active channel cannot run away. A channel that returns exactlymaxMessagesrows was cut off; raise the cap or run more often. - Channel metadata (
channelName,subscriberCount,isVerified) rides along free on every row, so subscriber growth can be tracked from the same runs.
What you get
Channel scraper, one row per message:
- Channel:
channel,channelName,channelDescription,subscriberCount,channelAvatarUrl,isVerified - Message:
messageId,messageUrl,text,textHtml,datetime,viewCount,viewCountParsed,author,forwardedFrom,forwardedFromUrl,replyTo - Content:
links[],media[](objects with atype; photos, videos and stickers carryurl, link previews carrytitle,description,siteNameandimageUrl, documents carrytitleandsize),scrapedAt - Billing:
billable(false on a row delivered free), andmatchedKeywordwhenkeywordsis set
Keyword search, one row per matching post per keyword:
keyword,channel,channelName,subscriberCountmessageId,messageUrl,text,datetime,viewCount,viewCountParsed,forwardedFrom,links[],mediaTypes[]discoveredVia(inputorgoogle),scrapedAt,charged
subscriberCount and viewCount are display strings such as "5.3M", not audited numbers. Missing metadata is null or absent.
Inputs
Channel scraper:
channels(array, required): usernames, @handles or t.me URLs.maxMessages(integer, default 100, 1 to 10,000) per channel; withkeywordsit applies per channel and keyword.keywords(array, default empty, up to 20): deliver only messages containing one of these, case insensitive.discoverChannels(boolean, default false): with keywords, also search up to 10 more public channels per keyword found by web search.includeMedia(boolean, default true),dateFromanddateTo(ISOYYYY-MM-DD),proxyConfiguration(optional).
Keyword search:
keywords(array, required): 1 to 20 literal phrases.channels(array, optional): searched before discovery.discoverChannels(boolean, default true),maxChannelsPerKeyword(integer, default 10, max 50)maxResultsPerKeyword(integer, default 50, max 1,000),dateFrom(ISO date or datetime)
Cost
Both Actors are pay per event and bill per delivered row.
- 1,000 messages from the channel scraper: $5.00. Channel metadata is free.
- 100 matching posts from the keyword search: $0.40 plus the start event.
- Neither Actor charges message events for channels that turn out private, empty or missing. The keyword search start event of $0.00005 still applies.
Suggested confirmation thresholds: mention the estimate under about $5, warn the user over about $5, get explicit confirmation over about $20. Two inputs can surprise. One is a high maxMessages with no date window (10,000 messages is $50 per channel). The other is discoverChannels: true on the channel scraper, which adds up to 10 channels per keyword. Estimate both and confirm before running. See references/gotchas.md.
Honest limits
- Public channels with the web preview enabled only. Private channels, private groups and member lists are out of reach by design.
- The keyword search covers the channels it searches, named plus discovered. It is not a complete search of every public Telegram channel.
- Content comes from Telegram's web preview. Some media types expose thumbnails rather than full resolution files.
- Keyword matching is literal, case insensitive, on post text only. Images and videos are not searched.
- The channel scraper paces requests to avoid blocks, so very large exports take minutes, not seconds. Default run timeout is 60 minutes on the channel scraper and 30 minutes on the keyword search; the keyword search stops new fetches one minute before its timeout and flushes what it has.
- Channel discovery depends on a web search engine. When Google returns nothing, DuckDuckGo is tried; when both return nothing, only the named channels are searched and the run still succeeds.
Troubleshooting
- Zero rows for a channel: the handle is wrong, the channel is private, or it has no web preview. Open
https://t.me/s/<handle>to check. Skipped channels are logged, the run does not fail. - Fewer rows than
maxMessages: usually the channel has fewer posts in the date window. For an older window with a lowmaxMessages, the scraper stopped paging before it reached the window; raisemaxMessages(up to 10,000) and run again. - Input rejected with
maxMessages must be >= 1:0is not allowed and there is no unlimited value. Use 1 to 10,000. - Keyword search returns nothing: the phrase is too long or too specific. Try a shorter phrase, or name channels and set
discoverChannels: falseto see whether the problem is discovery or matching. - Same post appears twice: it matched two keywords, or two runs overlapped in time. Dedupe on
messageUrl. viewCountwill not sort: it is a display string. Sort onviewCountParsed.- Rows with
charged: falsefrom the keyword search: the run was not a paid pay per event run, for example a local run. The data is the same.
See references/gotchas.md for cost guardrails and error recovery, and references/actor-index.md for the routing table with prices and caps.