# Telegram Channel Scraper - Public Posts, No Login (`logiover/telegram-channel-scraper`) Actor

Scrape any public Telegram channel's full post history with no login, bot token or API key. Text, views, dates, media, forwards + channel stats.

- **URL**: https://apify.com/logiover/telegram-channel-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Social media, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Telegram Channel Scraper — Public Posts, No Login or API Key

Scrape the **entire post history of any public Telegram channel** — **no login, no bot token, no API key, no phone number.** This actor reads Telegram's own public web preview at `t.me/s/<channel>` and pages backwards through the whole timeline.

Perfect for OSINT, crypto‑signal and news monitoring, research, and archiving — without the friction of the official Bot/MTProto APIs (which require tokens, joining the channel, or a phone number).

### What you get per post

```json
{
  "channel": "durov",
  "channelTitle": "Du Rove's Channel",
  "channelSubscribers": 1200000,
  "postId": 512,
  "url": "https://t.me/durov/512",
  "text": "Full post text, with newlines preserved…",
  "date": "2026-05-14T12:38:57+00:00",
  "views": 2990000,
  "author": "Pavel Durov",
  "outboundLinks": ["https://…"],
  "photos": ["https://cdn4.telegram-cdn.org/file/…"],
  "hasVideo": false,
  "linkPreview": { "url": "https://…", "siteName": "…", "title": "…", "description": "…" },
  "forwardedFrom": null,
  "isReply": false,
  "source": "telegram-channel"
}
```

### Example inputs

**Full history of several channels:**

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

**Search inside a channel:**

```json
{ "channels": ["durov"], "searchQuery": "privacy" }
```

### Features

- 📜 **Full backward pagination** — the channel's whole available history, 20 posts at a time.
- 🔎 **In‑channel keyword search** via `searchQuery`.
- 👁️ **View counts**, dates, author signatures.
- 🖼️ **Media** — photo URLs, video presence, documents, polls.
- 🔗 **Link previews** and outbound links parsed out.
- ↪️ **Forwards & replies** flagged.
- 📊 **Channel metadata** — title and subscriber count on every row.

### Use cases

- **Crypto / trading** — archive signal channels and mine calls with view counts.
- **News & OSINT** — monitor and back‑fill public channels at scale.
- **Brand & topic monitoring** — track mentions across many channels.
- **Research & datasets** — build Telegram post corpora keyless.

### Notes & limits

- Works only on **public** channels (those with a `t.me/s/<name>` preview). Private channels, groups and bots have no public web preview.
- Telegram serves posts 20 at a time; very large channels take many pages — use `maxPostsPerChannel` to cap.
- View counts and reactions reflect what the public preview shows.

### FAQ

**Do I need a Telegram account, bot token, or API ID?** No. Nothing. It reads the public web preview.

**Can it scrape private channels or groups?** No — only public channels with a web preview.

**How far back does it go?** As far as the channel's public preview allows — typically the full history.

***

*Not affiliated with Telegram. "Telegram" is a trademark of Telegram FZ‑LLC. This tool reads publicly available pages.*

### 📝 Changelog

#### 2026-08-01

- Completed the August 2026 full health check: verified empty/programmatic default, Console UI default, and two source-informed alternative inputs on Apify.
- Confirmed successful live execution, non-empty structured output, dataset-field/type integrity, and logical sample quality within the 5-minute quality window.
- Declared 20 dataset fields from typed live cloud samples so the output contract is no longer an empty placeholder.
- Declared 20 nullable dataset fields from typed live cloud samples so the output contract is no longer an empty placeholder or brittle to sparse modes.

# Actor input Schema

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

Public Telegram channel usernames or t.me links. Example: \['durov', 'telegram', 'https://t.me/durov']. Private channels/groups have no public web preview and cannot be scraped.

## `searchQuery` (type: `string`):

If set, returns posts matching this keyword inside each channel instead of the full history. Leave empty to scrape everything.

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

Cap per channel. 0 = the channel's entire available history (can be thousands of posts).

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

Hard cap on total posts across all channels. 0 = unlimited.

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

Proxy settings. OFF by default — t.me/s is a light public endpoint that is fastest over direct egress. Only enable a proxy (Datacenter or Residential) if you scrape very large volumes and start seeing rate limits; the actor then pins one sticky IP per channel.

## Actor input object example

```json
{
  "channels": [
    "durov"
  ],
  "searchQuery": "",
  "maxPostsPerChannel": 0,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All posts extracted by this run. Open the Dataset tab to browse, filter, and export as CSV, JSON, or Excel.

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

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

# Run the Actor and wait for it to finish
run = client.actor("logiover/telegram-channel-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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"
  ]
}' |
apify call logiover/telegram-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=logiover/telegram-channel-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/MPVVpWqHGQ5d3Hfdh/builds/R2BFRmz9w9MKWZfdE/openapi.json
