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

Get the posts of any public Telegram channel: text, date, views, reactions, media links, forwards, replies and polls, plus exact subscribers, bio and photo, and subscriber growth over 7 and 30 days. Filter by keyword and date. No login, no API key, no phone number.

- **URL**: https://apify.com/pomlabs/telegram-channel-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** Social media, News
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 post delivereds

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

Export the posts of any **public Telegram channel** as clean JSON: text, date, views, reactions, photo and video links, forwards, replies, link previews and polls. Get the channel's **exact subscriber count**, title, bio and photo too. Filter by **keyword** and **date range**.

**No login, no API key, no phone number, no Telegram account.** The Actor reads the public web preview that Telegram publishes for every public channel (`t.me/s/<channel>`). You pay only for posts and channels delivered. Inputs that are not public channels are listed with the reason and never charged.

### What you get

For each post:

- Post ID, link (`https://t.me/<channel>/<id>`) and date (UTC)
- Full text with line breaks, the links and hashtags inside it, and whether it was edited
- Views (number, and the text Telegram shows, like `157K`)
- Reactions: each emoji with its count, custom emoji IDs, paid Star reactions, and the total
- Media: photos, videos (with thumbnail and duration), voice notes, round videos, documents and music (title), stickers and locations, with direct links
- Forwarded from (channel name and link), reply to (post ID, author and quoted text)
- Link preview (site, title, description, image) and polls (question and options with percent)
- The post author's signature, when the channel signs posts

For each channel (optional, on by default):

- Username, title, bio, photo, verified badge
- **Exact subscriber count** (`9888462`, not just `9.89M`), plus the photo, video and link counters
- **Subscriber growth** over the last 7 and 30 days, and since our first reading of the channel. It comes from our own daily history of every channel this Actor reads, so it fills in over time (a channel read for the first time shows only today's count)

### Use cases

- **Media monitoring:** follow news, crypto and brand channels and track what they post and how many views each post gets.
- **Research and datasets:** export the full history of a channel for analysis or AI training.
- **Influencer and ad research:** compare channels by subscribers, views per post and reactions before buying an ad.
- **Keyword alerts:** run it on a schedule with a keyword and a date filter to get only new posts that mention your brand.

### Input

| Field | Type | Description |
|---|---|---|
| `channels` | array of strings | Channel usernames (`durov`), `@durov`, or links (`https://t.me/durov`, `t.me/s/durov`, `t.me/durov/570`) |
| `maxPostsPerChannel` | integer | Newest posts first; stop after this many per channel (0 = all). Default `20` |
| `dateFrom` | string | Only posts on or after this day (`YYYY-MM-DD`, UTC) |
| `dateTo` | string | Only posts on or before this day (`YYYY-MM-DD`, UTC) |
| `keyword` | string | Only posts containing these words |
| `includeChannelInfo` | boolean | One row per channel with title, bio, photo and exact subscribers. Default `true` |

```json
{
  "channels": ["durov", "https://t.me/telegram", "@bloomberg"],
  "maxPostsPerChannel": 200,
  "dateFrom": "2026-01-01",
  "keyword": "AI"
}
```

### Output

A post:

```json
{
  "type": "post",
  "channel": "durov",
  "postId": 568,
  "url": "https://t.me/durov/568",
  "date": "2026-11-21T22:48:52Z",
  "edited": false,
  "text": "You won't look professional in 2027 if your QR is unpimped.",
  "views": 1100000,
  "viewsText": "1.1M",
  "author": "Pavel Durov",
  "forwardedFrom": null,
  "replyTo": null,
  "media": [
    {"type": "video", "url": "https://cdn4.telesco.pe/file/e865fee2c6.mp4?token=...", "thumbnailUrl": "https://cdn4.telesco.pe/file/Sif7....jpg", "durationSeconds": 24, "postUrl": "https://t.me/durov/568"}
  ],
  "mediaCount": 1,
  "linkPreview": null,
  "poll": null,
  "reactions": [
    {"type": "paid_star", "count": 1820},
    {"type": "custom_emoji", "customEmojiId": "5373223594484587136", "count": 19200}
  ],
  "reactionsTotal": 32240,
  "links": [],
  "hashtags": [],
  "input": "durov",
  "status": "ok"
}
```

A channel:

```json
{
  "type": "channel",
  "channel": "telegram",
  "username": "telegram",
  "title": "Telegram News",
  "description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
  "photoUrl": "https://cdn1.telesco.pe/file/....jpg",
  "verified": true,
  "subscribers": 9061349,
  "subscribersApprox": 9060000,
  "photos": 16,
  "videos": 228,
  "links": 378,
  "url": "https://t.me/telegram",
  "status": "ok"
}
```

A line that could not be read (never charged):

```json
{"type": "error", "input": "t.me/+AbCdEfGhIjK", "status": "invalid_input", "error": "Not a public channel username or t.me link (private invite links t.me/+... and joinchat cannot be read without joining)"}
```

Other statuses: `not_found` (no such public channel), `no_public_preview` (the channel exists but its owner turned the web preview off, or it is a group, a user or a bot; you still get its title and subscriber count), `no_results` (nothing matches your keyword or dates), `content_not_on_web` (a post Telegram shows only in the app, like some paid media; you get its date and views, not charged).

### Pricing

| Event | Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Post delivered | $0.001 | $0.0008 | $0.0007 | $0.0006 |
| Channel details | $0.001 | $0.001 | $0.001 | $0.001 |

No start fee. 1,000 posts cost $1 or less. Set a maximum cost per run in the Apify console, or use `maxPostsPerChannel`, and the Actor stops cleanly.

### FAQ

**Do I need a Telegram account or API keys?** No. The Actor reads only the public web pages of public channels.

**How fast is it?** About 30 posts per second. 500 posts of one channel took 17 seconds in our tests.

**Are views exact?** Telegram's web page shows views rounded (`157K`, `1.1M`); `views` is that number and `viewsText` the original text. Subscriber counts in the channel row are exact.

**Can it read private channels, groups or comments?** No. Only public channels with the web preview on. Comments live in a separate discussion group and are not on the channel page.

**How does the keyword filter work?** First it uses Telegram's own search inside the channel, which finds old posts but returns about 20 results. Then it checks the newest ~1,000 posts of the channel for your words (all words must appear, case-insensitive).

**Do media links expire?** They are Telegram CDN links with a token. Download the files soon after the run.

**Is it legal?** The Actor reads only pages that Telegram publishes for anyone without login. You are responsible for how you use the data.

# Actor input Schema

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

One per line: a channel username (durov), @username, or a t.me link (https://t.me/durov, t.me/s/durov, or a post link like t.me/durov/570). Only public channels; private invite links (t.me/+...) cannot be read.

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

Newest posts first. Stop after this many posts for each channel (0 = all posts the channel has on the web).

## `dateFrom` (type: `string`):

Only posts on or after this day (UTC, YYYY-MM-DD). The Actor stops paging when it reaches older posts.

## `dateTo` (type: `string`):

Only posts on or before this day (UTC, YYYY-MM-DD). Newer posts are skipped and never charged.

## `keyword` (type: `string`):

Only posts with these words. Uses Telegram's own channel search first (it finds old posts), then checks the newest ~1,000 posts of the channel.

## `includeChannelInfo` (type: `boolean`):

Add one row per channel with the title, bio, photo, verified badge and the exact subscriber count.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 20,
  "includeChannelInfo": true
}
```

# Actor output Schema

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

No description

# 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("pomlabs/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("pomlabs/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 pomlabs/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/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/hcagb7uhGdnhn2kmd/builds/f4s9o9JFF1aNUgOta/openapi.json
