# Telegram Keyword Search Scraper (`piotrv1001/telegram-keyword-search-scraper`) Actor

Telegram keyword search across public channels: search Telegram messages by keyword and get text, date, views, reactions, media links and channel details. Find channels automatically or search your own list. Telegram mention monitoring and OSINT with no login, phone number or API key.

- **URL**: https://apify.com/piotrv1001/telegram-keyword-search-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** Social media, News, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 messages

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 Keyword Search Scraper: Search Telegram Messages by Keyword

Search public Telegram messages by keyword and get the text, date, views, reactions, media links and channel details of each match. The **Telegram Keyword Search Scraper** finds the channels for you, or searches only the channels you list. It suits Telegram monitoring, brand mentions and OSINT, with no login, phone number or API key. Export the results to JSON, CSV or Excel.

### 🎯 Use Cases

- **Telegram monitoring**: schedule a keyword and see what public channels post about it.
- **Brand mentions**: find messages that name your brand, product or competitors, with views and reactions to judge their reach.
- **Telegram OSINT**: collect dated, linkable posts about an event, a person or a place.
- **Telegram post search inside your own list**: paste the channels you follow and search all of them for one word.
- **Market and crypto research**: pull the latest messages on a token or a sector across channels, for sentiment analysis or an LLM pipeline.

### ✨ Features

- **Search across channels**: enter a keyword only, and the actor finds public channels on the topic and searches each one.
- **Search your own channels**: add handles or t.me links to look only there.
- **Rich rows**: text, date, views, reactions, author, forwarded-from, reply, images, videos, link preview, links and hashtags.
- **Real matches only**: messages that do not carry your keyword are dropped and not billed.
- **Channel context on every row**: channel name and subscriber count, so you can weigh a mention by reach.
- **No duplicates**: a message found by two keywords is saved and billed once.
- **Fair billing**: you pay per saved message, and the run stops at your maximum cost per run.

### 🛠️ How It Works

1. **Enter keywords**: one per line, in any language (empty = `bitcoin` as an example).
2. **Optionally add channels**: leave empty to find matching channels automatically.
3. **Run the scraper**: download the messages as JSON, CSV or Excel, or pull them through the API.

### ⚙️ Input

| Field                                     | What it does                                                                | Default   |
| ----------------------------------------- | --------------------------------------------------------------------------- | --------- |
| **Keywords** (`keywords`)                 | Words or phrases to search for.                                             | `bitcoin` |
| **Channels** (`channels`)                 | Search only these public channels. Empty = find channels for each keyword.  | empty     |
| **Max messages per keyword** (`maxItems`) | Stop after this many messages for each keyword.                             | `50`      |

```json
{
    "keywords": ["airdrop", "listing"],
    "channels": ["binance_announcements", "https://t.me/durov"],
    "maxItems": 100
}
```

