# Telegram Channel Scraper - Messages, Views & Subscribers (`pnda/telegram-channel-scraper`) Actor

Scrape public Telegram channels without login: messages with text, date, views, reactions, photos, videos and links, plus channel title, description and subscriber count. $0.80 per 1,000 messages.

- **URL**: https://apify.com/pnda/telegram-channel-scraper.md
- **Developed by:** [PNDA](https://apify.com/pnda) (community)
- **Categories:** Social media, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.80 / 1,000 messages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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: Messages, Views & Subscribers

Scrape **public Telegram channels** without an account, phone number or API key: every message with its text, date, views, reactions, photos, videos and links, plus one row per channel with its title, description, verified badge and **subscriber count**. Pay only for what you get.

### What you get

One row per message:

```json
{
  "type": "message",
  "channel": "durov",
  "messageId": 553,
  "url": "https://t.me/durov/553",
  "date": "2026-11-09T13:00:39+00:00",
  "text": "700K+ self-custodial wallets created on Telegram in the last 48 hours alone...",
  "views": 541000,
  "reactions": 38250,
  "photos": 1,
  "videos": 0,
  "links": ["https://t.me/durov/551"],
  "forwardedFrom": null,
  "channelTitle": "Pavel Durov",
  "channelSubscribers": 10100000
}
```

And one row per channel (`type: "channel"`): title, username, description, verified, subscribers, photos, videos, links.

### How to use it

1. Add channels in **Channels**: `durov`, `@durov` or `https://t.me/durov`.
2. Set **Max messages per channel** (newest first) and, optionally, **Only messages newer than** a date.
3. Run, then export the dataset as JSON, CSV or Excel.

```json
{ "channels": ["durov", "telegram"], "maxMessagesPerChannel": 200, "onlyNewerThan": "2026-10-01" }
```

Only channels with a public web preview (`t.me/s/<channel>`) can be read. Private channels, groups, bots and user accounts come back as a free `not-public` row.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Message | $0.0008 ($0.80 / 1,000 messages) |
| Channel details | $0.0015 per channel |

Failed or private channels are free. The run never spends more than your **max charge per run**.

### Use cases

- **Media and crypto monitoring**: follow news, token and project channels.
- **Brand and competitor watch**: see what is posted and how many views it gets.
- **Research and AI datasets**: build text corpora from public channels.
- **Influencer research**: compare channels by subscribers, views and engagement.

### FAQ

**Do I need a Telegram account?** No. The actor reads the public web preview of each channel, like a visitor.

**How far back can it go?** As far as the channel's public history: pages of 20 messages are read from the newest to the oldest until your limit or date.

**Is it legal?** Only public content is read. You are responsible for how you use it (copyright, personal data under GDPR / CCPA).

# Actor input Schema

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

Public channel usernames or links: durov, @durov or https://t.me/durov. Groups, bots and private channels have no public web page.

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

Newest messages delivered per channel.

## `onlyNewerThan` (type: `string`):

Optional date (YYYY-MM-DD): older messages are skipped.

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

Add one row per channel with title, description, verified badge and subscriber count.

## Actor input object example

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

# Actor output Schema

## `dataset` (type: `string`):

All rows (JSON, CSV, Excel).

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

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

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

```

## MCP server setup

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