# Telegram Keyword Search Scraper - Messages by Keyword, No Login (`hexagone-data/telegram-keyword-search-scraper`) Actor

Search public Telegram channels by keyword, phrase or #hashtag: message text, link, date, views, reactions, media, polls, forwards, channel subscribers. Finds channels with Google or searches yours. Keeps only messages with your keyword (or a form Telegram highlights). No login. Pay per message.

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

## Pricing

from $2.10 / 1,000 telegram messages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Scraper - Messages by Keyword, No Login

Find **public Telegram channel messages that contain your keyword**: a word, a phrase or a #hashtag. Give the channels you follow, or let the Actor **find channels for each keyword with Google**. Every row is one message with its full text, link, date, views, reactions, photos, videos, documents, polls, forwards and replies, plus the channel's title, subscriber count and description. **No login, no phone number, no Telegram API key.**

### Why this one: only messages that really carry your keyword

Telegram's own in-channel search also returns messages **without** the word you typed (measured on 20 Nov 2026: 241 of 306 results contained it; for `listing` in Binance's announcement channel, 1 of 22). Telegram's search returns them anyway; delivered as is, you would pay for them. Here `matchMode` keeps only the messages whose text, link preview, poll or document title contains the keyword (or a form Telegram highlights, such as Украины for украина); the others are counted in the Run summary and **never charged**. Set `matchMode` to `all` to get everything Telegram returns, with `keywordInText` telling which rows carry the word.

### Try it

1. Type a keyword (`bitcoin`) and, if you want, a channel (`cointelegraph`).
2. Keep **Find channels with Google** on to search the channels that talk about your keyword too.
3. Run. Open **Overview** for a table, **Run summary** for what was searched, found and left out.

### What to paste

- **keywords** (1 to 50): `bitcoin`, `data breach`, `"privacy is"` (quotes = exact phrase; Telegram itself ignores quotes, so the Actor sends the words and keeps the exact phrase), `#airdrop`.
- **channels** (optional): `durov`, `@durov`, `https://t.me/durov`, `https://t.me/s/durov`, `telegram.me/durov`, or a message link (`https://t.me/durov/535` is read as the channel `durov`). Private invite links (`t.me/+…`, `joinchat`), sticker links and other sites are reported in the Run summary and not read.
- **discoverChannels**, **maxChannelsPerKeyword**, **discoveryLanguage**, **discoveryCountry**: Google `site:t.me <keyword>` (first results page; if it gives too few channels, `site:t.me/s <keyword>` and `<keyword> site:t.me`). Google's answers vary from one call to the next; a run keeps the channels it found. `maxChannelsPerKeyword` is an upper limit: groups and bots that Google gives count toward it and are not read.
- **searchDepth**: `fast` = Telegram's search in each channel (**at most the ~22 newest matches per channel and keyword**, a Telegram limit measured on 13 keyword × channel searches of 14). `deep` = also reads the channel's history, 20 messages per page, up to **maxMessagesScannedPerChannel**, and keeps the messages that carry the keyword.
- **afterDate** / **beforeDate** (`2026-11-01` or `7 days`; `beforeDate` in `fast` mode only filters the ~22 newest matches, in `deep` mode the newer messages still count toward `maxMessagesScannedPerChannel`), **minViews**, **onlyWithMedia**, **maxResultsPerChannel**, **maxItems**, **includeChannelDetails** (one light page per channel for the exact subscriber count).

### Output

One row per message (the same message found by two keywords or two channels is delivered once, charged once). Unknown values are `null`, lists are `[]`, never "N/A". Example (a real row from an Apify run of this Actor on 20 Nov 2026: keyword `bitcoin`, channel @glassnode):

