# Telegram Channel Posts Scraper — No Login (`viktorov_aa/telegram-channel-posts`) Actor

Read public Telegram channel posts: text, date, views, reactions, media, forwards and replies, plus the subscriber count. No login, phone or API key.

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

## Pricing

from $0.40 / 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/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

### What this Actor does

Telegram Channel Posts reads the public web preview of a Telegram channel (`t.me/s/<name>`). For each post it stores the text, date, view count, reactions, media type and media URLs, links, forward source, reply target, link-preview card, signed author, and an edited flag. When channel info is on, each post also carries the channel title, description, subscriber count (when the preview shows one), other counters the page prints, and whether the channel is verified.

Input is a public URL (`https://t.me/durov`, `https://t.me/s/telegram`) or an `@name`. Posts come newest first, about 20 per request, and the Actor walks older pages with the preview's `before` cursor until it hits your cap or your date window. An optional keyword uses Telegram's own channel search rather than a local text filter.

There is no Telegram account, no phone number, no login code, and no Bot API token. Private channels, invite links (`t.me/joinchat/…`) and user-to-user chats are out of scope.

### Who it is for

- Media and OSINT researchers following public channels.
- Brand and comms teams monitoring an official announcement channel.
- Analysts who need view counts and reaction totals without joining the channel.
- Developers who want a JSON feed of public posts for a dashboard.

### Use cases

- The latest 20 or 100 posts from a public channel, with views and reactions.
- Posts from the last 7 days, for a morning digest (`postedWithinDays`).
- A keyword search inside one channel, using Telegram's search.
- Several channels in one run, fetched a few at a time.
- A table of text, views and links for a channel that does not offer an official export.

### Input parameters

| Parameter | Type | Default | What it does |
| --- | --- | --- | --- |
| `startUrls` | array of strings | `https://t.me/durov` | Public channel URLs or `@names` |
| `maxPostsPerChannel` | integer | `100` (form example `20`) | Newest first. About 20 posts per request |
| `postedWithinDays` | integer | `0` | Stop at older posts. `0` means no date limit |
| `searchQuery` | string | empty | Telegram channel search. Empty reads the timeline |
| `includeChannelInfo` | boolean | `true` | Copy title, description, counters and verified onto each post |
| `maxConcurrency` | integer | `3` | Channels fetched in parallel |
| `proxyConfiguration` | proxy object | proxy off | The public preview usually needs no proxy |

```json
{
  "startUrls": ["https://t.me/durov"],
  "maxPostsPerChannel": 20,
  "postedWithinDays": 0,
  "searchQuery": "",
  "includeChannelInfo": true
}
```

### Example output

`t.me/s/durov` on the 2026-11-19 live check. The preview title was Pavel Durov, the subscriber counter was 9,950,000, and the channel was verified. The first page ended at post 544 and the next page started at 543, with no shared ids. Every post had a date and a view count; those figures, and the post text, were not copied into the log. One post in the ten channels (NEXTA, not this one) had no text.

```json
{
  "channel": "durov",
  "postId": 544,
  "url": "https://t.me/durov/544",
  "channelTitle": "Pavel Durov",
  "channelSubscribers": 9950000,
  "channelVerified": true,
  "source": "https://t.me/durov",
  "status": "ok"
}
```

Subscriber and photo counters are copied from the preview's counter widgets when those widgets exist. A channel that hides a counter simply omits that field. The overview table shows channel, subscribers, post id, date, views, text, media type and URL.

### Limitations

- Public channels only. There is no way to pass a session string, and the Actor will not ask for one.
- The web preview, not the full client. Comments under a post, member lists, and media files that the preview does not link are not downloaded.
- View and reaction numbers are the compact figures the preview prints (`4.09M`). They are expanded to integers, so they can be a rounded thousand off the exact count inside the app.
- History length depends on how far the preview paginates. A very old channel can take many requests; set `maxPostsPerChannel` or `postedWithinDays`.
- Search uses Telegram's channel search. It is not a substring scan of posts you already downloaded.
- Album posts and service messages sometimes have empty text. `mediaType` still describes the attachment when the preview marks one.
- A video the preview marks `not_supported` has no file URL. The thumbnail is stored in `photos`. `videoUrl` is set only when the preview includes a `<video src>`.
- Channel content is copyrighted by its authors. Store only what you have a reason to keep.

