Telegram Channel Content & Media Scraper avatar

Telegram Channel Content & Media Scraper

Pricing

$10.00 / 1,000 posts

Go to Apify Store
Telegram Channel Content & Media Scraper

Telegram Channel Content & Media Scraper

Need data from Telegram channels without an API key or phone number? Paste up to 25 channels and get clean JSON: post text, views, reactions, forwards, hashtags, mentions, links and photos/videos with direct download links. Great for monitoring competitors, news and AI datasets. See README.

Pricing

$10.00 / 1,000 posts

Rating

5.0

(8)

Developer

Olga

Olga

Maintained by Community

Actor stats

27

Bookmarked

1.2K

Total users

85

Monthly active users

a day ago

Last modified

Share

πŸ“¦ Telegram Channel Content & Media Scraper

Extract channel metadata, recent posts, views, reactions, forwards, hashtags, mentions, replies, and all media with direct download links. This actor scrapes structured content from public Telegram channels using the Telegram API via a pre-authorized session string β€” no setup required from you.

πŸ†• Updated on September 29, 2026: up to 25 channels per run, fewer Telegram rate limits, album merging, clear run status and a run summary β€” live now.

πŸ’° From October 13, 2026: the price stays the same β€” $10 per 1,000 posts β€” but you will no longer pay for service records such as "no posts found" or channel errors. Details below in Update and Pricing.


πŸ†• Update (2026-09-29)

  • βœ… Channels are remembered between runs β€” channels you've scraped before no longer need a Telegram username lookup (the thing that causes 10-hour FloodWait limits). Repeat monitoring of the same channels is faster and much safer
  • βœ… Up to 25 channels per run (was 10) β€” of them, up to 10 new channels; previously scraped channels don't count toward that limit
  • βœ… Rate limits no longer stop the whole run β€” if Telegram limits lookups of new channels, only new channels are skipped; channels you've scraped before keep working
  • βœ… Clear run status β€” while waiting in the queue you see how long you've been waiting; at the end you see a summary: posts collected, media files downloaded, which channels were not processed and why
  • βœ… RUN_SUMMARY record in the run's Key-Value Store β€” handy for API and automation users
  • βœ… type field on every record β€” post for content, other values for service messages (see Output), so you can filter them out easily
  • βœ… t.me links accepted β€” https://t.me/channel, https://t.me/s/channel, t.me/channel/123; channels can be separated by commas or new lines
  • βœ… Optional album merging (groupAlbums) β€” merge an album into one record with all its files
  • βœ… maxMediaSizeMB β€” files larger than the limit stay as links instead of being downloaded
  • βœ… Link previews are no longer treated as media β€” hasMedia now means real photos, videos or files

Nothing changes in the default output: without the new options, you get the same records as before, plus the type and groupedPostIds fields.


πŸ’° Pricing

WhatPrice
Post$10.00 / 1,000 posts
Platform usageIncluded

That's it β€” no monthly fee, no run fee, no extra charge for downloading media.

πŸ“’ From October 13, 2026 β€” same price, fairer billing. Until now, every record in the dataset was charged, including service records. From October 13 you pay only for real posts. These become free:

  • service records: "no posts found", channel errors, rate-limit notices, skipped channels;
  • time in the queue, queue timeouts and failed connections to Telegram (these were never charged).

With groupAlbums: true, an album is one post β€” you pay once per album, not once per photo.

Set Max cost per run in the run options to cap your spending β€” the Actor stops cleanly when the limit is reached.


