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

Scrape public Telegram channels without an account or API key: messages with text, date, views, reactions, photos, videos, links, forwards and polls, plus channel info and subscriber counts. Date and keyword filters, newest first.

- **URL**: https://apify.com/anticipatory_pipefish/telegram-channel-scraper.md
- **Developed by:** [Pipefish Data](https://apify.com/anticipatory_pipefish) (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

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

Read any public Telegram channel without a Telegram account, phone number or API key. Give it channel handles or links; get the channel's info plus its messages, newest first, with text, date, views, reactions, photos, videos, documents, links, forwards and polls.

It uses the channel's public web preview (the same thing you see at t.me/s/channel), so it works in any workflow that cannot hold a logged-in Telegram session: monitoring dashboards, research pipelines, n8n or Make automations, and AI agents.

### What you get

Message rows (`type: message`):

| Field | Example |
|---|---|
| `channel`, `channelTitle` | `durov`, `Pavel Durov` |
| `messageId`, `url` | `552`, `https://t.me/durov/552` |
| `date` | `2026-10-20T10:00:00+00:00` |
| `text` | the message text with line breaks kept |
| `views` | `1530000` |
| `reactions` | `[{"emoji": "👍", "count": 12000}]` |
| `photos`, `videos`, `videoThumbnails`, `documents`, `hasMedia` | media URLs from the preview |
| `links`, `linkPreview` | URLs in the text, and the preview card's URL, title and description |
| `isForwarded`, `forwardedFrom`, `forwardedFromUrl` | forward source |
| `replyToUrl`, `poll`, `author` | reply target, poll question and options, author name on channels that sign posts |

Channel rows (`type: channel`): `title`, `description`, `subscribers`, `photosCount`, `videosCount`, `linksCount`, `filesCount`, `avatar`, `url`. Free.

Error rows (`type: error`) name the input that could not be read and why.

### Input

| Field | Default | What it does |
|---|---|---|
| `channels` | required | `@handle`, `handle`, `https://t.me/handle` or `https://t.me/s/handle`. |
| `maxMessagesPerChannel` | 100 | Newest first. About 20 messages per page load. |
| `sinceDate` | | Stop at messages older than this ISO date. |
| `keywords` | | Keep only messages containing any of these words. |
| `onlyWithMedia` | false | Keep only messages with photos, videos or documents. |
| `includeChannelInfo` | true | One free info row per channel. |
| `concurrency` | 3 | Channels in parallel. |
| `proxyConfiguration` | off | Enable Apify Proxy only if t.me starts returning 429 or 403. |

Example: last month of three news channels, text only.

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

### Pricing

You pay per message returned. Channel info rows, filtered-out messages and failed channels are free.

### Typical uses

- Monitor announcements from projects, exchanges, brands or officials without running a Telegram client.
- Build a searchable archive of a channel's posts and media.
- Measure reach: views and reactions per post over time.
- Track which channels forward from which, and what they link to.
- Feed channel text into an LLM for summaries, alerts or sentiment.

### Limits

- Only channels with a public web preview are readable. Private channels, channels that disabled the preview, and most groups return an error row.
- The preview shows views and reactions but not comments or forwards counts.
- Very deep histories mean many page loads; set `sinceDate` or a sensible cap. Pages are fetched with a short pause between them.
- Media URLs point to Telegram's CDN and can expire; download them promptly if you need copies.

### Support

Open an issue on the Actor's Issues tab with the channel handle and what you expected.

# Actor input Schema

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

Public channel handles or links: @durov, durov, https://t.me/durov or https://t.me/s/durov. Only channels with a public web preview can be read; private channels and most groups cannot.

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

Newest first. Pages hold about 20 messages, so 1,000 messages is about 50 page loads.

## `sinceDate` (type: `string`):

Optional ISO date, e.g. 2026-10-01 or 2026-10-01T00:00:00Z. Stops paging once older messages are reached.

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

Optional. Keep only messages whose text contains any of these words (case-insensitive). Paging still walks the channel, so combine with sinceDate or a message cap.

## `onlyWithMedia` (type: `boolean`):

Keep only messages that carry photos, videos or documents.

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

One free row per channel with title, description, subscriber count and media counts.

## `concurrency` (type: `integer`):

Channels processed in parallel.

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

Optional. t.me previews usually load without a proxy; enable Apify Proxy if you see HTTP 429 or 403 errors.

## Actor input object example

```json
{
  "channels": [
    "@durov",
    "https://t.me/telegram"
  ],
  "maxMessagesPerChannel": 100,
  "keywords": [],
  "onlyWithMedia": false,
  "includeChannelInfo": true,
  "concurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `datasetUi` (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": [
        "@durov",
        "https://t.me/telegram"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

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

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

```

## MCP server setup

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