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

Scrape public Telegram channels without login, phone number or API key: posts, text, views, reactions, photos, videos, links, polls, forwards and replies. Channel profiles with exact subscribers. Search inside a channel. Export to Excel, CSV or API.

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

## Pricing

from $0.56 / 1,000 records

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

**Scrape public Telegram channels as clean rows, without a login, a phone number or an API key.** Give channel names or links and get every post: **text, date, views, reactions, photos, videos, files, links, hashtags, polls, forwards, replies and link cards**. Get the channel profile too: name, **exact subscribers**, description and counters. **Search inside a channel**, read only a date range, or get only the posts that are new since your last run. Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-13. Every release passes 130+ automated tests on real saved Telegram pages, and Apify test-runs it every day.

### What can you use it for?

- **Monitor channels.** Follow news, crypto, deal or competitor channels. Schedule the Actor daily with **Only new records** and send new posts to Sheets, Slack or your own system.
- **Measure engagement.** Views, reactions and subscribers for every post give you the engagement of any public channel.
- **Research and datasets.** Collect the full history of a channel for text analysis, sentiment, topic tracking or training your own models.
- **Find links and mentions.** Every post lists the web addresses, hashtags and @mentions in its text. Find who links to whom.
- **Compare channels.** Profile rows give subscribers, verification and activity counters for a list of channels in one run.
- **Track a keyword.** Search inside a channel for a name, a coin or a product and get only the matching posts.

### What data do you get?

One row per post (`recordType` is `message`) and one row per channel profile (`recordType` is `channel`).

| Field | What it is |
|---|---|
| `recordType` | `message` for a post, `channel` for a channel profile |
| `channel` | The channel's username |
| `channelTitle` | The channel's name |
| `channelSubscribers` | Subscribers. Exact when Telegram's profile page answers |
| `channelDescription`, `channelVerified` | The description and the verified badge (profile rows) |
| `channelPhotos`, `channelVideos`, `channelFiles`, `channelLinks` | How many photos, videos, files and links the channel has shared (profile rows) |
| `channelAvatarUrl` | Address of the channel's picture (profile rows) |
| `messageId` | The post's number in the channel |
| `url` | The post's address, for example `https://t.me/durov/537` |
| `date` | When the post was published (UTC) |
| `edited` | True when the post was edited later |
| `text` | The post's text with line breaks |
| `hashtags`, `mentions`, `links` | Hashtags, @mentions and web addresses found in the text |
| `views` | Views. Telegram rounds large numbers (4.09M) |
| `reactions` | A list of emoji and count. Custom emoji have a `customEmojiId` instead of an emoji |
| `reactionsTotal` | All reactions added up |
| `forwarded`, `forwardedFrom` | Whether the post was forwarded and from where, when Telegram shows it |
| `replyToId`, `replyToText` | The post this post answers and the start of its text |
| `author` | The signature of the writer, when the channel shows it |
| `mediaType` | `photo`, `video`, `poll`, `voice`, `sticker`, `document` or `unsupported`. Empty for text only |
| `mediaCount` | Photos, videos or files in the post |
| `photoUrls` | Addresses of the photos |
| `videoUrl`, `videoDuration` | The video file (short videos) and its length in seconds |
| `audioUrl` | The voice message file |
| `documentTitle`, `documentInfo` | The name of an attached file or audio and its size or artist |
| `linkPreview` | The link card under the post: `url`, `siteName`, `title`, `description`, `imageUrl` |
| `poll` | The poll: `question`, `type`, `options` (`text`, `percent`) and `voters` |
| `buttons` | Buttons under the post: `text` and `url` |
| `searchQuery` | The text searched for, if any |
| `sourceUrl`, `scrapedAt` | The page that was read and when the record was collected |

#### Example results

```json
{"recordType": "message", "channel": "telegram", "channelTitle": "Telegram News", "channelSubscribers": 9131141, "messageId": 460, "url": "https://t.me/telegram/460", "date": "2026-08-26T19:12:34+00:00",
 "edited": false, "text": "For all the info from today's update and a look back at 13 years of Telegram, check out our blog:", "hashtags": [], "mentions": [], "links": ["https://telegram.org/blog/welcome-messages-buttons-TG-13"],
 "views": 2500000, "reactions": [], "reactionsTotal": 0, "forwarded": false, "mediaCount": 0, "photoUrls": [],
 "linkPreview": {"url": "https://telegram.org/blog/welcome-messages-buttons-TG-13", "siteName": "Telegram", "title": "Welcome Messages, Buttons in Messages and Signed Gifts"}, "buttons": [],
 "sourceUrl": "https://t.me/s/telegram"}
```

