# Telegram Organization Channel Posts - Public Preview (`varnmill/telegram-channel-posts`) Actor

Dated snapshots of public organization channel previews. Up to 20 recent posts and one channel report; no login, groups, search, historical archive or member data.

- **URL**: https://apify.com/varnmill/telegram-channel-posts.md
- **Developed by:** [Jay Novello](https://apify.com/varnmill) (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 $0.45 / 1,000 public preview 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 organization-channel preview snapshots

On November 4, 2026, the public `https://t.me/s/telegram` preview returned 20 Telegram News announcements. One actual row from that local source check:

```json
{
  "type": "post",
  "id": "telegram/460",
  "messageId": 460,
  "channel": "telegram",
  "channelName": "Telegram News",
  "url": "https://t.me/telegram/460",
  "sourceUrl": "https://t.me/s/telegram",
  "capturedAt": "2026-11-04T08:41:13.144032+00:00",
  "publishedAt": "2026-08-26T19:12:34+00:00",
  "text": "For all the info from today's update and a look back at\n13 years of Telegram features\n\u2014 check out our blog:\nhttps://telegram.org/blog/welcome-messages-buttons-TG-13\nAugust Features\n1\n\u2022\n2\n\u2022\n3\n\u2022\n4\n\u2022\n5\n\u2022\nMore",
  "viewsText": "2.31M",
  "viewCount": null,
  "completeness": "public_web_preview_only",
  "missingFields": []
}
```

Initial limited workflow: public organization-channel previews. Paid demand remains unproven.

Export recent organization announcements to JSON or CSV without Telegram login, API credentials or a proxy. Supply 1–5 public organization channel usernames or `https://t.me/s/channel` URLs. Each channel returns up to 20 newest posts present on its public web preview and one dated channel report. A report identifies the observed post IDs and whether an older-page link exists. It never claims complete channel history.

```json
{"channels":["https://t.me/s/telegram"],"maxPostsPerChannel":20}
```

### Pricing

| Event | Free-plan/base price | Bronze, Silver, Gold, Platinum, Diamond | Meaning |
|---|---|---|---|
| Actor start | $0.00005 | $0.00005 | One platform start event at the fixed 512 MB configuration |
| Channel report | $0.0015 | $0.00135 | One successfully parsed public preview and its coverage evidence |
| Post | $0.50 / 1,000 | $0.45 / 1,000 | Each delivered post row |

Twenty posts plus a report and start total $0.01155 at base prices; one post plus report and start totals $0.00205. All five paid tiers receive a 10% discount on post and report events; the start event is unchanged. The same 20-post snapshot costs $0.01040 on these tiers, and one post with report costs $0.00185. The minimum run budget is $0.00205; this is a ceiling you authorize, not a flat fee. Infrastructure is included in event prices. A report counts as one dataset row, so a 20-post snapshot has 21 total rows. A report can be delivered without post rows when the remaining spending cap only covers the report; its `previewPostCount` describes the source page, not the number of charged posts. Source errors produce no report or post charge. The platform start fee may still apply. Owner validation runs are not paid revenue.

### Coverage and accuracy

- Only public organization-channel previews. No private groups, member/contact lists, personal profiles, login, search, comments, reactions, historical pagination, media downloads or monitoring state across separate runs.
- The source may expose fewer than 20 posts, hide content or change layout. Missing/empty/blocked previews fail explicitly; they are not successful zero-result checks. No CAPTCHA or access-control bypass.
- `viewsText` is Telegram's displayed rounded value. `viewCount` remains null; never interpret the display string as an exact audience measure. Missing text remains null. Captions are source text, not inferred media content.
- Source timestamps and stable channel/message IDs are preserved. `previewComplete` in OUTPUT means the captured preview was delivered, never that the entire channel history is complete.
- Each new run is a newly billed snapshot, including unchanged posts. Same-run recovery reuses its saved preview and delivered dataset rows; already delivered reports/posts are not requested again. The report and the immutable preview record are saved for recovery. Different runs do not share storage.
- Outputs are sequential per channel. A failure leaves prior delivered rows available and marks the run failed. Inspect OUTPUT for source errors and charge limits.

### Use the output

1. Open the Actor in Apify Console and use the input above. A $0.03 maximum charge covers one 20-post snapshot at base prices.
2. Check the run status and OUTPUT before using the dataset. `source_error` or `recovery_error` means the run failed; earlier delivered rows can still exist. `charge_limit` means the budget stopped delivery.
3. Download JSON or CSV from Dataset. Filter `type=post` for announcements. Keep `type=channel_report` rows alongside them as source coverage evidence. Reports and posts use different fields; blank CSV cells are expected.
4. For later comparisons, join posts on `id` and retain both capture timestamps. Separate runs bill the returned posts again, including unchanged rows. An absent ID does not prove deletion because this is a moving preview window.

`previewComplete` only concerns delivery of the captured page. It does not mean full channel history, and `completeHistory` always remains false. A request for fewer posts than the preview contains is deliberately incomplete.

### FAQ

**Can this export all history?** No. Only one public preview page, at most 20 posts per channel.

**Can I use a personal profile or private invite?** No. Supply organization channels with public web previews. URL shape alone does not prove organization ownership; choose your organization's or another public organization's channel.

**Why is there a report fee?** Each verified preview has retrieval and coverage-reporting work even when few posts are requested. It is explicit and separate from delivered posts.

**What happens at a spending cap?** Only the SDK-affordable prefix is delivered and charged. Zero capacity stops before requesting the source. Partial output remains in the dataset.

### Changelog

- 2026-11-05: Documented exact paid-tier prices, budget floor, report row accounting and JSON/CSV workflow.
- 2026-11-04: Initial public-preview parser and source sample; SDK billing, immutable same-run recovery, schemas and private validation candidate implemented.

# Actor input Schema

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

One to five public organization usernames or HTTPS t.me/s/channel URLs. Use only organization channels. No private invites, personal profiles or group/member extraction. Each parsed preview has a separately priced channel report.

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

Newest 1–20 posts present on one public preview page. Fewer may be available. Does not paginate older history; repeated runs bill returned rows again.

## Actor input object example

```json
{
  "channels": [
    "https://t.me/s/telegram"
  ],
  "maxPostsPerChannel": 20
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

## `coverage` (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": [
        "https://t.me/s/telegram"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("varnmill/telegram-channel-posts").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": ["https://t.me/s/telegram"] }

# Run the Actor and wait for it to finish
run = client.actor("varnmill/telegram-channel-posts").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": [
    "https://t.me/s/telegram"
  ]
}' |
apify call varnmill/telegram-channel-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,varnmill/telegram-channel-posts"
        }
    }
}
```

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/7u7s12rbL2EDvGUhf/builds/9YjYJgh28HivRkklS/openapi.json
