# Telegram Channel Scraper 📢 (posts history, no login) (`tagadanar/telegram-channel-scraper`) Actor

Scrape the post history of any public Telegram channel: text, date, views, reactions, media types and URLs, links, forwards and replies, plus a channel info row with title, description and subscribers. Date range and media filters. $0.50 per 1,000 posts. No login, no API key.

- **URL**: https://apify.com/tagadanar/telegram-channel-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (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 $0.35 / 1,000 posts

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 (posts history, no login)

Get the post history of any public Telegram channel as clean, flat rows. Give it channel names or t.me links and it returns every post, newest first: the text, the date, the view count, the reactions with their counts, what media is attached and the media links, every link in the post, and where a post was forwarded from or what it replies to. Each channel also gets one info row with its title, description, verified badge and subscriber count.

**$0.50 per 1,000 posts on Free ($0.35 on Gold), plus $0.001 per run. Platform usage is included.** No API key, no login, no phone number, no proxy needed.

It reads the public preview Telegram serves to logged-out visitors at `t.me/s/<channel>`, so nothing depends on an account that can be banned.

### What you get

One row per post (`recordType: "post"`). Fields Telegram does not show for a post are null or empty.

| Field | What it is |
| --- | --- |
| `channel`, `channelUsername`, `channelTitle` | The channel as you typed it, its real username, and its display name |
| `messageId`, `postId`, `url` | The post number, the `channel/id` pair, and a direct link to the post |
| `date` | When it was posted, ISO 8601 with the timezone |
| `text`, `textLength` | The post text with line breaks kept, markup stripped |
| `views`, `viewsText` | View count as a number (`5880000`) and as Telegram prints it (`5.88M`) |
| `reactions`, `reactionsTotal` | Each reaction with its count: `{ emoji, customEmojiId, isPaid, count }`, and their sum. Paid star reactions are `isPaid: true`; custom emoji carry their `customEmojiId` |
| `hasMedia`, `mediaTypes`, `isAlbum` | Whether something is attached and what: photo, video, video_note, voice, audio, document, sticker, poll, location |
| `mediaUrls` | The image, video and thumbnail links Telegram shows on the page (signed links that expire after a while: download them soon if you need the files) |
| `links`, `hashtags`, `mentions` | Every link in the post, plus its hashtags and @mentions, lower-cased |
| `linkPreviewUrl`, `linkPreviewTitle`, `linkPreviewSite`, `linkPreviewDescription`, `linkPreviewImageUrl` | The link card shown under the post |
| `isForwarded`, `forwardedFrom`, `forwardedFromUrl` | Where a forwarded post came from |
| `isReply`, `replyToMessageId`, `replyToUrl`, `replyToAuthor`, `replyToText` | The post this one replies to |
| `isEdited`, `authorName` | Whether the post was edited, and the author signature when the channel signs posts |
| `scrapedAt` | Run timestamp |

One row per channel (`recordType: "channel"`, never charged):

| Field | What it is |
| --- | --- |
| `title`, `description`, `isVerified`, `photoUrl`, `channelUrl` | The channel card |
| `subscribers`, `subscribersText` | Subscriber count as a number and as shown |
| `photosCount`, `videosCount`, `filesCount`, `linksCount` | The media counters Telegram shows for the channel |
| `status`, `statusDetail` | How the read ended: whole history read, stopped at your limit, date range read, no such channel, no public preview |
| `postsDelivered`, `postsScanned`, `pagesFetched`, `newestPostId`, `oldestPostId` | What this run read and delivered for the channel |

### Who uses it

- **Researchers and analysts** archiving what a set of news, politics or crypto channels published over a period, with views and reactions for engagement work.
- **Marketers and brand teams** benchmarking competitor or influencer channels: posting rhythm, which posts get the views and reactions, which links they push.
- **Data and AI teams** building a text corpus from public channels, with dates and links kept.

### Examples

Prefill: the 20 newest posts of two channels.