```json
{
  "url": "https://t.me/glassnode/2057",
  "messageId": 2057,
  "channel": "glassnode",
  "channelId": 1370726192,
  "channelUrl": "https://t.me/glassnode",
  "channelTitle": "Glassnode",
  "channelVerified": false,
  "channelDescription": "Institutional Data and Market Intelligence for Digital Assets.\n\nhttps://studio.glassnode.com/",
  "channelAvatarUrl": "https://cdn4.telesco.pe/file/YYyaK600wZps1bT-kf3AIABmHsjrAe0egC9qBjS5zy7jCtJmp5oZXYWbdNM7Ifv1upfJRs_7ka3LZZcoNYSLTrz4j-NnLB6pMYsZ60RaIl8zXhDAN4jMZkEKH1ccIYNsPonIyAO8BBg_KJJDKXNtfDrjckM9xXhzM8hwza6aIhKpDxTIZkGKk8RlX5Jot0zLO-2NHdxXlyhpcFKfNzbfv_eWyZesRjdG5in1K08S_2P8mg8AXjDge62tOU6UmGP3JgFL92D8Mrmmpp_sGfIcGfoS0EgO95vPaMDaAufxhckKr9uzizuplAsfHCMkXpnCmpT4xsyeidSQvryjyy8BHQ.jpg",
  "channelSubscribers": 43660,
  "channelSubscribersText": "43.7K",
  "keyword": "bitcoin",
  "matchedKeywords": [
    "bitcoin"
  ],
  "matchedTerms": [
    "Bitcoin"
  ],
  "keywordInText": true,
  "matchSource": "telegram_search",
  "discoveredVia": "input",
  "text": "$85K keeps turning $BTC back.\n\nSince January, Bitcoin has closed above it on only five days, never more than three in a row. It's a truly tough level to break.\n\nMore in depth analysis in our latest Week on Chain report",
  "date": "2026-10-28T13:00:54Z",
  "edited": true,
  "views": 4320,
  "viewsText": "4.32K",
  "author": null,
  "isForwarded": false,
  "forwardedFrom": null,
  "forwardedFromUrl": null,
  "replyToUrl": null,
  "linkPreviewUrl": null,
  "linkPreviewTitle": null,
  "linkPreviewSiteName": null,
  "photoUrls": [
    "https://cdn4.telesco.pe/file/K57133EFUEA0RB26Z5T8_CAQkk-QdWt3jv0xA0ZbVeAKl4UEy3OZ9KcZiPGQGOBmFD4sWNyP6-42euoXEkRx5HG1Gr3Q1EWuh5ljjNDOh6lOluzGpoCwlZBuJkpQAFkkpsX14D3MkDaOJXoEd6TSYXYl12uGzG4c9LdXwN231xR7cwU77KI5fR9EawvTglHL1yS99eLFkExcljbjFFaaaqr2wETD3sh6F77811dzb6fgYiO6cTym-CZs5VDbHy2dnbkVpB5T1tRDOpFBFd1Xy5ej8bzxqmZA3mLQhuK5Pyr0SKguB62nOgVYEscydPNDgGhu8NNQSHag3yTSXrZa9w.jpg"
  ],
  "videoUrls": [],
  "videoThumbnailUrls": [],
  "documents": [],
  "poll": null,
  "reactions": [
    {
      "emoji": "👀",
      "customEmojiId": null,
      "paid": false,
      "count": 11,
      "countText": "11"
    },
    {
      "emoji": "👏",
      "customEmojiId": null,
      "paid": false,
      "count": 5,
      "countText": "5"
    },
    {
      "emoji": "😡",
      "customEmojiId": null,
      "paid": false,
      "count": 3,
      "countText": "3"
    },
    {
      "emoji": "👍",
      "customEmojiId": null,
      "paid": false,
      "count": 2,
      "countText": "2"
    }
  ],
  "totalReactions": 21,
  "paidStars": 0,
  "messageType": "photo",
  "hasMedia": true,
  "mediaNotSupported": null,
  "viaBot": null,
  "links": [
    "https://x.com/i/article/2115213989932105728"
  ],
  "hashtags": [],
  "scrapedAt": "2026-11-20T20:47:37.088Z"
}
```

