# Telegram Channel Scraper - Messages, Views & Media (`ivory-nexus/telegram-channel-scraper`) Actor

Scrape public Telegram channels without an account or API key: message text, date, views, reactions, photos, videos, links, hashtags, forwards and channel info. Keyword and date filters. Pay per message.

- **URL**: https://apify.com/ivory-nexus/telegram-channel-scraper.md
- **Developed by:** [Yazeed Zoabi](https://apify.com/ivory-nexus) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 message extracteds

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 – Messages, Views & Media

Scrape **public Telegram channels** – no Telegram account, no phone number, no API key. Get every message with its **text, date, views, reactions, photos, videos, links, hashtags and forward source**, plus channel info like **subscriber count**.

**Pay per message delivered.** Private or invalid channels are free.

### What can it do?

- 📢 **Any public channel** – enter `durov`, `@telegram` or `https://t.me/channelname`.
- 📝 **Full message data** – text, date, views, reactions (by emoji), edited flag, author signature.
- 🖼️ **Media** – photo URLs, video URLs and thumbnails, documents, polls and link previews.
- 🔗 **Extracted entities** – links, hashtags, @mentions and emails found in each message.
- ↪️ **Forwards and replies** – where a message was forwarded from, and what it replies to.
- 📊 **Channel info** – title, description, subscribers, verified badge, photo.
- 🎯 **Filters** – keywords, only messages from the last X days.
- 🔁 **Only new messages** – schedule it and receive only posts published since the last run.
- 🤖 **Automation-ready** – n8n, Make, Zapier, the Apify API and AI agents via MCP.

### Use cases

- **News and media monitoring** – follow news, politics or industry channels in real time.
- **Crypto and finance signals** – collect announcements and signals from crypto channels.
- **Brand monitoring** – find mentions of your brand or product across channels.
- **Market research and trend analysis** – what topics are growing, which posts get the most views.
- **AI summaries and alerts** – send new posts to ChatGPT or Claude and get a daily digest.
- **Lead generation** – collect links, emails and contacts that channels publish.

### How to use it

1. Add channel names or `t.me` links.
2. Set **Max messages per channel** and optional filters.
3. Click **Start** and export to CSV, Excel, JSON or Google Sheets – or use the API.

### Input example

```json
{
  "channels": ["telegram", "https://t.me/durov"],
  "maxMessagesPerChannel": 500,
  "onlyMessagesNewerThanDays": 30,
  "keywords": ["update", "launch"]
}
```

### Output example

```json
{
  "status": "success",
  "channel": "telegram",
  "channelTitle": "Telegram News",
  "channelSubscribers": 10500000,
  "channelVerified": true,
  "messageId": 345,
  "url": "https://t.me/telegram/345",
  "date": "2026-11-20T10:00:00+00:00",
  "text": "New update: ...",
  "views": 2530000,
  "reactions": [{ "emoji": "👍", "count": 15000 }, { "emoji": "🔥", "count": 3200 }],
  "totalReactions": 18200,
  "mediaType": "photo",
  "photos": ["https://cdn4.telesco.pe/file/..."],
  "links": ["https://telegram.org/blog/..."],
  "hashtags": ["#update"],
  "mentions": [],
  "isForwarded": false,
  "isEdited": false
}
```

### How much does it cost?

A small fixed price **per message delivered** – see the pricing on this page. Keyword and date filters are applied before charging, so you only pay for the messages you keep.

### Limitations

- Only **public channels** with a web preview (`t.me/s/<channel>`). Private channels, groups and user chats are not accessible – and are not charged.
- View and reaction counts are shown rounded by Telegram for large numbers (e.g. 25.3K → 25300).

### Use with n8n, Make, Zapier and AI agents

- **n8n / Make / Zapier** – use the Apify integration and choose this Actor; forward new posts to Slack, Discord, email or Google Sheets.
- **API:**

```bash
curl -X POST "https://api.apify.com/v2/acts/ivory-nexus~telegram-channel-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"channels": ["telegram"], "maxMessagesPerChannel": 50}'
```

- **AI agents (Claude, Cursor, ChatGPT)** – via the Apify MCP server: `https://mcp.apify.com?tools=ivory-nexus/telegram-channel-scraper`

### More tools by Ivory Nexus

- 💬 [YouTube Comments Scraper](https://apify.com/ivory-nexus/youtube-comments-extractor)
- 📄 [Website to Markdown for AI](https://apify.com/ivory-nexus/website-to-markdown)
- 📇 [Website Contact Finder](https://apify.com/ivory-nexus/website-contact-finder)

### FAQ

**Do I need a Telegram account?** No. The Actor reads Telegram's public web preview.

**Why did a channel fail?** It is private, is a group or a user/bot rather than a channel, or its owner disabled the public preview. Failed channels are free.

**Is it legal?** The Actor reads only publicly available channel posts. Make sure your use of the content complies with copyright and privacy laws that apply to you.

**Something not working?** Open an issue in the Issues tab – I respond quickly.

# Actor input Schema

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

Public channel usernames (durov), @names or links (https://t.me/telegram). One per line.

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

Newest messages first. You only pay for messages delivered.

## `onlyMessagesNewerThanDays` (type: `integer`):

Optional. Stop at messages older than this many days.

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

Optional. Keep only messages containing one of these words (not case sensitive). Only kept messages are charged.

## `onlyNewMessages` (type: `boolean`):

Return only messages posted since your previous run - ideal for monitoring channels on a schedule.

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

Channel title, description, subscriber count, verified badge and photo.

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

Standard Apify proxy is recommended.

## Actor input object example

```json
{
  "channels": [
    "telegram",
    "durov"
  ],
  "maxMessagesPerChannel": 100,
  "onlyNewMessages": false,
  "includeChannelInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `messages` (type: `string`):

All messages with full fields.

## `messagesOverview` (type: `string`):

Compact table: channel, date, text, views, reactions, media type, forward source, link.

# 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",
        "durov"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ivory-nexus/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",
        "durov",
    ] }

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

```

## MCP server setup

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