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

Scrape posts from any public Telegram channel without login: text, date, views, reactions, photos, videos, links, hashtags and channel subscribers. Filter by date and keywords. Pay only per post.

- **URL**: https://apify.com/cancap/telegram-channel-scraper.md
- **Developed by:** [CANCAP](https://apify.com/cancap) (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.80 / 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 - Posts, Views, Reactions & Media

Scrape posts from **any public Telegram channel**, with no login, no phone number and no API key. For each post you get the **text, date, views, reactions, photos, videos, links, hashtags and forwards**, plus the channel's **subscriber count**.

### What you can do

- **Crypto and trading signals**: collect every post from signal and news channels into a spreadsheet or bot.
- **Brand and competitor monitoring**: track what channels say about you, with views and reactions.
- **Market and media research**: compare channels by subscribers, post frequency and engagement.
- **News and OSINT**: archive public channels and search them by keyword.
- **AI and LLM pipelines**: feed fresh channel content to your agents.

### How to use

1. Add one or more **channels**: `telegram`, `@durov` or `https://t.me/durov`.
2. Set **Max posts per channel** (newest first).
3. Optional: **Only posts after this date** and **Keywords**.
4. Click **Start** and download as Excel, CSV, JSON or HTML, or use the API.

Schedule it daily with **Only posts after this date** to get a feed of new posts.

### Output example

```json
{
  "channel": "telegram",
  "postId": 401,
  "url": "https://t.me/telegram/401",
  "date": "2026-11-20T10:00:00+00:00",
  "text": "Big update! Read more #update",
  "views": 2100000,
  "isEdited": false,
  "forwardedFrom": null,
  "mediaType": "photo",
  "photos": ["https://cdn4.telesco.pe/file/abc.jpg"],
  "videos": [],
  "links": ["https://telegram.org/blog"],
  "hashtags": ["#update"],
  "reactions": [{ "emoji": "👍", "count": 12500 }],
  "channelTitle": "Telegram News",
  "channelSubscribers": 9870000,
  "channelVerified": true,
  "scrapedAt": "2026-11-20T11:00:00.000Z"
}
```

### Pricing

Pay only per post returned. No monthly fee. Set a **maximum cost per run** and the Actor stops cleanly at your limit.

### FAQ

**Which channels work?** Public channels that have the web preview enabled (most public channels do). Private channels, groups and personal accounts are not supported.

**How far back can it go?** As far as the channel's history goes; set Max posts per channel high enough.

**Do I need a Telegram account?** No.

**Is it legal?** The Actor reads only public posts that Telegram shows to anyone on the web. Respect the channels' rights when reusing content.

# Actor input Schema

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

Public channels: username, @username or link, e.g. "telegram", "@durov" or "https://t.me/durov". Private channels, groups and users are not supported.

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

Newest posts first. The Actor goes back in history until this limit or the date filter is reached.

## `postedAfter` (type: `string`):

Optional. Stop when posts are older than this date, e.g. 2026-11-01. Great for daily monitoring.

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

Optional. Only return posts whose text or hashtags contain any of these words.

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

Channel info is also saved as CHANNEL\_<NAME> in the run's key-value store.

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

Telegram is requested directly first and through Apify Proxy only if it blocks requests.

## Actor input object example

```json
{
  "channels": [
    "telegram"
  ],
  "maxPostsPerChannel": 20,
  "includeChannelInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per post with text, date, views, reactions and media.

## `allFields` (type: `string`):

No description

## `failedChannels` (type: `string`):

Channels that could not be read, with the reason.

# 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": [
        "telegram"
    ],
    "maxPostsPerChannel": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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