# Telegram Channel Scraper: Posts, Views, Reactions & Media (`subtleasianmerch/telegram-channel-scraper`) Actor

Scrape public Telegram channel posts with no login or API key: text, date, views, reactions, photos, videos and polls. Search channels, limit by date, and get only new posts on a schedule. $0.50 per 1,000 posts.

- **URL**: https://apify.com/subtleasianmerch/telegram-channel-scraper.md
- **Developed by:** [Public Data Tools](https://apify.com/subtleasianmerch) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Telegram Channel Scraper: Posts, Views, Reactions & Media

**Scrape posts from public Telegram channels** with no account, phone number or API key. Get each post's text, date, views, reactions and media, plus the channel's subscribers, and only new posts on a schedule.

- 🔓 **No login, phone number or API key:** reads each public channel's web preview.
- 💬 **Every post's text, date, views and reactions,** plus photos, videos, polls, link previews, replies and forwards.
- 👥 **Channel details:** title, subscribers, verified badge and description.
- 🔎 **Search inside channels,** or limit posts to a date range.
- 🔔 **Only new posts:** schedule it with a monitor ID, and each run returns only posts newer than the last.
- 💸 **$0.50 per 1,000 posts.** Channels with no public preview are free.

**Try it:** the input comes pre-filled with an example. Click **Start** to see the latest posts from two public channels, then add your own channels.

### What you get

One row per post.

| Data | Fields |
|---|---|
| Post | post number, link (`https://t.me/<channel>/<id>`), date, edited flag, author signature when the channel shows one |
| Text | the text with line breaks, plus the web links, hashtags and @mentions in it |
| Views | as Telegram shows them ("3.36M") and as a number |
| Reactions | each emoji with its count, paid Telegram Stars, and custom emoji by ID |
| Media | photos (each photo of an album), videos with thumbnail and duration, and voice notes, files, stickers and locations when the preview shows them |
| Polls and previews | polls with each option's percentage; link previews with site name, title, description and image |
| Context | the post it replies to, where it was forwarded from, and the channel's title and subscriber count |

**For every channel** (in the run summary): title, username, verified badge, description, photo, subscribers, and counts of photos, videos, links and files.

**Ways to read a channel:**

- the newest posts, paging back as far as you want, to the channel's first post;
- a search inside each channel, using Telegram's own search;
- posts between two dates.

### Who it's for

- **Media monitoring and PR teams:** follow news, brand and competitor channels, and get each new post as it appears.
- **Researchers and analysts:** collect a channel's history with dates, views and reactions for analysis.
- **Market and crypto watchers:** track announcement and signal channels on a schedule.
- **Marketers:** compare channels by subscribers, views and reactions, and see which posts do best.
- **App builders:** feed posts into dashboards, alerts or spreadsheets through the Apify API.

### How much does it cost?

Pay per event: you pay per post delivered, plus Apify's standard start fee per run.

| Event | Price |
|---|---|
| Post delivered | $0.50 per 1,000 ($0.0005 each) |
| Run start | Apify's standard start fee |

**Examples:**

- **The prefilled example,** 20 posts from each of 2 channels: 40 × $0.0005 = **$0.02**, plus the start fee.
- **1,000 posts:** 1,000 × $0.0005 = **$0.50**, plus the start fee.
- **An hourly monitor of 10 channels** that post about 1,200 times a day in total: about **$0.60 a day**. Runs with nothing new cost only the start fee.

**Free:**

- channels with no public preview (users, bots, groups, private or missing channels);
- posts left out by your dates;
- posts already delivered in the same run;
- with a monitor ID, posts delivered in earlier runs.

**Spending limit:** set a maximum cost per run in the run options. The run stops cleanly at that amount. With a monitor ID, the next run continues from the last post delivered, so nothing is skipped.

### How to use it

1. **Add channels** under **Channels**, one per line: a username (`durov` or `@durov`), a link (`https://t.me/durov`) or a post link (`https://t.me/durov/123` reads that post's channel).
2. **Search (optional):** enter words in **Search inside the channels** to get only matching posts.
3. **Set limits:** **Most posts per channel** (newest first; default 100), and **Posted on or after** and **Posted on or before** dates.
4. **Set a maximum cost** in the run options if you want one, then click **Start**. The log shows each channel with its title, subscribers and the posts delivered.
5. **View and download the results.** The **Posts** table shows the date, channel, text, views, reactions, media and link. Export as JSON, CSV or Excel.

For new posts only, add a **Monitor ID (for scheduled runs)** and schedule the Actor (see "Integrations").

### Example input

**The last 500 posts from three channels:**

```json
{
  "channels": ["telegram", "https://t.me/tginfo", "@durov"],
  "maxPostsPerChannel": 500
}
```

**Posts about privacy since 2024, from two channels** (23 posts in a test on Apify):

```json
{
  "channels": ["durov", "telegram"],
  "searchQuery": "privacy",
  "postedAfter": "2024-01-01",
  "maxPostsPerChannel": 50
}
```

**An hourly new-post feed** (schedule it with this input):

```json
{
  "channels": ["bloomberg", "telegram"],
  "monitorId": "news-watch",
  "onlyNew": true,
  "maxPostsPerChannel": 200
}
```

### Example output

One row per post, from a real preview page, shortened:

```json
{
  "channel": "durov",
  "postId": 209,
  "url": "https://t.me/durov/209",
  "date": "2023-04-27T19:13:50.000Z",
  "edited": false,
  "author": null,
  "text": "Telegram's mission is to preserve privacy and freedom of speech around the world.\n\n…",
  "links": [],
  "hashtags": [],
  "mentions": [],
  "views": 3360000,
  "viewsLabel": "3.36M",
  "reactions": [
    { "emoji": "⭐", "customEmojiId": null, "paidStars": true, "count": 23, "countLabel": "23" },
    { "emoji": "❤", "customEmojiId": null, "paidStars": false, "count": 27200, "countLabel": "27.2K" }
  ],
  "reactionsTotal": 41443,
  "media": [],
  "mediaNotShown": false,
  "poll": null,
  "linkPreview": null,
  "replyTo": null,
  "forwardedFrom": null,
  "channelTitle": "Pavel Durov",
  "channelSubscribers": 10200000,
  "fetchedAt": "2026-10-29T19:50:24.000Z"
}
```

### Integrations

- **Schedules:** run it hourly or daily with a **Monitor ID** and **Output only new posts** on, to get each new post once.
- **API:** start runs and read posts from your own code (example below).
- **Webhooks:** have Apify call your URL when a run finishes, then read its new posts.
- **Make, Zapier and n8n:** send new posts on to Slack, email or a CRM with Apify's apps for these tools. Apify's own integrations also cover email and Slack.
- **Monitoring:** Apify's monitoring can alert you when a scheduled run fails.

#### Run it from the API

```bash
curl -X POST "https://api.apify.com/v2/acts/subtleasianmerch~telegram-channel-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"channels": ["durov", "telegram"], "maxPostsPerChannel": 20}'
```

The call runs the Actor and returns the posts as a JSON array. Replace `YOUR_TOKEN` with your Apify API token, from Apify Console under Settings → API & Integrations.

### Good to know

#### Get only new posts (monitoring)

1. Under *Monitoring*, enter a **Monitor ID (for scheduled runs)**, such as `news-watch`. Use letters, digits and dashes, up to 60 characters.
2. Keep **Output only new posts** on. Turn it off to get every post, with `isNew` marking the new ones.
3. Run it once. The first run outputs up to **Most posts per channel** from each channel and remembers the newest.
4. Schedule the Actor in Apify Console with the same input, for example hourly. Each later run outputs only newer posts, oldest first.

In a test, a second run 6 minutes after the first read one page per channel. It output only the 3 new posts from 3 news channels.

If a run stops at your cost cap, the next run continues from the last post delivered, so nothing is skipped. If more posts are new than **Most posts per channel** allows, the newest ones are output.

#### About the fields

- `views`, `reactions[].count` and `channelSubscribers` are numbers worked out from Telegram's rounded labels ("27.2K" → 27,200). The labels are kept too.
- `reactions`: paid Telegram Stars show as ⭐ with `paidStars: true`. Custom emoji have `emoji: null` and a `customEmojiId`.
- `media`: one entry per item, such as `{ "type": "photo", "url": "…", "postUrl": "https://t.me/rian_ru/348868?single" }`, or a video with `url`, `thumbnailUrl` and `duration`. Each photo of an album is its own entry. Videos too big for the preview have `url: null` and `tooBigForPreview: true`.
- `mediaNotShown`: `true` when the preview shows "Please open Telegram to view this post" instead of the content.
- `poll`: `{ question, type, options: [{ text, percent }] }`, such as type "Final Results".
- `linkPreview`: `{ url, siteName, title, description, imageUrl }`.
- `replyTo`: `{ postId, url, author, text }` of the post it replies to.
- `forwardedFrom`: `{ name, url }`; both can be empty when Telegram hides the original poster.
- With a search: `searchQuery`. With a monitor ID: `isNew`.

**Dataset view:** **Posts** shows the date, channel, text, views, reactions, media and link.

**Run summary:** the `RUN_SUMMARY` record in the run's key-value store has:

- for each channel: status (`ok`, `no preview`, `blocked`, `failed` or `not read`), the reason, title, verified badge, description, photo, subscribers, counters, pages read, posts delivered, and the newest and oldest post numbers;
- totals: posts, new posts, posts left out by your dates, and requests;
- whether the run stopped at your cost cap or because Telegram blocked it.

#### Limits

- **Public channels only.** The Actor reads Telegram's public web preview, the page anyone sees at `t.me/s/<channel>`. Private channels, invite links, groups, users and bots have no such page; they're listed in the run summary, free.
- **Numbers are rounded by Telegram.** Views, reactions and subscribers show as "3.36M" or "27.2K", so the numbers are approximate. The labels are included as shown.
- **Some content isn't in the preview.** A few posts show "Please open Telegram to view this post" (`mediaNotShown`). Large videos have no link (`tooBigForPreview`). Comments in a channel's discussion group aren't read.
- **Media links point to Telegram's servers.** The Actor doesn't download or store files. Video links include an access token.
- **Speed:** about 20 posts per request, one request a second. In tests, 3,000 posts from one channel took 5 minutes, and 2,360 posts from 5 channels took under 4 minutes.
- **No evasion.** The Actor uses plain requests and says it's a bot. If Telegram asks it to slow down, it waits and retries. If Telegram blocks it, the run stops, keeps what it delivered, and says so.
- **Monitoring and blocks:** if Telegram blocks a monitored run part-way through a channel, nothing from that channel is output or charged. The next run picks up from the last run, so no posts are skipped.

### FAQ

#### Is it legal to use?

It's your responsibility. Telegram's Terms of Service prohibit data scraping, and Telegram's content terms forbid using its content to train AI models. The Actor reads only the public preview pages anyone can open in a browser, with no login, and stops if Telegram blocks it. Make sure your use is appropriate, and don't use the data for AI training.

#### Do I need a Telegram account or API key?

No. The Actor reads the same public preview pages anyone can open in a browser.

#### Can it read private channels or groups?

No. Only public channels have a web preview. Groups, private channels and invite links can't be read, and they cost nothing.

#### How far back can it go?

To the channel's first post. In a test, it read the Telegram News channel back to post 1, from 21 September 2015.

#### How do I get new posts automatically?

Add a monitor ID, keep "Output only new posts" on, and schedule the Actor. Each run outputs only newer posts. Connect it to Slack, email or Google Sheets with Apify's integrations.

#### Why are the view counts round numbers?

Telegram shows big numbers rounded ("1.67M"), and the preview has no exact figure.

#### Can I search a channel?

Yes. Enter words in "Search inside the channels"; the Actor uses Telegram's own search in each channel.

#### Why is a channel marked "no preview"?

Telegram redirected away from its preview page. The name may be a user, bot or group, or the channel may be private or missing. The reason is in the run summary.

### Related Actors

More Actors from the same developer that work well with this one:

| Actor | Use it to |
|---|---|
| [Google Trends Trending Now](https://apify.com/subtleasianmerch/google-trends-trending-now) | see what people search for while a story breaks |

Questions, bugs or ideas? Open an issue on this Actor's **Issues** tab.

# Actor input Schema

## `channels` (type: `array`):

Public channels by username or link: durov, @durov, https://t.me/durov or https://t.me/s/durov. A link to a post (https://t.me/durov/123) reads its channel. Up to 200 per run. Private channels, groups, users and bots have no public preview; they're listed in the run summary, free.

## `searchQuery` (type: `string`):

Only posts matching these words, using Telegram's own search in each channel. Leave empty for all posts.

## `maxPostsPerChannel` (type: `integer`):

Newest first. Each preview page holds about 20 posts. With a monitor ID, this caps the new posts per channel per run.

## `postedAfter` (type: `string`):

Stop at posts older than this date (UTC). Leave empty for no limit.

## `postedBefore` (type: `string`):

Leave out posts newer than this date (UTC). Newer pages are still read to reach older posts, but those posts are free.

## `monitorId` (type: `string`):

Runs with the same ID remember the newest post they delivered from each channel. Use letters, digits and dashes. Schedule the Actor with it for a new-post feed.

## `onlyNew` (type: `boolean`):

With a monitor ID: output only posts newer than the last run. Turn off to output every post, with isNew marking the new ones.

## `requestDelaySecs` (type: `number`):

Pause between page requests to Telegram, from 0.5 to 10.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 20,
  "onlyNew": true,
  "requestDelaySecs": 1
}
```

# Actor output Schema

## `results` (type: `string`):

The dataset rows this run produced.

## `runSummary` (type: `string`):

Counts, costs and anything skipped, saved as RUN_SUMMARY.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "channels": [
        "durov",
        "telegram"
    ],
    "maxPostsPerChannel": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("subtleasianmerch/telegram-channel-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "channels": [
        "durov",
        "telegram",
    ],
    "maxPostsPerChannel": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("subtleasianmerch/telegram-channel-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 20
}' |
apify call subtleasianmerch/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,subtleasianmerch/telegram-channel-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9hahNxl6BciScsUOX/builds/NwvsiDt207eZ494rL/openapi.json
