# Telegram Channel Scraper: From $1.10 per 1,000 Messages (`rowfinch/telegram-scraper`) Actor

Scrape public Telegram channels: messages with text, views, reactions, photos, videos, link previews, replies and forwards, plus each channel's exact subscriber count. Search inside a channel or read back to a date. No login, no phone number. From $1.10 per 1,000 messages.

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

## Pricing

from $1.10 / 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.
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

Get messages from public Telegram channels: text, views, reactions, photos, videos, link previews, replies and forwards, plus each channel's title, description and exact subscriber count. Read a whole channel, its last days, or only the messages that match a search. No login, no phone number, no API key.

**$1.60 per 1,000 messages on Apify's Starter plan, less on bigger plans.**

### What it's for

- **News and market monitoring**: every new post of the channels you follow, on a schedule with `messagesSince: 1 day`.
- **Crypto and trading research**: what signal, project and exchange channels post, with views and reactions as a measure of reach.
- **Brand and keyword tracking**: `searchQuery` finds the posts that name you, inside each channel.
- **Influencer and channel vetting**: exact subscribers, average views per post and posting rhythm before you buy an ad.
- **Datasets for AI and research**: clean text with dates, counts and links, ready for a model or a spreadsheet.

### Input

| Field | What it does |
|---|---|
| `channels` | Usernames or links: `durov`, `@durov`, `https://t.me/durov`, `https://t.me/s/durov`. A post link (`https://t.me/durov/531`) reads that one message |
| `maxMessages` | Messages per channel, newest first (default 100; 0 reads the whole channel) |
| `messagesSince` | Leaves out older messages: `2026-10-01` or `7 days` |
| `searchQuery` | Only messages that match, using Telegram's search inside each channel (a word, `#hashtag` or phrase) |
| `includeChannelInfo` | One row per channel with its details (default on) |
| `collectMessages` | Turn off to get only the channel rows, for example to check a list of channels |
| `maxItems` | Most rows in the run, channels and messages together (0 means no limit) |

Coming from another Telegram scraper? `profiles`, `oldestMessageDate`, `scrapeLastNDays`, `telegram_url` and `max_results` are read too, so saved inputs keep working.

### Output

One dataset; `dataType` tells messages and channels apart.

A message:

```json
{
  "dataType": "message",
  "id": "durov/531",
  "messageId": 531,
  "url": "https://t.me/durov/531",
  "channel": "durov",
  "channelTitle": "Pavel Durov",
  "date": "2026-07-16T20:45:25+00:00",
  "isEdited": false,
  "text": "🩵 Telegram now has a Rich Text Editor.\n\nIt supports tables, headings, inline media, lists, AI content, formulas, and more.\n\n😈 Messaging apps will never be the same!",
  "views": 5890000,
  "author": "Pavel Durov",
  "forwardedFrom": null,
  "replyTo": null,
  "photos": [],
  "videos": [{ "url": "https://cdn4.telesco.pe/file/….mp4?token=…", "thumbnailUrl": "https://cdn4.telesco.pe/file/….jpg", "duration": null }],
  "documents": [],
  "poll": null,
  "linkPreview": null,
  "hasHiddenMedia": true,
  "reactions": [
    { "emoji": "⭐", "customEmojiId": null, "count": 6300, "isPaid": true },
    { "emoji": null, "customEmojiId": "5265077361648368841", "count": 54700, "isPaid": false }
  ],
  "reactionsTotal": 95230,
  "links": [],
  "hashtags": [],
  "mentions": [],
  "input": "durov"
}
```

A channel:

```json
{
  "dataType": "channel",
  "username": "durov",
  "url": "https://t.me/durov",
  "title": "Pavel Durov",
  "description": "Founder of Telegram.",
  "isVerified": true,
  "photoUrl": "https://cdn4.telesco.pe/file/….jpg",
  "subscribers": 10076150,
  "photoCount": 102,
  "videoCount": 47,
  "fileCount": null,
  "linkCount": 200,
  "input": "durov"
}
```

`replyTo` holds the replied message's id, link and quoted text; `forwardedFrom` the original channel's name and link; `linkPreview` the site, title, description and image of a shared link; `poll` the question and each option's share. A reaction with a channel's custom emoji has no character, so it comes with its `customEmojiId`.

Channels that can't be read get a row with the reason, free of charge:

```json
{ "input": "https://t.me/+AbCdEf123", "error": "invite and private links can't be read without joining; use the channel's public @username" }
```

### Price

Per 1,000, by your Apify plan:

| | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Messages | $2.50 | $1.60 | $1.40 | $1.10 |

- **$0.002 per channel row** (details with the exact subscriber count)
- Channels that can't be read: free

| Run, on Starter | Cost |
|---|---|
| 10 channels, last 100 messages each, with details | $1.62 |
| 1 channel, whole history of 20,000 messages | $32.00 |
| 500 channels, details only (`collectMessages: false`) | $1.00 |

A run stops at the maximum cost you set for it. On Apify's free plan, a run returns up to 100 results.

### FAQ

**Do I need a Telegram account, a phone number or an API key?**
No. It reads the public web preview Telegram shows at t.me/s/<channel>.

**Which channels can it read?**
Public channels with a username. Private channels, invite links, groups and people have no public preview, so they get an error row and cost nothing.

**Why are views rounded?**
Telegram shows them rounded on the web (43.8K). Subscribers are exact: they come from the channel's own page.

**What is `hasHiddenMedia`?**
The post has something the web preview doesn't show, such as a sticker, a voice note or rich content. Open the post's `url` in Telegram to see it.

**How far back can it go?**
To the channel's first post. `maxMessages: 0` reads everything; `messagesSince` stops at a date.

**How fast is it?**
About 20 messages per request, several channels at a time: a few thousand messages a minute.

# Actor input Schema

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

Public channel usernames or links: durov, @durov, https://t.me/durov. A post link (https://t.me/durov/531) reads that message only.

## `maxMessages` (type: `integer`):

Newest first. 0 reads the whole channel.

## `messagesSince` (type: `string`):

Leaves out older messages: a date like 2026-10-01 or a period like 7 days.

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

Telegram's own search inside each channel: a word, a hashtag (#news) or a phrase.

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

One row per channel: title, description, exact subscriber count, verified badge, photo and media counts.

## `collectMessages` (type: `boolean`):

Turn off to get only the channel details, for example to check a list of channels.

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

Channels and messages together. 0 means no limit.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxMessages": 50,
  "includeChannelInfo": true,
  "collectMessages": true,
  "maxItems": 0
}
```

# 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"
    ],
    "maxMessages": 50
};

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

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

```

## MCP server setup

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