# Telegram Channel Scraper - Posts, Views, Reactions & Search (`alex9080/telegram-channel-scraper`) Actor

Scrape public Telegram channels without an account: post text, date, views, reactions, photos, videos, links, emails and hashtags, plus channel info and subscriber count. Search inside a channel, date range, keyword filter, new-posts-only monitoring. $0.30 per 1,000 posts.

- **URL**: https://apify.com/alex9080/telegram-channel-scraper.md
- **Developed by:** [Alex](https://apify.com/alex9080) (community)
- **Categories:** Social media, News, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.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/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

Scrape **public Telegram channels without an account, phone number or API key**. For every post you get the text, date, **views, reactions** (with counts per emoji and paid Stars), photos, videos, documents, links, emails, hashtags, mentions, forwards and replies. Each channel also gets an info row with **title, description, subscriber count** and media counters.

Use it for media monitoring, crypto and trading signals, competitor and brand tracking, lead generation from channels that post contacts, research datasets, or as a feed for an LLM.

#### Features

- **Any number of channels** in one run: usernames (`durov`, `@durov`) or links (`https://t.me/durov`).
- **Full history** or the latest N posts.
- **Search inside a channel** with Telegram's own search (`searchQuery`).
- **Date range** (`since` / `until`) and a **keyword filter**.
- **New posts only**: for scheduled runs it remembers the last post per channel and returns only newer posts.
- **Clean numbers**: `1.93M` views becomes `1930000`.
- **Extracted for you**: all links, emails, #hashtags and @mentions in each post.
- **Cheap**: $0.30 per 1,000 posts.

#### Output

```json
{
  "type": "post",
  "channel": "durov",
  "postId": 548,
  "url": "https://t.me/durov/548",
  "date": "2026-09-11T16:04:02+00:00",
  "text": "Telegram has become the sponsor of Codeforces ...",
  "views": 1930000,
  "reactions": [{"reaction": "paid_stars", "count": 21100}, {"reaction": "👍", "count": 30900}],
  "reactionsTotal": 69410,
  "photos": ["https://cdn4.telesco.pe/file/..."],
  "videos": [],
  "documents": [],
  "links": ["https://codeforces.com/blog/entry/156620"],
  "emails": [],
  "hashtags": [],
  "mentions": [],
  "forwardedFrom": null,
  "replyToUrl": null,
  "edited": false
}
```

Channel row (`"type": "channel"`): channel, title, description, subscribers, photos, videos, links, photo (avatar URL), verified, url.

The Output tab has two tables, **Posts** and **Channels**; export to Excel, CSV or JSON.

#### Input example

```json
{
  "channels": ["durov", "https://t.me/telegram"],
  "maxPostsPerChannel": 500,
  "since": "2026-09-01",
  "keywords": ["update", "release"]
}
```

#### Monitoring

Turn on **Only posts not seen in previous runs** and add a schedule (for example every hour). Each run returns only posts published since the previous run, so you can push them to Slack, Google Sheets, a webhook or an AI agent.

#### Pricing

**$0.30 per 1,000 posts** and **$0.001 per channel info row**. No subscription.

#### Use from code

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("alex9080/telegram-channel-scraper").call(run_input={
    "channels": ["durov"], "maxPostsPerChannel": 200,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["type"] == "post":
        print(item["date"], item["views"], item["text"][:80])
```

#### Limitations

- Only **public channels** that have a web preview at `t.me/s/<channel>`. Private channels, groups and chats are not available.
- Comment threads are not included (they are not in the public web preview).
- Custom (premium) emoji reactions are returned as `custom:<id>`.

#### FAQ

**Do I need a Telegram account?** No. Nothing is sent from your account and no phone number is needed.

**How far back can it go?** To the first post of the channel; set *Max posts per channel* to 0.

# Actor input Schema

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

Public channel usernames (durov, @durov) or links (https://t.me/durov). Private channels and groups are not available.

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

0 = the whole history (can be thousands of posts).

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

Uses Telegram's own channel search, e.g. "giveaway". Leave empty for all posts.

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

Case-insensitive filter applied to post text.

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

Stop at posts older than this date.

## `until` (type: `string`):

Skip posts newer than this date.

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

For scheduled monitoring: remembers the last post per channel (in your own storage) and returns only newer posts.

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

One row per channel: title, description, subscribers, photos/videos/links counters, avatar.

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

Not needed normally. Turn on for very large runs if Telegram starts rate-limiting.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "https://t.me/telegram"
  ],
  "maxPostsPerChannel": 100,
  "onlyNewPosts": false,
  "includeChannelInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

## `channels` (type: `string`):

No description

## `all` (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",
        "https://t.me/telegram"
    ]
};

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

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

```

## MCP server setup

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