Telegram Chat Scraper: Channel Messages, Media
Pricing
from $0.41 / 1,000 results
Telegram Chat Scraper: Channel Messages, Media
Telegram channel scraper for public channels, groups and forum topics by username or t.me link. Get messages from a start date with text, date and sender, plus views, replies, forwards and reactions when available, and photos or media files if you download them. No Telegram login needed.
Pricing
from $0.41 / 1,000 results
Rating
5.0
(4)
Developer
AgentX
Maintained by CommunityActor stats
8
Bookmarked
408
Total users
28
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Telegram Chat Scraper is a public Telegram message scraper that reads a public channel, group or forum from a start date you pick and returns one Dataset row per message, with its link and date, plus text, sender, views, replies, forwards and reactions when available. Use the results to build a message archive, track channel engagement or save the photos and files a chat posts.
- One public chat per run. Paste a username, @username or t.me link of a channel, group or forum.
- 55 fields in the Overview. Match a message to its chat, check when it was posted and inspect the counters Telegram supplied.
- A link on every message. Each message row carries its t.me URL so you can reopen it in context.
- Date window and result cap you control. Read from
start_datetoward the present, up to yourmax_resultslimit.
The smallest useful text test returns one message: 1 Actor Start + 1 Result + 0 Media = $0.01115 total at the FREE-tier rates below. If no message matches, the start charge still applies.
Why Choose Telegram Chat Scraper: Channel Messages, Media
Turn the public history of one Telegram chat into a table you can filter and share, with each message link beside its text, date and engagement counters. Messages arrive oldest first from the oldest accessible post or your chosen date, so a scheduled run with a recent window keeps an archive current. Three media modes let you keep a text-only export small or also save photos and other supported files. Optional fields appear when Telegram supplies them.
Quick Start Guide
Step 1: Configure your request
Enter a public chat in telegram_url, select text for download_medias, enter 1 day for start_date and set max_results to 1 for a one-message test.
Step 2: Run the Actor
Click Start once and wait for the run to finish. One saved message costs $0.01115 in total at the listed FREE-tier rates, including its start charge.
Step 3: Collect the results
Open the Output tab or the default Dataset to read the rows, then export JSON, CSV or Excel. The run's status message reports how many messages were saved, or that no message matched.
Input Configuration
Choose one public chat, a media mode, a UTC start date and the maximum number of messages. Supply telegram_url, download_medias and max_results. The date is optional.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
telegram_url | string | Yes | Public Telegram channel, group or forum: a username, @username, t.me link or public /s/ preview link. Private invites and individual message links are not supported. | "https://t.me/aipost" |
download_medias | string | Yes | text returns message facts without saving files; image also saves photos; all also requests supported message files. File links appear only after a file is saved. | "text" |
start_date | string | No | Optional UTC date (YYYY-MM-DD) or relative lookback such as 7 days. Use up to 36,500 days, 5,214 weeks, 1,216 months or 100 years. Each month is 30 days and each year is 365 days. Omit it to start with the oldest accessible message. | "1 day" |
max_results | integer | Yes | Enter 1 or more. Available history can be shorter. | 1 |
{"telegram_url": "https://t.me/aipost","download_medias": "text","start_date": "1 day","max_results": 1}
text returns message facts without saving files. image also requests photos, including link-preview photos. all also requests supported message files and link-preview documents. Media links appear only after successful saving, and only saved files are charged as Media. Messages are read oldest first from the start date; without a date, reading starts at the oldest accessible message. max_results is a cap, not a guaranteed quantity.
To archive a month of posts with their photos, change the mode and the window:
{"telegram_url": "https://t.me/aipost","download_medias": "image","start_date": "1 month","max_results": 100}
To also request supported files such as videos, audio and documents from a fixed date, use all with an absolute date; the @username form works too:
{"telegram_url": "@telegram","download_medias": "all","start_date": "2026-01-01","max_results": 20}
Output Data Schema
Each row represents a message or service event. Overview shows all 55 fields in schema order. The last two columns are processor and processed_at. A message only contains the optional facts available for that post. An empty history produces zero rows and zero Result or Media units. The final status message starts with ✅ for complete delivery, ℹ️ for a confirmed empty result and ⚠️ for a problem. Keep any saved rows and inspect the warning, even when the run is SUCCEEDED.
Core fields
| Field | Type | Meaning |
|---|---|---|
id | string (decimal ID) | Message ID within this chat. Use it with chat_id to join exports. |
chat_id | string (decimal ID) | Telegram numeric identifier of the chat the message belongs to. |
source_url | string | Public permalink to the message. |
date | string | UTC timestamp when the message was sent. |
text | string | Message body or media caption when present. |
processor | string | Store page of the Actor that produced the row. |
processed_at | string | UTC processing timestamp shared by all rows in the run. |
Data fields
| Field | Type | Meaning |
|---|---|---|
chat_username | string | Public username of the chat, without its leading @. |
chat_title | string | Display title of the channel or group. |
chat_type | string | Chat kind: channel for broadcast, group for a supergroup, forum for a topic-based group. |
chat_description | string | Public description of the chat at processing time. |
chat_member_count | integer | Source-reported participant or subscriber count at processing time. |
type | string | Message kind, either regular or service. |
edit_date | string | UTC timestamp of the last edit. Omitted when the message has never been edited. |
sender | string | The channel post signature or the visible sender label. |
sender_id | string (decimal ID) | ID of the sending account when Telegram identifies it separately. |
sender_username | string | Active public username of the sending account without @, when available. |
sender_name | string | Public display name of the sending account, when available. |
sender_flags | array | Each item is a string such as bot, verified, scam or fake. Telegram includes only flags it marks as true. |
sender_rank | string | Source-provided group rank or role label for the sender. |
sender_boost_count | integer | Boosts Telegram attributes to the sender for this message. |
topic_name | string | Name of the forum topic when available. |
reply_to | string (decimal ID) | ID of the message being replied to. Omitted for standalone messages. |
thread_id | string (decimal ID) | Root message ID of the forum topic containing this message. |
reply_quote | string | Quoted source text included in the reply header, when Telegram provides it. |
album_id | string (decimal ID) | Grouping identifier shared by the messages of one multi-item album. |
view_count | integer | View count supplied by Telegram. |
reply_count | integer | Reply count supplied by Telegram. |
forward_count | integer | Number of forwards Telegram reports for this message. |
reactions | object | Each key identifies a reaction and its integer value counts uses. Standard reactions use the emoji, custom reactions use custom:<emoji document id>, and paid star reactions use paid. |
urls | array | Each string is a URL from plain text or a hyperlink in the message. |
hashtags | array | Each string is a hashtag from the message text, including its #. |
media_type | string | Source media classification, available even in text mode. |
media_name | string | Original file name of the attached document, when the source supplies one. |
media_size | integer | Attached file size in bytes. |
media_duration | number | Playback length in seconds. Telegram reports video duration as a fractional value and audio duration as a whole number, so this field accepts both. |
media_mime_type | string | Source-reported MIME type of the attached file. |
media_extension | string | File extension, including its leading dot. |
media_width | integer | Source-reported media width in pixels. |
media_height | integer | Source-reported media height in pixels. |
media_emoji | string | Emoji associated with sticker media, when present. |
media_streamable | boolean | Whether Telegram marks the document video as streamable. |
media_round | boolean | Whether the attached video is a round video message. |
media_has_stickers | boolean | Whether photo media has stickers or the document is a sticker. |
media_url | string | Link to a file the run stored for this message. |
link_preview | object | url, site_name, title, description, author and type describe the linked page. embed_url, embed_width and embed_height describe its embed in pixels. duration is in seconds. |
poll | object | question holds the prompt. Each entry in options has text and can include the aggregate voters count and quiz flag correct. total_voters counts participants. closed, public_voters, multiple_choice and quiz describe the poll settings. close_date is the closing time, close_period is in seconds, and solution holds the quiz explanation when available. |
location | object | latitude and longitude give coordinates in degrees. accuracy_radius gives the reported radius in meters. Venue details can include title, address, provider, venue_id and venue_type. |
forward_info | object | date is the original posting time. from_id, from_name and post_author identify or credit the source. message_id identifies the original message when Telegram supplies it. |
via_bot_id | string (decimal ID) | Telegram numeric identifier of the bot through which the message was posted. |
restriction_reasons | array | Each entry gives the affected client platform, a reason code and explanatory text. |
service_type | string | Chat event this service message records, such as Pin Message or Chat Edit Title. |
service_info | string | Source details of the service action. |
silent | boolean | Whether the message was posted without a notification. |
pinned | boolean | Whether the message is pinned in the chat. |
Example of selected columns from a text message.
{"chat_id": "123456789","id": "42","source_url": "https://t.me/aipost/42","type": "regular","date": "2026-01-15T10:30:00Z","text": "Illustrative channel announcement.","processor": "https://apify.com/agentx/telegram-chat-scraper","processed_at": "2026-01-15T10:31:00Z"}
Export formats
Export the full Dataset as JSON to include processor, processed_at, nested objects and arrays. Omit the view, fields, flatten and unwind parameters for this export. CSV and Excel are useful for tables; import long identifiers as text.
Integration Examples
Actor ID
CTS2Fv7KyZuiQeSJ8
HTTP
# Requires curl, jq and an APIFY_TOKEN environment variable.set -euo pipefailACTOR_ID='CTS2Fv7KyZuiQeSJ8'API='https://api.apify.com/v2'RUN_ID=$(curl --fail --silent --show-error -X POST "$API/acts/$ACTOR_ID/runs" \-H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \-d '{"telegram_url":"https://t.me/aipost","download_medias":"text","start_date":"1 day","max_results":1}' | jq -er '.data.id')printf 'Saved run ID: %s\n' "$RUN_ID" >&2while :; doRUN=$(curl --fail --silent --show-error "$API/actor-runs/$RUN_ID" \-H "Authorization: Bearer $APIFY_TOKEN")STATUS=$(printf '%s' "$RUN" | jq -er '.data.status')case "$STATUS" in SUCCEEDED|FAILED|TIMED-OUT|ABORTED) break;; esacsleep 2doneDATASET_ID=$(printf '%s' "$RUN" | jq -er '.data.defaultDatasetId')OFFSET=0while :; doPAGE=$(curl --fail --silent --show-error \"$API/datasets/$DATASET_ID/items?format=json&offset=$OFFSET&limit=1000" \-H "Authorization: Bearer $APIFY_TOKEN")printf '%s' "$PAGE" | jq -c '.[]'COUNT=$(printf '%s' "$PAGE" | jq 'length')[ "$COUNT" -lt 1000 ] && breakOFFSET=$((OFFSET + COUNT))doneMESSAGE=$(printf '%s' "$RUN" | jq -r '.data.statusMessage // ""')case "$STATUS/$MESSAGE" inSUCCEEDED/✅*|SUCCEEDED/ℹ*) ;;*) printf 'Check retained rows: %s %s\n' "$STATUS" "$MESSAGE" >&2; exit 1 ;;esac
Python
import jsonimport osimport timefrom urllib.request import Request, urlopenAPI = "https://api.apify.com/v2"ACTOR_ID = "CTS2Fv7KyZuiQeSJ8"def api(path, body=None):data = None if body is None else json.dumps(body).encode()req = Request(API + path, data=data, headers={"Authorization": "Bearer " + os.environ["APIFY_TOKEN"],"Content-Type": "application/json",})with urlopen(req) as response:return json.load(response)run = api(f"/acts/{ACTOR_ID}/runs", {"telegram_url": "https://t.me/aipost", "download_medias": "text", "start_date": "1 day", "max_results": 1})["data"]run_id = run["id"]print("Saved run ID:", run_id)while run["status"] not in {"SUCCEEDED", "FAILED", "TIMED-OUT", "ABORTED"}:time.sleep(2)run = api(f"/actor-runs/{run_id}")["data"]offset = 0while True:page = api(f"/datasets/{run['defaultDatasetId']}/items?format=json&offset={offset}&limit=1000")for row in page:print(json.dumps(row))offset += len(page)if len(page) < 1000:breakmessage = run.get("statusMessage") or ""if run["status"] != "SUCCEEDED" or not message.startswith(("✅", "ℹ")):raise RuntimeError(f"Run {run_id} ended {run['status']} ({message}); check retained rows")
JavaScript
const apiRoot = 'https://api.apify.com/v2';const actorId = 'CTS2Fv7KyZuiQeSJ8';async function api(path, body) {const response = await fetch(apiRoot + path, {method: body === undefined ? 'GET' : 'POST',headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}`, 'Content-Type': 'application/json' },body: body === undefined ? undefined : JSON.stringify(body),});if (!response.ok) throw new Error(`Apify HTTP ${response.status}`);return response.json();}let { data: run } = await api(`/acts/${actorId}/runs`, { telegram_url: 'https://t.me/aipost', download_medias: 'text', start_date: '1 day', max_results: 1 });const runId = run.id;console.log('Saved run ID:', runId);while (!['SUCCEEDED', 'FAILED', 'TIMED-OUT', 'ABORTED'].includes(run.status)) {await new Promise(resolve => setTimeout(resolve, 2000));({ data: run } = await api(`/actor-runs/${runId}`));}let offset = 0;while (true) {const page = await api(`/datasets/${run.defaultDatasetId}/items?format=json&offset=${offset}&limit=1000`);for (const row of page) console.log(JSON.stringify(row));offset += page.length;if (page.length < 1000) break;}if (run.status !== 'SUCCEEDED' || !/^(✅|ℹ)/u.test(run.statusMessage ?? '')) throw new Error(`Run ${runId} ended ${run.status} (${run.statusMessage}); check retained rows`);
Make.com
Use Run an Actor with ID CTS2Fv7KyZuiQeSJ8 and input {"telegram_url":"https://t.me/aipost","download_medias":"text","start_date":"1 day","max_results":1}. Save its run ID, read that run until terminal, then use its defaultDatasetId with Get Dataset Items and retrieve all pages. Retain the rows and flag a ⚠️ or missing statusMessage even when the run is SUCCEEDED.
n8n
Start Actor CTS2Fv7KyZuiQeSJ8 with {"telegram_url":"https://t.me/aipost","download_medias":"text","start_date":"1 day","max_results":1}. Store its run ID, poll that run to terminal, then page its defaultDatasetId with offset and limit until the final page. Retain the rows and inspect statusMessage. A ⚠️ or missing final message needs attention.
MCP
Select Actor CTS2Fv7KyZuiQeSJ8 in your Apify MCP client and send this input. Retain its run ID, continue it until terminal, and retrieve every Dataset page before checking statusMessage for a warning or an unknown outcome.
{"telegram_url": "https://t.me/aipost", "download_medias": "text", "start_date": "1 day", "max_results": 1}
Pricing
The one-message text test costs $0.01115 in total on the listed FREE-tier rates: one Actor Start ($0.01) plus one Result ($0.00115).
| Event | Billing unit | FREE | BRONZE | SILVER | GOLD / PLATINUM / DIAMOND |
|---|---|---|---|---|---|
| Actor Start | Per start event | $0.01000 | $0.01000 | $0.01000 | GOLD: $0.01000; PLATINUM: $0.01000; DIAMOND: $0.01000 |
| Result | Per saved message | $0.00115 | $0.00104 | $0.00092 | GOLD: $0.00086; PLATINUM: $0.00086; DIAMOND: $0.00086 |
| Media | Per saved file linked from a message | $0.00100 | $0.00090 | $0.00080 | GOLD: $0.00075; PLATINUM: $0.00075; DIAMOND: $0.00075 |
Actor Start is charged once per run, including a run with no results. FREE names a price tier and does not make the complete run free.
A text run never charges Media. If image mode saves one photo with that one message, the FREE-tier total is $0.01215. Each further saved file adds one Media unit, counted by the rows whose media_url is filled. A run that saves 10 messages in text mode costs $0.01 + 10 × $0.00115 = $0.02150 in total on FREE. After a delivery or billing warning, keep the saved rows and read the confirmed Result and Media charges in the run receipt.
A run that saves no messages incurs only the start charge. Source counters and nested facts do not add Result units. Check the Actor Pricing tab for the applicable plan and rates before starting.
Use Cases
Archive a public channel
Run text mode without start_date and a high max_results to export accessible history with each message's link and date, along with any text Telegram supplies. Download JSON to keep nested facts such as polls and forwards.
Track engagement on recent posts
Schedule a daily run with start_date set to 1 day and compare view_count, forward_count, reply_count and reactions across runs. Counters are what Telegram shows at the time of the run.
Follow announcements from a project or community
Point the Actor at an announcement channel or forum and read text, urls and hashtags to spot launches, listings or policy changes; topic_name separates forum topics.
Keep the photos and files a chat posts
Use image for photos or all for videos, audio and documents, then open each media_url to download the saved file.
Alternatives
Use the Telegram app for a one-off reading session. This Actor saves the selected history as a Dataset you can export and query.
Limits and Troubleshooting
- Oldest first: messages are read from
start_datetoward the present, so a long window with a smallmax_resultsreturns the earliest messages in that window. Shorten the window to get recent posts. - Empty Dataset: check the public username and date window, then widen
start_dateif the chat posts rarely. - Fewer messages than requested: available history, the date window or an interrupted run can reduce the total; the status message reports the saved count.
- Missing media link: check the selected mode. Text mode saves no files, image mode saves photos only, and a file that could not be saved keeps its message row without a link and without a Media charge.
- Private invites and individual-message URLs are unsupported. Use a public channel, group or forum username or URL.
- Sender facts come from returned messages and are not a member list. Telegram can omit sender details.
Trust and Reliability
- Each returned message keeps its t.me link, original message ID and the time the row was processed, so any value can be checked against the source.
- Counters are Telegram's own. Telegram's Channels FAQ explains public usernames and notes that view counters are approximate and include views of forwarded copies.
Legal and Compliance
Use only information you are authorized to access and reuse. Respect Telegram terms, copyright in posted text and media, and applicable privacy obligations for sender names, emails and phone numbers. Do not use the output for unsolicited contact.
Frequently Asked Questions
Which target forms are accepted?
Use a public username, @username, t.me channel/group/forum URL, telegram.me alias or public /s/ preview URL. Private invites and individual-message links are unsupported.
Which media mode should I choose?
Start with text for message facts; choose image for photos or all for supported files. Only successfully saved files receive media links and Media charges.
Do I get the newest messages first?
No. Messages come oldest first from start_date. For the latest posts, use a short window such as 1 day.
Does the requested count guarantee that many messages?
No. It is a maximum within the accessible history and date window. When a chat has no matching messages, the Dataset is empty.
Is the first run free?
No. The smallest one-message text test is $0.01115 at the listed FREE-tier rates, including its required start charge.
Can I schedule exports?
Use Apify schedules or your workflow to start later runs. Each run has its own Dataset and charges; this Actor does not deliver an alert subscription.
Related AgentX Actors
Telegram follow-ups
- Telegram Info Scraper — Use
chat_usernameto retrieve the channel or group profile. - Telegram Member Scraper — Use a public group's
chat_usernameto request visible participant records. - Video Transcript — Use a video link from
urlsto request its transcript.
Enrich with other sources
- All Web Search Scraper — Search an organization or topic named in
text. - All Video Scraper — Use a video link from
urlsto collect the video. - All Academic Papers Search — Search a research topic mentioned in a post.
Support and Community
Ask about fields, runs, or billing in the AgentX community on Telegram; for a reproducible bug, open an Issue with the run ID and the exact input.
AgentX is an Arcyton brand — arcyton.com.
Last Updated: November 18, 2026