# ✈️ Telegram Channel Scraper - Posts, Views & Media (`that_red_bird/telegram-channel-scraper`) Actor

⚡ Scrape any PUBLIC Telegram channel — no API key, no phone number, no login. ✅ Post text, view counts, dates, photos, videos, links, hashtags and forwards. ✅ Filter by keyword, minimum views, media or date.

- **URL**: https://apify.com/that\_red\_bird/telegram-channel-scraper.md
- **Developed by:** [mohamed alaya](https://apify.com/that_red_bird) (community)
- **Categories:** Social media, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Telegram Channel Scraper

Scrape any **public** Telegram channel — no API key, no phone number, no login, no bot token.

Telegram publishes a server-rendered preview of every public channel at `t.me/s/<channel>`.
This reads it and pages backwards through history, so you can pull a channel's whole archive.

### What you get per post

`id` · `url` · `text` · `date` · `views` (parsed from "1.2K"/"3M" into a real number) ·
`author` · `forwardedFrom` · `replyTo` · `photos[]` · `hasVideo` · `hasPoll` · `hasDocument` ·
`links[]` · `hashtags[]` — plus the channel's `title` and `subscribers` on every row.

### Filtering

`keywords` · `excludeKeywords` · `minViews` · `onlyWithMedia` · `onlyWithLinks` · `since`
(ISO date) · `maxPostsPerChannel`.

**`minViews` is the useful one** — it separates posts that actually landed from the rest of
the feed.

### Input formats

All of these work: `durov` · `@durov` · `https://t.me/durov` · `https://t.me/s/durov`

### Typical uses

Crypto and market signal monitoring · brand and competitor watching · OSINT and research ·
news gathering · building a searchable archive of a channel · tracking announcements from
projects that publish on Telegram first.

### Honest limitations

- **Public channels only.** Private channels, groups and supergroups are not exposed by
  Telegram's web preview and cannot be read by any scraper — a missing or private channel is
  reported with a clear error instead of an empty result.
- View counts are what Telegram displays, rounded by Telegram itself.
- Comment threads are not part of the public preview.

# Actor input Schema

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

Channel names, @handles or t.me links. Only PUBLIC channels can be read — private channels and groups are not exposed by Telegram.

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

Paging walks backwards through history until this many posts or the channel start.

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

Case-insensitive match on post text.

## `excludeKeywords` (type: `array`):

Drop posts containing any of these words.

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

Keep only posts with at least this many views. Useful for finding what actually landed.

## `onlyWithMedia` (type: `boolean`):

Keep only posts containing a photo, video or document.

## `onlyWithLinks` (type: `boolean`):

Keep only posts containing at least one outbound link.

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

ISO date, e.g. 2026-01-01. Older posts are dropped.

## `concurrency` (type: `integer`):

How many channels to fetch in parallel.

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

Optional Apify proxy configuration.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "@telegram"
  ],
  "maxPostsPerChannel": 100,
  "onlyWithMedia": false,
  "onlyWithLinks": false,
  "concurrency": 3
}
```

# Actor output Schema

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

No description

## `downloadCsv` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `count` (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("that_red_bird/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",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("that_red_bird/telegram-channel-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 that_red_bird/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=that_red_bird/telegram-channel-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oeg6uC20xU7Tztmbe/builds/YMsLcKON14LSGgqZl/openapi.json
