# Telegram Channel Scraper - Messages, Views & Media (No Login) (`tidy-scrape/telegram-channel-scraper`) Actor

Scrape posts from any public Telegram channel: text, date, views, reactions, links, photos, videos and channel stats. No Telegram account, phone number or API key needed.

- **URL**: https://apify.com/tidy-scrape/telegram-channel-scraper.md
- **Developed by:** [Tidy Scrape](https://apify.com/tidy-scrape) (community)
- **Categories:** Social media, News, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 messages

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

Extract messages from any **public Telegram channel**: text, date, view count, reactions, links, hashtags, photos, videos, polls and forwarded sources, plus the channel's subscriber count and description.

**No Telegram account, no phone number, no API key.** The Actor reads the public web preview of each channel. **$2 per 1,000 messages.**

### What you can do with it

- **Monitor channels** in news, crypto, finance, politics or your own industry.
- **Track engagement**: views and reactions per post, over time.
- **Archive a channel** or feed its posts to your own tools.
- **Build datasets** for AI: summarisation, classification, trend detection.
- **Alerts**: schedule the Actor and get only the newest posts.

### Features

- Several channels in one run: username, `@username` or `https://t.me/...` link
- Newest messages first, back to the beginning of the channel if you want
- Stop at a date (`Only messages newer than`)
- **Search inside a channel** by keyword
- Per message: text, date, views, edited flag, author signature, forwarded-from, reply-to, media type, photo and video URLs, documents, polls, reactions, links, hashtags, mentions, link preview
- Channel details saved once per run: title, description, subscribers, counts of photos, videos and links, verified badge

### Input

| Field | What it does |
|---|---|
| **Channels** | Public channels to scrape. |
| **Max messages per channel** | Newest first. You only pay for messages you receive. |
| **Only messages newer than** | Optional date (YYYY-MM-DD). |
| **Search inside the channel** | Optional keyword. |
| **Skip service messages** | Skips notices with no text and no media. |

Example input:

```json
{
    "channels": ["telegram", "https://t.me/durov"],
    "maxMessagesPerChannel": 500,
    "dateFrom": "2026-01-01"
}
```

### Output

One item per message:

```json
{
    "channel": "telegram",
    "messageId": 460,
    "url": "https://t.me/telegram/460",
    "date": "2026-08-26T19:12:34.000Z",
    "text": "For all the info from today's update, check out our blog: ...",
    "views": 2570000,
    "author": null,
    "channelTitle": "Telegram News",
    "channelSubscribers": 9110000,
    "isEdited": false,
    "isForwarded": false,
    "forwardedFrom": null,
    "replyToMessageId": null,
    "mediaType": "video",
    "photos": [],
    "videos": [{ "url": "https://cdn1.telesco.pe/file/....mp4", "thumbnailUrl": "https://...", "duration": "0:42" }],
    "document": null,
    "poll": null,
    "reactions": [{ "type": "emoji", "emoji": "👍", "customEmojiId": null, "count": 12400 }],
    "links": ["https://telegram.org/blog/..."],
    "hashtags": [],
    "mentions": [],
    "linkPreview": { "url": "https://telegram.org/blog/...", "siteName": "Telegram", "title": "...", "description": "...", "imageUrl": "https://..." },
    "scrapedAt": "2026-11-16T03:40:12.000Z"
}
```

Channel details are stored in the run's key-value store under the key `CHANNELS`.

### Pricing

Pay per result: **$0.002 per message** ($2 per 1,000). No monthly fee. Set a maximum cost per run and the Actor stops when it is reached.

### Limits

- **Public channels only.** Private channels, invite links (`t.me/+...`), groups and personal accounts have no public preview and cannot be scraped.
- Some channels turn off the web preview or restrict content (for example adult content): the Actor reports them as "no public preview".
- Comments under posts and the list of subscribers are not available without logging in, so they are not returned.
- Media URLs point to Telegram's servers and expire after some time. Download the files soon after the run if you need them.

### FAQ

**Do I need a Telegram account?**
No. Nothing is logged in and no account can be banned.

**Can I get all messages of a channel?**
Yes. Set a high **Max messages per channel**. The Actor pages back to the first message.

**Is it legal?**
The Actor only reads content that channel owners publish publicly. You are responsible for how you use it, including personal data and copyright rules that apply to you.

### Support

Found a bug or need a field? Open an issue in the **Issues** tab. Requests are usually answered within a day.

# Actor input Schema

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

Public Telegram channels to scrape. Use the username (telegram), @username, or the full link (https://t.me/telegram).

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

The newest messages are collected first. You only pay for messages you receive.

## `dateFrom` (type: `string`):

Optional. Stop when messages get older than this date (YYYY-MM-DD).

## `searchQuery` (type: `string`):

Optional. Only return messages of the channel that match this keyword.

## `skipEmptyMessages` (type: `boolean`):

Skip messages that have no text and no media (pinned-message notices, channel photo changes).

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

Proxy servers used to reach Telegram. The default datacenter proxy is enough.

## Actor input object example

```json
{
  "channels": [
    "telegram"
  ],
  "maxMessagesPerChannel": 100,
  "skipEmptyMessages": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Telegram channel messages, one item per message.

## `channels` (type: `string`):

Title, description, subscriber count and status of each channel.

# 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("tidy-scrape/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("tidy-scrape/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 tidy-scrape/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

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