# Public Telegram Channel Posts Scraper (`skillmerc/telegram-channel-posts-scraper`) Actor

Scrape posts from public Telegram channels: text, date, views, reactions, media previews, forwards, replies and link previews. Reads the public t.me web preview. No login, no API keys.

- **URL**: https://apify.com/skillmerc/telegram-channel-posts-scraper.md
- **Developed by:** [SKILLMERC](https://apify.com/skillmerc) (community)
- **Categories:** Social media
- **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

## Public Telegram Channel Posts Scraper

For researchers, analysts, marketers and newsrooms who follow public Telegram channels: this actor collects the posts of any public channel into a table, with text, date, views, reactions, media previews, forwards, replies and link previews. No Telegram account, no login, no API keys.

### What it does

Give it public channel names or links. It reads each channel's public web preview (the page you see at `https://t.me/s/<channel>` in any browser), newest post first, and pages back to older posts until it reaches your limit or your start date. It returns one row per post.

You can also give single post links (`https://t.me/durov/545`). Each one returns that one post.

### Input

| Field | What it means | Default |
|---|---|---|
| `channels` | Channel names (`durov`, `@durov`), channel links (`https://t.me/durov`, `https://t.me/s/durov`) or post links (`https://t.me/durov/545`) | demo channel `durov` |
| `maxPostsPerChannel` | Stop each channel after this many posts | 50 |
| `maxTotalPosts` | Stop the whole run after this many posts (0 = no limit) | 0 |
| `since` | Only posts from this date on: `2026-11-01`, an ISO time, or `7 days` | none |
| `includeTextHtml` | Also return the text as HTML (bold, links, quotes) | true |
| `includeReactions` | Return reaction counts | true |
| `skipServiceMessages` | Leave out lines such as "Channel photo updated" | true |

Example:

```json
{
  "channels": ["durov", "https://t.me/telegram"],
  "maxPostsPerChannel": 100,
  "since": "30 days"
}
```

### Output

One row per post. Example (shortened):

```json
{
  "channel": "durov",
  "channel_title": "Pavel Durov",
  "post_id": 545,
  "url": "https://t.me/durov/545",
  "date": "2026-08-30T09:10:19.000Z",
  "text": "A high-school student just made $20,000 from a Telegram Gift. ...",
  "links": ["https://t.me/durov/540"],
  "hashtags": [],
  "views": 3800000,
  "views_shown": "3.8M",
  "edited": true,
  "forwarded_from": null,
  "reply_to_post_id": null,
  "media_types": [],
  "media": [],
  "link_preview": null,
  "reactions": [{ "emoji": "star", "paid": true, "count": 4680, "count_shown": "4.68K" }],
  "source": "durov"
}
```

Fields:

- `channel`, `channel_title`, `post_id`, `url`, `date` (ISO, UTC).
- `text` (plain, line breaks kept), `text_html` (optional), `links` (every link in the text), `hashtags`.
- `views` as a number ("1.2K" becomes 1200) and `views_shown` as Telegram shows it. Telegram rounds large counts, so `views` is as exact as the preview.
- `edited`, `author_signature` (the name a channel signs posts with, when it does).
- `forwarded_from` (name, link and channel when the preview shows them), `reply_to_post_id` and `reply_to_url`.
- `media_types` and `media`: photo, video, gif, round video, document, voice, sticker, poll, location. Photos and videos give a preview image URL and video length. The actor never downloads files.
- `poll` (question, options and percentages, when the post is a poll), `link_preview` (url, site name, title, description, image).
- `reactions`: emoji (or a custom emoji id), count and whether it is a paid Star reaction.
- `source` (the entry from your input), `scraped_at`.

Channel details (title, description, subscriber count as shown, counts of photos, videos and links, photo URL, verified mark) go to the run's `OUTPUT` record and to a separate dataset named `telegram-channel-posts-channels`. They are free: you pay only for posts.

### Pricing

Pay per event: you pay only for posts delivered to your dataset.

| Apify plan | Price per 1,000 posts |
|---|---|
| Free | USD 0.50 |
| Bronze | USD 0.45 |
| Silver | USD 0.40 |
| Gold and above | USD 0.35 |

Plus USD 0.00005 per run start. Posts skipped as duplicates, channel details and channels that fail are never charged. Set a maximum cost in the run options and the actor stops there.

### When a channel fails

The run still succeeds. Each failed entry goes to the free dataset `telegram-channel-posts-failed` and to the `failures` list in `OUTPUT`, with a reason. The named dataset keeps the failures of all your runs; `OUTPUT` has the list for this run.

- No public channel with this name (it does not exist, or it is private).
- The channel turned off its public web preview.
- The name belongs to a group, user or bot, not a channel.
- Private invite links (`t.me/+...`) cannot be read.

### Limits

- Public channels only. Private channels, groups, comments under posts and member lists are out of scope.
- Only what the public preview shows. Some posts show "Please open Telegram to view this post" (for example some videos): you get the row with the text and preview image the page shows.
- Very old posts load page by page (about 20 posts per page), one request at a time, at least half a second apart. A channel with 10,000 posts takes a few minutes.
- Telegram may change its preview pages. If the layout changes, the actor may need an update.

### Is it legal?

The actor reads only public pages that anyone can open without an account. It does not log in, does not collect member or subscriber lists, user profiles, phone numbers or email addresses, and does not try to find or add any of them.

Posts can still contain personal data, such as names in a channel's posts or signatures. If you process personal data, you need a lawful basis under the laws that apply to you, such as the GDPR or POPIA, and you are responsible for how you use the data. If in doubt, ask a lawyer.

This actor is not made, endorsed or sponsored by Telegram.

### FAQ

**Do I need a Telegram account or API keys?** No.

**Can it read private channels or groups?** No. Only public channels with their web preview turned on.

**Does it download videos and photos?** No. It returns preview image URLs. Telegram's media links expire after a while.

**How do I get only new posts each day?** Set `since` to `1 day` and schedule the actor daily in Apify.

# Actor input Schema

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

Public channel names (durov or @durov), channel links (https://t.me/durov or https://t.me/s/durov) or single post links (https://t.me/durov/545). Private channels, invite links and groups cannot be read.

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

Stop each channel after this many posts, newest first.

## `maxTotalPosts` (type: `integer`):

Stop the whole run after this many posts. The run also stops at the maximum cost you set in the run options.

## `since` (type: `string`):

Only posts from this date or time on: 2026-11-01, 2026-11-01T08:00:00Z, or relative like "7 days" or "24 hours". Older posts are not fetched.

## `includeTextHtml` (type: `boolean`):

Also return each post's text as the HTML the preview shows (bold, links, quotes). Plain text and a links list are always included.

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

Return the reaction counts the preview shows under each post.

## `skipServiceMessages` (type: `boolean`):

Leave out service lines such as "Channel photo updated" or "Channel created".

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 50,
  "maxTotalPosts": 0,
  "includeTextHtml": true,
  "includeReactions": true,
  "skipServiceMessages": true
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("skillmerc/telegram-channel-posts-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("skillmerc/telegram-channel-posts-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 skillmerc/telegram-channel-posts-scraper --silent --output-dataset

```

## MCP server setup

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