# Telegram Channel Scraper & Monitor: Link Report & Alerts (`brainfoods_studio/telegram-channel-scraper`) Actor

Read public Telegram channels and get one report across all of them: every site, email and handle they post, and which channels mention which. The monitor remembers where it stopped, delivers only new messages and alerts your webhook. Scan-only reports cost $0.30 per 1,000 messages.

- **URL**: https://apify.com/brainfoods_studio/telegram-channel-scraper.md
- **Developed by:** [Brainfoods Studio](https://apify.com/brainfoods_studio) (community)
- **Categories:** Social media, News, Marketing
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.68 / 1,000 messages

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

> **One report across all your Telegram channels.** The leading channel scrapers give you rows. This actor also builds the report across channels: every site, email and Telegram handle they post, and which channels mention which. It remembers where it stopped, so a scheduled run delivers only new messages.

**Telegram Channel Scraper & Monitor** reads public Telegram channels through Telegram's public web preview (`t.me/s/<channel>`). Download the results as JSON, CSV or Excel.

**No login · No API key · $0.85 per 1,000 messages · Cross-channel link report · Independent tool, not affiliated with Telegram**

### What it does not do

Read this first.

- **Public channels with the preview switched on.** Private channels, groups and channels with the preview off are not read. A channel with the preview off is reported as `preview-off` and is free.
- **No search across Telegram.** You give the channels. You can search inside one channel.
- **Comments, phone numbers and an end date are not in this version.** Polls, documents and voice messages are reported as `other` media, without their content.
- **Forward sources are not shown.** Telegram's preview does not name the channel a post was forwarded from. A forwarded post is marked `isForwarded`, and the report's graph is built from mentions (a channel that links to or @-mentions another).
- **Counts are rounded by Telegram** (views and reactions, for example "4.78M"). Subscriber counts are exact.
- **Must not be used for AI training.** Telegram's content licensing terms prohibit using its data to train AI or machine-learning models. Do not use this actor's output for that.
- If you need comments or typed polls today, automation-lab/telegram-scraper has them.

### What you get

- **The links and contacts report.** One row per distinct site, domain, email, Telegram handle or social profile, with how many channels post it, how many times, when it was first and last seen, and example message links.
- **Mention graph and related channels.** Which channels link to or mention which, and the channels your channels mention that you did not list. The graph is also saved as `MENTION_GRAPH.json` for D3 and Gephi.
- **The monitor.** A stored position per channel under one `monitorKey`. Each run delivers only new messages, and a webhook gets one alert. With `keywords` it is a keyword alert across channels.
- **The message row.** Text, links, emails, @mentions, hashtags, views, reactions, reply, link preview, photo and video details, and which of your keywords matched.

### Use cases

| You want to | What to set |
| --- | --- |
| Export the latest messages of a channel | `channels: ["telegram"]` |
| Search inside one channel | `channels: ["durov"]`, `search: "ton"` |
| Subscriber counts for a list of channels | `includeChannelInfo` on, `maxMessagesPerChannel: 0` |
| Every link shared in a channel | `intelligence` on |
| Business emails posted in channels | `channels: ["vcnews", "habr_com"]`, `intelligence` on, `deliverMessages` off |
| Which channels mention which | `channels: ["meduzalive", "radiosvoboda", "nexta_tv"]`, `intelligence` on, `deliverMessages` off |
| Messages from the last 7 days | `postedAfter: "7 days"` |
| Posts that mention a brand, across channels | `keywords: ["premium"]` |
| Posting frequency and average views | `includeChannelInfo` on, then read `postsPerDay` and `averageViews` in the Channels view |
| New messages every morning | `monitorKey`, optional `deliveryWebhookUrl`, on a daily schedule |

### Input

| Field | What it does | Default |
| --- | --- | --- |
| `channels` | 1 to 500: `@name`, `name`, `t.me/name`, `t.me/s/name` or a message link. Invite links give a free `private-invite` row | `["telegram"]` |
| `maxMessagesPerChannel` | 0 to 10,000 messages read, newest first. 0 is a details-only run and needs `includeChannelInfo` | 100 |
| `postedAfter` | A date (`2026-10-01`) or a span (`30 days`, `12 hours`, `2 weeks`) | none |
| `search` | Telegram's search inside each channel, up to 100 characters | none |
| `keywords` / `excludeKeywords` | Deliver a message only if its text contains (or does not contain) one of up to 50 words | none |
| `deliverMessages` | Off needs `intelligence`: messages are read for the report and not delivered | on |
| `includeChannelInfo` | Adds channel details: description, counters, exact subscribers | off |
| `intelligence` | Builds the cross-channel report | off |
| `includeHtml` | Adds the message's `textHtml` | off |
| `monitorKey` | Monitor mode: only new messages (a secret field) | none |
| `deliveryWebhookUrl` | HTTPS webhook for the monitor alert; needs `monitorKey` | none |
| `maxConcurrency` | 1 to 6 channels at once | 3 |
| `proxyConfiguration` | Apify datacenter proxy | on |

`intelligence` cannot be combined with `monitorKey`: a later run reads only the new messages, so run the report as its own run. A monitor also cannot use `deliverMessages` off or `maxMessagesPerChannel: 0`.

### Output

Every row has a `type` and `fetchedAt`. The dataset has five views: Messages, Channels, Links and contacts, Mention graph, Related channels.

| `type` | One row per | Main fields |
| --- | --- | --- |
| `message` | message | `channel`, `messageId`, `url`, `postedAt`, `text`, `views`, `reactions`, `isForwarded`, `replyTo`, `linkPreview`, `media`, `urls`, `telegramLinks`, `mentions`, `hashtags`, `emails`, `socials`, `matchedKeywords`, `isNew` (monitor only) |
| `channel` | input channel (free) | `input`, `status`, `messagesRead`, `messagesDelivered`, `newestMessageAt`, `oldestMessageAt`, `stoppedBy`, `postsPerDay`, `averageViews`; with details: `subscribers`, `description`, counters |
| `link` | distinct item (free) | `kind`, `value`, `channelCount`, `channels`, `mentions`, `firstSeenAt`, `lastSeenAt`, `exampleMessageUrls` |
| `edge` | channel pair (free) | `kind`, `source`, `target`, `count`, `shareOfTarget` |
| `node` | channel in an edge (free) | `handle`, `inInput`, `mentionedByChannels`, `mentionedCount`, `forwardsShare` |
| `summary` | run (free) | channels by status, messages read and delivered, `stoppedBy`, `reportPartial`, `charged` |

Sample message row (shortened):

```json
{ "type": "message", "channel": "telegram", "messageId": 460, "url": "https://t.me/telegram/460",
  "postedAt": "2026-08-15T13:29:20+00:00", "text": "...", "views": 4780000, "viewsText": "4.78M",
  "isForwarded": false, "urls": ["https://example.com"], "emails": [], "mentions": ["telegramtips"], "hashtags": [] }
```

Media URLs point at Telegram's servers and expire, so download any file you need promptly.

### How the report is built

- **A link** is any site, email, social profile or Telegram handle a message posts. Sites are also rolled up by domain. Emails carry `isFreemail`, so you can keep business addresses only.
- **A mention** is a Telegram link or an `@handle` in a message. A mention makes an `edge` from the mentioned channel to the channel that posted it.
- **Self-links are left out.** A channel linking to itself makes no edge, node or link row.
- **Related channels** are the `node` rows with `inInput: false`: channels your channels mention. This is not channel discovery, only what the channels you list point to.
- Invite links and Telegram's own service paths are delivered in the message but never reach the report.
- A channel that adds nothing to the report is not charged for it.

### Pricing

| Event | Free plan | Bronze | Silver | Gold and up |
| --- | --- | --- | --- | --- |
| Message delivered | $0.00085 | $0.00085 | $0.00075 | $0.00068 |
| Message read for the report (`deliverMessages` off) | $0.0003 | $0.0003 | $0.00025 | $0.0002 |
| Channel with details | $0.0017 | $0.0017 | $0.0015 | $0.00135 |
| Channel in the report (`intelligence`) | $0.03 | $0.025 | $0.02 | $0.02 |
| Monitor: channel checked, nothing new | $0.0003 | $0.0003 | $0.0003 | $0.0003 |
| Alert sent | $0.01 | $0.01 | $0.01 | $0.01 |
| Run start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

Worked examples at the Free and Bronze price:

| Run | Cost |
| --- | --- |
| 1,000 messages | **$0.85** |
| 50 channels, 100 messages each, with details: 5,000 x $0.00085 + 50 x $0.0017 | **$4.34** |
| 100-channel report, `deliverMessages` off, 500 messages each: 50,000 x $0.0003 + 100 x $0.03 | **$18.00** |
| Daily monitor of 20 channels, 5 of them with 3 new messages: 15 x $0.00085 + 15 x $0.0003 | **$0.017** a run, plus $0.01 if a webhook alert is sent |

- **Free rows:** channels that cannot be read (not found, preview off, private, blocked), link, edge, node and summary rows. A message that is filtered out is not charged.
- **The report fee** is charged for each input channel that added at least one link or edge row.
- **A monitor with `includeChannelInfo` pays the details price every run.** To watch for new messages only, leave details off.
- **Quiet channels.** The leading scraper charges $0.005 a run and nothing per quiet channel. A monitor here costs $0.0003 per quiet channel, so it is cheaper up to about 16 quiet channels a run, and dearer above that.
- **Never past your spending limit.** The actor stops, writes the report from what it read, and the run still succeeds.

### Use as an API / MCP tool

**MCP endpoint:** `https://brainfoods-studio--telegram-channel-scraper.apify.actor/mcp` (send `Authorization: Bearer <your Apify token>`). It speaks MCP 2026-07-28 and the earlier handshake versions, with one tool for this Actor. Apify's hosted MCP server (`mcp.apify.com`) can also call it for you.
This Actor is also a Server Actor: you can call it as a plain HTTP API and get rows back in the response, with no run to start and no dataset to read. It suits one answer for a few channels. Copy the server URL from the **Server** tab of the Actor page, and send your Apify token as a Bearer token.

```bash
## latest messages of one channel
curl "https://<copy from the Server tab>/messages?channel=durov&max=20"   -H "Authorization: Bearer $APIFY_TOKEN"

## the full input, with filters and channel details
curl -X POST "https://<copy from the Server tab>/run"   -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json"   -d '{"channels":["telegram","durov"],"maxMessagesPerChannel":20,"keywords":["update"],"includeChannelInfo":true}'
```

The response is JSON: `rows` (message, channel and summary rows, the same as a run), `charged` (units charged in this request), `partial` and `stoppedBy` (set when the request stopped early; the rows present are complete), and the run `summary`.

| Limit per request | Value |
| --- | --- |
| Channels | 1 to 3 |
| `maxMessagesPerChannel` | up to 60 (default 20) |
| Time | about 40 seconds, then the rows read so far are returned |
| Rows returned | up to 250 |
| Requests in parallel per container | 8 |

**What is charged.** The same events and prices as a run: a delivered message, and a channel row with details when `includeChannelInfo` is on. Rows that are not returned are not charged, and a request that goes past your spending limit stops with `partial: true`.

**What is refused.** `monitorKey`, `deliveryWebhookUrl` and `proxyConfiguration` give a `400` (the monitor, webhook alerts and your own proxy need a run), and so do `intelligence` (the cross-channel report) and `deliverMessages: false`. A request outside the limits above gives a `400` that says which one.

For MCP clients, the same endpoint is described by an OpenAPI schema, so Apify's MCP server can send requests to it with its `send-server-actor-request` tool.

Larger jobs: use the Input tab.

### Monitor mode

Give `monitorKey` a name. The initial run delivers the newest messages and stores the newest id for each channel. Later runs deliver only messages above it. If more are new than `maxMessagesPerChannel`, the newest are delivered and the channel row says `skippedNew`. A channel that fails part-way keeps what was delivered, so you are not charged for the same messages twice. With `deliveryWebhookUrl`, one alert lists up to 20 new messages.

### Personal data and terms

Messages can contain names and emails of private people. Use the contacts report on public business channels, and only with a lawful basis (for example under GDPR). Telegram's content licensing terms prohibit using its data to train AI or machine-learning models: do not use this actor's output for that. The actor reads what any visitor sees on the public preview, checks `robots.txt` on every run, goes slowly, and stops when Telegram limits requests. It does not log in and does not get around any block.

### FAQ

#### Do I need a Telegram account or API key?

No. Click **Try for free**, enter a channel and start.

#### Why are some messages empty?

Telegram renders some posts as "not supported". Their text is empty, and the row is still delivered.

#### What happens if Telegram limits requests?

The actor stops that channel, keeps the rows already delivered and says so in the channel and summary rows. Run it again later with a lower `maxConcurrency`.

#### Can I send results to Sheets, Slack or Make?

Yes, through Apify integrations, the API or MCP.

### More from Brainfoods Studio

- [Website Contacts Scraper](https://apify.com/brainfoods_studio/website-contacts-scraper): emails, phones and socials from the sites you find in the report.
- [App Store Reviews Scraper](https://apify.com/brainfoods_studio/app-store-reviews-scraper): reviews of any iOS app from every country.

### Support

Found a problem, or need a field we do not return yet? Open an issue in the **Issues** tab. Built and maintained by Brainfoods Studio. Independent tool, not affiliated with Telegram.

# Changelog

This Actor's version history is a separate document: https://apify.com/brainfoods_studio/telegram-channel-scraper/changelog.md

# Actor input Schema

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

Public Telegram channels to read, 1 to 500. Give @name, name, t.me/name, t.me/s/name or a link to one message. Duplicates are removed. Invite links (t.me/+...) and private channels cannot be read and give a free row.

## `maxMessagesPerChannel` (type: `integer`):

Messages read per channel, newest first. This counts messages read, not delivered, so a filter that matches nothing still stops at this number. 0 is a profile-only run: it needs Include channel details and cannot be combined with the report, monitor mode, search, keywords or a start date.

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

A date like 2026-10-01 (UTC midnight) or a span back from now like 30 days, 12 hours or 2 weeks. Reading stops at the first older message. Leave empty for no limit.

## `search` (type: `string`):

Telegram's own in-channel search, one phrase per run, up to 100 characters. Leave empty to read every message.

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

Up to 50. A message is delivered only if its text contains one of them (case ignored). Messages are still read and counted against the limit above.

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

Up to 50. A message that contains one of them is not delivered (case ignored).

## `deliverMessages` (type: `boolean`):

Switch off to read messages only for the report. Needs Build the cross-channel report, and cannot be combined with monitor mode.

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

Adds the charged channel details to each channel row: description, counters and the exact subscriber count.

## `intelligence` (type: `boolean`):

Builds one report across all channels: the sites, emails and Telegram handles they post, which channels mention which (links between channels), plus a cross-channel link and email report. Emails can belong to private people. Use it on public business channels, and only if you have a lawful reason to hold the contacts.

## `includeHtml` (type: `boolean`):

Adds the message text as HTML (textHtml) to each message row.

## `maxConcurrency` (type: `integer`):

Channels read in parallel, 1 to 6. If Telegram answers with a rate limit, the run slows down and then stops instead of pushing on.

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

Apify datacenter proxy is enough for the public preview pages. Residential proxies are not used.

## `monitorKey` (type: `string`):

Turns on monitor mode. The newest message id per channel is remembered under this name and later runs deliver only newer messages. The first run delivers the newest messages as a baseline. Cannot be combined with the cross-channel report, with Deliver message rows off, or with 0 messages per channel. Use one name per schedule.

## `deliveryWebhookUrl` (type: `string`):

Optional, needs the monitor name. A Slack incoming-webhook URL or any HTTPS endpoint. When a monitored run delivers new messages, it posts a short alert with a link to the results. Stored encrypted and hidden from logs, because a webhook URL works like a password.

## Actor input object example

```json
{
  "channels": [
    "telegram"
  ],
  "maxMessagesPerChannel": 100,
  "keywords": [],
  "excludeKeywords": [],
  "deliverMessages": true,
  "includeChannelInfo": false,
  "intelligence": false,
  "includeHtml": false,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All rows: messages, one channel row per input channel, the cross-channel link report (link rows), mention edges and related channels (edge and node rows), and one free summary row per run.

## `graph` (type: `string`):

Nodes and links of the channel graph, in the shape D3 and Gephi importers read. Written when intelligence is on.

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

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

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

```

## MCP server setup

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