# Telegram Channel & Bot Page Checker (`cleanfetch/telegram-page-checker`) Actor

Check public Telegram pages in bulk: type (channel, bot, group), title, description, subscribers, bot monthly users and recent post views. No login, public data only.

- **URL**: https://apify.com/cleanfetch/telegram-page-checker.md
- **Developed by:** [Cleanfetch](https://apify.com/cleanfetch) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 page checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 & Bot Page Checker

Check hundreds of public Telegram pages in one run and get clean, structured data:

- **Type** of each link: channel, bot, group, personal account, not found.
- **Channels:** title, description, exact subscriber count, verified mark — plus optional **recent post stats** from the public
  preview: number of visible posts, last post date, median and maximum views, photo/video/link counters.
- **Bots:** title, description and **monthly users** as shown by Telegram.
- **Groups:** title, description, members and online count (when Telegram shows them).

No login, no Telegram account, no API keys. The Actor reads only the public pages `t.me/<username>` and `t.me/s/<username>`
that anyone can open in a browser.

### Use cases

- Vet channels before buying an ad post: real subscribers, how often they post, how many views posts actually get.
- Keep a bot or channel catalog up to date: which entries still exist, what changed, how many monthly users a bot has.
- Track competitors' channels and bots over time (schedule the Actor and compare runs).
- Clean a list of Telegram links: find dead, renamed or invalid ones.

### Input

| Field | Description |
|---|---|
| `usernames` | Links (`https://t.me/durov`), `@usernames` or plain usernames. Up to 5,000 per run. |
| `includePostStats` | For channels, also read the public post preview and return post/view statistics (default: on). |
| `delaySeconds` | Pause between pages, minimum 0.5 s (default 1 s). |

### Output example

```json
{
  "input": "https://t.me/telegram",
  "username": "telegram",
  "url": "https://t.me/telegram",
  "type": "channel",
  "title": "Telegram News",
  "description": "News and updates…",
  "subscribers": 9097986,
  "verified": true,
  "posts": {"recent_posts": 20, "last_post_at": "2026-08-26T19:12:34+00:00", "views_median": 1820000, "views_max": 1850000,
            "photos": 16, "videos": 228, "links": 378, "files": null},
  "checked_at": "2026-11-18T00:35:10Z"
}
```

For bots the record has `monthly_users` (Telegram shows this number only for bots with roughly 10,000+ monthly users; otherwise
it is `null`). For personal accounts the Actor returns only `"type": "user"` — no names or descriptions of private people.

### Pricing (pay per event)

- **Page checked** — each link whose page was read and classified (including “not found”).
- **Post stats** — each channel for which recent post statistics were collected.

You are not charged for invalid usernames, network errors or pages that could not be recognized. See the current prices on the
Actor's pricing tab. You can set a maximum charge per run; the Actor stops when it is reached.

### Limits and honest notes

- This Actor reads Telegram's public **web pages (HTML)**; it does not use any Telegram API. Telegram can change these pages at any time;
  the Actor warns in the log when many pages are not recognized.
- Post statistics cover only the **latest posts visible in the public preview (up to about 20)**, and Telegram rounds view counts
  (e.g. 1.82M). Treat them as a quick signal for vetting a channel, not as a complete audit.
- You are responsible for using the data in line with Telegram's Terms of Service and the data-protection laws that apply to you.
- Only public data that Telegram shows on its web pages. No members lists, no private chats, no messages beyond the public preview.
- Subscriber counts on `t.me/<channel>` are exact; numbers inside the post preview (views) are rounded by Telegram (e.g. 1.82M).
- Bots with Telegram's own or collectible usernames (for example `@wallet` or `@xrocket`) are detected as bots, even though
  their names do not end in "bot".
- The Actor checks about one page per second. Thousands of inputs may need a longer run timeout; the run stops about a minute
  before the timeout and keeps everything collected so far (you pay only for saved results).
- Some channels disable the public post preview; then `posts` is missing and `posts_error` explains why (not charged).
- Telegram may change its pages. If something breaks, open an issue — we aim to fix within a few days.
- This Actor is not affiliated with Telegram.

# Actor input Schema

## `usernames` (type: `array`):

Public channels, bots or groups: https://t.me/durov, @durov or durov. Up to 5,000 per run.

## `includePostStats` (type: `boolean`):

For public channels, also read the public post preview (t.me/s/...) and return recent post count, last post date and view statistics. Charged as a separate event.

## `delaySeconds` (type: `number`):

Pause between requests to stay polite to Telegram. Minimum 0.5.

## Actor input object example

```json
{
  "usernames": [
    "telegram",
    "durov",
    "GroupHelpBot"
  ],
  "includePostStats": true,
  "delaySeconds": 1
}
```

# Actor output Schema

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

One record per input link: type, title, description, subscribers or monthly users, recent post stats.

# 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 = {
    "usernames": [
        "telegram",
        "durov",
        "GroupHelpBot"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cleanfetch/telegram-page-checker").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 = { "usernames": [
        "telegram",
        "durov",
        "GroupHelpBot",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cleanfetch/telegram-page-checker").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 '{
  "usernames": [
    "telegram",
    "durov",
    "GroupHelpBot"
  ]
}' |
apify call cleanfetch/telegram-page-checker --silent --output-dataset

```

## MCP server setup

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

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/mPca7teAfSe15Dmdj/builds/mIZ81KLUi7h8aK8BL/openapi.json