**Limit per channel:** Telegram's in-channel search returns about 22 newest matches per channel per keyword. To collect more, search more channels (or leave **Channels** empty), use more specific keywords, or get a channel's whole history with the [Telegram Channel Scraper](https://apify.com/piotrv1001/telegram-channel-scraper). The run's status tells you when this limit was reached.

### 💰 Pricing

Pay only for the messages you get. No monthly rental.

| Event           | Price                               | What you get                        |
| --------------- | ----------------------------------- | ----------------------------------- |
| **Message**     | $0.002 per message ($2.00 per 1,000) | One message with the fields below. |
| **Actor start** | $0.00005 per run                    | Charged once when the run starts.   |

Examples: 50 messages for one keyword = $0.10 · 100 messages for each of 5 keywords = $1.00 · 1,000 messages = $2.00.

### 📊 Sample Output Data

```json
{
    "id": "utsexchangeupdates/21",
    "keyword": "bitcoin",
    "messageId": 21,
    "channel": "utsexchangeupdates",
    "url": "https://t.me/utsexchangeupdates/21",
    "text": "New to crypto? A crypto exchange is where you buy, sell and trade coins like Bitcoin - here is how it actually works...",
    "createdAt": "2026-10-21T21:00:30+00:00",
    "isEdited": false,
    "views": 834,
    "reactions": [
        { "emoji": "❤", "customEmojiId": null, "count": 4 },
        { "emoji": "👍", "customEmojiId": null, "count": 2 }
    ],
    "totalReactions": 6,
    "author": null,
    "forwardedFrom": null,
    "replyTo": null,
    "images": ["https://cdn5.telesco.pe/file/U9Jh-KWboGp8ojDW.jpg"],
    "videos": [],
    "linkPreview": null,
    "links": ["https://utsexchange.com/guides/what-is-a-crypto-exchange"],
    "hashtags": ["UTSExchange", "CryptoTrading", "Bitcoin", "Web3"],
    "channelTitle": "UTSExchange Updates",
    "channelSubscribers": 4510,
    "scrapedAt": "2026-11-03T08:10:09.624Z"
}
```

`views`, reaction counts and `channelSubscribers` are the numbers Telegram shows, so large values are rounded (3.1M). Custom reactions come with their ID (`customEmojiId`) because Telegram shows them as images. `images` and `videos` are direct links and expire after a while, so download what you want to keep.

### 🔁 Schedule and Integrate

For monitoring, run it daily or hourly with Apify **Schedules**. Messages come newest first, so a frequent run catches new mentions before they fall out of the newest matches. Send the results to Google Sheets, Zapier, Make, n8n or a webhook.

### 🤖 Use with AI Agents (MCP)

This actor works as a tool in Claude, ChatGPT, Cursor and other MCP clients through the Apify MCP server (`https://mcp.apify.com`). A minimal input an agent can send:

```json
{ "keywords": ["bitcoin etf"], "maxItems": 20 }
```

### ❓ FAQ

**How do I search Telegram messages by keyword?**
Enter the keyword and run. Without a channel list, the actor finds public channels on the topic and searches each one. With a list, it searches only those.

**Can I use this as a Telegram search engine for every channel?**
Telegram has no public search across all channels. This actor covers the public channels it can find for your keyword, so coverage is wide but not complete. If you know the channels that matter to you, list them.

**Does Telegram have an official API for this?**
Telegram's official API needs an API ID, a phone number and a logged-in account. This actor needs none of them, and returns views, reactions and channel details in one table.

**Why do I get at most about 22 messages from a channel?**
That is how much Telegram's public in-channel search returns: the newest matches, per channel and per keyword. Older matches are out of its reach.

**Why does a message not contain my exact word?**
Word forms count: "bitcoins" matches "bitcoin". The keyword can also sit in the link preview, the forwarded-from name, a link or a hashtag rather than in the text. Messages with none of these are dropped and not billed.

**Can it search private channels or groups?**
No. Only public channels. Private channels, groups, bots and users are skipped, named in the run's status and not billed.

**Do I need a Telegram account?**
No. There is no login, phone number or bot token.

### 🔗 Related Scrapers

- [Telegram Channel Search Scraper](https://apify.com/piotrv1001/telegram-channel-search-scraper): a list of channels on a topic, with subscriber counts.
- [Telegram Channel Scraper](https://apify.com/piotrv1001/telegram-channel-scraper): the full post history of a channel.

# Actor input Schema

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

Words or phrases to search for in public Telegram messages, one per line. Each keyword gets its own limit.

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

Search only inside these public channels: handles or t.me links. Leave empty to find matching channels for each keyword automatically. Telegram returns about 22 newest matches per channel.

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

Stop after this many messages for each keyword.

## Actor input object example

```json
{
  "keywords": [
    "bitcoin",
    "remote jobs"
  ],
  "channels": [
    "durov",
    "https://t.me/binance_announcements"
  ],
  "maxItems": 50
}
```

# Actor output Schema

## `results` (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 = {
    "keywords": [
        "bitcoin"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/telegram-keyword-search-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 = {
    "keywords": ["bitcoin"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/telegram-keyword-search-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 '{
  "keywords": [
    "bitcoin"
  ],
  "maxItems": 50
}' |
apify call piotrv1001/telegram-keyword-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piotrv1001/telegram-keyword-search-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/ChEgBHxFLDaL9IiBk/builds/hQ63GVWXh7BAhGgVa/openapi.json
