# Telegram Channel Scraper: Posts, Views, New Posts Only (`clearfeed/telegram-channel-scraper`) Actor

Get posts from any public Telegram channel without an account or API key: text, views, date, photos, videos, links and forwards. Filter by keywords and date, or return only posts that are new since the last run to monitor channels on a schedule.

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

## Pricing

$1.00 / 1,000 post returneds

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, Views, New Posts Only

Get **posts from any public Telegram channel** without a Telegram account, phone number or API key. For each post you get the text, view count, date, photos, videos, links, link preview and forward source, plus the channel's title and subscriber count.

- **No login, no API key:** reads the channel's public web preview
- **Monitoring mode:** turn on *Only new posts since last run*, schedule the Actor, and receive only fresh posts each time
- **Filters:** keywords and posted within N days
- **Whole history or just the latest:** set a limit per channel, or leave it empty to walk back through the entire channel
- **Many channels per run**, processed in parallel

### What can you do with it?

- **News and market monitoring:** follow news, crypto, finance or industry channels and push new posts to Slack, a spreadsheet or your own app
- **Brand and keyword tracking:** get alerted when a channel mentions your brand, product or competitor
- **Research and OSINT:** collect channel archives for analysis
- **AI agents and RAG:** feed clean post text with dates and links into an LLM pipeline

### Input

| Field | Description |
|---|---|
| `channels` | Public channel usernames or links: `telegram`, `@durov`, `https://t.me/durov` |
| `maxPostsPerChannel` | Newest first. Default 100. Leave empty for the full history |
| `postedWithinDays` | Keep only posts from the last N days |
| `keywords` | Keep only posts whose text contains any of these words or phrases |
| `onlyNew` | Return only posts not returned by earlier runs with the same channels and keywords |
| `includeHtml` | Add the formatted post body as HTML |

```json
{
  "channels": ["telegram", "@durov"],
  "maxPostsPerChannel": 200,
  "keywords": ["update", "launch"],
  "onlyNew": true
}
```

### Output

One item per post:

```json
{
  "id": "telegram/439",
  "channel": "telegram",
  "channelTitle": "Telegram News",
  "subscribers": 9110000,
  "postId": 439,
  "url": "https://t.me/telegram/439",
  "date": "2026-04-09T07:02:48.000Z",
  "text": "For all the features from this update ...",
  "views": 3070000,
  "edited": true,
  "authorSignature": null,
  "photos": [],
  "videos": [],
  "hasVideo": false,
  "hasDocument": false,
  "hasPoll": false,
  "links": ["https://telegram.org/blog/ai-editor-mighty-polls-and-more"],
  "linkPreview": { "url": "https://telegram.org/blog/...", "siteName": "Telegram", "title": "AI Editor, Mighty Polls ...", "description": "..." },
  "forwardedFrom": null,
  "replyToPostId": null,
  "scrapedAt": "2026-11-16T10:00:00.000Z"
}
```

A per-channel summary of the run (title, subscribers, posts returned) is saved under the `SUMMARY` key in the key-value store.

### Pricing

Pay per result: you are charged only for posts actually returned. Channels with no matching posts cost nothing, and in *Only new* mode you never pay twice for the same post.

### FAQ

**Which channels work?** Public channels that have a web preview at `t.me/s/<name>`. Private channels, groups and channels that disabled the preview cannot be read.

**Are view counts exact?** Telegram shows rounded counts on large numbers (`3.07M`), so the value is exact for small numbers and rounded for large ones.

**Are media files downloaded?** No. You get direct URLs to photos and videos as Telegram serves them; these links can expire, so download the files soon after the run if you need them.

**Does it collect members or comments?** No. Only what the channel itself publishes.

**Need another field?** Open an issue on the Issues tab.

# Actor input Schema

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

Public channel usernames or links: `telegram`, `@durov`, `https://t.me/durov`. Private channels and groups are not supported.

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

Newest posts first. Leave empty to go back through the whole channel history.

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

Keep only posts from the last N days.

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

Keep only posts whose text contains at least one of these words or phrases. Case-insensitive.

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

Remember posts returned in previous runs and return only ones not seen before. Ideal for scheduled monitoring and alerts.

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

Add the formatted post body as HTML next to the plain text.

## Actor input object example

```json
{
  "channels": [
    "telegram",
    "durov"
  ],
  "maxPostsPerChannel": 100,
  "onlyNew": false,
  "includeHtml": false
}
```

# Actor output Schema

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

No description

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

No description

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

```

## MCP server setup

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