Fields: `url`, `messageId`, `channel` (as Telegram writes it), `channelId`, `channelUrl`, `channelTitle`, `channelVerified`, `channelDescription`, `channelAvatarUrl`, `channelSubscribers` (exact, from t.me/<channel>), `channelSubscribersText` (rounded, as shown: 9.93M), `keyword` (the keyword that found it first), `matchedKeywords` (every keyword of the run it carries), `matchedTerms` (words Telegram highlighted), `keywordInText`, `matchSource` (`telegram_search` or `history_scan`), `discoveredVia` (`input` or `google`), `text` (line breaks kept), `date` (UTC), `edited`, `views` and `viewsText` (Telegram rounds: 6.25M), `author` (signature), `isForwarded`, `forwardedFrom`, `forwardedFromUrl`, `replyToUrl`, `linkPreviewUrl`, `linkPreviewTitle`, `linkPreviewSiteName`, `photoUrls`, `videoUrls`, `videoThumbnailUrls`, `documents`, `poll`, `reactions` (emoji, custom emoji id, paid Telegram Stars, count), `totalReactions`, `paidStars`, `messageType` (text, photo, album, video, sticker, poll, document, unsupported), `hasMedia`, `mediaNotSupported`, `viaBot`, `links`, `hashtags`, `scrapedAt`.

### Run summary

The **Run summary** (key-value store `SUMMARY`, JSON in `OUTPUT`) lists the channels Google found for each keyword, then every keyword × channel search with its status: `done`, `site_cap` (Telegram's ~22 cap reached: use `deep` for more), `scan_limit`, `no_results` (Telegram says "No posts found": a real empty search), `preview_unavailable` (no public web preview from the proxy's country: for some channels it depends on the country of the IP), `not_a_channel` (group or bot), `not_found`, `invalid_input`, `blocked` (Telegram refused every try: not your input), `limit_reached`, `partial`; and the messages seen, delivered, left out by `matchMode` or your filters, and duplicates.

### Pricing

