# Telegram Keyword Search Scraper: Posts & Channels API (`scrapepilot/telegram-keyword-search-scraper-posts-channels-api`) Actor

Scrape real-time public Telegram posts and channels by keywords or usernames without login or API keys. Extracts live post text, views, emoji reactions, dates, media links, and subscriber counts in JSON, CSV, or Excel. Fast Pay-Per-Event data extraction.

- **URL**: https://apify.com/scrapepilot/telegram-keyword-search-scraper-posts-channels-api.md
- **Developed by:** [Scrape Pilot](https://apify.com/scrapepilot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Keyword Search & Channel Scraper

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?style=for-the-badge\&logo=apify)](https://apify.com)
[![Data Quality](https://img.shields.io/badge/Data-100%25%20Live%20%26%20Real-brightgreen?style=for-the-badge)]()
[![No Login Required](https://img.shields.io/badge/Auth-No%20Login%20%2F%20No%20API%20Key-blue?style=for-the-badge)]()
[![Pay Per Event](https://img.shields.io/badge/Monetization-Pay%20Per%20Event-success?style=for-the-badge)]()

**Telegram Keyword Search & Channel Scraper** is the most powerful, lightning-fast solution to discover and extract public Telegram posts, channels, views, emoji reactions, media links, and channel profile statistics.

Search Telegram content by **keywords and topics** or scrape recent posts from **any public channel** — **100% free of login credentials, phone numbers, cookies, or Telegram API keys**.

***

### 🌟 Why Choose This Telegram Scraper?

- 🔍 **Multi-Source Keyword Discovery**: Find public Telegram preview posts and channels matching your search queries across global indexes.
- 📢 **Complete Public Channel History**: Extract recent posts from known public channels with backwards pagination down to custom message caps or date cutoffs.
- 📊 **30+ Comprehensive Data Points**: Captures full message text, exact publication dates, views, individual emoji reactions, total reaction counts, media URLs, forward tags, pinned indicators, verified badges, and channel subscriber counters.
- ⚡ **High-Speed & Production-Ready**: Powered by optimized browser-grade network requests that deliver results in seconds.
- 🔒 **Zero Setup & Maximum Privacy**: No phone numbers, no session strings, and no Telegram API keys required. Works straight out of the box.
- 💳 **Pay-Per-Event (PPE) Fair Pricing**: You only pay for the exact results delivered to your dataset.

***

### 🎯 Popular Use Cases

- **Brand & Sentiment Monitoring**: Track public Telegram mentions of your company, product, or executive leadership in real time.
- **Crypto & Financial Intelligence**: Monitor alpha channels, trading announcements, memecoin news, and market signals.
- **Competitor & Content Research**: Compare post engagement, view counts, and popular emoji reactions across competitor channels.
- **Lead Generation & Job Discovery**: Discover job openings, remote work postings, and community announcements using targeted keywords.
- **News Aggregation & Research**: Aggregate breaking world news, tech updates, and AI breakthroughs directly into structured JSON, CSV, or Excel datasets.

***

### 🛠️ Two Powerful Scraping Modes

| Scraping Mode | Ideal For | How It Works |
| :--- | :--- | :--- |
| **Keyword Search Mode** | Discovering new content, trending topics, and channels | Searches public web indexes for matching Telegram preview posts and extracts discovered messages. |
| **Channel Posts Mode** | In-depth monitoring and historical archives of specific channels | Reads the public channel web preview and paginates backwards until your message cap or date cutoff is reached. |

***

### 📋 Input Configuration

You can easily configure the scraper using the visual form or direct JSON input:

#### 1. Visual Input Form Options

- **Scraping Mode**: Select between `Keyword Search Mode` or `Channel Posts Mode`.
- **Search Keywords**: Enter search terms (e.g. `artificial intelligence`, `crypto news`, `remote jobs`).
- **Max Results Per Keyword**: Number of discovered items to collect per keyword.
- **Public Telegram Channels**: Channel usernames (e.g. `telegram`, `durov`, `@bbcnews`) or full URLs.
- **Max Messages Per Channel**: Maximum historical messages to collect from each channel.
- **After Date**: Collect posts published on or after a specific date (`YYYY-MM-DD` or relative like `30 days`, `7 days`).
- **Before Date**: Optional upper date cutoff (`YYYY-MM-DD`).
- **Maximum Total Items**: Overall hard cap across all queries.

#### 2. Example: Keyword Discovery Input

```json
{
  "mode": "keyword",
  "keywords": ["artificial intelligence", "machine learning"],
  "maxResultsPerKeyword": 30,
  "afterDate": "30 days",
  "maxItems": 60
}
```

#### 3. Example: Public Channel History Input

```json
{
  "mode": "channel",
  "channels": ["telegram", "durov"],
  "channelMaxMessages": 50,
  "maxItems": 100
}
```

***

### 📦 Rich Output Dataset Schema

Each extracted item contains up to 30+ comprehensive, clean fields:

| Field | Data Type | Description |
| :--- | :--- | :--- |
| `id` | Integer | Unique post ID within the public channel |
| `postUrl` | String | Canonical direct link to the Telegram message (`https://t.me/channel/123`) |
| `sourceUrl` | String | Web preview URL where the record was collected |
| `mode` | String | Scraping mode used (`keyword` or `channel`) |
| `matchedKeyword` | String / Null | Keyword that discovered this post (in keyword mode) |
| `text` | String | Full message text and caption with formatting preserved |
| `date` | String (ISO) | UTC publication timestamp (`YYYY-MM-DDTHH:MM:SS+00:00`) |
| `views` | Integer | Total post views parsed into a numeric integer (e.g. `35600`) |
| `viewsFormatted` | String | Display format of views (e.g. `35.6K`, `2.1M`) |
| `reactions` | Object | Dictionary of emoji reactions mapped to counts (`{"👍": 90, "🤣": 475}`) |
| `totalReactions` | Integer | Sum of all emoji reactions on the post |
| `mediaType` | String | Type of attached media (`photo`, `video`, `document`, `audio`, `none`) |
| `mediaUrl` | String | Direct CDN link to photo, video preview, or media attachment |
| `isPinned` | Boolean | `true` if the post is pinned in the channel |
| `isForwarded` | Boolean | `true` if the post was forwarded from another author or channel |
| `forwardedFrom` | String / Null | Display name or channel handle of original sender |
| `isEdited` | Boolean | `true` if the message was edited after publication |
| `hasLinks` | Boolean | `true` if the post contains external web links |
| `extractedLinks` | Array | List of URLs found in the post text |
| `sourceId` | String | Public channel username handle (without `@`) |
| `sourceName` | String | Channel display title |
| `sourceType` | String | Type of source (`Channel`) |
| `channelInfo` | Object | Channel-level metadata (title, description, subscribers, avatar, media counts) |
| `processedAt` | String (ISO) | UTC timestamp when this item was scraped |

***

### 📄 Sample Extracted Record

```json
{
  "id": 27924,
  "postUrl": "https://t.me/rozetked/27924",
  "sourceUrl": "https://t.me/s/rozetked",
  "mode": "channel",
  "matchedKeyword": null,
  "text": "A new concept for collective bill payments has gone viral on the web.\nDevelopers have introduced Swipe a Bill, allowing users to collaborate on expenses.\nrozetked.me/news/49328",
  "date": "2026-11-07T08:35:51+00:00",
  "views": 35600,
  "viewsFormatted": "35.6K",
  "reactions": {
    "🤣": 475,
    "👍": 90,
    "❤": 30,
    "👏": 24,
    "👎": 8
  },
  "totalReactions": 627,
  "mediaType": "photo",
  "mediaUrl": "https://cdn4.telesco.pe/file/Z7aHt2l6FuFKzwJfjcysmJ.jpg",
  "isPinned": false,
  "isForwarded": false,
  "forwardedFrom": null,
  "isEdited": true,
  "hasLinks": true,
  "extractedLinks": [
    "https://rozetked.me/news/49328"
  ],
  "type": "Media",
  "sourceId": "rozetked",
  "sourceName": "Rozetked",
  "sourceType": "Channel",
  "channelInfo": {
    "username": "@rozetked",
    "title": "Rozetked",
    "description": "Tech, news, digital culture, and hardware reviews.",
    "subscribers": 648000,
    "subscribersRaw": "648K",
    "verified": true,
    "avatar": "https://cdn4.telesco.pe/file/nlbBDUXT9YpPYibeov83HyEl.jpg",
    "photosCount": 14900,
    "videosCount": 3790,
    "filesCount": 4,
    "linksCount": 21500
  },
  "processedAt": "2026-11-07T10:55:58.551186+00:00"
}
```

***

### 💎 Pay-Per-Event (PPE) Pricing & Free Tier Access

- **Free Tier Users**: Can test the scraper with up to **50 free results**. Once 50 records are reached, the run completes gracefully.
- **Paid Subscribers**: Enjoy **unlimited bulk data extraction** with pay-per-event pricing per result.
- **Included Platform Costs**: Platform compute costs are fully included — you only pay for the actual data records extracted.

***

### ❓ Frequently Asked Questions (FAQ)

##### Do I need a Telegram account, phone number, or Telegram API key?

No! This scraper extracts verified data exclusively from Telegram's public web preview infrastructure. No personal credentials, phone verifications, or Telegram API IDs are required.

##### Can I export results to Excel, Google Sheets, or CSV?

Yes! Apify allows you to export your dataset in multiple formats: JSON, CSV, Excel, XML, or HTML with a single click.

##### Can this scraper access private Telegram channels or private groups?

No. In compliance with privacy standards, only publicly accessible channels and public web previews are supported.

##### How do I monitor a channel automatically on a schedule?

Save your input configuration as an Apify Task and click **Schedule** in the Apify Console. You can schedule the actor to run hourly, daily, or weekly to capture new posts automatically.

***

### 🤝 Support & Feedback

Have a feature request, question, or need assistance? Open an issue in the **Issues** tab or contact us through the Apify platform.

# Actor input Schema

## `mode` (type: `string`):

Choose between searching Telegram public content by keywords or extracting posts directly from known public channels.

## `keywords` (type: `array`):

One or more search queries or topics (e.g., 'artificial intelligence', 'crypto news', 'remote jobs'). Each keyword discovers public Telegram posts and channels.

## `maxResultsPerKeyword` (type: `integer`):

Maximum number of discovered Telegram posts or channels to extract per keyword.

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

List of public Telegram channel usernames (e.g. 'telegram', 'durov', '@bbcnews') or full links ('https://t.me/telegram').

## `channelMaxMessages` (type: `integer`):

Maximum number of historical messages to collect from each channel (paginating backwards).

## `afterDate` (type: `string`):

Only collect posts published on or after this date. Supports 'YYYY-MM-DD' (e.g. '2026-01-01') or relative format (e.g. '30 days', '7 days', '3 months').

## `beforeDate` (type: `string`):

Only collect posts published strictly before this date (format: YYYY-MM-DD).

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

Overall hard cap for total items extracted across all queries. Free tier accounts are capped at 50 results.

## `proxyConfiguration` (type: `object`):

Optional proxy configuration. Apify residential or datacenter proxies can be used to ensure high reliability.

## Actor input object example

```json
{
  "mode": "keyword",
  "keywords": [
    "artificial intelligence"
  ],
  "maxResultsPerKeyword": 30,
  "channels": [
    "telegram",
    "durov"
  ],
  "channelMaxMessages": 50,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Collection of extracted Telegram post records stored in the default dataset.

# 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 = {
    "keywords": [
        "artificial intelligence"
    ],
    "channels": [
        "telegram",
        "durov"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapepilot/telegram-keyword-search-scraper-posts-channels-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 = {
    "keywords": ["artificial intelligence"],
    "channels": [
        "telegram",
        "durov",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapepilot/telegram-keyword-search-scraper-posts-channels-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 '{
  "keywords": [
    "artificial intelligence"
  ],
  "channels": [
    "telegram",
    "durov"
  ]
}' |
apify call scrapepilot/telegram-keyword-search-scraper-posts-channels-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapepilot/telegram-keyword-search-scraper-posts-channels-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/Tr8SYdokcx9wROstn/builds/VE4SngYBevH5XCEfs/openapi.json
