# Telegram Keyword Search Scraper \[USD 0.50/1K]: Posts & Channels (`usefulapi/telegram-keyword-search`) Actor

Search public Telegram channels by keyword without login. Every post is matched by Telegram's own in-channel search. Find channels by topic with exact subscriber counts. Date range, only new posts. USD 0.50 per 1,000 posts.

- **URL**: https://apify.com/usefulapi/telegram-keyword-search.md
- **Developed by:** [Useful API](https://apify.com/usefulapi) (community)
- **Categories:** Social media, News, Automation
- **Features:** Limited permissions
- **Stats:** 4 total users, 1 monthly users, 96.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 matching posts

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 and channels by keyword

Search **public Telegram channels by keyword** without a login, a phone number or a bot token. Every post you get was
matched by **Telegram's own search** inside that channel, with the matched words listed, so you do not pay for posts
that merely sat on a page a search engine once found. Search your own list of channels, let the tool find channels for each keyword,
or switch to **find channels** mode for a list of channels about a topic with exact subscriber counts.

**USD 0.50 per 1,000 matching posts.** USD 0.30 per 1,000 channel searches. Channels mode USD 1.00 per 1,000 channels.
No monthly fee, no paid search engine behind it.

### Why this one

| | This Actor | Other keyword tools on the Apify Store (3 November 2026) |
|---|---|---|
| How channels are found | Your list, plus Lyzem (free); no Google | Mostly Google results for t.me pages; some use Lyzem |
| Where posts come from | Telegram's own in-channel search (`t.me/s/<channel>?q=`) | Varies: the most used one returns the newest post of each page Google found, which its README says may not contain your keyword |
| Every post matches the keyword | Matched by Telegram itself (word forms count; 238 of 239 "bitcoin etf" posts had both words); `strictMatch` keeps the exact phrase only | Not always |
| Extra costs | No child runs or search-engine fees; every charge is in the Pricing table | Some start a Google Search Scraper run or charge per discovery page on top |
| Price per 1,000 posts | USD 0.50 | USD 1.00 to 5.00 (free-tier prices) |

Checked on 3 November 2026: for channel `bitcoin` and keyword `ETF` the tool returned the same 22 posts as Telegram's
search page, post for post.

### What it does

- **Posts mode (default):** every keyword is searched in every channel. Up to 22 newest matches per channel and
  keyword (Telegram's own limit), with views, reactions, media links, link previews, forwards, the channel's title and
  subscriber count. A post that matches two keywords is one row with both in `matchedKeywords`.
- **Your channels, found channels, or both:** paste channel names, and/or let it find channels for each keyword on
  Lyzem (a free public index of Telegram). Names that turn out dead, personal accounts or without a public preview are
  dropped and **never billed**.
- **Find channels mode (Telegram channel search):** a list of channels for your keywords: title, exact subscriber count, description, date of
  the last post, and **why it qualified**: the keyword in its name, title or description (`keywordInChannelInfo`), and
  how many of its posts Telegram's search matches (`postsMatchingKeyword`). Off-topic names are dropped before
  billing. Filters: minimum subscribers, active within N days.
- **Date range** (`fromDate`, `toDate`), **exact match** (keep only posts with the keyword exactly as typed),
  **minimum subscribers** for found channels.
- **Monitoring:** `onlyNewPosts` remembers the newest match per channel and keyword; a scheduled run returns only
  newer ones.
- **Privacy:** channel descriptions in channel rows have emails, phone numbers, @handles and t.me profile links
  masked. No user, group member or comment data is ever collected.

### Input examples

Keyword search with automatic channel discovery (the simplest run):

```json
{ "keywords": ["bitcoin etf"] }
```

Your own channels only, last 7 days, two keywords:

```json
{ "keywords": ["BlackRock", "spot ETF"], "channels": ["WatcherGuru", "bitcoin", "cointelegraph"], "discoverChannels": false, "fromDate": "7 days" }
```

Brand mentions and alerts every hour (set up once in Apify Schedules), only new matches:

```json
{ "keywords": ["YourBrand", "yourbrand.com"], "channels": ["channel_one", "channel_two"], "onlyNewPosts": true, "stateName": "brand-monitor" }
```

Find channels about a topic, active in the last 30 days, at least 500 subscribers:

```json
{ "mode": "channels", "keywords": ["woodworking", "carpentry"], "maxChannelsPerKeyword": 100, "minSubscribers": 500, "activeWithinDays": 30 }
```

| Field | What it does |
|---|---|
| `keywords` | Up to 20 words or phrases. |
| `mode` | `posts` (default) or `channels` (find channels, no posts). |
| `channels` | Your channels: usernames, @names or t.me links (searched every time). |
| `discoverChannels` | Also find channels on Lyzem (default on). |
| `maxChannelsPerKeyword` | Names taken from Lyzem per keyword (default 25, up to 100). |
| `maxChannels` | Most channels looked at in one run, your list included (default 200, up to 1,000). |
| `maxResultsPerChannel` | Posts per channel and keyword, 1 to 22 (default 22). |
| `fromDate`, `toDate` | `2026-10-01`, an ISO date-time, or relative (`7 days`). |
| `strictMatch` | Keep only posts containing the keyword exactly as typed. |
| `minSubscribers` | Skip found channels below this (your own channels are always searched). |
| `activeWithinDays` | Channels mode: skip found channels whose last post is older. |
| `onlyRelevantChannels` | Channels mode: drop off-topic found channels (default on). |
| `onlyNewPosts`, `stateName` | Only matches newer than the last run's, per channel and keyword. |
| `includeChannelInfo` | Posts mode: also one row per channel searched. |
| `exactSubscriberCount` | Exact count from the channel card instead of "10.4M" (default on). |

### Output

A matching post (real, from t.me/s/bitcoin on 3 November 2026, text shortened):

```json
{
  "recordType": "post",
  "keyword": "ETF",
  "matchedKeywords": ["ETF"],
  "matchedTerms": ["ETFs"],
  "channel": "bitcoin",
  "channelTitle": "Bitcoin",
  "channelSubscribers": 181678,
  "postId": 20693,
  "url": "https://t.me/bitcoin/20693",
  "date": "2026-11-02T19:44:57.000Z",
  "text": "BITWISE CIO MATT HOUGAN: 🟠 \"The underlying blockchain wasn't hacked. The assets held in ETFs or in individual users cold storage wallets weren't hacked. ...\"",
  "views": 4350,
  "reactionsTotal": 42,
  "mediaType": "video",
  "links": ["https://x.com/SimplyBitcoin/status/2117328209452658957"],
  "hashtags": [],
  "forwarded": false,
  "foundVia": "your_list",
  "scrapedAt": "2026-11-03T15:06:32.965Z"
}
```

Post fields are the same as in our Telegram Channel Scraper (text and HTML, views, reactions, media, poll, link
preview, links, buttons, hashtags, cashtags, mentions, forwards, replies) plus `keyword`, `matchedKeywords`,
`matchedTerms` (the words Telegram highlighted), `foundVia` (`your_list`, `lyzem_post`, `lyzem_channel`) and
`foundByKeyword`.

A channel row (channels mode) has `channel`, `title`, `subscribers`, `subscribersExact`, `description` (masked),
`maskedInDescription`, `verified`, `photoUrl`, `latestPostDate`, `keywordInChannelInfo`, `postsMatchingKeyword`,
`latestMatchDate`, `foundByKeyword`, `foundVia`, `url`, `status`. Channels from your own list that cannot be read get a
row with a plain-English `error` (not found, a group, a bot, a personal account, preview turned off).

The run summary (`OUTPUT` record) lists every channel looked at and why it was kept or dropped, Lyzem's results per
keyword, billed events and why a run stopped early.

### Pricing

| Event | Price |
|---|---|
| Matching post (a post row) | USD 0.50 per 1,000 |
| Channel searched (one live channel searched for one keyword) | USD 0.30 per 1,000 |
| Channel (a channel row: channels mode, or `includeChannelInfo`) | USD 1.00 per 1,000 |
| Channel checked (a name from your list that is not a readable channel) | USD 0.30 per 1,000 |
| Run start | USD 0.002 |

Names found on Lyzem that are dead, off-topic or under your filters cost you nothing. Examples from real runs on
3 November 2026: `{"keywords": ["bitcoin etf"]}` gave 210 posts from 16 channels for USD 0.112 in total; a
5-keyword run with a USD 2.00 maximum saved 3,750 posts from 84 channels and stopped by itself at USD 2.00. Set "Maximum cost per run" and the run stops by itself at
that amount, keeping every row it saved.

### Good to know

- **22 matches per channel and keyword is Telegram's limit** (measured October and November 2026), not ours. For
  every post of a channel, use our Telegram Channel Scraper with its keyword filter.
- **Several words:** Telegram's search returns posts that contain all the words, not always side by side (238 of 239
  posts for "bitcoin etf" had both words, 96 had the exact phrase). Switch on `strictMatch` for the exact phrase.
  Telegram also matches word forms (`ETF` finds `ETFs`).
- **Lyzem is a third-party site** with no published terms or API and no named operator. It worked from Apify's servers
  in every test on 3 November 2026, but it can change or stop. If it does, the run still searches your own channels
  and the summary says Lyzem could not be used. Lyzem's index leans towards small and older channels; in our tests
  42% to 64% of the names it gave were live public channels, and many matches were years old, so set `fromDate` when
  you want recent posts.
- **Find channels quality:** with `onlyRelevantChannels` on, 72 of 341 Lyzem names were kept for four everyday
  keywords; the rest were dead, private or off-topic and were not billed.
- **Public channels only.** Groups, private channels and personal accounts are never read.
- Speed on Apify (3 November 2026): one keyword with discovery in about 10 seconds; 5 keywords over 84 channels in
  about 5 minutes.

### Use it as an API

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

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("usefulapi/telegram-keyword-search").call(run_input={"keywords": ["bitcoin etf"], "fromDate": "7 days"})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["channel"], row.get("date"), row.get("text", "")[:80])
```

Works with Apify Schedules, webhooks, Make, Zapier, n8n and Google Sheets exports.

### FAQ

**Does it search all of Telegram?** No tool without a login can. It searches the channels you give and the channels
Lyzem knows for your keyword, with Telegram's own search inside each one.

**Do I need a Telegram account, API id or bot token?** No.

**Why are some found channels missing from the results?** They were dead, personal accounts, without a public
preview, under your filters or off-topic. The summary's `channels` list says which, and none of them was billed.

**Is it legal?** It reads pages Telegram shows to anyone without a login. You are responsible for how you use the
data: respect copyright, privacy law and Telegram's terms, which among other things forbid using Telegram data to
train AI models.

**Something is wrong or missing?** Open an issue on the Issues tab.

# Actor input Schema

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

Words or phrases to search for, one per line (up to 20). Every keyword is searched in every channel with Telegram's own in-channel search, so a post is only returned when Telegram itself matched it. Telegram also matches word forms (<code>coin</code> can match <code>coins</code>); switch on Exact match only to keep only posts that contain the keyword as typed.

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

<b>Posts</b>: matching posts with views, reactions, media and channel details. <b>Channels</b>: a list of public channels for your keywords with title, exact subscriber count, description and the date of their last post.

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

Public channel usernames or links, one per line: <code>WatcherGuru</code>, <code>@bitcoin</code>, <code>https://t.me/durov</code>. Searched first, every time. Optional when Find channels on Lyzem is on.

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

Also search channels found for each keyword on Lyzem (lyzem.com), a free public index of Telegram. Names Lyzem lists that are dead, personal accounts or have no public preview are dropped and never billed. Lyzem is an independent site with no published terms or API, so it can change or stop working; if it does, the run still searches your own channels and the summary says so.

## `maxChannelsPerKeyword` (type: `integer`):

How many channel names to take from Lyzem for each keyword. Channels whose posts matched on Lyzem come first, then channels whose name matched (the other way round in channels mode). In tests on 3 November 2026, 42% to 64% of them were live public channels.

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

Upper limit on channels looked at in one run, your list included.

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

Telegram's search returns at most the 22 newest matching posts per channel and keyword (measured October and November 2026), so 22 is the most any tool can get this way.

## `fromDate` (type: `string`):

Only posts on or after this date: <code>2026-10-01</code>, an ISO date-time, or relative like <code>7 days</code>.

## `toDate` (type: `string`):

Only posts on or before this date (a bare date means the whole day).

## `strictMatch` (type: `boolean`):

Keep only posts whose text (or link preview, poll or file name) contains the keyword exactly as typed, ignoring case.

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

Skip channels found on Lyzem with fewer subscribers. Your own channels are always searched.

## `activeWithinDays` (type: `integer`):

Channels mode: keep only Lyzem channels whose last post is at most this many days old.

## `onlyRelevantChannels` (type: `boolean`):

Channels mode: keep a channel found on Lyzem only when a keyword is in its name, title or description, or when Telegram's own search finds at least 3 of its posts with the keyword. Lyzem lists many channels that mentioned a word once; this drops them before they are billed. Every channel row says why it qualified (<code>keywordInChannelInfo</code>, <code>postsMatchingKeyword</code>).

## `onlyNewPosts` (type: `boolean`):

For scheduled runs: each channel and keyword remembers the newest match saved, and the next run returns only newer matches. Positions are kept in a store on your own Apify account (<code>telegram-keyword-search-watch</code>). Keep Max posts per channel and keyword at 22 for monitoring: the position moves to the newest match, so a lower number skips older new matches.

## `stateName` (type: `string`):

Separate monitors keep separate positions: give each schedule its own name.

## `includeChannelInfo` (type: `boolean`):

Also save one row per channel searched: title, subscribers, description, photo (USD 1.00 per 1,000 channel rows). Post rows already carry the channel title and subscriber count.

## `exactSubscriberCount` (type: `boolean`):

Read the exact count from the channel's t.me card (one extra page per channel) instead of Telegram's rounded figure such as 10.4M.

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

Not needed in our tests. Apify datacenter proxy or your own proxy URLs are allowed (used for Telegram only); residential proxy is not supported.

## Actor input object example

```json
{
  "keywords": [
    "bitcoin etf"
  ],
  "mode": "posts",
  "channels": [
    "bitcoin",
    "WatcherGuru"
  ],
  "discoverChannels": true,
  "maxChannelsPerKeyword": 25,
  "maxChannels": 200,
  "maxResultsPerChannel": 22,
  "strictMatch": false,
  "minSubscribers": 0,
  "onlyRelevantChannels": true,
  "onlyNewPosts": false,
  "stateName": "default",
  "includeChannelInfo": false,
  "exactSubscriberCount": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

## `channels` (type: `string`):

No description

## `summary` (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 etf"
    ],
    "channels": [
        "bitcoin",
        "WatcherGuru"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("usefulapi/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 etf"],
    "channels": [
        "bitcoin",
        "WatcherGuru",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("usefulapi/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 etf"
  ],
  "channels": [
    "bitcoin",
    "WatcherGuru"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call usefulapi/telegram-keyword-search --silent --output-dataset

```

## MCP server setup

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