# Telegram Public Channel Scraper: Posts, Reactions & Media (`wyle/telegram-public-channel-scraper`) Actor

Fetch posts, view counts, emoji reactions, comment counts, forwards, and media URLs from any public Telegram channel username or link. Supports history limits with no account login required.

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

## Pricing

from $0.80 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Public Channel Scraper: Posts, Reactions & Media

Extract structured posts, channel statistics, view counts, emoji and Telegram Stars reactions, media links, polls, and contact entities from public Telegram channels. Built to run fast without a browser, phone number, Telegram login, or Telegram API keys.

### Modes

| Mode | Input | What you get |
|---|---|---|
| **Channel Feed** | `channels` (`"durov"`, `"@telegram"`, or `https://t.me/s/durov`) | Channel metadata and newest-first posts up to `maxPostsPerChannel` |
| **Single Post URLs** | `channels` (`https://t.me/durov/556`) | Individual post text, views, reactions breakdown, media, and extracted entities |
| **In-Channel Keyword Search** | `channels` + `searchQuery` | Posts inside each target channel matching your keyword filter |

### Supported Coverage

- **Input Formats**: Public channel usernames (`durov`, `@telegram`), channel URLs (`https://t.me/durov`, `https://t.me/s/durov`), and direct post URLs (`https://t.me/durov/556`).
- **Channel & Engagement Data**: `channelTitle`, `channelSubscribers`, `channelSubscribersFormatted`, `channelVerified`, `channelDescription`, `channelAvatarUrl`, `views`, `viewsFormatted`, `commentsCount`, `reactionsTotal`, and per-reaction breakdown (`reactions[]` covering standard emojis, custom emojis, and paid Telegram Stars).
- **Media, Polls & Entities**: `photos`, `videos`, `documents`, `linkPreview`, `poll`, `hashtags`, `mentions`, `links`, `telegramLinks`, `emails`, forwarding metadata (`isForwarded`, `forwardedFromName`), and reply context (`isReply`, `replyToPostUrl`).

### Output Options & Proxy Tips

- **Date & Reach Filtering**: Use `dateFrom` and `dateTo` (`YYYY-MM-DD` UTC) to limit posts to a date window, and `minViews` to filter out low-reach posts. Service notices (such as pinned message or avatar updates) are excluded by default (`includeServiceMessages: false`).
- **Public Channels Only**: Only public channels with web previews enabled are accessible; private groups or invite-only channels are not supported.
- **Proxy Recommendations**: Direct connections work reliably out-of-the-box for standard runs. For large multi-channel scrapes, you can enable Apify Proxy (including Residential proxies) via `proxyConfiguration`.

### Use Cases

1. **Crypto, Finance & News Monitoring**: Track real-time announcements, market commentary, and high-view alerts across public Telegram channels.
2. **Community Engagement Analytics**: Measure post reach (`views`), comment counts, and emoji/Stars reaction breakdowns over time.
3. **Lead & Link Extraction**: Automatically collect `emails`, external `links`, `telegramLinks`, and `@mentions` from channel posts.
4. **AI & Research Knowledge Feeds**: Stream clean, timestamped Telegram channel messages into RAG pipelines, alerts, or summarization agents.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `channels` | `array` | `["durov", "telegram"]` | Public Telegram channel usernames, channel URLs, or direct post URLs. |
| `searchQuery` | `string` | `""` | Optional keyword to filter posts inside each public channel. |
| `maxPostsPerChannel` | `integer` | `50` | Maximum number of posts to extract per channel, newest first (`1`–`10000`). |
| `dateFrom` | `string` | `""` | Optional lower date bound (`YYYY-MM-DD`, inclusive, UTC). |
| `dateTo` | `string` | `""` | Optional upper date bound (`YYYY-MM-DD`, inclusive, UTC). |
| `minViews` | `integer` | `0` | Optional minimum view count threshold (`0` = include all posts). |
| `includeServiceMessages` | `boolean` | `false` | Include channel service notices such as pinned messages or photo updates. |
| `proxyConfiguration` | `object` | `{"useApifyProxy": false}` | Optional Apify Proxy configuration (Residential supported). |

### Sample Output