```json
{"recordType": "message", "channel": "bloomberg", "channelTitle": "Bloomberg", "messageId": 3224, "url": "https://t.me/bloomberg/3224", "date": "2026-09-03T03:10:11+00:00",
 "text": "EXCLUSIVE: TikTok developer ByteDance secures a $30 billion loan in Asia", "views": 90100,
 "reactions": [{"emoji": "❤", "count": 204}, {"emoji": "🔥", "count": 178}, {"emoji": "👍", "count": 154}, {"emoji": "👏", "count": 94}, {"emoji": "🎉", "count": 78}, {"emoji": "😁", "count": 34},
               {"emoji": "🤩", "count": 28}, {"emoji": "🤔", "count": 23}, {"emoji": "💯", "count": 23}, {"emoji": "🤯", "count": 22}, {"emoji": "😢", "count": 22}], "reactionsTotal": 860, "mediaCount": 0}
```

```json
{"recordType": "channel", "channel": "durov", "channelTitle": "Pavel Durov", "channelSubscribers": 10018142, "channelDescription": "Founder of Telegram.", "channelVerified": true,
 "channelPhotos": 106, "channelVideos": 47, "channelLinks": 203, "sourceUrl": "https://t.me/s/durov"}
```

### How to use it

1. Enter the **Channels**: names, @names or links, one per line.
2. Choose **What to get**: posts, channel profiles or both.
3. Set **Posts per channel**, or a date range with **Posts since** and **Posts until**. To search inside the channels, fill **Search inside the channels**.
4. Press Start. A page of 20 posts takes a fraction of a second.

#### Input options

| Input | What it does |
|---|---|
| `channels` | Public channels: `durov`, `@durov` or `https://t.me/durov`. Private channels and invite links (`t.me/+abc`) cannot be read |
| `resultType` | `messages` (default), `channels` or `both` |
| `maxMessagesPerChannel` | How many of the latest posts to read in each channel. 100 by default. Raise it for the whole history |
| `searchQuery` | Only posts that contain this text |
| `dateFrom` | Only posts on or after this date (UTC), for example `2026-11-01`. Reading stops at the first older post |
| `dateTo` | Only posts on or before this date (UTC). Newer posts are skipped |
| `onlyNew` | Skip posts that earlier runs of the same search already returned |
| `maxItems` | Stop after this many records in total. 1,000 by default |
| `maxConcurrency` | Channels read at the same time. 3 by default |
| `secondsBetweenRequests` | Pause between requests. 0.3 seconds by default |

### How much does it cost?

You pay per record returned (a post or a channel profile), nothing else. 1,000 posts cost $0.80 on the Free plan, with no start fee. The first Apify plan includes free monthly credit to try it.

| Plan | Price per 1,000 records |
|---|---|
| Free | $0.80 |
| Bronze | $0.72 |
| Silver | $0.64 |
| Gold | $0.56 |

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/telegram-channel-scraper").call(run_input={
    "channels": ["durov", "telegram", "bloomberg"],
    "resultType": "messages",
    "maxMessagesPerChannel": 200,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["channel"], post["date"], post["views"], post["text"][:80])
```

**Follow channels automatically.** Schedule the Actor in the Apify Console (Schedules), for example every day, with **Only new records** on. Only posts that were not returned before are included and charged. Connect the dataset to Google Sheets, Slack, Make, Zapier or n8n with Apify's integrations.

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/telegram-channel-scraper` and this input:

```json
{"channels": ["bloomberg"], "resultType": "messages", "maxMessagesPerChannel": 50, "onlyNew": true}
```

### This scraper vs. the alternatives

| | This Actor | Telegram API and bots | Other scrapers |
|---|---|---|---|
| Login, phone number or API key | None | Needed | Often none |
| Output | Rows for Excel, CSV, JSON, API | Code and a developer account | CSV or JSON |
| Search inside a channel | Yes | Yes | Some |
| Date range | Yes | By code | Some |
| Only new posts | Yes | By code | Some |
| Start fee | None | None | Often $0.005 to $0.01 per run |
| Price | $0.80 per 1,000 records | Free, your time | $0.5 to $2 per 1,000 |

### Good to know

