# Telegram Channel Scraper: posts, views, reactions, media (`eze007/telegram-channel-scraper`) Actor

Scrape any public Telegram channel without an account or API key: message text, date, views, reactions, forwards, media and link URLs, plus channel stats (subscribers, photos, videos, links). Newest first, date and keyword filters. Flat rows, pay per message. For monitoring, research and AI agents.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

Pull the full post history of any **public Telegram channel** — no Telegram account, no API ID, no phone number. Message text, exact timestamp, view count, reactions, forwards, photo/video/document URLs, outbound links, hashtags and mentions, plus channel stats (subscribers, photos, videos, links). Newest first, with date and keyword filters.

Flat rows you can drop straight into a spreadsheet, a database, a dashboard, or an AI agent.

### What you get

| recordType | One row per | Key fields |
|---|---|---|
| `message` | channel post | messageId, url, date (ISO), text, views, reactions {emoji: count}, reactionsTotal, mediaType (text / photo / album / video / document / poll / sticker / audio / link-preview), photoUrls, videoUrls, documents, links, hashtags, mentions, isForwarded, forwardedFrom, replyToUrl |
| `channel` | channel (optional) | title, description, subscribers, photos, videos, links, verified, imageUrl |

### Quick start

Latest 100 posts from two channels:

```json
{ "channels": ["WatcherGuru", "https://t.me/durov"] }
```

Everything a channel posted this month that mentions a keyword:

```json
{ "channels": ["WatcherGuru"], "maxMessagesPerChannel": 5000, "sinceDate": "2026-11-01", "keywords": ["bitcoin", "fed"] }
```

Backfill a channel's full history:

```json
{ "channels": ["durov"], "maxMessagesPerChannel": 20000, "includeReactions": false }
```

### Pricing (pay per result — you only pay for rows you receive)

| Event | Price | Example |
|---|---|---|
| Message row | $0.001 | 1,000 posts = $1.00 |
| Channel info row | $0.005 | one per channel per run |

Platform compute is included in the price. **Free Apify plan:** output is capped at 10 rows per run so you can test the schema; any paid Apify plan removes the cap.

### Why this one

- **Zero setup.** No Telegram API credentials, no login, no phone verification — it reads the public preview pages Telegram publishes for every public channel.
- **Reactions and views included**, parsed to numbers (19.8K → 19800), so you can rank posts by engagement.
- **Media you can actually use:** direct CDN URLs for photos, video files and thumbnails, document names, poll questions.
- **Filters that save money:** `sinceDate` stops paging at the date you care about; `keywords` keeps only matching posts.
- **Agent-ready:** plain inputs, deterministic output, exposed through the Apify MCP server. An agent can monitor 50 channels for a topic with one call.

### For AI agents (MCP)

Inputs are plain strings and numbers. Typical loop: call with `channels` + `sinceDate` = yesterday, read `text`, `views`, `reactionsTotal`, `links`, decide, repeat tomorrow. Set `includeChannelInfo: false` to skip the channel row on repeated pulls.

### Notes and limits

- Public channels only. Private channels, groups, supergroups and user profiles have no public preview and return an `error` row instead of failing the run.
- Comments/replies under posts are not included (they live in the linked discussion group).
- Telegram serves ~20 posts per page; a 20,000-post backfill is ~1,000 requests and a few minutes.
- View counts are what Telegram shows publicly at scrape time; reactions include Telegram Stars as `stars`.
- Content belongs to the channel owners; use it in line with Telegram's terms and the laws that apply to you. Not affiliated with Telegram.

### Need a variant or a new data source?

Request it here — it ships as a pay-per-result Actor, usually within days, and you'll get the link in your request: https://github.com/Realdeal00/actor-requests/issues/new?template=request.yml

### Changelog

- 0.1 — initial release: messages, channel info, reactions, media URLs, date/keyword filters, pay-per-event pricing.

# Actor input Schema

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

Public channel usernames (with or without @) or t.me links. Private channels and groups are not supported.

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

Newest first. ~20 messages per page are fetched; stop after this many.

## `sinceDate` (type: `string`):

Optional ISO date or datetime (e.g. 2026-11-01 or 2026-11-01T12:00:00Z). Stops paging once older messages are reached.

## `keywords` (type: `array`):

Optional. Keep only messages whose text contains any of these words/phrases (case-insensitive). Paging still walks the channel until max/sinceDate.

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

Adds one channel-info row per channel (title, description, subscribers, photos/videos/links counts, avatar).

## `includeReactions` (type: `boolean`):

Adds a reactions object (emoji -> count) to every message.

## `proxy` (type: `object`):

Usually not needed - t.me public previews are open. Turn on for very large pulls (thousands of pages).

## Actor input object example

```json
{
  "channels": [
    "WatcherGuru",
    "https://t.me/durov"
  ],
  "maxMessagesPerChannel": 100,
  "includeChannelInfo": true,
  "includeReactions": true,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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": [
        "WatcherGuru",
        "https://t.me/durov"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("eze007/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": [
        "WatcherGuru",
        "https://t.me/durov",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("eze007/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": [
    "WatcherGuru",
    "https://t.me/durov"
  ]
}' |
apify call eze007/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

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