# Telegram Public Channel Scraper · Posts & Reactions ($0.35/1k) (`tokenkite/telegram-channel-intel`) Actor

Extract posts, views, reactions, links, hashtags, and forwards from up to 100 public Telegram channels without login or bot token. $0 start fee, $0.35/1k messages (14,285 free with $5 credit).

- **URL**: https://apify.com/tokenkite/telegram-channel-intel.md
- **Developed by:** [TokenKite Labs](https://apify.com/tokenkite) (community)
- **Categories:** Social media, News, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.24 / 1,000 telegram messages

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/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 does Telegram Public Channel Scraper do?

Enter a public Telegram channel such as `@telegram` and get one dataset row per post. Each row contains the message text, a link back to the original, and the view and reaction counts shown on the public preview. A photo album counts as one row when Telegram displays it under one message ID.

The scraper reads the same history you can open at [t.me/s/telegram](https://t.me/s/telegram) without signing in. It accepts up to 100 channels in a run. Results follow your input order, with the newest message first within each channel. No phone number, bot token, or Telegram session is needed.

### Why scrape Telegram channels?

Suppose you maintain a changelog from several publishers' announcement channels. A keyword search in a spreadsheet can find the posts about a rollout, but you still need the original announcement to check what changed. The `message_url` column takes an editor directly to the source. For a reading list, require a link in the message body and use the separate `links` array to collect the destinations.

Audience researchers can revisit the same posts to compare engagement over time. Store the run date alongside each row: a view count describes what the preview showed when you collected it. The publication timestamp stays with the post even when the author edits its text.

### What data can Telegram Public Channel Scraper extract?

Channel metadata repeats on each row so a single exported message has enough context to identify its publisher.

- `post_ref` combines the lowercase username and message ID, for example `telegram/102`. A numeric `message_id` alone is unique only within its channel.
- `channel_username` is the handle without the leading `@`. `channel_title` is the display name, and `channel_verified` records whether the preview shows a verification badge.
- `channel_subscribers` and `views` are integers when the relevant counter is visible, otherwise `null`. Telegram rounds some counters: a displayed `1.42M` becomes `1420000`, with no extra precision implied.
- `message_url` opens the original post. `published_at` preserves its ISO timestamp. `text` contains the visible body or caption and can be `null` for a media-only post.
- `reactions_count` adds the displayed counts across reaction types. It is zero when no counts are shown.
- `has_media` indicates whether the post contains a recognized media type. `media_types` lists distinct types in alphabetical order: photo, video, document, voice, sticker, poll or link preview. The export lists media labels, not file downloads.
- `links` lists distinct public HTTP or HTTPS destinations from the message body. Telegram hashtag searches are excluded. `hashtags` contains the lowercase tags, including the leading `#`.
- `forwarded_from` is the displayed forwarding source, when present. `reply_to_message_id` identifies the original post for a reply within the same channel. `is_edited` reflects the edit marker on the preview.

### How to scrape public Telegram channels

1. Open the Input tab and enter channel handles or channel URLs, one per line. The form starts with `telegram`.
2. Set the number of recent messages to consider per channel. For a quick first run, use five and leave the filters empty.
3. Set a total for the whole run and click Start. Open the dataset to inspect the messages and follow a source link to compare a row with the preview.
4. Export CSV for a spreadsheet or JSON to keep the link and media lists as arrays. Save the input as a task if you want to repeat the same selection.

### How much will it cost?

The start fee is $0. Billing uses the number of validated messages written to the dataset. There are no media surcharges. A video with a caption and five links costs the same as a plain text post.

| Apify plan | Price per 1,000 delivered messages |
| :-- | --: |
| Free | $0.35 |
| Bronze | $0.31 |
| Silver | $0.28 |
| Gold or higher | $0.24 |

For example, 40 delivered messages cost $0.014 on the Free plan. A $5 Apify free credit covers 14,285 messages at that rate if you use the full credit here. A run that finds no matching messages costs $0. If the remaining budget cannot cover one message, the Actor stops before requesting any channels.

### Input

Use `channels` for a list or `channel` for a single saved target. A nonempty list takes precedence. Handles, `https://t.me/durov` and `https://telegram.me/s/durov` are accepted. Pasting a channel preview URL with a `before` query selects that channel; collection starts at its latest public page.

For a digest of announcements with links, this input considers the most recent 150 messages per channel on or after December 1. It delivers up to 30 matching posts in total:

```json
{
  "channels": ["telegram", "durov"],
  "keywords": ["update", "release notes"],
  "since_date": "2026-12-01",
  "min_views": 10000,
  "only_with_links": true,
  "max_messages_per_channel": 150,
  "max_messages": 30
}
```

`keywords` matches any supplied substring in the body, hashtags or forwarded source, ignoring case. The date, view and link conditions must all hold. With an empty keyword list, a blank date, `min_views` set to zero and `only_with_links` set to false, posts need no text or counters to qualify.

For a sample of the latest five posts, including photos without captions:

```json
{"channel": "durov", "max_messages_per_channel": 5, "max_messages": 5}
```

Both limits start at 40 when omitted. `max_messages_per_channel` accepts 1 to 5,000 and controls the sample inspected for each channel. `max_messages` accepts 1 to 10,000 and limits delivery across the run.

### Output

The dataset overview shows timing and engagement beside the body. Open an individual row for the full 18 fields. Keep `null` values when importing: an absent view counter is different from a reported count of zero. Use `post_ref` to update existing records in your own database across scheduled runs. If you keep historical snapshots instead, include the run ID in your key.

#### Example output record

```json
{
  "post_ref": "telegram/460",
  "channel_username": "telegram",
  "channel_title": "Telegram News",
  "channel_subscribers": 9010000,
  "channel_verified": true,
  "message_id": 460,
  "message_url": "https://t.me/telegram/460",
  "published_at": "2026-08-26T19:12:34+00:00",
  "text": "For all the info from today's update and a look back at 13 years of Telegram features, check out our blog: https://telegram.org/blog/welcome-messages-buttons-TG-13",
  "views": 2980000,
  "reactions_count": 0,
  "has_media": true,
  "media_types": ["link_preview"],
  "links": ["https://telegram.org/blog/welcome-messages-buttons-TG-13"],
  "hashtags": [],
  "forwarded_from": null,
  "reply_to_message_id": null,
  "is_edited": false
}
```

The `publication` output opens the run's `PUBLICATION` receipt. A settled receipt includes the batch digest and confirmed item counts. If the dataset write went through but its acknowledgement was lost, the receipt can remain pending. Restarting that run leaves the pending write for reconciliation without sending the messages a second time.

### Tips for faster runs and lower costs

Put priority channels first. With ten channels and a total of 40, the first channel could fill the whole dataset. Set the per-channel cap to four for a sample of up to four posts from each. If a narrow keyword filter returns too few rows, increase the per-channel sample before increasing the delivery limit.

Use `since_date` for a daily or weekly digest. It compares the calendar date in each publication timestamp and includes posts from the date you specify. Collection stops once a whole page predates the cutoff. Repeating a handle in another URL format does not fetch that channel twice in one run.

### FAQ and legal notice

#### Why is a channel missing?

Open its public `/s/` preview in a signed-out browser. A profile landing page or a channel without public messages contributes no rows. Private invite links do not identify a public channel history. If a previously working preview changes structure, the Actor fails the batch before writing its rows.

#### Why are some links missing?

The scraper takes links from the post body. It omits signed Telegram media addresses and links with redacted query credentials. Use the permalink to view the original media on Telegram.

Public availability does not grant republication rights. Check the publisher's terms before distributing message text or media, and retain the source permalink when quoting a post.

# Actor input Schema

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

Enter one public channel username, @handle or Telegram channel URL per line.

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

Match any word or phrase in message text, hashtags or the forwarded source.

## `since_date` (type: `string`):

Inclusive publication date in YYYY-MM-DD format. Leave blank for any date.

## `min_views` (type: `integer`):

Keep messages with at least this many reported views; zero disables the filter.

## `only_with_links` (type: `boolean`):

Require at least one exportable HTTP or HTTPS link in the message body.

## `max_messages_per_channel` (type: `integer`):

Maximum recent messages to consider per channel before keyword, view and link filters.

## `max_messages` (type: `integer`):

Maximum matching messages to deliver across all channels.

## `channel` (type: `string`):

Use this single public channel when the channel list is empty.

## Actor input object example

```json
{
  "channels": [
    "telegram"
  ],
  "keywords": [],
  "since_date": "",
  "min_views": 0,
  "only_with_links": false,
  "max_messages_per_channel": 40,
  "max_messages": 40
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per matching public channel post.

## `publication` (type: `string`):

Batch digest and confirmed delivery and charge counts.

# 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"
    ],
    "max_messages_per_channel": 40,
    "max_messages": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("tokenkite/telegram-channel-intel").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"],
    "max_messages_per_channel": 40,
    "max_messages": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("tokenkite/telegram-channel-intel").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"
  ],
  "max_messages_per_channel": 40,
  "max_messages": 40
}' |
apify call tokenkite/telegram-channel-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tokenkite/telegram-channel-intel"
        }
    }
}
```

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/HvO5GZEx24jpfS6sb/builds/2Lpax0soWZsJPnkla/openapi.json
