# Telegram Scraper & API | EveryInfra (`blushing_parachute/everyinfra-telegram-api`) Actor

Unofficial Telegram data via one Actor: channel_posts, profile, search, group, members, post_detail. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-telegram-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 5 total users, 4 monthly users, 31.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 search requests

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 Scraper & API | EveryInfra

Search Telegram public channels, groups and messages to retrieve post content, view counts and member samples.

Usernames can be plain or in URL form. Private invite links and complete member lists are not supported.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `channel_posts` | Read the messages posted in a public Telegram channel. Each post has text, views, media, reactions and its forwarding source. Private invite links are not supported. The batch may not reach the full channel history. | username | — | 20 (up to 200) | $0.0032 |
| `profile` | See how big a public Telegram channel is. Get subscriber count, photo, video and link counts, bio, avatar and verification status. It takes a name, @name, t.me/name or t.me/s/name. Private chats, phone numbers and member names stay out of reach. | username | — | 1 | $0.0013 |
| `search` | Search messages across public Telegram channels by keyword. Each hit has channel name, type, subscriber count, views, reactions and media. Narrow the window with `since` and `until`. Private chats are never searched, and results do not represent all of Telegram. | keyword | since, until | 20 (up to 100) | $0.0018 |
| `group` | Look up the info card of a Telegram group or channel: title, description, member and online counts, creation date and scam, fake or verified flags. Private invite links are not supported, and the call never joins the group or opens restricted content. | username | — | 1 | $0.0009 |
| `members` | List the visible members of a public Telegram group, with username, name, account type, Premium, scam and fake flags and last-seen time. The list may be partial, and a phone number appears only when the member has made it public. | username | — | 100 (up to 5000) | $0.0052 |
| `post_detail` | Read one message from a public Telegram channel by its link, such as https://t.me/durov/520. Get text, views, post time, media type and link, author signature, forward source, reply link, link preview and reactions with counts. | url | — | 1 | $0.0007 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "search",
  "keyword": "bitcoin"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `channel_posts`: `id`, `url`, `channel_username`, `channel_title`, `text`, `view_count`, `posted_at`, `media_type`, `media_url`, `author`, `is_forwarded`, `forwarded_from`, `reply_to_url`, `platform`, `link_preview_url`, `reactions`
- `profile`: `username`, `name`, `bio`, `subscriber_count`, `photo_count`, `video_count`, `link_count`, `is_verified`, `avatar_url`, `url`, `platform`
- `search`: `id`, `url`, `text`, `posted_at`, `view_count`, `media_url`, `reactions`, `channel_username`, `channel_title`, `channel_type`, `channel_subscriber_count`, `channel_description`, `platform`
- `group`: `id`, `type`, `username`, `url`, `title`, `name`, `description`, `member_count`, `online_count`, `created_at`, `is_verified`, `is_scam`, `is_fake`, `is_forum`, `is_restricted`, `admin_bots`, `platform`
- `members`: `id`, `username`, `url`, `name`, `type`, `is_verified`, `is_premium`, `is_scam`, `is_fake`, `last_seen_at`, `phone`, `platform`
- `post_detail`: `id`, `url`, `channel_username`, `text`, `view_count`, `posted_at`, `media_type`, `media_url`, `author`, `is_forwarded`, `forwarded_from`, `reply_to_url`, `platform`, `link_preview_url`, `reactions`

#### Field notes

- `admin_bots`: Admin bots in the channel.
- `author`: Message sender.
- `channel_description`: Channel description.
- `channel_subscriber_count`: Number of channel subscribers.
- `channel_title`: Channel name.
- `channel_type`: Type (channel / group / supergroup).
- `channel_username`: Channel username (the public identifier starting with @).
- `forwarded_from`: Forward source. Used to trace how information spread.
- `is_fake`: **Officially flagged as an impersonation account** (pretending to be a well-known entity).
- `is_forum`: Whether it is a forum-style group with topics.
- `is_forwarded`: Whether the message is forwarded.
- `is_premium`: Whether the sender is a Telegram Premium user.
- `is_restricted`: Whether the account is restricted.
- `is_scam`: **Officially flagged by Telegram as a scam account.** When true, the content cannot be trusted.
- `last_seen_at`: Last seen online time.
- `link_count`: Number of links in the message.
- `media_type`: Media type (photo / video / file / voice).
- `media_url`: Media file link.
- `member_count`: Number of members.
- `online_count`: Number of people currently online. A direct indicator of group activity.
- `photo_count`: Number of photos.
- `reactions`: Emoji reactions with their counts.
- `reply_to_url`: Link to the message being replied to.
- `subscriber_count`: Number of subscribers.
- `video_count`: Number of videos.
- `link_preview_url`: URL the post's link preview points to (channel_posts / post_detail); absent when the post has no link preview.

### Pricing

Pay per event, charged only when a run delivers data:

- `channel_posts`: $0.0032, one event per started block of 20 results.
- `profile`: $0.0013, one event per non-empty request, whatever the row count.
- `search`: $0.0018, one event per started block of 20 results.
- `group`: $0.0009, one event per non-empty request, whatever the row count.
- `members`: $0.0052, one event per started block of 100 results.
- `post_detail`: $0.0007, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Telegram or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `username` (type: `string`):

Used by `channel_posts` (required), `profile` (required), `group` (required), `members` (required). Specifies the target public channel or group using formats such as name, @name, t.me/name, or t.me/s/name. Used by channel_posts and profile for public channels, group for public entity metadata, and members to retrieve visible group members; private invite links are not supported, and complete member lists are not guaranteed.

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

Used by `search` (required). Specifies the message search query for the search action in public channels. It does not search contact lists or private chats.

## `since` (type: `string`):

Used by `search`. Sets the lower message date bound for the search action. It does not filter by group creation date, and channel_posts has no date filter.

## `until` (type: `string`):

Used by `search`. Sets the upper message date bound (beforeDate) for the search action. Used alongside since to narrow public message results; it does not guarantee complete message coverage within the specified range.

## `url` (type: `string`):

Used by `post_detail` (required). Link to one public channel message for `post_detail`, https://t.me/<channel>/<message ID>; t.me/s/ links work too.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `channel_posts` 20 (max 200); `search` 20 (max 100); `members` 100 (max 5000). Billing: `channel_posts` one event per started block of 20 results; `search` one event per started block of 20 results; `members` one event per started block of 100 results.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "search",
  "keyword": "bitcoin"
}
```

# Actor output Schema

## `records` (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 = {
    "keyword": "bitcoin"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-telegram-api").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 = { "keyword": "bitcoin" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-telegram-api").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 '{
  "keyword": "bitcoin"
}' |
apify call blushing_parachute/everyinfra-telegram-api --silent --output-dataset

```

## MCP server setup

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

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/TuVD3HYhPiMWnlepo/builds/gkirennqkRufdyuhw/openapi.json
