# Telegram Channel Scraper - Posts, Views, No Login

> Scrape public Telegram channels without login, phone number or API keys. Get posts with text and HTML, date, views, reactions, forwards, replies, photos, video thumbnails, files and link previews, plus channel info with exact subscriber counts. Date range, keyword filter and deep history.

- Category: Jobs & content
- Price: $1 per 1,000 × post result, billed per result by Apify (no subscription); any other billed events are listed on the Store page. Cap any run with `maxTotalChargeUsd`.
- Store page: https://apify.com/wrenfield-data/telegram-channel-scraper?fpr=qx6tzs
- Human page: https://wrenfielddata.com/tools/telegram-channel-scraper/
- OpenAPI 3 spec: https://api.apify.com/v2/acts/wrenfield-data~telegram-channel-scraper/builds/default/openapi.json
- MCP tool: https://mcp.apify.com?tools=wrenfield-data/telegram-channel-scraper (appears as `wrenfield-data--telegram-channel-scraper`)

## Call it

Synchronous run that returns the dataset rows as JSON (use `/runs` for long jobs and poll; see the OpenAPI spec):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/wrenfield-data~telegram-channel-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"channels": ["durov"], "maxPostsPerChannel": 20, "keywordMode": "contains", "matchAllKeywords": false, "wholeWordsOnly": true, "maxScannedPostsPerChannel": 5000, "includeChannelInfo": true, "includeHtml": true, "includeServiceMessages": false, "proxyConfiguration": {"useApifyProxy": true}, "alwaysUseProxy": false, "maxConcurrency": 10}'
```

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `channels` | array | yes | `["durov"]` | Public Telegram channels, one per line: a username (durov, @durov) or a link (https://t.me/durov, https://t.me/s/durov). A post link (https://t.me/durov/400) starts from that post and goes back in time. Private invite links, groups, users and bots are reported as free error rows. |
| `maxPostsPerChannel` | integer |  | `100` | Newest posts to return per channel (after date and keyword filters). Set 0 for no limit when you use From date. Pagination goes as deep as the channel's history (thousands of posts are fine). |
| `dateFrom` | string |  |  | Only posts published on or after this date. YYYY-MM-DD, an ISO date-time (UTC), or relative: 7 days, 24 hours, 3 months. |
| `dateTo` | string |  |  | Only posts published on or before this date (a plain date includes the whole day, UTC). The scraper jumps straight to that point in the channel history, so old ranges are fast. |
| `keywords` | array |  |  | Only return posts containing any of these words or phrases (case-insensitive; checked in the post text, file names, link preview and poll question). Posts that don't match are not charged. Leave empty for all posts. |
| `keywordMode` | string |  | `"contains"` | Contains scans the channel history (respecting the date range) and keeps matching posts - exact and as deep as you need. Telegram search uses Telegram's own search (matches word forms) but Telegram returns only about 20 of the newest matches per keyword. |
| `matchAllKeywords` | boolean |  | `false` | Only keep posts that contain every keyword (default: any keyword). |
| `wholeWordsOnly` | boolean |  | `true` | Match keywords as whole words (SEC won't match "second"). Turn off to also match inside words, e.g. word forms (Трамп → "Трампа") or prefixes (crypto → "cryptocurrency"). Chinese, Japanese, Korean and Thai keywords always match anywhere. |
| `maxScannedPostsPerChannel` | integer |  | `5000` | With a keyword filter, stop scanning a channel after this many posts even if fewer matches were found. Scanned posts that don't match are free. |
| `includeChannelInfo` | boolean |  | `true` | Add one row per channel with title, description, exact subscriber count, photo, verified / scam / fake flags and media counters. |
| `includeHtml` | boolean |  | `true` | Add textHtml (formatting, links, custom emoji) next to the plain text. |
| `includeServiceMessages` | boolean |  | `false` | Include 'Channel created', 'Channel photo updated' and similar service messages. |
| `proxyConfiguration` | object |  | `{"useApifyProxy": true}` | Used only when Always use the proxy is on. Telegram's web preview works without a proxy; if Telegram rate-limits a run, the Actor backs off and slows down instead of switching to a proxy. Default: Apify datacenter proxy. |
| `alwaysUseProxy` | boolean |  | `false` | Send every request through the proxy above instead of connecting directly first. |
| `maxConcurrency` | integer |  | `10` | Parallel page requests. Large single channels are split into parallel page streams. |

## Example input

```json
{
  "channels": [
    "durov"
  ],
  "maxPostsPerChannel": 20,
  "keywordMode": "contains",
  "matchAllKeywords": false,
  "wholeWordsOnly": true,
  "maxScannedPostsPerChannel": 5000,
  "includeChannelInfo": true,
  "includeHtml": true,
  "includeServiceMessages": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "alwaysUseProxy": false,
  "maxConcurrency": 10
}
```

## Output fields

One flat row per result:

| Field | Type | Description |
|---|---|---|
| `type` | string | Row type: post, channel (channel info) or error (free) |
| `status` | string | channel/error rows: ok, not_found, no_web_preview, private, is_group, is_user, is_bot, invalid_input, no_posts, no_matches, fetch_failed |
| `channel` | string | Channel username |
| `channelTitle` | string | Channel title |
| `postId` | integer | Post ID (message ID within the channel) |
| `url` | string | Post or channel URL |
| `date` | string | Published (ISO 8601, UTC) |
| `text` | string | Post text (plain, emoji kept, line breaks preserved) |
| `textHtml` | string | Post text as HTML (formatting, links, custom emoji) |
| `views` | integer | Views (Telegram rounds large numbers: 18.9M) |
| `viewsText` | string | Views as shown |
| `author` | string | Author signature, if the channel signs posts |
| `isEdited` | boolean | Post was edited |
| `forwardedFrom` | object | Original channel/user of a forwarded post: name, url, username, postId |
| `replyTo` | object | Replied-to post: postId, channel, url, author, text |
| `mediaType` | string | text, photo, video, album, document, audio, voice, round_video, sticker, gif, location, poll, service, unsupported |
| `media` | array | Media items: type, url, thumbnailUrl, duration, fileName, fileSize |
| `mediaCount` | integer | Number of media items |
| `photoUrls` | array | Photo URLs |
| `videoThumbnailUrls` | array | Video thumbnail URLs |
| `documentNames` | array | Attached file names |
| `linkPreview` | object | Link preview: url, siteName, title, description, imageUrl |
| `poll` | object | Poll: question, type, options (text, percent), voters |
| `links` | array | Links in the post text |
| `hashtags` | array | Hashtags |
| `mentions` | array | @mentions |
| `reactions` | array | Reactions: emoji, customEmojiId, isPaid (Stars), count |
| `reactionsTotal` | integer | Sum of all reaction counts |
| `isService` | boolean | Service message (channel created, photo updated...) |
| `matchedKeywords` | array | Keywords found in the post |
| `title` | string | Channel title (channel rows) |
| `description` | string | Channel description |
| `descriptionHtml` | string | Channel description HTML |
| `subscribers` | integer | Exact subscriber count |
| `subscribersText` | string | Subscribers as shown in the preview (10.5M) |
| `photoUrl` | string | Channel photo URL |
| `isVerified` | boolean | Verified channel |
| `isScam` | boolean | Marked as scam by Telegram |
| `isFake` | boolean | Marked as fake by Telegram |
| `photosCount` | integer | Photos in the channel |
| `videosCount` | integer | Videos in the channel |
| `filesCount` | integer | Files in the channel |
| `linksCount` | integer | Links in the channel |
| `lastPostId` | integer | Newest post ID |
| `lastPostDate` | string | Newest post date |
| `webPreviewUrl` | string | t.me/s/ URL |
| `error` | string | Why the channel could not be scraped (error rows) |
| `input` | string | Your input this row came from |
| `scrapedAt` | string | Scraped at (UTC) |

## Notes

- Auth: an Apify API token as `Authorization: Bearer <token>`; the MCP server also supports OAuth sign-in.
- Failed or empty results are not charged on most tools; check the pricing on the Store page.
- Questions: hello@wrenfielddata.com
- Apify Store links on this page are referral links. They may earn us a commission, at no extra cost to you.
