# Telegram Channel Posts Scraper (public channels, no login) (`nelyon/telegram-channel-posts`) Actor

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

## Pricing

from $1.00 / 1,000 post results

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

## Telegram Channel Posts Scraper (public channels, no login)

Download posts from **public Telegram channels** as structured data, without a Telegram account, phone number or API keys. The Actor reads the public web preview that Telegram itself serves at `https://t.me/s/<channel>`, pages back through the archive (newest first), and returns one clean row per post.

### What you get

| Field | Example |
|---|---|
| `channel`, `channelTitle`, `channelSubscribers`, `channelVerified` | `telegram`, `Telegram News`, `9130000`, `true` |
| `postId`, `url` | `460`, `https://t.me/telegram/460` |
| `date`, `edited` | `2026-08-26T19:12:34Z`, `false` |
| `text` | full post text with line breaks kept |
| `hashtags`, `links` | `["update"]`, every link in the text |
| `views` | `2510000` (Telegram shows "2.51M"; converted to a number) |
| `reactions`, `reactionsTotal` | `[{"emoji": "👍", "count": 13100}, {"emoji": "paid-star", "count": 17900}]`, `82080` |
| `mediaTypes` | `photo`, `video`, `roundVideo`, `document`, `audio`, `poll`, `sticker`, `location` |
| `photoUrls`, `videoUrls` | direct media links from Telegram's CDN |
| `linkPreview` | `{url, siteName, title, description}` |
| `isForwarded`, `forwardedFromChannel`, `forwardedFromUrl` | source channel of a forward |
| `replyToPostId` | id of the post this one replies to |
| `scrapedAt` | when the row was collected |

### Use cases

- **Media and market monitoring**: follow news, crypto, brand or industry channels and get new posts into a sheet, database or Slack on a schedule.
- **Research and datasets**: build a dated archive of a channel for content, sentiment or misinformation analysis.
- **Engagement tracking**: compare views and reactions across posts and channels.
- **Keyword alerts**: run daily with `postedWithinDays: 1` and `keywords` to catch only the posts you care about.

### Input

```json
{
  "channels": ["https://t.me/durov", "@telegram", "t.me/s/someChannel"],
  "maxPostsPerChannel": 100,
  "postedWithinDays": 30,
  "sinceDate": "2026-01-01",
  "keywords": ["update", "release"],
  "skipForwarded": false,
  "maxPagesPerChannel": 200,
  "maxItems": 1000
}
```

- `channels`: public channel links or usernames, one per line (`https://t.me/name`, `t.me/s/name`, `@name`, `name`).
- `maxPostsPerChannel`: newest posts first; counted after filters.
- `postedWithinDays` / `sinceDate`: paging stops as soon as older posts are reached, so date filters also make runs faster and cheaper.
- `keywords`: case-insensitive match on the post text.
- `maxPagesPerChannel`: safety cap (about 20 posts per page). Raise it to search deep archives with a keyword filter.
- `maxItems`: total cap across channels (default 100).

### Output example

```json
{
  "channel": "telegram",
  "postId": 460,
  "url": "https://t.me/telegram/460",
  "date": "2026-08-26T19:12:34Z",
  "edited": false,
  "text": "For all the info from today's update and a look back at 13 years of Telegram features — check out our blog: ...",
  "hashtags": [],
  "links": ["https://telegram.org/blog/welcome-messages-buttons-TG-13", "https://t.me/telegram/455"],
  "views": 2510000,
  "reactions": [],
  "reactionsTotal": 0,
  "mediaTypes": [],
  "photoUrls": [],
  "videoUrls": [],
  "linkPreview": {"url": "https://telegram.org/blog/welcome-messages-buttons-TG-13", "siteName": "Telegram", "title": "Welcome Messages, Buttons in Messages and Signed Gifts", "description": "Introducing Welcome Messages ..."},
  "isForwarded": false,
  "forwardedFromChannel": null,
  "forwardedFromUrl": null,
  "replyToPostId": null,
  "channelTitle": "Telegram News",
  "channelSubscribers": 9130000,
  "channelVerified": true,
  "scrapedAt": "2026-11-13T13:13:24Z"
}
```

### Pricing

Pay per result: **$0.001 per post** ($1 per 1,000 posts). Channels that do not exist or have no public preview cost nothing. Use `maxItems` or your run's maximum cost to cap spend; the Actor stops cleanly at the limit.

### Speed

About 20 posts per request. In testing a full channel archive (437 posts back to 2015) took 25 seconds; 200 recent posts from two channels took 11 seconds.

### Limits and notes

- **Public channels only.** Private channels, groups, bots and user accounts have no public preview and are reported as "no public preview" in the log and in the `RUN_SUMMARY` record. Some public channels turn the web preview off; those are reported the same way.
- `views` and `reactions` come rounded as Telegram displays them (e.g. 4.68M becomes 4,680,000).
- Custom (premium) reaction emoji have no public character; they appear as `custom:<emoji-id>`.
- Media links point to Telegram's CDN; video links carry a token and can expire, so download them soon if you need the files.
- Privacy by design: no subscriber lists, no author signatures, no user profiles. A post forwarded from a person shows only `isForwarded: true`; the source is named only when it is a public channel. Email addresses in post text are replaced with `[email removed]`.
- The run summary (channels read, missing, failed, pages, requests) is saved to the key-value store as `RUN_SUMMARY`.

### Is this allowed?

The Actor reads the same public `t.me/s/` pages anyone can open in a browser, one request per second per run, with retries that respect rate-limit responses. It does not log in or use the Telegram API. Respect the channel owners' rights when you republish their content, and link back to `url`.

# Actor input Schema

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

Public channels, one per line: https://t.me/durov, t.me/s/durov, @durov or durov. Private channels, groups and users are not supported.

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

Newest posts first. Applied after filters.

## `postedWithinDays` (type: `integer`):

Only posts from the last N days. Paging stops once older posts are reached.

## `sinceDate` (type: `string`):

Only posts on or after this date (YYYY-MM-DD). If both this and 'Posted within' are set, the later date wins.

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

Keep posts whose text contains any of these (case-insensitive). Leave empty for all posts.

## `skipForwarded` (type: `boolean`):

Keep only the channel's own posts.

## `maxPagesPerChannel` (type: `integer`):

Safety cap on how far back to page (about 20 posts per page). Raise it for deep archives with a keyword filter.

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

Stop after this many posts across all channels. Default 100; raise it for bigger runs (your run's spending limit still applies).

## Actor input object example

```json
{
  "channels": [
    "https://t.me/durov",
    "https://t.me/telegram"
  ],
  "maxPostsPerChannel": 100,
  "skipForwarded": false,
  "maxPagesPerChannel": 200,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

All results of this run (the default dataset items).

# 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": [
        "https://t.me/durov",
        "https://t.me/telegram"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("nelyon/telegram-channel-posts").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": [
        "https://t.me/durov",
        "https://t.me/telegram",
    ],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("nelyon/telegram-channel-posts").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": [
    "https://t.me/durov",
    "https://t.me/telegram"
  ],
  "maxItems": 100
}' |
apify call nelyon/telegram-channel-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nelyon/telegram-channel-posts"
        }
    }
}
```

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/obLkiZxcki6S1glw9/builds/MJPzgc3h3OFefaGnu/openapi.json
