# Telegram Posts Scraper (`icoe-man/telegram-posts-scraper`) Actor

A telegram channel posts scraper for public channels only: collect the latest posts of a channel, with text, media, dates and view counts. Export JSON, CSV or Excel.

- **URL**: https://apify.com/icoe-man/telegram-posts-scraper.md
- **Developed by:** [Icoe Man](https://apify.com/icoe-man) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.21 / 1,000 channel 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 Posts Scraper

Get recent posts from public Telegram channels in a table you can download or use in another tool. Enter channel names or links, then narrow the results by date, words in the post, view count or media type. The Actor reads the latest page first and works back in time. The table shows view counts and reactions by emoji, along with link previews when available and the channel's subscriber count.

### What you get

Enter up to 100 channels in **Channels**, and set **Posts from** (optional), **Posts before** (optional), **Contains words** (optional), **Minimum views** (optional), **Media type** (optional). By default, you get up to 50 public posts for each channel. To change that limit, enter a number no higher than 1000 in **Result limit per channel**. Each post gets its own row in the results table. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Ways to use the data

- Review how a public Telegram channel covered a topic by gathering its posts in one place.
- Build an archive of public channel posts with their dates and view counts so you can review them later.
- Capture post view counts as they stand when you prepare a report.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `channels` | Channels | Enter a public Telegram channel name (telegram or @telegram) or a channel link like https://t.me/telegram. |
| `postedAfter` | Posts from | Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date. The run stops after the first page with a post older than that date. The Actor checks for matches after reading the posts, so you may get fewer results than your limit. The run also stops early if three pages in a row have no matches or if too few of the posts it reads match. |
| `postedBefore` | Posts before | Enter a date, such as 2026-11-15 (UTC), to keep posts from before that day. Leave blank for no end date. The Actor checks dates after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match. |
| `keyword` | Contains words | Enter words to look for in the post text, such as launch. Capital letters don't affect matches. Leave blank to skip this filter. The Actor checks the text after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match. |
| `minViews` | Minimum views | Enter the minimum number of views a post needs to have, such as 10000. Leave blank for no minimum. The Actor checks view counts after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match. |
| `mediaType` | Media type | Choose photo or video to keep posts with that type of media. Choose any for posts with a photo or video, or none for posts with neither. Leave blank to skip this filter. The Actor checks the media type after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match. |
| `maxItems` | Result limit per channel | Enter the maximum number of results to collect for each channel. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "channels": [
    "telegram"
  ],
  "maxItems": 10,
  "freshness": "standard"
}
```

### Your results

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "telegram",
  "id": "telegram/441",
  "url": "https://t.me/telegram/441",
  "author": {
    "username": "telegram",
    "displayName": "Telegram News",
    "verified": true
  },
  "text": "A short example announcement about a new feature, shown for illustration.",
  "createdAt": "2026-07-19T17:57:31Z",
  "metrics": {
    "likes": 0,
    "views": 1460000
  },
  "hashtags": [],
  "mentions": [],
  "media": [
    {
      "kind": "image",
      "url": "https://cdn1.telesco.pe/file/example.jpg",
      "thumbnailUrl": "https://cdn1.telesco.pe/file/example_small.jpg",
      "durationSec": null
    }
  ],
  "details": {
    "telegram": {
      "isForwarded": false,
      "linkPreview": {
        "url": "https://telegram.org/blog/example",
        "siteName": "Telegram",
        "title": "An example link title, shown for illustration",
        "description": "An example link description, shown for illustration."
      },
      "reactions": [
        {
          "emoji": "👍",
          "customEmojiId": null,
          "count": 4680
        },
        {
          "emoji": null,
          "customEmojiId": "5368324170671202286",
          "count": 1200
        }
      ],
      "channel": {
        "description": "An example channel description, shown for illustration.",
        "subscribers": 9140000,
        "photos": 16,
        "videos": 228,
        "files": null,
        "links": 378,
        "avatarUrl": "https://cdn1.telesco.pe/file/example_avatar.jpg"
      }
    }
  },
  "collectedAt": "2026-11-11T12:00:00Z",
  "input": {
    "channel": "telegram",
    "maxItems": 10
  }
}
```

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Channel posts | $2.119 | $1.875 | $1.578 | $1.211 | $1.211 | $1.211 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 10 results per run and make up to 20 runs per day.

### Common questions

#### Which Telegram channels can I collect posts from?

You can collect posts from public Telegram channels that have a public web preview. Private channels, groups and channels without a public web preview return an error at no charge.

#### What details come with each post, and in what order do posts appear?

Each result includes the post's text, date, media and view count, plus a count for each reaction emoji. You can see whether a post was forwarded, but not where it came from. The link preview is blank for most posts. Results also include the channel's description, subscriber count and media counts. The Actor starts with the latest page and works back in time, reading about 20 posts per page. Posts on each page appear from oldest to newest.

#### How do I filter which posts I get?

Set a date range with Posts from and Posts before. Use Contains words to find words in the post text, Minimum views to set a minimum view count, or Media type to filter by photo or video. The Actor checks these filters after reading the posts. You pay only for matches it returns, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match.

#### Do I need a Telegram account to collect posts?

No. The Actor reads only public information, so you don't need a Telegram account, login details or browser cookies.

#### How do I limit results, and what do I pay for?

Set Result limit per channel to the most posts you want from each channel. You pay only for posts you get, and the run stops if it reaches your spending limit. There's no charge for errors or runs that return no posts.

#### Is this tool affiliated with Telegram?

No. This tool is independent and has no affiliation with Telegram. Telegram does not sponsor or endorse it. The tool collects only information Telegram makes public.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Telegram. All trademarks belong to their owners.

# Actor input Schema

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

Enter a public Telegram channel name (telegram or @telegram) or a channel link like https://t.me/telegram.

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

Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date. The run stops after the first page with a post older than that date. The Actor checks for matches after reading the posts, so you may get fewer results than your limit. The run also stops early if three pages in a row have no matches or if too few of the posts it reads match.

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

Enter a date, such as 2026-11-15 (UTC), to keep posts from before that day. Leave blank for no end date. The Actor checks dates after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match.

## `keyword` (type: `string`):

Enter words to look for in the post text, such as launch. Capital letters don't affect matches. Leave blank to skip this filter. The Actor checks the text after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match.

## `minViews` (type: `string`):

Enter the minimum number of views a post needs to have, such as 10000. Leave blank for no minimum. The Actor checks view counts after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match.

## `mediaType` (type: `string`):

Choose photo or video to keep posts with that type of media. Choose any for posts with a photo or video, or none for posts with neither. Leave blank to skip this filter. The Actor checks the media type after reading the posts, so you may get fewer results than your limit. The run stops early if three pages in a row have no matches or if too few of the posts it reads match.

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

Enter the maximum number of results to collect for each channel.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "channels": [
    "telegram"
  ],
  "maxItems": 10,
  "freshness": "standard"
}
```

# Actor output Schema

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

See everything this run collected in one table.

# 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"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/telegram-posts-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"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/telegram-posts-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"
  ],
  "maxItems": 10
}' |
apify call icoe-man/telegram-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icoe-man/telegram-posts-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/3sH66umx0S3cIHoXC/builds/GE9CQtpGBhJt9Jbar/openapi.json
