# Telegram Channel Scraper: Posts, Views, Reactions & Channels (`tacps126/telegram-scraper`) Actor

Posts from public Telegram channels with text, date, views, reactions, photos, links, forwards and link previews; channel info with subscribers; keyword search inside channels; and channels found by topic. Date, views and keyword filters plus only-new monitoring. No login.

- **URL**: https://apify.com/tacps126/telegram-scraper.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.48 / 1,000 results

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/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 & Channels

Posts from **public Telegram channels** with text, date, **views**, **reactions**, photos, video thumbnails, links, hashtags, mentions, forwards and link previews. Add **channel info** (title, description, subscribers, photos, videos, links, verified), **search inside channels** for words, or give a topic and get the **public channels about it**. No login, no phone number.

**Built for** crypto and market researchers, social listening and brand monitoring teams, journalists and OSINT analysts, marketers, and AI agents.

### What you get

| Field | Meaning |
|---|---|
| `channel`, `postId`, `url`, `date`, `text` | The post |
| `views`, `reactions`, `reactionsTotal` | Reach and engagement |
| `photos`, `hasVideo`, `videoThumbnail`, `documents`, `poll`, `linkPreview` | What is attached |
| `links`, `hashtags`, `mentions` | What it points to |
| `isForwarded`, `forwardedFrom`, `forwardedFromUrl`, `replyToUrl`, `isEdited`, `author` | Context |
| Channel rows: `username`, `title`, `description`, `kind`, `subscribers`, `members`, `photos`, `videos`, `links`, `verified`, `avatar` | The channel |
| `type`, `source`, `scrapedAt` | Row kind (post or channel) and which channel, search or topic found it |

### Why this Actor

- **Three ways in:** a list of channels, words searched inside those channels, or a topic that finds the channels for you.
- **Views and reactions on every post**, parsed to plain numbers (5.89M becomes 5890000).
- **Filters:** last N days or a date range, minimum views, minimum subscribers, words to leave out.
- **Monitoring built in:** turn on *Only new posts* and schedule it; each run returns only posts it has not delivered before.
- **For AI agents.** Callable as an MCP tool.

### How to use it

The last week of posts from two channels:

```json
{ "channels": ["durov", "telegram"], "postedWithinDays": 7 }
```

Posts mentioning a word in a set of channels:

```json
{ "channels": ["cointelegraph", "wublockchainenglish"], "searchTerms": ["ETF"], "maxPostsPerChannel": 100 }
```

Find channels about a topic, with their latest posts:

```json
{ "searchTerms": ["web scraping"], "maxChannelsPerSearch": 30, "maxPostsPerChannel": 10, "minSubscribers": 500 }
```

### Pricing

**$0.60 per 1,000 results** (posts and channel rows alike), plus a small start fee per run. On the Apify free plan a run returns up to 100 results.

### FAQ

**What can I scrape from Telegram?** Posts from public channels with text, date, views, reactions, media, links, hashtags and forwards, plus channel info such as title, description and subscribers.

**Can it find channels for me?** Yes. Give a topic and it finds channels by name and description, with their latest posts. You can also search words inside a list of channels.

**Does it read groups, private channels or comments?** No. Only public channels with a public post preview; groups, people and bots return their info row only, and comments under posts are not included.

**Can I monitor channels for new posts?** Yes. Turn on *Only new posts* and schedule it.

**How much does it cost?** $0.60 per 1,000 results (posts and channel rows alike) plus a small start fee per run.

### Good to know

- Topic search finds channels by their name and description; well-known topics work best, and a few listed channels may no longer exist (those are skipped).
- Only public channels with a public post preview can be read. Groups, people and bots return their info row only; private invite links can't be read.
- Comments under posts are not included.
- Questions: **tacps126@gmail.com**.

# Actor input Schema

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

Public channel names, @names or t.me links. Private invite links (t.me/+...) can't be read.

## `searchTerms` (type: `array`):

With channels: only posts containing these words. Without channels: find public channels about these words, then read them.

## `maxChannelsPerSearch` (type: `integer`):

When finding channels by topic: how many channels to read per term.

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

Newest first (0 = channel info only).

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

One row per channel: title, description, subscribers, photos, videos, links, verified.

## `postedWithinDays` (type: `integer`):

Only posts from this window.

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

Only posts from this day on (YYYY-MM-DD).

## `dateTo` (type: `string`):

Only posts up to and including this day.

## `minViews` (type: `integer`):

Leave out posts with fewer views.

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

Leave out posts containing any of these words.

## `minSubscribers` (type: `integer`):

Skip channels with fewer subscribers.

## `maxItems` (type: `integer`):

Most records returned per run (posts and channel rows together).

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

Spreads requests over several addresses for big runs.

## `onlyNew` (type: `boolean`):

Schedule the Actor and each run returns only posts earlier runs did not deliver: a channel or keyword monitor.

## `monitorName` (type: `string`):

Optional name for the "only new" history, so several monitors can run side by side.

## `tenantId` (type: `string`):

Optional label used to keep separate histories for different clients or teams.

## `debug` (type: `boolean`):

Save extra diagnostics with the run (for support requests).

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxChannelsPerSearch": 20,
  "maxPostsPerChannel": 50,
  "includeChannelInfo": true,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "onlyNew": false,
  "debug": false
}
```

# Actor output Schema

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

The produced items (default dataset items).

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

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

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

```

## MCP server setup

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