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

Find public Telegram posts that mention your keywords. No channel list needed: a built-in catalog of 6,700 active channels by topic and language. Only-new mode for monitoring, date, views and media filters. No login, no API key.

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

## Pricing

from $0.20 / 1,000 search results

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

Find posts that mention your keywords in public Telegram channels. The Actor runs Telegram's own in-channel search on the public web preview (`t.me/s/<channel>?q=<keyword>`), so every result comes from the channel itself, not from a search engine index. No Telegram account, phone number, bot token or API key is needed.

You do not need a list of channels: give a keyword and the Actor chooses channels from its built-in catalog; pick a topic or a language to narrow the choice. It holds 6,706 active public channels. You can also name your own channels, or both.

### What you get

- Channels chosen for you from a catalog of 6,706 active public channels, filtered by topic, language and size
- Posts that really contain the keyword: with **Exact match** on (default), every returned post has the keyword in its text
- Text, date, views and reactions of each post, plus the channel title and subscriber count
- Media attached to the post, links from its text and the source channel of a forwarded post
- Filters: date range or last N days, excluded words, minimum views, only posts with media
- One item per post: a post found by several keywords appears once and lists all of them in `keywords`
- **Only new posts** mode for scheduled runs: each run returns only posts you have not received before
- A run summary with skipped channels and per-keyword counts

### Use cases

- **Brand and competitor mentions.** Find what public Telegram channels wrote about a company, product or person in the last days, with direct links to the posts.
- **Crypto and market news.** Track a token, a ticker or a topic such as `stablecoin` or `ETF` across crypto and finance channels in the language you read.
- **Mention monitoring on a schedule.** Run the Actor every hour or every day with **Only new posts** and receive only posts you have not seen, in Slack, a spreadsheet or your own system.
- **Research and journalism.** Collect how a topic was covered across news channels in English, Ukrainian or another language, with views and reactions for every post.
- **Finding the posts that spread.** Keep only posts above a number of views or with photos and videos attached.

### How fresh and how broad the results are

On 16 November 2026 we ran 12 English keywords (`bitcoin`, `ETF`, `airdrop`, `Ukraine`, `AI`, `interest rates`, `layoffs`, `Tesla`, `Nvidia`, `stablecoin`, `sanctions`, `ceasefire`) with a limit of 30 posts each and no other settings. Medians across the 12 keywords:

| | This Actor |
|---|---|
| Age of a returned post | 2.3 days |
| Posts older than 30 days | 0% |
| Different channels in 30 posts | 11 |
| Run time | 8 seconds |

One run per keyword, so the numbers will vary from day to day. A rare keyword takes longer: `airdrop` and `layoffs` needed about 24 seconds because more channels had to be searched.

### Input

| Field | Description |
|---|---|
| `keywords` | Words or phrases to find, at least one |
| `channels` | Optional public channels to search in: `@username`, `username`, `https://t.me/username` or `https://t.me/s/username` |
| `topics` | Optional catalog topics: `crypto`, `finance`, `news`, `politics`, `technology`, `ai`, `business`, `science`, `gaming`, `jobs`, `sports`, `education` |
| `languages` | Optional catalog languages: `en`, `uk`, `ru`, `fr`, `de`, `pt` |
| `minSubscribers` | Only catalog channels with at least this many subscribers (default 1000) |
| `maxChannels` | Upper limit of catalog channels to search (default and maximum 1000). The run stops earlier once it has enough recent posts, see below |
| `postsFrom`, `postsTo` | Optional date range for posts, UTC |
| `lastDays` | Only posts from the last N days; with `postsFrom` the later date applies |
| `excludeKeywords` | Drop posts whose text contains any of these words or phrases, case-insensitive |
| `minViews` | Only posts with at least this many views (default 0) |
| `onlyWithMedia` | Only posts with a photo, video, document or audio (default off) |
| `maxResultsPerKeyword` | Total posts per keyword across all channels (default 100) |
| `maxResultsPerChannel` | Posts per keyword in each channel (default 20, at most 22, see Limits) |
| `exactMatch` | Keep only posts whose text contains the keyword, case-insensitive (default on) |
| `onlyNew` | Return only posts newer than those returned by previous runs (default off) |

Only `keywords` is required. Leave `channels`, `topics`, and `languages` empty to search the built-in catalog. Provide `channels` without `topics` or `languages` to search only those channels.

```json
{
    "keywords": ["bitcoin"],
    "maxResultsPerKeyword": 10
}
```

