# Telegram Channel Scraper - Posts, Views & Media (`socialscrapers/telegram-channel-scraper`) Actor

Scrape public Telegram channels with no login, phone or API key: channel posts and messages with text, views, reactions, photos, videos, forwards, replies and polls, plus exact subscriber counts. Full history, date range and keyword filter. $0.99 per 1,000 posts.

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

## Pricing

from $0.79 / 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** extracts posts from public [Telegram](https://t.me) channels: text, views, reactions, photos, videos, documents, voice messages, forwards, replies, polls and link previews, plus each channel's title, description, photo and **exact subscriber count**. Collect the latest posts, a date range, posts that mention your keywords, or a channel's **whole history**. It reads Telegram's public web preview, so it needs **no Telegram account, no phone number and no API key**, and it costs **$0.99 per 1,000 posts**.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does Telegram Channel Scraper do?

Telegram Channel Scraper turns public Telegram channels into clean, structured data you can download or read through an API:

- 📢 **Any public channel**: paste usernames (`durov`, `@durov`) or links (`https://t.me/durov`, `https://t.me/s/durov`, post links).
- 📜 **Full history**: every post back to the channel's first one (`maxPostsPerChannel: 0`), or the latest N.
- 📅 **Date range**: posts between two dates or from the last hours, days or months; the scraper jumps straight to that point in the channel's history.
- 🔎 **Keywords**: only posts that mention your words or phrases, in their text, link preview, poll or file names.
- 👁️ **Engagement**: views and every reaction with its count (emoji, custom emoji and paid stars).
- 🖼️ **Media**: photos, videos, GIFs, round videos, voice messages, audio, documents, stickers, locations, with file links, thumbnails and durations.
- 🔁 **Context**: forwarded-from channel and post, replied-to post, link preview, poll with results, author signature, edited flag, hashtags, mentions and links.
- 📊 **Channel details** (optional): title, description and its links, exact subscriber count, photo, verified, scam and fake flags, and photo, video, file and link counts.
- 🌍 **Any language**: Cyrillic, Arabic, Chinese and every other script, with emoji kept.
- 💸 **Pay per post**, with a maximum cost per run that is never exceeded.

### What data can you extract from Telegram?

#### Post fields

| Field | Description |
| --- | --- |
| `postId`, `url` | Post number in the channel and its link |
| `channelUsername`, `channelTitle` | The channel it was posted in |
| `date` | Publication time (ISO 8601, UTC) |
| `text`, `textHtml` | Text with line breaks and emoji, and as HTML with formatting and links |
| `views`, `viewsText` | Views as a number and as Telegram prints them (`48.1K`) |
| `reactions`, `reactionsTotal` | Each reaction (emoji, custom emoji id or paid stars) with its count, and their sum |
| `media` | Photos, videos, animations, round videos, voice, audio, documents, stickers, locations, contacts, invoices: type, file URL, thumbnail, duration, title, size |
| `forwardedFrom` | Original channel name, username, post number and link |
| `replyTo` | Replied-to post number, link, author and text |
| `linkPreview` | Shared link's URL, site name, title, description and image |
| `poll` | Question, type, options with their share of votes, voters |
| `isEdited`, `authorSignature`, `isServiceMessage` | Edited flag, author signature, service message flag |
| `hashtags`, `mentions`, `links` | Hashtags, @mentions and web links in the text |
| `matchedKeyword` | The keyword the post matched |

#### Channel fields

| Field | Description |
| --- | --- |
| `username`, `url`, `title` | Username, link and title |
| `description`, `descriptionLinks` | Description and the links in it |
| `subscribers`, `subscribersText` | Exact subscriber count, and as printed |
| `photoUrl` | Channel photo |
| `isVerified`, `isScam`, `isFake` | Telegram's labels |
| `photoCount`, `videoCount`, `fileCount`, `linkCount` | Media the channel has posted |
| `previewAvailable` | False when the channel hides its posts from the web preview |

### How to scrape Telegram channels

1. Open Telegram Channel Scraper on Apify and click **Try for free**.
2. Add the **channels**: usernames or t.me links.
3. Set **max posts per channel** (0 = the whole history), and optionally a **date range** and **keywords**.
4. Click **Start** and download the posts as JSON, CSV, Excel or HTML, or read them through the API.

### How much does it cost to scrape Telegram?

**$0.99 per 1,000 posts** saved to your dataset, and **$1.90 per 1,000 channels** for channel details (about a fifth of a cent per channel). Apify subscribers pay less: **Silver 10% off** ($0.891 per 1,000 posts, $1.71 per 1,000 channels), **Gold 20% off** ($0.792 per 1,000 posts, $1.52 per 1,000 channels). Platform usage is included. With keywords, only matching posts are charged. Each run also carries Apify's standard Actor start charge of $0.0005 (one per GB of memory, at least one).

- **Example:** the latest 100 posts of 10 channels, with channel details: 1,000 posts + 10 channels = **$1.009**.
- **Example:** the whole history of a channel with 20,000 posts: **$19.80** ($15.84 on Gold).
- **Example:** 50 channels checked every day for a month, about 20 new posts each per day, with channel details: 30,000 posts + 1,500 channel items = **$32.55**.
- Apify's free plan includes monthly platform credit (currently $5), enough for about 5,000 posts.

Set a **maximum cost per run** when you start it, and the scraper stops cleanly before the first item that would go over it.

### Input example

```json
{
  "channels": ["telegram", "https://t.me/durov"],
  "maxPostsPerChannel": 500,
  "dateFrom": "30 days",
  "keywords": ["update", "new feature"],
  "includeChannelInfo": true
}
```

| Field | Default | What it does |
| --- | --- | --- |
| `channels` | | Usernames or t.me links of public channels |
| `maxPostsPerChannel` | `100` | Posts per channel, newest first; `0` = the whole history |
| `dateFrom`, `dateTo` | | A date (`2026-01-31`, `2026-1-31`, `31/01/2026`, `Jan 31 2026`; a UTC day), a date-time, or an age (`12 hours`, `7 days`, `2w`, `6 months`, `yesterday`). With both day and month 12 or less (`01/02/2026`) the date is read month/day/year. |
| `keywords` | | Only posts that mention one of these words or phrases |
| `includeChannelInfo` | `true` | One item with each channel's details |

### Output example

Each post is one item with `"type": "post"`; each channel's details one item with `"type": "channel"` (file links are shortened here):

```json
{
  "type": "post",
  "channelUsername": "Nature",
  "channelTitle": "Nature 🌎",
  "postId": 20666,
  "url": "https://t.me/Nature/20666",
  "date": "2026-11-07T19:36:04.000Z",
  "text": "In captivity, alpacas can live for about 20 years.",
  "textHtml": "In captivity, alpacas can live for about 20 years.",
  "views": 2640,
  "viewsText": "2.64K",
  "reactions": [
    { "emoji": "❤", "count": 43, "type": "emoji", "customEmojiId": null },
    { "emoji": "🥰", "count": 10, "type": "emoji", "customEmojiId": null },
    { "emoji": "👍", "count": 4, "type": "emoji", "customEmojiId": null },
    { "emoji": "🔥", "count": 2, "type": "emoji", "customEmojiId": null }
  ],
  "reactionsTotal": 59,
  "forwardedFrom": null,
  "replyTo": null,
  "media": [
    {
      "type": "video",
      "url": "https://cdn4.telesco.pe/file/9f8db42765.mp4?toke...",
      "thumbnailUrl": "https://cdn4.telesco.pe/file/mCV84gKfJyo9Ug-REXu...",
      "duration": 9,
      "title": null,
      "details": null,
      "postUrl": null
    }
  ],
  "linkPreview": null,
  "poll": null,
  "isEdited": false,
  "authorSignature": null,
  "isServiceMessage": false,
  "hashtags": [],
  "mentions": [],
  "links": [],
  "matchedKeyword": null,
  "scrapedAt": "2026-11-08T12:10:50.593Z"
}
```

```json
{
  "type": "channel",
  "username": "Nature",
  "url": "https://t.me/Nature",
  "title": "Nature 🌎",
  "description": "International Nature channel. Discover Earth with us!\n\nChat: @natureschat",
  "descriptionLinks": ["https://t.me/natureschat"],
  "subscribers": 74716,
  "subscribersText": "74 716 subscribers",
  "photoUrl": "https://cdn4.telesco.pe/file/UqxyzMSTXGX7AIpL0Se...",
  "isVerified": false,
  "isScam": false,
  "isFake": false,
  "photoCount": 309,
  "videoCount": 18800,
  "fileCount": 1,
  "linkCount": 17,
  "previewAvailable": true,
  "scrapedAt": "2026-11-08T12:10:50.516Z"
}
```

The Output tab has two views: **Posts** and **Channels**. Each run also saves a summary (posts per channel, their date span, channels that could not be read and why) as `RUN_SUMMARY` in its key-value store.

### Use cases

- **Market and crypto research**: follow announcement and signal channels, with views and reactions as a measure of attention.
- **Media monitoring**: track what news, brand and community channels publish, and what they forward from each other.
- **Competitor and brand tracking**: watch competitors' channels, their posting rhythm and engagement.
- **Lead and channel discovery**: find channels through forwards, mentions and links, with their subscriber counts.
- **Research and OSINT**: archive public channels' full history with dates, edits and media links.
- **AI and NLP datasets**: build multilingual text corpora with engagement signals.

### Use Telegram Channel Scraper via API, Python, JavaScript and integrations

Run it from your own code with the [Apify API](https://docs.apify.com/api/v2) and read the posts from the run's dataset.

Python ([apify-client](https://docs.apify.com/api/client/python)):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/telegram-channel-scraper").call(run_input={
    "channels": ["telegram", "durov"],
    "maxPostsPerChannel": 200,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["type"] == "post":
        print(item["date"], item["channelUsername"], item["views"], (item["text"] or "")[:80])
```

JavaScript ([apify-client](https://docs.apify.com/api/client/js)):

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('socialscrapers/telegram-channel-scraper').call({
    channels: ['https://t.me/durov'],
    maxPostsPerChannel: 0,
    dateFrom: '2025-01-01',
    dateTo: '2025-12-31',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`${items.filter((i) => i.type === 'post').length} posts`);
```

- **No-code:** connect the scraper to Make, Zapier, n8n, Google Sheets, Slack, Airbyte and more through [Apify integrations](https://docs.apify.com/platform/integrations).
- **Webhooks and schedules:** run it every hour or day, and get notified or push the results when a run finishes.
- **AI agents:** let AI assistants and agents run it and read the posts through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Limits

- **Public channels with a web preview only.** Private channels, invite links, groups, bots and people cannot be read; neither can the few channels that hide their posts from the web preview (their channel details are still saved). The run log and `RUN_SUMMARY` say why for each one.
- **Views and reaction counts are rounded by Telegram** above a thousand (`48.1K`, `2.81M`); `views` is that number in full (48100).
- **Comments are not included**: the web preview does not show them.
- **Media links**: photos, small videos, voice messages and stickers come with a link to Telegram's file server, which expires after a while, so download what you need soon after the run. Large videos and documents have no link in the web preview (their title, size, duration and thumbnail are given).
- **Custom emoji reactions** come with their id; the web preview does not show which emoji they are.
- **Keywords** are matched in each post the scraper reads, so finding rare words in a channel's whole history reads that history; only matching posts are charged.
- **Speed**: about 1,000 posts per minute from one channel's history (a 9,000-post channel took under 10 minutes), and several channels are read at a time.
- **Links work as they are**: `t.me/…`, `telegram.me/…` and `telegram.dog/…` links, `/s/…` preview links, post links, a channel's own address (`durov.t.me`), `tg://resolve?domain=…` and web app links (`web.telegram.org/k/#@…`) all name their channel. Invite links, phone links and private-channel post links (`t.me/+…`, `t.me/c/…`) are skipped with the reason.
- **Searches joined with OR work as keywords**: `bitcoin OR "price update" OR #btc` keeps posts that mention any of the three.
- **A run with 0 results still succeeds.** When a channel does not exist, hides its posts from the web preview, is a group, a bot or a person, or has no post matching your dates or keywords, the run ends as Succeeded with a status message naming each channel and why, and no results are charged. Input with nothing usable in it (for example only invite links) ends as Succeeded too, before reading anything: its status message starts with "Nothing to scrape:" and says what to change, and no results are charged. A run fails only when Telegram refuses every one of 3 or more channels and a check on a public channel as well, or on an unexpected error.

### FAQ

#### Is it legal to scrape Telegram channels?

Telegram Channel Scraper reads only what Telegram shows publicly on the web to any visitor, without logging in. Scraping public data is generally lawful, but rules differ by country and by use, and posts can contain personal data protected by laws like the GDPR. You are responsible for how you use the data; ask a lawyer if you are unsure.

#### Do I need a Telegram account, a phone number or an API key?

No. The scraper never logs in: no account, no phone number, no API ID or hash, and no bot token.

#### How many posts can I scrape?

Every post a public channel shows, back to its first one: set `maxPostsPerChannel` to `0`. Add a date range to get one period only.

#### Why did I get fewer posts than I asked for?

The channel has fewer posts in the date range, fewer posts mention your keywords, some posts were deleted, or the run reached its maximum cost. `RUN_SUMMARY` lists the posts read and saved for each channel.

#### How do I get only new posts?

Schedule the scraper and set `dateFrom` to the interval between runs, for example `1 day` for a daily run, and turn `includeChannelInfo` off if you do not need the details again.

#### Can it scrape private channels or groups?

No. It reads public channels through their web preview only, so private channels, invite links and groups are out of reach.

#### Are subscriber counts exact?

Yes. The channel item gives the exact number of subscribers, as Telegram shows it on the channel's page.

#### Can I limit how much a run costs?

Yes. Set the maximum cost per run when you start it: the scraper saves posts until the next one would go over that amount, then stops.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |

# Actor input Schema

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

Public Telegram channels, one per line: a username (<code>durov</code>, <code>@durov</code>) or a link (<code>https://t.me/durov</code>, <code>https://t.me/s/durov</code>, <code>telegram.me</code> and web app links, a post link). Private invite links (<code>t.me/+...</code>) cannot be read.

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

The most posts to collect from each channel, newest first. 0 = every post, back to the channel's first one.

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

Only posts published on or after this date. Pick a date or an age, or type one: a date (<code>2026-01-31</code>, <code>31/01/2026</code>, <code>Jan 31 2026</code>; a UTC day), a date-time (<code>2026-01-31T18:00:00Z</code>), or an age such as <code>12 hours</code>, <code>7 days</code>, <code>2w</code>, <code>6 months</code> or <code>yesterday</code>. Collection stops at the first older post. Leave empty for no lower limit.

## `dateTo` (type: `string`):

Only posts published on or before this date (the whole UTC day is included): a date (<code>2026-01-31</code>, <code>31/01/2026</code>, <code>Jan 31 2026</code>) or an age such as <code>7 days</code>. The Actor jumps straight to that point in the channel's history. Leave empty for no upper limit.

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

Only posts that mention one of these words or phrases, as whole words in any letter case, in their text, link preview, poll or file names (<code>bitcoin</code>, <code>price update</code>, <code>#giveaway</code>). The channel is read newest first and only matching posts are saved and charged; <code>maxPostsPerChannel</code> counts matching posts. Leave empty for every post.

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

Add one item per channel with its title, description, exact subscriber count, photo, verified and scam flags, media counts and links. Charged as one channel event per channel.

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

Not needed: the Actor connects directly and switches to Apify Proxy on its own if Telegram ever refuses it.

## Actor input object example

```json
{
  "channels": [
    "telegram",
    "https://t.me/durov"
  ],
  "maxPostsPerChannel": 100,
  "keywords": [
    "giveaway",
    "price update"
  ],
  "includeChannelInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

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

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

```

## MCP server setup

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