βœ… What This Actor Does

  • Connects to Telegram automatically (no credentials needed from your side)
  • Parses public channels (by username or t.me link)
  • Retrieves for each channel:
    • Channel metadata: display title, description (about), subscriber count
    • Posts: text, date, post URL, views, reactions (with emoji breakdown + total)
    • Forwards: detects native Telegram forwards and exposes the source (isForward, forwardFromType, forwardFromId, forwardFromName, forwardChannelPost, forwardPostAuthor, forwardDate)
    • Hashtags & mentions: extracted from post text (Unicode-aware β€” supports Cyrillic, e.g. #вакансия, #ΠœΠ΅Π½Π΅Π΄ΠΆΠ΅Ρ€_ΠΏΠΎ_ΠΏΡ€ΠΎΠ΄Π°ΠΆΠ°ΠΌ)
    • Edit metadata: editDate if the post was edited
    • Reply chain: replyToMsgId and replyToPostUrl for posts that reply to another post
    • Links: all URLs found in the post text
    • Media: photos, videos, documents β€” with direct downloadable URLs (.jpg, .mp4, .pdf, etc.) and mediaTypes
  • Handles:
    • Text-only and media-only messages
    • Albums β€” one record per message by default, or one record per album with groupAlbums
    • Telegram FloodWait limits gracefully (with explanatory record in the dataset)
    • Cross-run conflicts via a per-session queue (see "Queue Behavior" below)
  • Skips:
    • Empty service messages, outdated posts beyond daysRange
  • Starts from the most recent post and works backwards

🧾 Input

You don't need to enter any credentials β€” they're already preconfigured.

FieldTypeRequiredDefaultDescription
channelsstringβœ…β€”Channel usernames or links, separated by commas or new lines (e.g. @channel1, https://t.me/channel2)
maxPostsnumber❌10Max number of Telegram messages per channel (1–200)
daysRangenumber❌3Number of days to look back from today (1–30)
includeTextboolean❌trueWhether to include post text in the output
mediaOnlyboolean❌falseIf true, skip posts that have no photos, videos or files
downloadMediaboolean❌falseIf true, download media files into the run's Key-Value Store
maxMediaSizeMBnumber❌50Files larger than this stay as t.me links (not downloaded). 0 = no limit
groupAlbumsboolean❌falseIf true, merge an album into one record: all files in mediaUrls, all message ids in groupedPostIds. With merging on you may get fewer records than maxPosts, because maxPosts counts Telegram messages

πŸ“Œ Example input

{
"channels": "@channel1, https://t.me/channel2, channel3",
"maxPosts": 10,
"daysRange": 3,
"includeText": true,
"mediaOnly": false,
"downloadMedia": true,
"maxMediaSizeMB": 50,
"groupAlbums": false
}

⚠️ Channel limits per run. Up to 25 channels per run, of which up to 10 new channels (not scraped by this Actor before). Previously scraped channels are remembered and don't need a Telegram lookup, so they don't count toward the 10. Channels over the limit are listed in the run status and saved as type: "skipped" records β€” just run them again.


▢️ How to Run

  1. Open the actor in Apify Console
  2. Fill in the input fields
  3. Click Save, then Run
  4. Watch the run status β€” it shows queue waiting time, progress, and a final summary
  5. Results are available in:
    • Dataset β€” all posts and channel metadata as JSON records
    • Key-Value Store β€” downloaded media files (when downloadMedia: true) and RUN_SUMMARY

πŸ“€ Output

Each Telegram message (or each album, with groupAlbums: true) is saved as a separate record in the default dataset (JSON format). Every record has a type field:

typeMeaning
postA post with content
no_postsChannel has no posts in the selected period
skippedChannel postponed (per-run limit or temporary Telegram limit) β€” run it again
telegram_rate_limitTelegram asked to slow down; includes waitSeconds
channel_errorChannel not found, private, or another error

To get only content, filter by type = "post".

{
"type": "post",
"channel": "@channel_name",
"channelLink": "https://t.me/channel_name",
"channelTitle": "Channel Display Name",
"channelDescription": "Channel about / bio text",
"postId": 101,
"postUrl": "https://t.me/channel_name/101",
"date": "2026-09-28T17:38:00.000Z",
"views": 3456,
"subscribers": 12345,
"text": "Example post content with #hashtag and @mention",
"reactions": [
{ "emoji": "πŸ‘", "count": 42 },
{ "emoji": "❀️", "count": 18 }
],
"totalReactions": 60,
"links": ["https://example.com"],
"hasMedia": true,
"mediaUrls": [
"https://api.apify.com/v2/key-value-stores/<storeId>/records/channel_name_101.jpg?disableRedirect=1"
],
"mediaTypes": ["jpg"],
"groupedPostIds": [101],
"isForward": false,
"forwardFromType": "",
"forwardFromId": "",
"forwardFromName": "",
"forwardChannelPost": 0,
"forwardPostAuthor": "",
"forwardDate": "",
"hashtags": ["#hashtag"],
"mentions": ["@mention"],
"editDate": "",
"replyToMsgId": 0,
"replyToPostUrl": ""
}

For forwarded posts, isForward: true and the forward* fields are populated:

{
"isForward": true,
"forwardFromType": "channel",
"forwardFromId": "1009232144",
"forwardFromName": "",
"forwardChannelPost": 181471,
"forwardPostAuthor": "",
"forwardDate": "2026-04-27T15:06:48.000Z"
}

RUN_SUMMARY (in the run's Key-Value Store):

{
"posts": 48,
"channelsProcessed": 5,
"mediaDownloaded": 31,
"mediaSkippedLarge": 1,
"postponedChannels": [],
"failedChannels": [],
"costLimitReached": false
}

⏳ Queue Behavior (Important for parallel users)

The actor uses a shared Telegram session preconfigured by the author. Telegram allows only one active connection per session at any time β€” if multiple users run the actor simultaneously, the second connection would get AUTH_KEY_DUPLICATED.

To prevent this, the actor uses a cross-run lock: parallel runs are automatically queued and processed one at a time.

What this means in practice:

  • If no one else is running the actor β†’ starts immediately
  • If another user is currently scraping β†’ your run waits in queue, and the run status shows how long you've been waiting
  • A typical wait is a few minutes (depends on what the previous run is doing)
  • Maximum queue wait is 15 minutes, after which the run fails with a clear message

πŸ›‘οΈ Telegram Rate Limit Handling

If Telegram returns a FloodWait on contacts.ResolveUsername (too many lookups of new channel usernames in a short period), the actor:

  1. Stops looking up new channels for the rest of this run, to protect the session
  2. Keeps processing channels you've scraped before β€” they don't need a lookup
  3. Adds a telegram_rate_limit record with the wait duration (waitSeconds) and a clear explanation
  4. Retry the skipped channels after the indicated time (often 10–11 hours)

For any other very long FloodWait (1 hour or more), the run stops early to protect the session and reports it in the dataset and run status.


πŸ›  Use Cases

  • Competitive content monitoring
  • Telegram market research
  • Dataset building for AI/ML models (with hashtags + mentions for labels)
  • Public media archiving
  • Social listening and trend analysis
  • News aggregation and curation
  • Forward chain analysis (track which posts get republished)

πŸ“œ Changelog

2026-09-29

  • βœ… Billing announced for 2026-10-13: same $10 / 1,000 posts, service records no longer charged
  • βœ… Channel cache: previously scraped channels skip contacts.ResolveUsername (the main cause of FloodWait); each channel is now resolved once per run instead of twice
  • βœ… Up to 25 channels per run, max 10 new ones; channels over the limit are reported as type: "skipped" instead of being silently dropped
  • βœ… FloodWait on new-channel lookups no longer stops already-known channels
  • βœ… Run status messages: queue waiting time, progress per channel, final summary
  • βœ… RUN_SUMMARY record in the Key-Value Store
  • βœ… type field on every record (post, no_posts, skipped, telegram_rate_limit, channel_error)
  • βœ… channels accepts t.me links (incl. /s/ and post links) and new-line separation; duplicates removed
  • βœ… New groupAlbums option (off by default) and groupedPostIds field
  • βœ… New maxMediaSizeMB option (default 50 MB)
  • βœ… Link previews no longer counted as media (hasMedia, mediaUrls)
  • βœ… Respects the Max cost per run limit
  • βœ… Clearer error messages for invalid, private and non-channel usernames

2026-05-03

  • βœ… Added channel metadata (channelTitle, channelDescription)
  • βœ… Added forwards detection (7 new forward* fields)
  • βœ… Added hashtags + mentions extraction
  • βœ… Added editDate and reply chain fields (replyToMsgId, replyToPostUrl)
  • βœ… Cross-run lock now uses author-scoped Apify token, so the queue works for all users (not only the actor owner)
  • βœ… Replaced silent exit handling with explicit Actor.fail() so errors are visible in run status
  • βœ… Added 15-second timeout on Telegram getMe() to prevent multi-minute hangs on dead sessions
  • βœ… Disabled autoReconnect to fail fast and surface real errors

2025-12-05

  • βœ… Added explicit handling and logging for Telegram contacts.ResolveUsername FloodWait errors
  • βœ… When Telegram returns a FloodWait, the actor now stops processing further channels in that run and adds a telegram_rate_limit record to the dataset with a human-readable explanation
  • βœ… Limited the number of channels processed per run to 10 to reduce the risk of hitting global FloodWait on the shared Telegram session
  • βœ… Updated input description to recommend no more than 10 channels per run and documented this behavior in the README

2025-10-10

  • βœ… Fixed AUTH_KEY_DUPLICATED by adding a per-session lock (prevents concurrent reuse of the same Telegram auth key)
  • βœ… Improved error messages for session conflicts
  • βœ… Internal stability tweaks for Telegram requests and media downloads

❓ Troubleshooting

Empty results / type: "no_posts"

  • Increase daysRange to 7..14 β€” the channel may not have posts in the default 3-day window
  • Increase maxPosts to 20..50
  • Make sure the channel is public and the username is correct

type: "skipped" records / channels "not processed" in the run status

  • The run hit the per-run channel limits β€” run again with just those channels

type: "channel_error"

  • The channel may be private, deleted, a user or bot rather than a channel, or an invite link (t.me/+...), which isn't supported

Run waits 5+ minutes in queue

  • Another user is currently using the actor; this is normal under load
  • Retry in a few minutes when the queue clears

telegram_rate_limit record in dataset

  • Telegram applied a FloodWait β€” wait the indicated number of hours before retrying the skipped channels
  • Channels you've scraped before are not affected

Run failed with AUTH_KEY_DUPLICATED

  • Should not happen with the built-in queue, but if it does β€” wait 10 minutes and retry

⚠️ Telegram Albums

Telegram delivers an album (several photos/videos with one caption) as several separate messages, one file each, with the caption on one of them.

By default (groupAlbums: false) the actor returns them as Telegram delivers them β€” one record per message. They share the same date and have consecutive postId values.

With groupAlbums: true the actor merges them into one record:

  • text β€” the album's caption
  • mediaUrls / mediaTypes β€” all files of the album
  • groupedPostIds β€” ids of all messages in the album
  • postId / postUrl β€” the first message of the album

πŸ” License & Usage

This actor is a proprietary paid product.

  • ❗ It is not open source
  • πŸ“¦ It is licensed for private and commercial use by users of this Actor
  • πŸ›‘ Any unauthorized copying, reselling, or redistribution is strictly prohibited
  • πŸ§‘β€πŸ’» All activity is logged for abuse prevention and fair use enforcement

To report a bug, please open an issue β€” I respond quickly.


Made with πŸ’™ for Telegram research & automation.