```json
{
    "keywords": ["bitcoin"],
    "topics": ["crypto", "finance"],
    "languages": ["en"],
    "maxResultsPerKeyword": 30
}
```

```json
{
    "keywords": ["bitcoin", "ETF"],
    "channels": ["@cointelegraph", "@binance_announcements", "https://t.me/tginfoen"],
    "postsFrom": "2026-10-01",
    "maxResultsPerChannel": 20
}
```

```json
{
    "keywords": ["airdrop"],
    "lastDays": 7,
    "excludeKeywords": ["giveaway"],
    "minViews": 1000,
    "onlyWithMedia": true
}
```

Every searched channel is searched for every keyword. When more posts match than `maxResultsPerKeyword` allows, the newest posts across all channels are kept.

Catalog channels are searched 100 at a time, in the order described below. After each hundred the Actor checks whether every keyword already has `maxResultsPerKeyword` posts from the last 30 days (or from your date range, when `postsFrom` or `lastDays` is set) and stops if so. A common word such as `bitcoin` finishes after the first 100 channels; a rare one goes on, up to `maxChannels`. Your own `channels` are always searched in full.

### The channel catalog

The Actor ships with a catalog of 6,706 public channels built on 13 November 2026 from Telegram's public web previews. Every channel in it had a public preview, at least 1,000 subscribers and a post in the 30 days before that date. For each channel the catalog keeps the username, title, description, subscriber count, date of the last post, posting frequency, main language and up to three topics; it does not keep posts.

