# Telegram Channel Scraper — Posts, Views & Reactions (`librevlad/telegram-channel-scraper-cheap`) Actor

Scrape posts from public Telegram channels without login: text, views, reactions, media, polls, forwards. Keyword/date filters, only-new mode. $0.30 per 1,000 posts.

- **URL**: https://apify.com/librevlad/telegram-channel-scraper-cheap.md
- **Developed by:** [Владислав Новік](https://apify.com/librevlad) (community)
- **Categories:** Social media, News, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

Learn more: https://docs.apify.com/actors/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, Views & Reactions

**Pricing:** $0.30 per 1,000 posts, $0.50 per 1,000 channel profiles. No start fee on top of the platform minimum. Error rows are free.

Scrape posts from **public Telegram channels** without a Telegram account, phone number or API keys. The actor reads the public web preview of a channel (`t.me/s/<channel>`) — the same page anyone can open in a browser — and returns clean JSON rows.

### What you get

For every post:

- text with line breaks, links, hashtags and @mentions;
- date (ISO 8601, UTC), views (number and the original "1.2K" text), edited flag, author signature;
- reactions with counts, including paid ⭐ star reactions;
- media: photo URLs, video thumbnails, video file and duration, documents, polls with option percentages, link previews (title, description, image);
- forwarded-from channel and author, reply-to post with the quoted text;
- a direct link to the post.

Optionally one row per channel: title, description, subscriber count, photo/video/file/link counters, verified badge and avatar.

### Who it is for

- **Monitoring and alerts** — run every hour with *Only new posts since the last run* and send new posts to Slack, Google Sheets, a webhook or your own app.
- **Media and market research** — collect what news, brand or industry channels publish, with views and reactions as an engagement signal.
- **Datasets for AI** — channel archives as text for RAG, summarisation or classification.

### Input

```json
{
  "channels": ["durov", "https://t.me/telegram"],
  "maxPostsPerChannel": 100,
  "newerThan": "7 days",
  "keywords": ["update", "bot"],
  "onlyNewPosts": false,
  "includeChannelInfo": true
}
```

- **channels** — usernames, `@usernames` or `t.me` links. Post links like `https://t.me/durov/555` work too.
- **maxPostsPerChannel** — newest first; the actor pages back until it has enough posts, hits the date limit or reaches the first post.
- **newerThan** — a date (`2026-11-01`) or a period (`24 hours`, `7 days`, `2 weeks`).
- **keywords** — keep only posts containing any of the words; you pay only for posts that match. With keywords the actor scans at most 50 × *Max posts per channel* (at least 2,000) posts per channel, so a word that never appears does not page through years of history.
- **onlyNewPosts** — for scheduled runs: the actor remembers the newest post per channel in the named key-value store `telegram-channel-scraper-state` and next time returns only newer posts.

### Output example

```json
{
  "type": "post",
  "channel": "durov",
  "postId": 575,
  "url": "https://t.me/durov/575",
  "date": "2026-11-27T23:00:04+00:00",
  "text": "🚨 iPhone users are being hacked on a massive scale.\n\nIf your iOS is even slightly outdated, all your data is at risk. ...",
  "views": 1050000,
  "viewsText": "1.05M",
  "isEdited": false,
  "author": "Pavel Durov",
  "mediaType": "photo",
  "photoUrls": ["https://cdn4.telesco.pe/file/..."],
  "videos": [],
  "documents": [],
  "poll": null,
  "linkPreview": null,
  "reactions": [
    {"emoji": "⭐", "count": 3550, "isPaid": true},
    {"emoji": "custom:5399847211989246390", "count": 24000, "isPaid": false}
  ],
  "forwardedFrom": null,
  "replyTo": null,
  "links": [],
  "hashtags": [],
  "mentions": [],
  "status": "ok",
  "scrapedAt": "2026-11-28T17:00:00+00:00"
}
```

Channel row:

```json
{
  "type": "channel",
  "channel": "telegram",
  "url": "https://t.me/telegram",
  "title": "Telegram News",
  "description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
  "isVerified": true,
  "subscribers": 9040000,
  "photos": 16,
  "videos": 228,
  "files": null,
  "links": 378,
  "avatarUrl": "https://cdn1.telesco.pe/file/..."
}
```

A channel that cannot be read becomes a free row with `"status": "error"`, an `errorType` (`no_public_preview`, `invalid_input`, `blocked_or_network`) and a `message`.

### Pricing

| Event | Price |
|---|---|
| Post | $0.30 per 1,000 |
| Channel profile | $0.50 per 1,000 |
| Error rows | free |

Platform usage is included. Set a maximum cost per run in the Apify Console and the actor stops writing rows as soon as it is reached.

### Limits — read before you run

- **Public channels with a web preview only.** Private channels, invite links, groups, users, bots and channels that turned the preview off return a free error row.
- **What the web preview shows is what you get.** No comments, no subscriber lists, no message search across Telegram. Stories, paid media and some stickers appear as `"mediaType": "unsupported"`.
- **Rounded numbers.** Telegram shows views and reactions as `1.05M` or `24K`; the actor converts them to numbers, so large values are approximate.
- **Media links expire.** Photo and video URLs point to Telegram's CDN and stop working after a while. Download the files you need soon after the run.

Use responsibly and check the site's terms for your use case. Respect people's privacy: posts in public channels are public, but personal data in them is still personal data.

### FAQ

**Do I need a Telegram account or API ID?** No. The actor reads the public page `t.me/s/<channel>` and never logs in.

**How fast is it?** One request returns about 20 posts. A few thousand posts take a minute or two.

**How do I monitor channels?** Turn on *Only new posts since the last run*, create a Task and schedule it (for example every hour). Connect the dataset to Slack, Google Sheets, Make, Zapier, n8n or a webhook.

**Why did a channel return an error?** Open `https://t.me/s/<channel>` in a browser. If you do not see posts there, the channel has no public preview and the actor cannot read it either.

**Can I get posts older than a date?** Use *Max posts per channel* to go deep; *Only posts newer than* sets the other end.

### More actors from the same developer

Pay only for results, no logins:

- [YouTube Search & Channel Videos](https://apify.com/librevlad/youtube-search-channel-videos) — videos and Shorts from search queries and channels' Videos tab.
- [YouTube Transcript Scraper](https://apify.com/librevlad/youtube-transcripts-fast) — transcripts as plain text, timestamped segments or SRT.
- [Website Crawler to Markdown](https://apify.com/librevlad/website-crawler-markdown) — crawl a website or docs section into clean Markdown for RAG and LLMs.
- [Website to Markdown](https://apify.com/librevlad/website-to-markdown) — turn a list of pages and PDFs into clean Markdown or text.
- [Website Screenshot & PDF](https://apify.com/librevlad/page-screenshot-pdf) — full-page and mobile screenshots, URL to PDF.
- [App Store Scraper](https://apify.com/librevlad/app-store-scraper) — app details, keyword search positions and reviews from Apple's public API.
- [Google Trends Scraper](https://apify.com/librevlad/google-trends-scraper-fast-cheap) — interest over time, interest by region and related queries.
- [Threads Scraper](https://apify.com/librevlad/threads-scraper) — public Threads posts and profiles without login.

# Actor input Schema

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

Public channels, one per line: a username (durov), @username, or a link (https://t.me/durov, https://t.me/s/durov, https://t.me/durov/555). Invite links and private channels have no public preview and are skipped.

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

Newest posts first. The actor pages back through the channel until it has this many posts (after the keyword filter), reaches the date limit or the first post.

## `newerThan` (type: `string`):

Optional. A date like 2026-11-01 (UTC) or a relative period like '7 days', '24 hours', '2 weeks'. Paging stops at the first older post.

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

Optional. Keep only posts whose text or link preview contains any of these words (case-insensitive). You pay only for matching posts.

## `onlyNewPosts` (type: `boolean`):

For monitoring on a schedule: each run returns only posts published after the newest post seen by the previous run. The position is kept per channel in the named key-value store 'telegram-channel-scraper-state' in your account.

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

Add one row per channel with its title, description, subscriber count, media counters and avatar.

## `maxConcurrency` (type: `integer`):

How many channels to scrape at the same time (1–20).

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

The default Apify datacenter proxy works well for t.me and keeps runs fast and cheap.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 50,
  "onlyNewPosts": false,
  "includeChannelInfo": true,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (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("librevlad/telegram-channel-scraper-cheap").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("librevlad/telegram-channel-scraper-cheap").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 librevlad/telegram-channel-scraper-cheap --silent --output-dataset

```

## MCP server setup

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

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/YNIpllD6PApwsCgwv/builds/FHKR4U19fT8JgTDnr/openapi.json
