# Telegram Channel Scraper & Monitor: Posts, Search, No Login (`panix/telegram-scraper`) Actor

Scrape public Telegram channels without login or API key: full post history, views, reactions, media, comments, subscribers and channel stats. Search all of Telegram by keyword. Only-new-posts monitoring for news, crypto, brand tracking and AI agents.

- **URL**: https://apify.com/panix/telegram-scraper.md
- **Developed by:** [PANIX AI LAB](https://apify.com/panix) (community)
- **Categories:** Social media, News, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 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.
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 & Monitor: Posts, Search, No Login

Export posts from any public Telegram channel, or search all of Telegram for a keyword, and get clean rows with views, reactions, comments and channel stats.

- **Full channel history:** text, date, views, reactions, photos, videos, voice, files, polls, link previews, hashtags, forwards and replies, from the newest post back to the first one.
- **Search all of Telegram:** give a keyword or brand and get the newest matching posts from the public channels that talk about it, plus a row for each channel found.
- **No Telegram account, phone number or API key:** it reads Telegram's public web preview (t.me/s/...), so there is nothing to log in or get banned.

**Try it now:** the prefilled input reads the 10 newest posts of @durov and @WatcherGuru in about 5 seconds and costs a few cents, which the $5 of free monthly credit on Apify's free plan covers.

**Price:** from $0.40 per 1,000 posts, and you pay only for results you get.

### Ready-made tasks: pick one and press Start

| Task | What you get |
|---|---|
| [Export crypto news from Telegram channels](https://apify.com/panix/telegram-scraper/examples/telegram-crypto-news-channels) | Latest posts of WatcherGuru, Cointelegraph, Whale Alert and Bitcoin with views and reactions |
| [Search all of Telegram for a keyword or brand](https://apify.com/panix/telegram-scraper/examples/telegram-keyword-search) | Newest posts that mention ChatGPT and OpenAI, from every channel that talks about them |
| [Compare Telegram channels before buying ads](https://apify.com/panix/telegram-scraper/examples/telegram-channel-stats-for-ads) | Subscribers, average views, view rate and posts per day for 10 channels |
| [Export Telegram posts with their comments](https://apify.com/panix/telegram-scraper/examples/telegram-posts-with-comments) | Posts plus the public comments under each one |

Each task opens with its settings filled in. Change the channels or keywords and press **Start**.

### Example result

```json
{
  "type": "post",
  "id": "WatcherGuru/16167",
  "channel": "WatcherGuru",
  "url": "https://t.me/WatcherGuru/16167",
  "date": "2026-11-19T17:33:19Z",
  "text": "JUST IN: Over 400 Anthropic employees are now worth more than $100,000,000 each following the $ANT IPO. ...",
  "views": 24200,
  "reactionsTotal": 690,
  "commentsCount": 31,
  "subscribers": 637000,
  "viewRate": 3.8,
  "mediaTypes": ["photo"],
  "mentions": ["WatcherGuru"],
  "source": "channel"
}
```

### What you get

Telegram Channel Scraper & Monitor turns public Telegram channels into a dataset you can sort, filter, export to Excel or CSV, send to Google Sheets, or feed to an AI agent. It works with usernames (`durov`), @handles, channel links (`https://t.me/durov`, `https://t.me/s/durov`) and post links (`https://t.me/durov/560`).

Every run can return four kinds of rows (filter by the `type` column):

| Row | What is in it | Charged |
|---|---|---|
| `post` | Post text, date, views, reactions (each emoji with its count, paid stars included), photos, videos with duration, voice notes, audio and files, polls, stickers, locations, link preview, links, hashtags, @mentions, forwarded-from, reply-to, edited flag, author signature, view rate (views as a % of subscribers) | per post |
| `comment` | Public comments under a post (when **Add public comments** is on): text, date, reactions, reply-to, media | per comment |
| `channel` | Title, description and its links, subscribers (or members and online for groups), verified, photo/video/file/link counts, average and median views, view rate, reaction rate, posts per day, top reactions, last post time | per channel |
| `error` | Why an input could not be read (missing channel, personal account, invite link) | free |

### Who uses it

- **Crypto and finance traders and analysts** who follow news, signal and project channels and want every post with its views and reactions in one table.
- **Brand, PR and social listening teams** who search Telegram for their brand, product or competitors.
- **Telegram ad buyers and marketers** who compare channels by real average views, view rate and posting frequency before buying a post.
- **Researchers, journalists and OSINT analysts** who archive public channels, follow forwards and track what a channel posted on a date range.
- **AI and automation builders** who feed fresh Telegram posts into n8n, Make, Zapier, LangChain or an MCP agent on a schedule.

### Why this scraper

- **Keyword search across Telegram**, not only inside channels you already know: it finds the public channels that discuss your keyword and runs Telegram's own search inside each one.
- **Telegram search inside your channels** (`searchInChannels`) finds old matching posts without paging through years of history.
- **Channel stats you can compare:** average and median views, views as a % of subscribers, reactions as a % of views, posts per day and top reactions from the newest posts.
- **Comments included** for channels with a public discussion group, with the comment count on each post.
- **Only new posts mode** for schedules: each run returns, and charges for, only posts published since the last run, and shows how subscribers changed.
- **Public groups and bots** return an info row (members, online, monthly users) instead of a failed run.
- **You never pay for nothing:** missing channels, personal accounts, invite links, filtered, duplicate and already-seen posts are free, and the run stops cleanly at your spending limit.
- **Fast and light:** plain HTTP, no browser. 500 posts from 10 channels took about 10 seconds on the default 512 MB.

#### Coming from another Telegram scraper?

| Common problem | How this Actor handles it |
|---|---|
| Needs a Telegram account, phone number, `api_id`/`api_hash` or a bot token | Nothing to set up. Public channels only, read from the web preview |
| Views come as text like "85.3K" | Numbers: `85300` |
| Only the newest ~20 posts | Pages back to the first post of the channel (up to 100,000 per channel) |
| Keyword search only inside channels you already know | Telegram-wide keyword search plus Telegram's own search inside your channels |
| No way to compare channels | Channel row with average views, view rate, reaction rate and posts per day |
| Scheduled runs return the same posts again | Only new posts mode with a named memory per schedule |
| A wrong username fails the whole run | It becomes a free `error` row with the reason; the rest of the run goes on |

### Input examples

**Export the full history of a few channels**

```json
{
  "channels": ["durov", "https://t.me/tginfo", "@WatcherGuru"],
  "maxPostsPerChannel": 5000
}
```

**Search all of Telegram for a brand or topic (last 30 days)**

```json
{
  "searchQueries": ["bitcoin etf", "chatgpt"],
  "maxPostsPerSearch": 50,
  "postedAfter": "30 days"
}
```

**Posts with comments**

```json
{
  "channels": ["WatcherGuru"],
  "maxPostsPerChannel": 20,
  "includeComments": true,
  "maxCommentsPerPost": 50
}
```

**Old posts that mention a word, only with photos or videos, at least 1,000 views**

```json
{
  "channels": ["WatcherGuru", "tginfo"],
  "searchInChannels": "bitcoin",
  "mediaTypes": ["photo", "video"],
  "minViews": 1000,
  "maxPostsPerChannel": 100
}
```

**Monitor channels every hour (schedule this input)**

```json
{
  "channels": ["WatcherGuru", "tginfo", "durov"],
  "searchQueries": ["your brand"],
  "maxPostsPerChannel": 50,
  "onlyNewPosts": true,
  "memoryName": "hourly-news"
}
```

**Compare channels before buying ads (channel rows only)**

```json
{
  "channels": ["durov", "WatcherGuru", "tginfo", "notcoin", "python"],
  "maxPostsPerChannel": 0
}
```

#### All input fields

| Field | What it does | Default |
|---|---|---|
| `channels` | Usernames, @handles, t.me channel links or post links | — |
| `searchQueries` | Keywords to search across Telegram | — |
| `maxPostsPerChannel` | Newest posts per channel, then older pages (0 = channel row only) | 20 |
| `searchInChannels` | Word, phrase or #hashtag searched with Telegram's own search inside every channel | — |
| `maxPostsPerSearch` | Newest matching posts per keyword, across all channels found | 30 |
| `maxChannelsPerSearch` | Channels searched per keyword (1-30) | 10 |
| `searchLanguage`, `searchCountry` | Language and country used to find channels for keywords | en, us |
| `postedAfter`, `postedBefore` | A date (`2026-01-31`) or relative time (`7 days`, `24 hours`) | — |
| `includeKeywords`, `excludeKeywords` | Keep or skip posts containing any of these words | — |
| `mediaTypes` | text, photo, video, round_video, voice, audio, document, sticker, poll, location | all |
| `minViews` | Skip posts with fewer views | — |
| `skipServiceMessages` | Leave out "channel photo updated" and similar lines | true |
| `includeComments`, `maxCommentsPerPost` | Comment rows under each post (up to 100 per post) | false, 20 |
| `includeChannelInfo` | One channel row with stats per channel | true |
| `onlyNewPosts`, `memoryName` | Return only posts newer than the last run with the same memory name | false, default |
| `maxResults` | Stop after this many posts in total | — |
| `maxConcurrency` | Channels and keywords read at the same time | 6 |
| `proxyConfiguration` | Apify proxy (datacenter works for Telegram) | Apify proxy |

Field names from other Telegram Actors also work: `channelUsernames`, `usernames`, `startUrls`, `maxMessages`, `maxPosts`, `oldestMessageDate`, `newestMessageDate`, `lastNDays`, `mode: "keyword"` with `keywords`, `queries`.

### Output samples

**Channel row**

```json
{
  "type": "channel",
  "kind": "channel",
  "username": "WatcherGuru",
  "url": "https://t.me/WatcherGuru",
  "title": "Watcher Guru",
  "description": "Watcher Guru gives you unparalleled, unbiased coverage of crypto & finance in real-time.\n\n💬 @WatcherGuruChat",
  "descriptionLinks": ["https://t.me/WatcherGuruChat"],
  "verified": true,
  "subscribers": 637000,
  "photosCount": 6170,
  "videosCount": 730,
  "linksCount": 2360,
  "recentPostsAnalyzed": 20,
  "avgViews": 67100,
  "medianViews": 74600,
  "avgReactions": 935.0,
  "viewRate": 10.53,
  "reactionRate": 1.393,
  "postsPerDay": 18.27,
  "lastPostAt": "2026-11-19T17:33:19Z",
  "latestPostId": 16167,
  "topReactions": [{"emoji": "❤", "count": 6833}, {"emoji": "🤣", "count": 4313}, {"emoji": "🔥", "count": 3261}]
}
```

**Post row (full)**

```json
{
  "type": "post",
  "id": "WatcherGuru/16167",
  "postId": 16167,
  "channel": "WatcherGuru",
  "channelTitle": "Watcher Guru",
  "url": "https://t.me/WatcherGuru/16167",
  "date": "2026-11-19T17:33:19Z",
  "text": "JUST IN: Over 400 Anthropic employees are now worth more than $100,000,000 each following the $ANT IPO.\n\nAnthropic's seven co-founders are now worth over $20 billion each. ...",
  "views": 24200,
  "reactionsTotal": 690,
  "reactions": [{"emoji": "🤣", "type": "emoji", "count": 297}, {"emoji": "🤯", "type": "emoji", "count": 180}, {"emoji": "🔥", "type": "emoji", "count": 93}],
  "commentsCount": 31,
  "commentsEnabled": true,
  "subscribers": 637000,
  "viewRate": 3.8,
  "edited": false,
  "authorSignature": null,
  "isService": false,
  "forwardedFrom": null,
  "replyTo": null,
  "mediaTypes": ["photo"],
  "media": [{"type": "photo", "url": "https://cdn1.telesco.pe/file/f2yhqo4S...jpg", "postUrl": "https://t.me/WatcherGuru/16167?single"}],
  "poll": null,
  "linkPreview": null,
  "links": ["https://t.me/WatcherGuru"],
  "hashtags": [],
  "mentions": ["WatcherGuru"],
  "source": "channel",
  "sourceInput": "https://t.me/s/WatcherGuru",
  "searchQuery": null,
  "scrapedAt": "2026-11-19T18:14:40Z"
}
```

**Comment row**

```json
{
  "type": "comment",
  "id": "WatcherGuru/16167?comment=7252924",
  "commentId": 7252924,
  "postId": 16167,
  "channel": "WatcherGuru",
  "postUrl": "https://t.me/WatcherGuru/16167",
  "url": "https://t.me/WatcherGuru/16167?comment=7252924",
  "date": "2026-11-19T17:55:43Z",
  "text": "One retracement and all out",
  "edited": false,
  "replyToCommentId": null,
  "reactionsTotal": 0,
  "reactions": []
}
```

**Public group (no post preview)**

```json
{
  "type": "channel",
  "kind": "group",
  "username": "python",
  "title": "Python",
  "members": 92962,
  "online": 4471,
  "hasPublicPosts": false
}
```

**Free error row**

```json
{
  "type": "error",
  "input": "techcrunch",
  "errorCode": "personal_account",
  "error": "@techcrunch is a personal account, not a public channel or group; only public channels and groups are supported"
}
```

Posts found by keyword search have `"source": "search"`, the `searchQuery` and `channelRank` (where the channel ranked for the keyword). The run's key-value store has `INPUTS` (status per channel and keyword) and `SUMMARY` (totals, charged events, posts left out per filter).

### Pricing

Pay per result, with lower prices on higher Apify plans:

| Event | Free plan | Starter (Bronze) | Scale (Silver) | Business (Gold) |
|---|---|---|---|---|
| Post (per 1,000) | $0.80 | $0.60 | $0.50 | $0.40 |
| Comment (per 1,000) | $0.50 | $0.40 | $0.35 | $0.30 |
| Channel row (per 1,000) | $2.00 | $1.50 | $1.30 | $1.00 |
| Keyword search (per keyword searched) | $0.010 | $0.008 | $0.007 | $0.006 |
| Run start | $0.001 | $0.001 | $0.001 | $0.001 |

Examples on the Starter plan: 1,000 posts from 10 channels with their channel rows cost about $0.62. Searching 5 keywords for 30 posts each costs about $0.13. The keyword search event is charged on every run that searches the keyword (also on scheduled only-new checks) and is free when no channels are found. Missing channels, personal accounts, invite links, filtered, duplicate and already-seen posts are free. Set a spending limit on the run and the Actor stops before it, without half-delivered rows.

### FAQ

**Do I need a Telegram account or API key?** No. The Actor reads the public web preview that Telegram shows to anyone at `t.me/s/<channel>`.

**Which channels work?** Public channels with a username. Private channels, invite links (`t.me/+...`) and personal accounts are skipped for free. Public groups and bots return an info row with members or monthly users; Telegram does not show group messages to logged-out visitors.

**How far back can it go?** To the first post of the channel. Use `postedAfter` to stop at a date, or `searchInChannels` to jump straight to old posts that contain a word.

**How does keyword search work?** For each keyword the Actor finds public Telegram channels that discuss it through a web search of t.me, then runs Telegram's own search inside each of those channels and returns the newest matching posts from all of them. Set `searchLanguage` and `searchCountry` to find channels in other languages.

**Why are comment author names empty?** Telegram hides commenter names and photos from logged-out visitors. You still get the comment text, date, reactions and reply-to.

**Can I get only new posts every hour?** Yes. Turn on `onlyNewPosts`, give the schedule its own `memoryName` and create a schedule in Apify. Each run returns only posts published since the previous run, and the channel row shows `subscribersChange`.

**Can I download the photos and videos?** Each media item has a direct `url` on Telegram's CDN. The links work for a limited time, so download them soon after the run if you need the files. Very large videos show `tooBigForPreview: true` and can be opened through the post link.

**Is it legal?** It collects only data that Telegram publishes openly on the web. You are responsible for how you use the data, including privacy laws such as GDPR when posts contain personal data.

### Limits

- Only public channels with a web preview. Groups, bots and channels with the preview turned off return an info row only.
- Telegram shows 20 posts per page, so very long histories take one request per 20 posts (still about 50 posts per second).
- Keyword search finds channels that a web search knows about; very new or tiny channels may not show up. Add them to `channels` with `searchInChannels` instead.
- Comment author names are hidden by Telegram for logged-out visitors. Up to 100 comments per post.
- View counts are rounded by Telegram above 1,000 (for example 85.3K becomes 85300).

### Use it from code, n8n, Make or Zapier

**Python** (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("panix/telegram-scraper").call(run_input={
    "channels": ["durov", "WatcherGuru"],
    "maxPostsPerChannel": 50,
})
for item in client.dataset(run.default_dataset_id).iterate_items():
    if item["type"] == "post":
        print(item["date"], item["views"], item["text"][:80] if item["text"] else "")
```

**JavaScript** (`npm install apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('panix/telegram-scraper').call({
    searchQueries: ['bitcoin etf'],
    maxPostsPerSearch: 30,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((i) => i.type === 'post').length, 'posts');
```

**HTTP (one call, returns the rows)**

```bash
curl -X POST "https://api.apify.com/v2/acts/panix~telegram-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"channels": ["durov"], "maxPostsPerChannel": 20}'
```

**n8n, Make and Zapier:** use the Apify app or node, choose **Run Actor**, pick `panix/telegram-scraper`, paste one of the inputs above, then read the dataset items. For alerts, schedule the Actor with `onlyNewPosts: true` and connect the "Actor run succeeded" trigger to Slack, email, Google Sheets or your own webhook.

**AI agents (MCP):** the Actor works with the Apify MCP server, so Claude, Cursor and other agents can call it with a channel list or a keyword and read the rows.

Questions or a channel that does not work? Open an issue on the Actor page and it will be answered quickly.

# Actor input Schema

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

Public channels as usernames (durov), @handles or links (https://t.me/durov, https://t.me/s/durov). A post link (https://t.me/durov/123) returns that one post. Public groups without a post preview return their info row (members, online). Invite links and personal accounts are skipped (not charged).

## `searchQueries` (type: `array`):

Keywords, brands or topics. The Actor finds public channels that talk about each keyword, then uses Telegram's own search inside each channel and returns the newest matching posts from all of them. Charged once per keyword searched (search event, free when no channels are found), plus each post.

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

Newest posts first, then older pages back to the start of the channel. 0 = channel info row only.

## `searchInChannels` (type: `string`):

Optional. A word, phrase or #hashtag. Uses Telegram's own search inside every channel above, so old matching posts are found without reading the whole history.

## `maxPostsPerSearch` (type: `integer`):

Newest matching posts across all channels found for one keyword.

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

How many public channels found for a keyword are searched for matching posts.

## `searchLanguage` (type: `string`):

Two-letter language code used to find channels for keywords (en, es, ru, de, ar, hi ...). Posts are not translated.

## `searchCountry` (type: `string`):

Two-letter country code used to find channels for keywords (us, gb, in, br ...).

## `postedAfter` (type: `string`):

A date (2026-01-31) or a relative time like '7 days', '24 hours', '3 months'. Paging stops once older posts are reached.

## `postedBefore` (type: `string`):

A date (2026-01-31, that whole day included) or a relative time like '1 day'.

## `includeKeywords` (type: `array`):

Case-insensitive match on the post text, link preview title and poll question.

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

Case-insensitive. Skipped posts are free.

## `mediaTypes` (type: `array`):

Keep posts with any of these: text (no media), photo, video, round_video, voice, audio, document, sticker, poll, location. Empty = all posts.

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

Skip posts with fewer views (free).

## `skipServiceMessages` (type: `boolean`):

Leave out 'channel photo updated', 'pinned a message' and similar system lines.

## `includeComments` (type: `boolean`):

For channels with a public discussion group: the comments under each post as separate rows (comment event), plus commentsCount on the post row. Comment author names are hidden by Telegram for logged-out visitors.

## `maxCommentsPerPost` (type: `integer`):

Newest comments under each post, up to 100.

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

One row per channel: title, description, links, subscribers, photo/video/file/link counts, verified, plus average and median views, view rate (views / subscribers), reaction rate, posts per day, top reactions and last post time.

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

Remembers what earlier runs delivered (per channel and keyword) and returns only newer posts, so a schedule pays only for new posts. The channel row then shows subscribersChange since the last run.

## `memoryName` (type: `string`):

Separate memories for different schedules or tasks (letters, digits, - and \_).

## `maxResults` (type: `integer`):

Stop the run after this many posts (comments and channel rows not counted). Empty = no limit.

## `maxConcurrency` (type: `integer`):

How many channels and keywords are read at the same time.

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

Apify datacenter proxy works for Telegram. Keyword search always uses Apify's Google search proxy.

## Actor input object example

```json
{
  "channels": [
    "durov",
    "https://t.me/WatcherGuru",
    "https://t.me/tginfo/4459"
  ],
  "searchQueries": [
    "bitcoin etf",
    "remote python jobs"
  ],
  "maxPostsPerChannel": 10,
  "maxPostsPerSearch": 30,
  "maxChannelsPerSearch": 10,
  "searchLanguage": "en",
  "searchCountry": "us",
  "skipServiceMessages": true,
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "includeChannelInfo": true,
  "onlyNewPosts": false,
  "memoryName": "default",
  "maxConcurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All delivered rows. Filter by the type column: post, comment, channel or error. Error rows (missing channels, personal accounts, broken links) are free.

## `inputs` (type: `string`):

Pages read, posts seen and delivered, comments, channels found and why each channel, link or keyword stopped.

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

Totals, charged events, posts left out per filter, request statistics and warnings.

# 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",
        "WatcherGuru"
    ],
    "maxPostsPerChannel": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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