# Telegram Scraper - Channel Messages, Posts, Views & Search (`thony-data/telegram-channel-scraper`) Actor

Low-cost Telegram scraper: just $0.50 per 1,000 posts, no login, phone number or API key. Export public channel messages with text, date, views, reactions, photos, videos, links, hashtags and forwards. Search by keyword, filter by date or views, monitor new posts.

- **URL**: https://apify.com/thony-data/telegram-channel-scraper.md
- **Developed by:** [THONY AN](https://apify.com/thony-data) (community)
- **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.
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

## Telegram Channel Scraper

Scrape posts from **public Telegram channels** — no Telegram account, phone number or API keys needed.

### What you get

For every post: text, date, **views**, **reactions** (with counts), paid stars, photos, video thumbnails, documents, polls, links, **hashtags**, forwarded-from, reply link, author signature, edited flag — plus the channel's title and subscriber count.

### Why this scraper

- **No login, no API keys.** Uses Telegram's official public web preview (t.me/s/channel).
- **Many channels in one run.** Paste a list of usernames or links.
- **Keyword search inside channels.** Find every post that mentions your brand, token or topic.
- **Monitoring-friendly.** Set *Only posts since* and the run stops as soon as it reaches older posts. Schedule it daily and pay only for new posts.
- **Minimum views filter** to keep only posts that got traction.
- **Fast and cheap.** Plain HTTP requests, no browser.

### Input

| Field | Description |
|---|---|
| Channels | `durov`, `@durov` or `https://t.me/durov` |
| Search keywords | Optional, searched inside each channel |
| Max posts per channel | Newest first |
| Only posts since | Optional date, e.g. `2026-11-01` |
| Minimum views | Optional |

### Output

```json
{
  "channel": "durov",
  "postId": 553,
  "url": "https://t.me/durov/553",
  "date": "2026-11-09T13:00:39+00:00",
  "text": "700K+ self-custodial wallets created on Telegram in the last 48 hours alone...",
  "views": 1980000,
  "reactionsTotal": 34990,
  "reactions": [{ "emoji": "👍", "customEmojiId": null, "count": 6810 }],
  "paidStars": 17000,
  "photos": ["https://cdn4.telesco.pe/file/....jpg"],
  "videoCount": 0,
  "links": ["https://t.me/durov/551"],
  "hashtags": [],
  "forwardedFrom": null,
  "channelTitle": "Pavel Durov",
  "channelSubscribers": 9910000,
  "scrapedAt": "2026-11-22T00:00:00+00:00"
}
```

### Limits

- Only **public channels** that have Telegram's web preview enabled. Private channels, invite links and most groups can't be scraped.
- Some custom (premium) reaction emojis are returned as `customEmojiId` instead of a character.
- Media URLs are temporary Telegram CDN links; download them soon after the run if you need them.

### Use cases

- Crypto / finance signal and news channel monitoring
- Brand and keyword monitoring across many channels
- Competitor and influencer channel analytics (views, reactions, posting frequency)
- Feeding channel posts into an LLM or sentiment pipeline

# Actor input Schema

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

Public Telegram channels: usernames (durov, @durov) or links (https://t.me/durov). Private channels and invite links (t.me/+...) cannot be scraped.

## `searchKeywords` (type: `array`):

Only return posts that match these keywords, searched inside each channel with Telegram's own search. Leave empty to get all posts.

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

Stop after this many posts for each channel (and each keyword). Posts are collected newest first.

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

Optional. Only return posts published on or after this date (YYYY-MM-DD). The run stops as soon as older posts are reached, so scheduled monitoring runs stay cheap.

## `minViews` (type: `integer`):

Optional. Skip posts with fewer views than this.

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

Usually not needed: the Actor connects directly and falls back to Apify Proxy automatically if Telegram rate-limits it. Set a proxy here only to force one.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 100,
  "minViews": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All scraped posts (text, date, views, reactions, media, links, hashtags, forwards, channel info).

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("thony-data/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",
        "telegram",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("thony-data/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",
    "telegram"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call thony-data/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

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