- **How channels were found.** Starting from about 100 well-known channels and from open lists (Wikidata, the tlgrm.eu directory and curated GitHub lists), we followed links, forwards and mentions in recent posts, later only from English and Ukrainian channels. The catalog leans towards channels that others link to: 4,623 channels (69%) are in Russian, 987 in Ukrainian, 873 in English, and other languages are rare.
- **Language** is detected automatically from the title, description and recent posts. **Topics** are assigned by a fixed keyword dictionary over the same texts, so they are approximate: a channel can miss a topic it covers or get one it only touches. About two thirds (4,496) of the channels have no topic and are found only through `languages` or by name.
- **How channels are chosen for a run.** From the channels that match your topics (any of them), languages and `minSubscribers`, the Actor orders the channels and searches up to `maxChannels` of them: first those whose title or description contains one of your keywords as a whole word, then the largest by subscribers. The choice is deterministic: the same input picks the same channels. Your own `channels` are always searched in addition.
- **What is left out.** A hand-reviewed list keeps two groups out of the catalog: state media and official channels of state bodies of Russia and Belarus, and openly neo-Nazi, white-supremacist, racist or antisemitic channels. The list covers clear cases only, so the catalog is not guaranteed to be free of extremist content. You can still search any public channel by naming it in `channels`.
- **No filters.** With keywords only, the whole catalog is ranked the same way, except that after keyword matches in the title or description, channels whose language is written in the script of your keywords come first: Latin-script keywords favour English and other Latin-script languages, Cyrillic keywords favour Cyrillic-script languages, a keyword that looks Ukrainian (letters і, ї, є, ґ, endings such as -ський, an apostrophe as in здоров'я) favours Ukrainian channels and one that looks Russian (ы, э, ё, ъ) favours Russian ones. When a Cyrillic keyword could be either, such as a name, Cyrillic-script languages take turns so that the largest channels of one language do not fill the whole list. This only changes the order; with `languages` set, the ranking is as described above.
- **Coverage.** The catalog is a sample of active public channels, not all of Telegram. A keyword that is popular in channels outside it will be missed; add such channels through `channels`.
- The catalog is refreshed by hand, not on every run. Channels that closed their preview or changed their username since 13 November 2026 are listed in the summary under `channelsWithoutPreview`.

### Output

One dataset item per post:

```json
{
    "channel": "tginfoen",
    "channelTitle": "Telegram Info English",
    "subscribers": 30100,
    "postId": 2052,
    "postUrl": "https://t.me/tginfoen/2052",
    "date": "2025-01-23T11:48:30+00:00",
    "text": "Post text with line breaks kept",
    "views": 12300,
    "reactions": [
        { "emoji": "👍", "count": 120 },
        { "emoji": "⭐", "count": 23 },
        { "emoji": "custom:5000000000000000001", "count": 4 }
    ],
    "reactionsCount": 147,
    "media": [{ "type": "photo", "url": "https://cdn4.telesco.pe/file/..." }],
    "links": ["https://example.com/article"],
    "forwardedFrom": { "channel": "telegram", "postUrl": "https://t.me/telegram/452" },
    "keywords": ["bitcoin", "wallet"]
}
```

- `channel` is the channel as you entered it, or its catalog username; `postUrl` uses the channel's main username, which can differ when a channel has several usernames.
- `keywords` is always a list: the keywords whose search returned this post and that passed the exact-match check.
- `views` and `subscribers` are rounded the way Telegram shows them (`12.3K` becomes `12300`).
- `⭐` stands for paid Telegram Stars reactions; custom emoji reactions come as `custom:<emoji id>`.
- `media` lists attachments in post order; `type` is `photo`, `video`, `document` or `audio`. `url` is the file address on Telegram's CDN when the preview exposes it (photos and most videos), otherwise `null`. These addresses are temporary: download the files soon after the run if you need them.
- `links` are the web addresses linked from the post text and its link preview, without duplicates. Mentions of other channels come as `https://t.me/<username>`.
- `forwardedFrom` is set only when the post was forwarded from a post of a public channel; otherwise it is `null`.
- Items are ordered from newest to oldest across all channels.

A run summary is saved to the key-value store under `SUMMARY`: how many channels came from the catalog and with which filters (`channelsFromCatalog`, `catalog`), how many channels were planned and actually searched (`channelsPlanned`, `channelsSearched`, `stoppedWithEnoughResults`), channels without a public preview, invalid inputs, per-keyword counts (posts returned by Telegram, posts dropped by the exact-match check and by your filters, results), HTTP statistics and whether the run stopped at your spending limit.

### Monitoring with "Only new posts"

Turn on `onlyNew` and run the Actor on a schedule. For every keyword and channel pair, the Actor remembers the newest matching post it found in a named key-value store, `telegram-keyword-search-state`, in your Apify account. The next run returns only newer posts. The first run returns the latest matches as usual and sets the starting point.

- The state is shared by all runs of this Actor in your account that use the same keyword and channel.
- To start over, delete the `telegram-keyword-search-state` store.
- Posts cut off by a limit (`maxResultsPerChannel`, `maxResultsPerKeyword` or your spending limit) are not returned by later runs: a run marks everything it found as seen. Raise the limits if you need every match.
- An only-new run rarely collects enough posts to stop early, so it searches all `maxChannels` channels. Lower `maxChannels` or name your own `channels` for frequent schedules.
- Schedule runs often enough that no more than about 20 new matches appear between runs (see Limits).

### Run it from your code or a no-code tool

Get results in one HTTP call. Replace `<APIFY_TOKEN>` with your token from Apify Console (Settings, API & Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/signalharvest~telegram-keyword-search/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["Nvidia"], "lastDays": 2, "maxResultsPerKeyword": 50}'
```

The response is the JSON array described in Output. Add `?format=csv` to the address to get a CSV file instead.

To receive new mentions without writing code:

1. Open the Actor in Apify Console, fill in the input with `onlyNew` turned on and save it as a task.
2. On the task's **Schedules** tab choose how often to run it, for example every hour.
3. On the **Integrations** tab connect Slack, Google Sheets, Make, n8n or Zapier, or add a webhook for the "Run succeeded" event. The webhook receives the run's `defaultDatasetId`; the posts are at `https://api.apify.com/v2/datasets/<defaultDatasetId>/items`.

A run that finds nothing new returns an empty dataset, so check for that before sending a message.

### How Telegram search matches

We tested `?q=` on public channels (durov, tginfo, binance_announcements, cointelegraph, toncoin) in November 2026:

- It matches whole words, case-insensitively. Parts of words do not match: `privac` and `rivacy` return nothing, `privacy` works.
- It matches word forms in both directions: `wallet` also finds `wallets`, `ETF` finds `ETFs`, `list` finds `listed`; the same works for Cyrillic (`обновление` finds `обновления`, `обновлении`).
- A query with several words finds posts that contain all of them in any order, not the exact phrase. Quotes do not help: `"freedom of speech"` returns nothing.
- It also matches words inside link addresses that are not visible in the text.

With **Exact match** on, the Actor keeps only posts whose visible text contains the keyword as typed (case-insensitive), so a phrase must appear as a phrase. Word forms that contain the keyword still pass (`wallet` keeps `wallets`), forms that do not are dropped (`wallets` drops `wallet`). Turn it off to get everything Telegram returns.

### Limits

- **Telegram's public search returns at most about 22 newest matching posts per keyword in a channel.** Older matches cannot be reached through it, so `maxResultsPerChannel` is capped at 22, and a date range only filters within those newest matches. The summary lists keyword and channel pairs that hit this limit under `searchesAtTelegramLimit`.
- Only channels in the catalog or in your `channels` list are searched; the Actor does not search all of Telegram. Every searched catalog channel costs about one request per keyword, so a rare keyword over the full 1,000 channels makes about 1,000 requests and takes around half a minute.
- Only public channels with a web preview. Private channels and channels that disabled the preview are skipped and listed in the summary.
- Posts with only media and no caption have an empty `text` and are dropped when Exact match is on.

### Changelog

- **0.1.8, 16 November 2026.** Up to 1,000 catalog channels are searched until enough recent posts are found. New filters: `lastDays`, `excludeKeywords`, `minViews`, `onlyWithMedia`. New fields: `media`, `links`, `forwardedFrom`. Fixed: posts with custom emoji came with an empty text and were dropped by Exact match.
- **0.1.7, 13 November 2026.** Better channel choice for Ukrainian and ambiguous Cyrillic keywords.
- **0.1.6, 13 November 2026.** Catalog grown to 6,706 channels; channels are ranked by the script of the keyword.
- **0.1.5, 13 November 2026.** Built-in channel catalog: a keyword is enough, a channel list is optional.

### Personal data

The output contains channel posts only. Author signatures of posts and user profiles are not collected. A forwarded source is returned only when it is a post of a public channel; forwards from people are not.

Do not use the output to train or fine-tune AI models: Telegram's terms prohibit it.

# Actor input Schema

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

Words or phrases to find. Each keyword is searched separately in every channel.

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

Public channels to search in, as @username, username, https://t.me/username or https://t.me/s/username. Optional: leave empty and the Actor picks channels from its built-in catalog.

## `topics` (type: `array`):

Pick channels from the built-in catalog of active public channels by topic. A channel matches if it has any of the chosen topics. Topics are assigned automatically by keywords, so they are approximate.

## `languages` (type: `array`):

Pick catalog channels by their main language, detected automatically from recent posts. Combined with Topics: a channel must match both.

## `minSubscribers` (type: `integer`):

Only catalog channels with at least this many subscribers. The catalog itself contains channels with 1,000 subscribers or more.

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

Upper limit of catalog channels to search. Channels whose title or description contains a keyword come first, then the largest by subscribers. Channels are searched 100 at a time, and the run stops early once every keyword has enough recent posts (Max results per keyword, from the last 30 days or from your date range). Each channel costs one or two requests per keyword.

## `postsFrom` (type: `string`):

Only posts published on or after this date (UTC). The search only reaches the newest matches Telegram returns (about 22 per keyword and channel), not the full history.

## `postsTo` (type: `string`):

Only posts published on or before this date (UTC).

## `lastDays` (type: `integer`):

Only posts from the last N days (UTC). When Posts from is also set, the later of the two dates applies.

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

Total number of posts to return for each keyword across all channels. When more posts match, the newest ones across all channels are kept.

## `maxResultsPerChannel` (type: `integer`):

Number of posts to return for each keyword in each channel. Telegram's public search returns at most about 22 newest matching posts per keyword in a channel.

## `exactMatch` (type: `boolean`):

Keep only posts whose text contains the keyword exactly (case-insensitive). Telegram's search also returns word forms (for example "wallets" for "wallet") and posts where the word appears only inside a link; turn this off to keep them.

## `excludeKeywords` (type: `array`):

Drop posts whose text contains any of these words or phrases (case-insensitive), for example giveaway or sponsored.

## `minViews` (type: `integer`):

Only posts with at least this many views. Telegram rounds large view counts (12.3K), so the check uses the rounded number.

## `onlyWithMedia` (type: `boolean`):

Only posts that have a photo, video, document or audio attached.

## `onlyNew` (type: `boolean`):

Return only posts newer than the ones returned by your previous runs for the same keyword and channel. Use it with a schedule to monitor mentions.

## Actor input object example

```json
{
  "keywords": [
    "bitcoin"
  ],
  "topics": [
    "crypto"
  ],
  "minSubscribers": 1000,
  "maxChannels": 1000,
  "maxResultsPerKeyword": 100,
  "maxResultsPerChannel": 20,
  "exactMatch": true,
  "minViews": 0,
  "onlyWithMedia": false,
  "onlyNew": false
}
```

# 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"
    ],
    "topics": [
        "crypto"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("signalharvest/telegram-keyword-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"],
    "topics": ["crypto"],
}

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

```

## MCP server setup

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