```json
{
  "postId": 556,
  "dataPost": "durov/556",
  "url": "https://t.me/durov/556",
  "channelUsername": "durov",
  "channelTitle": "Pavel Durov",
  "channelUrl": "https://t.me/durov",
  "channelVerified": true,
  "channelSubscribers": 10000000,
  "channelSubscribersFormatted": "10M",
  "channelDescription": "Founder of Telegram.",
  "channelAvatarUrl": "https://cdn4.telesco.pe/file/q63ehbM0S7lOwqHeRldgWQU3ZclwRUCidP38DueoyKqAI_q1aB4Wwqi4ayUFP_AvjY6nCeDLze4cZHzByG8tKiajwCP4gHoRkjkbZyTdp9G6yod4kPiLHFFgD3PwrIECm20YQYCaxPzs6pnq4DEaCIW2Pj0GkP92-d1GFw5HT4i-6Z5tmRlsjpUEiZ8Ee2Bj4AvsfoaCJhQcGGDASqtVOsAywWerWiyQnmYUiG2f0LYoJOj6KR9GXS7kxBIhP6SIynXnAZC-AbIHJgLVji5Clr-YwMxiNZYV0NaSLexrEQ4SNjiizx0WtQfAmf17-m8JbG8lw9aeBSChPfyAenBbbg.jpg",
  "publishedAt": "2026-11-11T12:27:06Z",
  "publishedTimestamp": 1794400026,
  "isEdited": true,
  "text": "👛 Over 1 million self-custodial Gram wallets activated on Telegram in the last 48 hours alone.\n\n🥇 Gram is today’s #1 gainer among the top 100 coins by market cap, +14% in 24 hours.",
  "views": 429000,
  "viewsFormatted": "429K",
  "commentsCount": 0,
  "commentsUrl": "",
  "reactionsTotal": 20860,
  "reactions": [
    {
      "emoji": "stars",
      "emojiId": "",
      "isPaid": true,
      "count": 3730,
      "countFormatted": "3.73K"
    },
    {
      "emoji": "custom:5373223594484587136",
      "emojiId": "5373223594484587136",
      "isPaid": false,
      "count": 9760,
      "countFormatted": "9.76K"
    },
    {
      "emoji": "custom:5399847211989246390",
      "emojiId": "5399847211989246390",
      "isPaid": false,
      "count": 4290,
      "countFormatted": "4.29K"
    },
    {
      "emoji": "custom:5936157098181135162",
      "emojiId": "5936157098181135162",
      "isPaid": false,
      "count": 3080,
      "countFormatted": "3.08K"
    }
  ],
  "mediaType": "photo",
  "photos": [
    "https://cdn4.telesco.pe/file/b8Mgv1ra4wa2QDHDQ_BGYcJ0Ly2_NmDY0EX_4C2Fky8dsRp09A7Hsav1Wr2Sjlj8ZH5y8VJVzT9rqAKc3O_kBk7LWl8TZrwMskDBmwqTJLiFfjfk2Q4Cs1-9bgzx21aa5uIKe2zRd9FvJrRWozPFA6RsnbqXnUGdhN_oBA3dTYxrwx8xUzGyo8P7Y4wJyFieHptArnbh6J4QEAeQOwoEFicG0hK0TdmhgRA-9MVd-8dGNPEuL_9y1yqasySNzvJ_9RCkw7SCJl_Fh-z5Ugbkr2nOOD84QN25wEIoednE_yOkgLjDxR0tavlC8kS_RZ1apHd4VxdjnM4H62gbYkxZPA.jpg"
  ],
  "videos": [],
  "documents": [],
  "linkPreview": {},
  "poll": {},
  "hashtags": [],
  "mentions": [],
  "links": [],
  "telegramLinks": [],
  "emails": [],
  "isForwarded": false,
  "forwardedFromName": "",
  "forwardedFromUrl": "",
  "isReply": false,
  "replyToPostUrl": "",
  "replyToAuthor": "",
  "replyToText": "",
  "isServiceMessage": false,
  "searchQuery": "",
  "scrapedAt": "2026-11-11T16:14:41Z"
}
```

# Actor input Schema

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

Enter Telegram channel usernames (e.g., 'durov', '@telegram', 'CoinDeskGlobal'), channel URLs ('https://t.me/s/durov'), or direct post URLs ('https://t.me/durov/556').

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

Optional keyword to filter posts inside each public channel. Leave empty to extract all recent posts.

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

Maximum number of posts to extract per channel (newest first).

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

Optional lower date bound (inclusive, UTC). Stops pagination once posts are older than this date.

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

Optional upper date bound (inclusive, UTC). Skips posts newer than this date.

## `minViews` (type: `integer`):

Optional minimum post view count filter (0 = include all posts).

## `includeServiceMessages` (type: `boolean`):

When disabled (recommended), skips channel service notices such as 'Channel photo updated' or 'Pinned message'.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy configuration (Residential supported). Direct connections work out-of-the-box for public channels.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "searchQuery": "",
  "maxPostsPerChannel": 50,
  "dateFrom": "",
  "dateTo": "",
  "minViews": 0,
  "includeServiceMessages": false,
  "proxyConfiguration": {
    "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": [
        "durov",
        "telegram"
    ],
    "maxPostsPerChannel": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/telegram-public-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": 50,
}

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

```

## MCP server setup

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