
Telegram Scraper
Pricing
$9.99/month + usage
Go to Apify Store

Telegram Scraper
Seamlessly extract public messages from any Telegram channel and gain valuable insights. Perfect for researchers, marketers, and data analysts.
5.0 (1)
Pricing
$9.99/month + usage
11
607
78
Last modified
a day ago
π Telegram Channel Scraper
Scrape public Telegram channels with enterprise-friendly flexibility. The actor now supports post ID ranges, date ranges, configurable post limits, and optional comment harvesting, all while capturing richer post metadata such as reactions and attachments.
π§ Input Example
{"channels": ["mediumcom"],"postsFrom": 1,"postsTo": 0,"maxPostsPerChannel": 200,"fromDate": "2024-01-01T00:00:00Z","toDate": "2024-02-01T00:00:00Z","includeComments": true,"maxCommentsPerPost": 50,"proxy": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"]},"requestHandlerTimeoutSecs": 60}
π Input Parameters
Parameter | Type | Description |
---|---|---|
channels | array | List of public channel usernames (e.g. ["mediumcom"] ). |
postsFrom | integer | (Optional) Minimum post ID to consider (channels start at 1). |
postsTo | integer | (Optional) Maximum post ID (set to 0 /omit to ignore). |
maxPostsPerChannel | integer | Caps the number of posts processed per channel (default 200 ). |
fromDate | string | (Optional) ISO timestamp β collect posts on/after this moment. |
toDate | string | (Optional) ISO timestamp β collect posts on/before this moment. |
includeComments | boolean | When enabled, fetches the public comment thread for each post (if available). |
maxCommentsPerPost | integer | Maximum number of comments captured per post (default 100 ). |
proxy | object | Proxy settings β RESIDENTIAL proxies strongly recommended/required. |
requestHandlerTimeoutSecs | integer | Timeout per request in seconds (default 60 ). |
You can mix-and-match ID ranges, date filters, and maximum post counts to control the crawl scope precisely.
π€ Output Example
[{"id": 18,"channelName": "mediumcom","channelTitle": "Medium","authorName": "Medium / Medium.com","authorTelegram": "https://t.me/mediumcom","date": "2024-01-05T12:24:33+00:00","viewsCount": "15","text": "https://journal.thriveglobal.com/look-for-people...","linkPreview": "Thrive Global\n\nβLook For People Who Need You...β","reactions": [{"emoji": "π","count": 42,"countDisplay": "42"}],"attachments": [{"type": "tgme_widget_message_photo","caption": "Image caption","url": "https://t.me/..."}],"commentsCount": "3","commentsCollected": 3,"comments": [{"authorName": "Jane Doe","authorTelegram": "https://t.me/janedoe","date": "2024-01-05T13:00:00+00:00","text": "Great update!"}]}]
π Output Fields
Field | Type | Description |
---|---|---|
id | integer | Message ID. |
channelName | string | Channel username. |
channelTitle | string | Channel title (when available). |
channelDescription | string | Channel description text (first listing hit). |
subscribersText | string | Subscriber counter text from Telegram (if visible). |
authorName | string | Author display name. |
authorTelegram | string | Link to the author/channel. |
date | string | ISO 8601 timestamp. |
viewsCount | string | View counter displayed by Telegram. |
text | string | Message body text. |
linkPreview | string | Link preview text. |
reactions | array | Emoji reactions with numeric counts. |
attachments | array | Metadata for attached media (type, caption, url). |
commentsCount | string | Comment counter Telegram shows on the post. |
comments | array | Collected comments (author, link, date, text) when enabled. |
commentsCollected | integer | How many comments were captured for this post. |
π‘ How to Use
- Specify channels β supply the public usernames you want to scrape.
- Choose your range strategy β mix ID limits, date filters, and
maxPostsPerChannel
to bound the crawl. - Toggle comments β enable
includeComments
(and tunemaxCommentsPerPost
) to add discussion threads. - Configure proxies β use Apify RESIDENTIAL or your own high-quality proxies for consistent access.
- Run the actor β monitor the logs for skipped/blocked content and adjust parameters as needed.
π οΈ Tips & Tricks
- Combine date filters with
maxPostsPerChannel
to collect recent activity without guessing IDs. - When you do rely on IDs, start with humane limits (e.g. first 50 posts) and expand gradually.
- A handful of messages require the official Telegram app and will be skipped β the actor logs them.
- Respect Telegram policies: throttling retries and using residential IPs dramatically improves success rates.
π Connect With Us
- π Blog: Quick Life Solutions
- πΊ YouTube: CodeMaster-421
- πΈ Instagram: @quicklifesolutionsofficial
- ποΈ Free Consultation: Book a call
- π οΈ More Tools: Explore our Apify actors
π Support
- π¬ Discord: Raise a support ticket
- π§ Email: codemasterdevops@gmail.com
Happy scraping! ππ§Ήβ¨