# Telegram Keyword Search - Messages in Public Channels (`aolmo/telegram-search`) Actor

Find Telegram messages that mention a keyword across public channels, with no Telegram account, API key or phone number. Searches the channels you list and channels found for the keyword: text, date, views, reactions, links, media, subscribers. Scheduled runs flag new messages. $0.001 per message.

- **URL**: https://apify.com/aolmo/telegram-search.md
- **Developed by:** [Antonio del Olmo Tena](https://apify.com/aolmo) (community)
- **Categories:** Social media, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 message founds

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

Search public Telegram channels for any keyword and get every matching message in one dataset, with **no Telegram account, no API key and no phone number**. Give keywords (a coin, a brand, a product, a person, a topic) and, if you want, the channels to look in. The Actor searches each channel with Telegram's own channel search, can also discover channels that talk about the keyword, and returns one row per message with its text, date, views, reactions, links, photos, link preview and the channel's title and subscribers. Crypto and market signals, brand monitoring, OSINT and news tracking at **$0.001 per message**.

The Actor reads the public web preview of each channel (t.me/s/...), the same page anyone can open in a browser, and never logs in, joins channels or bypasses limits. Private channels and groups are not reachable.

### What you get

**Message** (one row each): `url`, `id`, `date`, `text`, `views`, `viewsText`, `reactions` (emoji and count), `reactionsTotal`, `links`, `photos`, `hasVideo`, `hasDocument`, `linkPreview`, `author` (signature), `forwardedFrom`, `edited`, `matchesKeyword` (the text contains the keyword as typed; Telegram also matches other word forms).

**Channel**: `channel`, `channelTitle`, `channelUrl`, `subscribers`, `channelSource` (`given` or `discovered`).

**Search**: `keyword`, `channelsSearched`, `channelsWithResults`.

**Changes** on scheduled runs: `isNew` marks messages published since the previous run of the same keyword, in channels that were already searched.

Channels that cannot be searched (groups, bots, private or deleted channels) are listed in `skipped` and cost nothing. A keyword without messages returns one free row with the channels searched.

### How to use it

1. Open the **Input** tab.
2. Add **Keywords**, one per line: `bitcoin etf`, `nvidia`, `airdrop`.
3. Optionally add **Channels to search**: `cointelegraph`, `@durov` or `https://t.me/s/bitcoin`. Leave it empty and the Actor finds channels for each keyword.
4. Set **Max channels per keyword**, **Max messages per channel** and, for fresh results only, **Only messages from the last N days**.
5. Click **Start**, then export the messages as JSON, CSV or Excel. Schedule the run (every hour or every day) to get only new messages through `isNew` and webhooks.

### Input

```json
{
  "keywords": ["bitcoin etf", "solana"],
  "channels": ["cointelegraph", "https://t.me/s/bitcoin"],
  "discoverChannels": true,
  "maxChannels": 10,
  "maxMessagesPerChannel": 20,
  "maxAgeDays": 30
}
```

### Output

```json
{
  "keyword": "bitcoin etf",
  "channel": "cointelegraph",
  "channelTitle": "Cointelegraph",
  "channelUrl": "https://t.me/cointelegraph",
  "subscribers": 330000,
  "channelSource": "given",
  "id": 73248,
  "url": "https://t.me/cointelegraph/73248",
  "date": "2026-11-12T21:45:01+00:00",
  "text": "Spot Bitcoin ETFs recorded $412M of net inflows on Wednesday...",
  "views": 18400,
  "reactions": [{ "emoji": "🔥", "count": 96 }],
  "reactionsTotal": 131,
  "links": ["https://cointelegraph.com/news/bitcoin-etf-inflows"],
  "photos": ["https://cdn4.telesco.pe/file/photo.jpg"],
  "hasVideo": false,
  "matchesKeyword": true,
  "channelsSearched": 10,
  "channelsWithResults": 8,
  "isNew": false,
  "timestamp": "2026-11-12T22:00:00.000Z"
}
```

### Pricing

Pay per event: **$0.001 per message** returned and **$0.001 per new message** detected on a scheduled run. Channels and keywords without messages are free. 5 keywords x 10 channels x 20 messages (1,000 messages) cost $1.00.

### Use it as an API

```bash
curl -X POST "https://api.apify.com/v2/acts/aolmo~telegram-search/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["bitcoin etf"], "maxChannels": 10, "maxMessagesPerChannel": 20}'
```

You can also call it from AI agents through the Apify MCP server.

### FAQ

**Do I need a Telegram account or API ID?** No. The Actor uses the public web preview of channels, which needs no account.

**Can it search all of Telegram?** Telegram has no public global search. The Actor searches inside each channel (with Telegram's own channel search, so word forms match too) and discovers channels for the keyword through a web search. Add the channels you already follow to make sure they are covered.

**Does it read groups or private channels?** No. Only public channels with a web preview.

**How far back does it go?** As far as the channel search reaches, newest first, up to 300 messages per channel. Use `maxAgeDays` to keep only recent ones.

**Where is the data stored between runs?** In a Key-Value Store of your account named `micro-saas-state-telegram-search`, one key per keyword and channel list. Delete it to start fresh.

### Related Actors

- **Telegram Channel Scraper**: the full history of the channels you choose, with views and media.
- **Reddit Mentions Monitor**: keyword and brand mentions on Reddit.
- **Threads Search Scraper**: Threads posts by keyword or tag.

# Actor input Schema

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

One per line: bitcoin etf, nvidia, election. Up to 50 per run.

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

Optional public channels: cointelegraph, @durov, https://t.me/s/bitcoin. Each keyword is searched in all of them.

## `discoverChannels` (type: `boolean`):

Also search channels that a web search finds for the keyword. Always on when no channels are given.

## `maxChannels` (type: `integer`):

Given plus discovered, up to 50.

## `maxMessagesPerChannel` (type: `integer`):

Newest first, up to 300.

## `maxAgeDays` (type: `integer`):

0 = any date.

## `region` (type: `string`):

Region of the web search used to discover them: us-en, uk-en, es-es, de-de, fr-fr, in-en... or wt-wt for no region.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "keywords": [
    "bitcoin etf"
  ],
  "discoverChannels": true,
  "maxChannels": 10,
  "maxMessagesPerChannel": 20,
  "maxAgeDays": 0,
  "region": "wt-wt",
  "product": "telegram-search"
}
```

# Actor output Schema

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

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# 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 etf"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/telegram-search").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 etf"] }

# Run the Actor and wait for it to finish
run = client.actor("aolmo/telegram-search").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 etf"
  ]
}' |
apify call aolmo/telegram-search --silent --output-dataset

```

## MCP server setup

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

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/r0FiBxm9gOBoVbjV9/builds/5DozHhWsbdaL4wkFj/openapi.json