### Proxy

`t.me` preview pages are ordinary HTML and usually answer without a proxy, so proxy is off. If a cloud IP starts receiving blocks or empty pages, turn on Apify datacenter proxy. Residential proxy is unnecessary for a public preview and only raises the cost of a long history walk. A channel that cannot be parsed (`joinchat`, a short name, a non-Telegram host) is one `error` row. A channel that exists but has no matching posts is one `no_posts` row. Other channels in the run continue.

### FAQ

#### Do I need a Telegram API id, a bot token, or a login?

No. The Actor only reads the public preview at `t.me/s/<channel>`. It does not send messages and it does not ask for a phone number.

#### What are the limits?

About 20 posts per request, newest first. The form example asks for 20, one page. An omitted `maxPostsPerChannel` uses 100. `postedWithinDays` of 0 means no date limit.

#### What did the live check miss?

On 2026-11-19, 10 of 10 channels returned dates and view counts on every post, and the second page was older than the first with no repeated ids, with no proxy and no login. Text was missing on 1 of 393 posts (NEXTA). A video the preview marks `not_supported` has no file URL; the thumbnail is stored in `photos`. Channels with no public preview (a contact page, a redirect, or "View @…") stop with no posts. DER SPIEGEL's preview showed 3,320 subscribers; that is the counter on the page.

#### Can I get comments on a post?

No. The preview used here does not include the discussion thread. `replyToPostId` is a reply inside the channel, which is a different thing.

#### What does `searchQuery` search?

Telegram's own search for that public channel. Leave it empty to walk the timeline from the newest post.

#### Why is the subscriber count missing?

The preview did not print a subscribers counter, or channel info is off. Hidden or rounded counters are a property of the page, not a failed run.

#### How is the Actor priced?

The Actor uses pay-per-event pricing with the event **`post`**: one charge for each stored post. `error` and `no_posts` rows are not charged by the Actor. The price and the Apify platform fee are shown on the Pricing tab. Use the input limits and your Apify spending limit to keep a run within budget.

# Actor input Schema

## `startUrls` (type: `array`):

Public channel URLs (https://t.me/durov or https://t.me/s/telegram) or @names. Private channels, invite links and user chats are not supported. The form example is t.me/durov, which returned a public preview with no login and no proxy.

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

Newest posts first, about 20 per request. The prefill is 20 so the example stays on one page; the default when omitted is 100.

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

Stop when posts are older than N days. 0 means no date limit.

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

Optional keyword. When set, only posts matching Telegram's own channel search are returned. Empty reads the channel in newest-first order.

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

Copy the channel title, description, subscriber and media counters, and verified flag onto each post.

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

How many channels to fetch at the same time.

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

The public t.me preview usually answers without a proxy. Enable Apify Proxy if a run is blocked.

## Actor input object example

```json
{
  "startUrls": [
    "https://t.me/durov"
  ],
  "maxPostsPerChannel": 20,
  "postedWithinDays": 0,
  "searchQuery": "",
  "includeChannelInfo": true,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Default dataset in the overview table: channel, date, views, text and link.

# 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 = {
    "startUrls": [
        "https://t.me/durov"
    ],
    "maxPostsPerChannel": 20,
    "postedWithinDays": 0,
    "searchQuery": "",
    "includeChannelInfo": true,
    "maxConcurrency": 3,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("viktorov_aa/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 = {
    "startUrls": ["https://t.me/durov"],
    "maxPostsPerChannel": 20,
    "postedWithinDays": 0,
    "searchQuery": "",
    "includeChannelInfo": True,
    "maxConcurrency": 3,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("viktorov_aa/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 '{
  "startUrls": [
    "https://t.me/durov"
  ],
  "maxPostsPerChannel": 20,
  "postedWithinDays": 0,
  "searchQuery": "",
  "includeChannelInfo": true,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call viktorov_aa/telegram-channel-posts --silent --output-dataset

```

## MCP server setup

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