```json
{"channels": ["telegram", "durov"], "maxPostsPerChannel": 20}
```

Deep history: up to 500 posts from each of three channels.

```json
{"channels": ["telegram", "durov", "bbcrussian"], "maxPostsPerChannel": 500}
```

A date window: everything a channel posted in March 2025. With "Posted before" set, the scraper jumps straight to that point in the channel's history instead of paging through every newer post.

```json
{"channels": ["https://t.me/bbcrussian"], "postedAfter": "2025-03-01", "postedBefore": "2025-03-31", "maxPostsPerChannel": 10000}
```

Only posts with a photo, video or other media from the last 30 days:

```json
{"channels": ["durov"], "postedAfter": "30 days", "onlyWithMedia": true}
```

Channels can be names (`telegram`), handles (`@telegram`) or links (`https://t.me/telegram`, `t.me/s/telegram`, a post link). Up to 100 channels and 10,000 posts per channel per run.

### Results, zeros and errors

- A channel that does not exist, or that has no public preview (groups, bots, private channels), gets a channel row saying so and costs nothing.
- A channel read in full with no post matching your filters is reported as "no post matched".
- If Telegram refuses a page or the run clock runs out, the status names the channel and says it was not fully read, never "no posts".
- With strict filters (media only on a text channel), a run reads a limited number of pages that deliver nothing before it stops and says so.
- Invalid input ends the run at once with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $0.50 per 1,000 posts on Free, with lower prices on higher Apify plans ($0.35 per 1,000 on Gold). Platform usage is included.
- Channel info rows are free.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**Do I need a Telegram account or API key?** No. It reads Telegram's own public web preview, the same page anyone sees at `t.me/s/<channel>` without logging in.

**Can it read private channels or groups?** No. Only public channels with the web preview turned on. Groups, bots and private channels are reported in the channel row, not scraped.

**How far back can it go?** As far as the channel's public history goes, up to 10,000 posts per channel per run. Use "Posted before" and "Posted after" to read a specific period; the scraper jumps to it directly.

**Does it download the media?** No. It returns the media links Telegram shows. Those links are signed and expire, so download the files soon after the run if you need them.

**I want keyword alerts, not the full history.** Use our [Telegram Channel Monitor](https://apify.com/tagadanar/telegram-channel-monitor): keywords across channels and a "new since last run" monitor mode for scheduled alerts. This scraper is for full post history.

### Data use

The data comes from Telegram's public channel previews, which anyone can open without an account. Posts can contain personal data (names, handles, opinions). You are responsible for having a lawful basis for what you collect and how you use it, under the GDPR and similar laws where they apply, and for respecting Telegram's terms.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/telegram-channel-scraper/changelog.md

# Actor input Schema

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

Public Telegram channels: a name (telegram), a handle (@telegram) or a link (https://t.me/telegram, t.me/s/telegram, a post link). Up to 100 per run. Private invite links, groups and bots have no public preview and are reported, not scraped.

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

Newest posts first, older pages until this many posts are delivered for each channel (after the filters below). Default 100, max 10,000.

## `postedAfter` (type: `string`):

Only posts from this date on: 2026-01-31, an ISO timestamp, or a relative value like "30 days". Paging stops at this date.

## `postedBefore` (type: `string`):

Only posts on or before this date (a bare date includes that whole day, UTC). The scraper jumps straight to that point in the channel's history instead of paging through newer posts.

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

Keep only posts with a photo, video, voice, audio, document, sticker, poll or location.

## Actor input object example

```json
{
  "channels": [
    "telegram",
    "durov"
  ],
  "maxPostsPerChannel": 20,
  "onlyWithMedia": false
}
```

# Actor output Schema

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

One item per post (recordType "post") plus one info row per channel (recordType "channel").

# 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": [
        "telegram",
        "durov"
    ],
    "maxPostsPerChannel": 20
};

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

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

```

## MCP server setup

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