# Telegram Channel Scraper (`datamole/telegram-channel-scraper`) Actor

Scrape posts from public Telegram channels without login or API keys. Get text, views, reactions, photos, videos, link previews, forwards, links, hashtags and emails, plus channel subscribers. Filter by date, keyword, views and media, or pull only new posts on a schedule.

- **URL**: https://apify.com/datamole/telegram-channel-scraper.md
- **Developed by:** [DataMole](https://apify.com/datamole) (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 $10.00 / 1,000 result-items

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

![DataMole](https://raw.githubusercontent.com/YoiderD/datamole-assets/main/banner.png)

## ✈️ Telegram Channel Scraper

> **Export posts from any public Telegram channel. No phone number, no login, no API keys.** Text, views, reactions, media, link previews, forwards, links, hashtags and emails, with date, keyword, view and media filters.

**Telegram Channel Scraper** reads the public web preview of Telegram channels (`t.me/s/<channel>`) and turns every post into a clean record. Add one channel or hundreds, go back as far as the channel history allows, or schedule it to collect **only new posts** since your last run. Need to vet a list of channels first? Switch on **Channel info only** to get subscribers, description and media counters for each one.

| 🎯 Who uses it | 💡 What for |
|---|---|
| Crypto and trading analysts, marketers, OSINT and threat researchers, journalists, brand monitors, lead generation teams | Signal and sentiment tracking, influencer vetting, competitor monitoring, news monitoring, contact discovery, archiving |

### 📋 What it does

- 📡 **Any public channel** by username, `@handle` or `t.me` link.
- 📜 **Full history paging** from newest to oldest.
- 🔎 **Telegram's own in-channel search** with `searchInChannel`.
- 📅 **Date range.** Paging stops automatically once posts are older than your start date.
- 🔑 **Keyword**, 👁️ **minimum views** and 🖼️ **media only** filters.
- 🔁 **Incremental mode.** `sinceMessageId` returns only posts newer than your last run.
- 📇 **Channel info mode.** Title, description, verified badge, subscribers, photo, video, file and link counters.
- 🧲 **Extracted from text:** links, hashtags, @mentions and emails.

> ℹ️ **Free Apify plan:** runs return a preview of up to 10 results. Any paid Apify plan unlocks the full results.

### 📊 Output

Real record from a run:

```json
{
    "imageUrl": "https://cdn4.telesco.pe/file/Z03clZQbu5ZBiH9...jpg",
    "postUrl": "https://t.me/durov/540",
    "messageId": 540,
    "channelUsername": "durov",
    "channelTitle": "Pavel Durov",
    "date": "2026-08-10T09:29:58.000Z",
    "text": "🇺🇿 The 2026 International Olympiad in Informatics starts today in Tashkent. ...",
    "views": 4490000,
    "reactions": [
        { "emoji": "⭐", "customEmojiId": null, "isPaidStars": true, "count": 9100 },
        { "emoji": null, "customEmojiId": "5373223594484587136", "isPaidStars": false, "count": 42400 }
    ],
    "totalReactions": 77000,
    "author": "Pavel Durov",
    "isEdited": false,
    "forwardedFrom": null,
    "photos": ["https://cdn4.telesco.pe/file/Z03clZQbu5ZBiH9...jpg"],
    "videos": [],
    "linkPreview": null,
    "links": [],
    "hashtags": [],
    "mentions": [],
    "emails": [],
    "channelSubscribers": 10600000,
    "scrapedAt": "2026-09-29T22:05:11.000Z"
}
```

Other fields when present: `forwardedFromUrl`, `replyToUrl`, `document` (title, size), `poll` (question and options), `linkPreview` (url, site, title, description, image), `videos` (url, thumbnail, duration).

### ⚙️ Input example

```json
{
    "channels": ["durov", "https://t.me/telegram"],
    "maxPostsPerChannel": 500,
    "dateFrom": "2026-09-01",
    "keywords": ["update", "launch"],
    "minViews": 10000
}
```

**Daily monitoring:** schedule the Actor, save the highest `messageId` from each run, and pass it as `sinceMessageId` next time.

### ✨ Why this one

- ✅ **No account and no risk of bans.** Only the public web preview is used.
- ✅ **Filters before you pay.** Date, keyword, views and media filters are applied before results are saved.
- ✅ **Stops early** on dates and on `sinceMessageId`, so scheduled runs stay fast.
- ✅ **Contact and link extraction** built in.
- ✅ **Channel vetting mode** for fast list qualification.
- ✅ **Lightweight.** No browser needed.

### ❓ FAQ

**Does it work with private channels or groups?** No. Only channels with a public web preview.

**Why do some reactions show a `customEmojiId` instead of an emoji?** Telegram renders those reactions as custom animated emoji. The ID identifies it, and the count is exact.

**Why are view counts rounded?** Telegram's public preview shows rounded views (for example 4.49M), converted here to numbers.

**How far back can I go?** As far as the channel's public history goes.

### ⚖️ Disclaimer

This Actor collects publicly available data from Telegram's public web previews. It is not affiliated with Telegram. Use the data responsibly and in line with applicable laws and privacy regulations.

# Actor input Schema

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

Public channel usernames (durov, @durov) or links (https://t.me/durov).

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

Stop after this many posts for each channel.

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

Hard cap for the whole run. Leave empty for no cap.

## `searchInChannel` (type: `string`):

Use Telegram's own search to find posts containing this word inside each channel.

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

Only posts on or after this date. The scraper stops paging once it passes it.

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

Only posts on or before this date.

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

Keep posts whose text contains at least one of these words (case insensitive).

## `onlyWithMedia` (type: `boolean`):

Keep posts that include photos, videos or files.

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

Skip posts with fewer views.

## `sinceMessageId` (type: `integer`):

For scheduled runs. Pass the highest messageId from your last run to get only new posts.

## `channelInfoOnly` (type: `boolean`):

Return one row per channel (title, description, subscribers, photo and media counters) without posts. Great for vetting channel lists.

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

Not needed in most cases. Use datacenter proxies for very large runs.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 200,
  "onlyWithMedia": false,
  "minViews": 0,
  "channelInfoOnly": false
}
```

# Actor output Schema

## `posts` (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"
    ]
};

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

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

```

## MCP server setup

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