# Telegram Channel Scraper: Posts, Search & New Posts Monitor (`picdev/telegram-channel-scraper-posts-monitor`) Actor

Scrape public Telegram channels without login or API keys: posts, views, reactions, photos, videos, links and channel stats. Search posts by keyword, filter by date, or run it as a monitor that returns only new posts since the last run.

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

## Pricing

from $1.50 / 1,000 posts

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: Posts, Keyword Search & New Posts Monitor

Scrape public Telegram channels without a Telegram account, phone number, API keys or proxies. Get posts with views, reactions, photos, videos, links and channel stats in clean JSON. Search a channel's whole history by keyword, filter by date, or schedule the Actor as a **Telegram channel monitor** that returns only the posts published since the last run.

### What can you do with it?

- **Telegram channel monitoring**: follow news, competitors, crypto and trading channels and get only new posts on every scheduled run.
- **Keyword search in Telegram channels**: find every post in a channel that mentions a brand, token, person or product.
- **Telegram analytics**: track views, reactions and posting frequency per channel, compare channels by engagement.
- **Content and media collection**: export Telegram posts with photo and video URLs to JSON, CSV or Excel.
- **AI agents and RAG**: feed fresh Telegram messages to an LLM through the API or the Apify MCP server.

### Telegram data you get

| Field | Example |
|---|---|
| `channel`, `channelTitle`, `channelSubscribers`, `channelVerified` | `durov`, `Pavel Durov`, `9870000`, `true` |
| `postId`, `url`, `date` | `573`, `https://t.me/durov/573`, ISO 8601 UTC |
| `text`, `textHtml` | post text (HTML with formatting is optional) |
| `views` | `2100000` |
| `reactions[]`, `reactionsTotal` | emoji and count for each reaction, total |
| `photos[]`, `videos[]`, `documents[]` | direct media URLs, video duration and thumbnail |
| `linkPreview`, `links[]` | preview card and all links in the post |
| `hashtags[]`, `mentions[]` | parsed from the text |
| `forwardedFrom`, `replyToUrl`, `author`, `edited` | forward source, reply target, signature |
| `poll` | question and options with percentages |
| `mediaType` | `text`, `photo`, `video`, `document` or `poll` |

### Input examples

Latest 200 posts from two channels:

```json
{ "channels": ["durov", "https://t.me/telegram"], "maxPostsPerChannel": 200 }
```

Keyword search across the full history of a channel:

```json
{ "channels": ["durov"], "keywords": ["privacy", "TON"], "maxPostsPerChannel": 500 }
```

Telegram monitor: only new posts since the previous run (add a schedule and you have a feed):

```json
{
  "channels": ["bbcrussian", "telegram", "durov"],
  "onlyNewPosts": true,
  "monitorName": "news"
}
```

Posts from the last 7 days:

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

### Pricing

**$1.50 per 1,000 posts** saved to your dataset, plus a $0.00005 Actor start fee. Platform usage is included. Channels that are not found cost nothing. Set a maximum charge per run and the Actor stops as soon as the limit is reached.

### FAQ

**Do I need a Telegram account or API key?** No. The Actor reads the public web preview that Telegram itself publishes for public channels.

**Which channels work?** Public channels with a username. Private channels, invite-only chats and most groups have no public preview and are reported as not found. You are not charged for them.

**How does the new-posts monitor work?** With `onlyNewPosts` the Actor stores the ID of the last post it returned for each channel in a key-value store in your account and skips everything older on the next run. Use `monitorName` to keep several independent monitors.

**How far back can it go?** As far as the channel's history: use `maxPostsPerChannel` to control depth, or `keywords` to search the whole history without downloading it.

**Can I get comments or members?** Not yet. Comments are planned; member lists are not public and will not be added.

**Is it legal?** The Actor only collects posts that channel owners published publicly. It does not log in and does not access private chats or personal data of subscribers.

# Actor input Schema

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

Public Telegram channels: usernames (`durov`, `@durov`) or links (`https://t.me/durov`).

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

Newest posts first.

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

Return only posts that match these words or phrases. Uses Telegram's own in-channel search, so it reaches the whole channel history.

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

Return only posts from the last N days.

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

Return only posts published on or after this date (UTC).

## `onlyNewPosts` (type: `boolean`):

Monitor mode. The Actor remembers the last post it returned for each channel and returns only newer ones on the next run. Schedule it to get a feed of new posts.

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

Keeps separate memory for separate monitors, e.g. `crypto-news` and `competitors`. Only used with new-posts mode.

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

Channel title, subscriber count and verified flag.

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

Add the original post HTML with formatting and links.

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

Stop after this many posts across all channels. You pay per post saved.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "telegram"
  ],
  "maxPostsPerChannel": 100,
  "onlyNewPosts": false,
  "monitorName": "default",
  "includeChannelInfo": true,
  "includeHtml": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `posts` (type: `string`):

One record per Telegram post.

## `summary` (type: `string`):

Per-channel counts and channels that were not found.

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

// Run the Actor and wait for it to finish
const run = await client.actor("picdev/telegram-channel-scraper-posts-monitor").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",
    ] }

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

```

## MCP server setup

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

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/ciLb7Q4DZmFSgzUxW/builds/hB343o8x9XghHLazz/openapi.json