- **Public channels only.** The Actor reads the public web preview that Telegram shows at `t.me/s/<channel>`. Private channels, groups, chats and channels whose owner turned the preview off cannot be read. Such a channel is named in the run message.
- **Rounded numbers.** Telegram shows views and reactions in short form above 1,000 (4.09M). The Actor returns the number Telegram shows. Subscribers are exact because they come from the channel's profile page.
- **Video files.** Telegram plays short videos in the preview, so `videoUrl` is filled for them. Large videos have a thumbnail only.
- **Comments and other users' messages** are not part of the preview.
- **No account, no risk to your account.** The Actor never logs in.
- **Telegram slows down fast clients.** The Actor paces its requests, waits as Telegram asks, tries Telegram's mirror address when the first one is not reachable, and switches to Apify Proxy when it runs on Apify and a block continues.
- **Independent tool.** Not affiliated with or endorsed by Telegram. It reads public pages.

### FAQ

#### How do I scrape a Telegram channel?

Enter the channel name or link in `channels` and press Start. You get the latest 100 posts with text, date, views and reactions. Raise `maxMessagesPerChannel` for more.

#### Do I need a Telegram account, a phone number or an API key?

No. The Actor reads the public web preview of the channel and never logs in.

#### Can I scrape private channels or groups?

No. Only public channels with a web preview can be read, because the preview needs no login.

#### How do I get all posts of a channel?

Set `maxMessagesPerChannel` to a high number such as 100000. The Actor pages back 20 posts at a time to the first post of the channel. Use `dateFrom` to stop at a date.

#### How do I search for a word inside a channel?

Fill `searchQuery`. Only posts that contain the text are returned, newest first.

#### How do I get only new posts since my last run?

Turn on `onlyNew` and schedule the Actor. Posts that earlier runs of the same search returned are skipped and not charged.

#### Which data does a channel profile give?

The title, the exact number of subscribers, the description, the verified badge and the counts of photos, videos, files and links. Set `resultType` to `channels`.

#### Can I download the photos and videos?

The rows contain the addresses of the photos (`photoUrls`) and of short videos (`videoUrl`). Download them with any tool.

#### Is it legal to scrape Telegram channels?

The Actor reads pages that Telegram shows to anyone without a login. You are responsible for how you use the data, including privacy and copyright rules.

# Actor input Schema

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

Public channels to read: the name (durov), the @name or the link (https://t.me/durov). One per line. Private channels and invite links (t.me/+abc) cannot be read.

## `resultType` (type: `string`):

Posts of the channels, the channel profiles (title, exact subscribers, description, counters) or both.

## `maxMessagesPerChannel` (type: `integer`):

How many of the latest posts to read in each channel. A page has 20 posts. Raise it to read a channel's whole history.

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

Only posts that contain this text, like the search box in a channel. Leave empty for all posts.

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

Only posts on or after this date, for example 2026-11-01 or 2026-11-01T08:00:00 (UTC). Reading stops at the first older post.

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

Only posts on or before this date, for example 2026-11-30 (UTC). Newer posts are skipped.

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

Skip posts that earlier runs of this same search already returned, so you get and pay for new posts only. Schedule it daily to follow channels. The first run works as usual and remembers what it returned, in your key-value store 'telegram-channel-scraper-only-new'.

## `maxItems` (type: `integer`):

Stop after this many records in total (posts and profiles). You are charged per record.

## `maxConcurrency` (type: `integer`):

How many channels are read in parallel. Telegram slows down clients that ask too fast, so keep it low.

## `secondsBetweenRequests` (type: `number`):

Pause between requests. After a slow-down answer the Actor doubles the pause and switches to Apify Proxy when it can.

## Actor input object example

```json
{
  "channels": [
    "telegram"
  ],
  "resultType": "messages",
  "maxMessagesPerChannel": 20,
  "onlyNew": false,
  "maxItems": 100,
  "maxConcurrency": 3,
  "secondsBetweenRequests": 0.3
}
```

# Actor output Schema

## `messages` (type: `string`):

Every post with text, views, reactions and media.

## `channels` (type: `string`):

Channel profiles with subscribers and description.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# 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": [
        "telegram"
    ],
    "maxMessagesPerChannel": 20,
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/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": ["telegram"],
    "maxMessagesPerChannel": 20,
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/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": [
    "telegram"
  ],
  "maxMessagesPerChannel": 20,
  "maxItems": 100
}' |
apify call pshivam/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

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