Pay per event: **$0.003 per delivered message** ($3.00 per 1,000 messages), plus **$0.005 per run** (Apify's start fee, one per GB of memory: the default 512 MB is one start). Pages read, retries, Google lookups (their cost is ours), messages Telegram returns without your keyword, messages left out by your filters, duplicates, service messages and refused pages are never charged. Tier discounts of the Apify Store apply (Bronze -10 %, Silver -20 %, Gold to Diamond -30 %).

| Run | Price at the base rate (Free plan) |
|---|---|
| 20 messages | $0.065 |
| 1,000 messages | $3.005 |

Set a maximum charge per run in Apify: the Actor stops at it and says so.

### Known limits

- **Public channels only.** Groups, bots, private channels, comments and channels whose web preview is closed (`t.me/s/<channel>` redirects to the contact page) have no public page: they are reported, no message is charged. There is no global Telegram search without an account: channels come from your list or from Google.
- **~22 newest matches per channel and keyword** in `fast` mode (Telegram's limit). `deep` reads the history (20 messages per page; long histories take time) and keeps only messages whose visible text carries the keyword.
- **Video links expire**: `videoUrls` are signed links (`?token=`) valid for a limited time; download soon. Photo and thumbnail links (`photoUrls`, `videoThumbnailUrls`) are Telegram CDN links that Telegram can renew: an old link may then return 404 (seen once in 232 videos on 20 Nov 2026); download soon too. Some media are not shown on the web (`messageType` `unsupported`, `mediaNotSupported` gives Telegram's note).
- Views and reactions move while you read them; large counts are rounded by Telegram (`viewsText`). The forwarded-from name is sometimes served empty by Telegram: `isForwarded` is true and `forwardedFrom` null.
- Google discovery is best effort: Google's results change from one call to the next and sometimes ignore `site:t.me`; when it finds nothing the Run summary says so, add channels yourself.

### Support

Questions, a channel that does not read as expected, a field you need: open an issue on the Actor page, we answer. If the Actor helps you, please **leave a review** on its Apify page: it helps others find it.

This Actor reads public web pages of t.me. It is not affiliated with, endorsed or sponsored by Telegram or Google.

# Actor input Schema

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

One per line (1 to 50): a word (bitcoin), a phrase (data breach), a phrase in quotes for the exact phrase ("privacy is") or a #hashtag (#airdrop). Every keyword is searched in every channel below and in the channels Google finds for it.

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

Public channels, one per line: durov, @durov, https://t.me/durov, https://t.me/s/durov or a message link (t.me/durov/535 is read as the channel durov). Each is searched for every keyword. Private invite links (t.me/+…), groups and bots have no public page and are reported, not charged.

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

On: Google (site:t.me <keyword>, first results page) finds public channels that talk about each keyword, and they are searched too. The Google cost is ours, not billed separately. Off: only the channels above are searched.

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

Up to this many channels kept from Google for each keyword (1 to 30). Google usually gives 5 to 15; groups and bots it gives count here and are not read, so you may get fewer readable channels.

## `discoveryLanguage` (type: `string`):

Language of the Google results used to find channels: en, de, fr, ru, ar…

## `discoveryCountry` (type: `string`):

Country of the Google results used to find channels: us, gb, de, fr, ru, ae…

## `searchDepth` (type: `string`):

fast: Telegram's own search in each channel (it returns at most the ~22 newest matches per channel and keyword). deep: also scans the channel's history (up to the limit below) and keeps the messages that carry the keyword.

## `maxMessagesScannedPerChannel` (type: `integer`):

Deep mode only: how far back the history of each channel is read (20 to 5,000 messages, 20 per page).

## `matchMode` (type: `string`):

Telegram's search also returns messages WITHOUT your keyword (measured: 65 of 306). contains (default): keep a message when the keyword is in its text, link preview, poll or document title (case and accents ignored), or when Telegram highlights a form of it. exact: the word or phrase as typed, as a whole word. all: everything Telegram returns (keywordInText tells which ones carry it). Left-out messages are counted, never delivered or charged.

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

A date (2026-11-01) or a period (7 days, 24 hours, 2 weeks). Older messages are not delivered and older pages are not read.

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

A date (2026-11-15) or a period (3 days): newer messages are left out. In fast mode only the ~22 newest matches are searched, so older ones are not reached; in deep mode the history is read from the newest message and the newer ones still count toward the scan limit below.

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

Keep only messages with at least this many views.

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

Keep only messages with a photo, video, document, sticker or media Telegram does not show on the web.

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

Messages delivered at most for one keyword in one channel (1 to 5,000).

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

The run stops when this many messages are delivered (1 to 100,000).

## `includeChannelDetails` (type: `boolean`):

On: one extra light page per channel (t.me/<channel>) gives the exact subscriber count (channelSubscribers). Off: only the rounded count (9.93M) in channelSubscribersText.

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

Proxy for t.me pages. The default (Apify datacenter) works; Telegram needs no login. Google discovery always uses Apify's Google SERP proxy.

## Actor input object example

```json
{
  "keywords": [
    "telegram"
  ],
  "channels": [
    "durov"
  ],
  "discoverChannels": true,
  "maxChannelsPerKeyword": 3,
  "discoveryLanguage": "en",
  "discoveryCountry": "us",
  "searchDepth": "fast",
  "maxMessagesScannedPerChannel": 500,
  "matchMode": "contains",
  "onlyWithMedia": false,
  "maxResultsPerChannel": 100,
  "maxItems": 50,
  "includeChannelDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `rows` (type: `string`):

Every field of every message row.

## `overview` (type: `string`):

Keyword, channel, date, text, views, reactions, type, subscribers, link.

## `summary` (type: `string`):

Readable summary: channels found by Google, status of each keyword × channel search, messages delivered and left out, reason for anything missing.

## `summaryJson` (type: `string`):

The same summary as JSON (OUTPUT record).

# 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": [
        "telegram"
    ],
    "channels": [
        "durov"
    ],
    "discoverChannels": true,
    "maxChannelsPerKeyword": 3,
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hexagone-data/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": ["telegram"],
    "channels": ["durov"],
    "discoverChannels": True,
    "maxChannelsPerKeyword": 3,
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("hexagone-data/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": [
    "telegram"
  ],
  "channels": [
    "durov"
  ],
  "discoverChannels": true,
  "maxChannelsPerKeyword": 3,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call hexagone-data/telegram-keyword-search-scraper --silent --output-dataset

```

## MCP server setup

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