# Telegram Keyword Search Scraper - Search Posts & Messages (`tgscraper/telegram-keyword-search-scraper`) Actor

Telegram keyword search and message search engine: find every post that mentions a keyword, hashtag or link across all public channels, newest first, with views, reactions, media and channel stats. Monitor brands with daily alerts. No Telegram account or API key needed.

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

## Pricing

from $1.20 / 1,000 posts

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 — search posts and messages across all public Telegram channels

Search all of Telegram for a keyword and get every matching post as clean, structured data, newest first: text, date, views, reactions, links, photos, videos, and the profile of the channel that posted it. Track your brand, a coin, a product, a link, or a topic across thousands of channels. No Telegram account, no API keys, no setup.

### What is Telegram Keyword Search Scraper?

Telegram Keyword Search Scraper is an unofficial Telegram search engine and message search API. Enter one or more keywords: it finds the public channels talking about each one, reads their posts, and returns every post that really contains your keyword, newest first, ready to download as JSON, CSV, or Excel. Use it as a:

- **Telegram search engine** — search posts across all public channels, not just the ones you already know.
- **Telegram message search API** — search Telegram messages by keyword from your own code, and get structured JSON back.
- **Telegram keyword monitor** — catch every new post that mentions your brand, product, coin, or competitor, with alerts in Slack or email.
- **Telegram link tracker** — find every post sharing a link to your site, an app, or a product page (try `yoursite.com` or `apps.apple.com`).
- **Telegram channel finder** — discover the channels where a topic is discussed, with subscriber counts.
- **Telegram hashtag tracker** — collect posts tagged with a hashtag, like `#bitcoin` or `#AI`.

### What you can do

- Search several keywords in one run, each across up to 200 channels
- Get the newest matching posts first, sorted across every channel
- Match all words, an exact phrase, or any word
- Find keywords inside links and hashtags, including links hidden behind words
- Limit results to a date range, even years back, or use `7 days` on a schedule to get only fresh posts
- Focus on channels in one of 35 languages
- Add channels you already know, or leave out channels you don't want
- Get the full post every time: text, views, reactions, photos, videos, links, hashtags, mentions, forwards, and the channel's profile

### Why use it

- **No login, ever.** Nothing to sign in to, no phone number, no API keys, no account to risk.
- **Every result really matches.** Each post is checked word by word, so you never pay for a post that doesn't contain your keyword.
- **Catches what Telegram's search misses.** Keywords inside links, hashtags, and link previews count too.
- **Newest first.** Results are sorted by date across all channels, so `Max posts` always gives you the latest ones.
- **Fast.** The 100 newest posts for a keyword arrive in under a minute.
- **Fair billing.** You pay per post delivered, and the run stops exactly at your spending limit.

### Use cases

- **Brand and reputation monitoring** — see who talks about your brand, product, or founders on Telegram, every day.
- **Crypto research** — track mentions of a coin, token, or exchange across signal, news, and community channels.
- **Link and affiliate tracking** — find every channel sharing links to your site, an app store page, or an invite link.
- **Market and competitor research** — follow what channels say about competitors, launches, and prices.
- **OSINT and journalism** — collect dated, sourced posts about an event, a person, or an organization.
- **Lead generation and influencer research** — find the channels that cover your niche, sized by subscribers and views.
- **AI and LLM pipelines** — feed fresh, on-topic Telegram posts into summaries, sentiment analysis, or your own AI agent.

### What Telegram data can you extract?

| Posts | Channel profile |
|---|---|
| Post text, link, and ID | Channel name and username |
| The keyword that found it | Profile picture |
| Publish date and time, edited flag | Verification badge |
| View count | Bio |
| Emoji reactions with counts | Subscriber count |
| Photos | Total photos, videos, files, and links |
| Videos with preview image and length | |
| Every link in the text, hashtags, and mentions | |
| Link preview card (title, description, image) | |
| Reply-to post, forwarded-from channel, admin signature | |

### How to search Telegram by keyword

1. Add one or more keywords — a word, a phrase, a hashtag, or a link like `yoursite.com`.
2. Choose how many posts you want per keyword.
3. Optionally set a date range, a match mode, or a channel language.
4. Click **Start** and download your results as JSON, CSV, or Excel.

### Input example

```json
{
  "keywords": ["openai", "#bitcoin"],
  "maxPostsPerKeyword": 200,
  "postedAfter": "30 days",
  "matchMode": "allWords",
  "maxChannelsPerKeyword": 50,
  "excludeChannels": ["some_spam_channel"]
}
```

| Field | What it does |
|---|---|
| **Keywords** | What to search for. Each keyword is searched on its own. Letter case doesn't matter, and the keyword is found inside words and links: `invest` also finds *investor* and *investing*. |
| **Max posts per keyword** | How many matching posts you want for each keyword, newest first. |
| **Posted after / Posted before** | A date range. Accepts a date or a period like `7 days`, `2 weeks`, or `1 month`. |
| **Match** | For keywords with several words: all words in any order (default), the exact phrase, or any of the words. |
| **Channel language** | Find channels that write in one language. Leave empty for all languages. |
| **Max channels per keyword** | How many of the most relevant channels to search, up to 200. |
| **Also search these channels** | Channels to always include, on top of the ones found for you. |
| **Skip these channels** | Channels to leave out of your results. |

### What you get

One row per post — this is a real post found for `openai`:

```json
{
  "keyword": "openai",
  "channel": "cont_ws",
  "id": 62427,
  "url": "https://t.me/cont_ws/62427",
  "date": "2026-11-13T16:02:02+00:00",
  "edited": false,
  "signature": null,
  "text": "OpenAI представила ChatGPT Wallet — сервис, позволяющий еë моделям искусственного интеллекта совершать покупки от имени пользователей.\n\n#OpenAI #ChatGPT #ИИ\n\nКонтиненталист в Max",
  "views": 409,
  "reactions": [],
  "links": ["https://max.ru/continentalist"],
  "hashtags": ["OpenAI", "ChatGPT", "ИИ"],
  "mentions": [],
  "replyToUrl": null,
  "forwardedFrom": null,
  "forwardedFromUrl": null,
  "photos": [],
  "videos": [],
  "linkPreview": {
    "url": "https://max.ru/continentalist",
    "title": "Континенталист",
    "description": "Геополитика. Технологии. Будущее.",
    "image": "https://cdn4.telesco.pe/file/ZOFJhNxO6zIy9a9W4gkz1E3K0-KHk5lTSO…jpg"
  },
  "author": {
    "name": "Континенталист",
    "username": "cont_ws",
    "photo": "https://cdn4.telesco.pe/file/Sc9QjQtFgpv9rqprNDeolyB3nz_PrNLFW6sI…jpg",
    "verified": false,
    "description": "Геополитика. Технологии. Будущее.",
    "subscribers": 4870,
    "photos": 16200,
    "videos": 13600,
    "files": 3,
    "links": 35500
  }
}
```

The Output tab has ready-made **Overview**, **Channels**, **Engagement**, and **Media and links** tables. The **Channels** table shows at a glance which channels talk about your keyword and how big they are.

### Pricing

You pay only for the posts you get — no subscriptions, no surprises.

| What you get | Price |
|---|---|
| 1,000 posts | $1.50 |
| Each run | $0.00005 to start |

A few examples:

- The 100 newest posts about your brand: about **$0.15**.
- 1,000 posts across 5 keywords: about **$1.50**.
- A daily run collecting about 50 new posts: about **$2.25 a month**.

Apify's Silver and Gold plans get lower prices: $1.35 and $1.20 per 1,000 posts.

Set a spending limit on any run and it stops exactly there. Apify's free plan includes monthly credit, so you can try it at no cost.

### Telegram keyword monitoring and alerts

Turn the search into a Telegram keyword monitor in three steps:

1. Save your keywords as a task and set **Posted after** to `1 day`.
2. Schedule the task to run every morning.
3. Connect an integration: Slack, email, Google Sheets, Zapier, Make, n8n, Airbyte, or a webhook.

Every new post that mentions your brand, product, or competitor then lands in your channel or spreadsheet automatically, and you pay only for the new posts.

### Run it from your code or AI assistant

Call it from JavaScript with the Apify client:

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('vero-api/telegram-keyword-search-scraper').call({
  keywords: ['openai'],
  maxPostsPerKeyword: 100,
  postedAfter: '7 days',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'posts');
```

Or from Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("vero-api/telegram-keyword-search-scraper").call(run_input={
    "keywords": ["bitcoin"],
    "maxPostsPerKeyword": 50,
})
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item["date"], item["url"], item.get("views"))
```

AI assistants such as Claude and ChatGPT can run it too, through the Apify MCP server: ask for "the latest Telegram posts about OpenAI" and the assistant runs the actor for you.

### FAQ

**Do I need a Telegram account or API keys?** No. Just enter your keywords and start.

**How do I search all Telegram channels for a keyword?** Enter the keyword and click **Start**. The actor finds the public channels that mention it and returns their matching posts, newest first. You don't need to know or join any channel first.

**Is there a Telegram post search API?** Yes. Start a run through the Apify API with your keywords and read the matching posts as JSON from its dataset (see the code examples above). AI agents can call it through the Apify MCP server.

**Can I get alerts when my keyword is mentioned on Telegram?** Yes. Schedule a daily run with **Posted after** set to `1 day` and connect Slack, email, or a webhook. See "Telegram keyword monitoring and alerts" above.

**Does it search every Telegram channel?** It searches public channels: it finds the channels where your keyword appears, then reads their posts. Private channels and groups can't be searched by anyone outside them.

**How does matching work?** A post matches when its text, its links, or its link preview contains your keyword, ignoring letter case. Keywords are found inside longer words too, so for words that change their ending, enter the stem: `invest` finds *investor* and *investing*, `Украин` finds *Украина* and *Украины*. With several words, choose **Match**: all words in any order, the exact phrase, or any of them.

**Can I search for a link or a website?** Yes. Enter part of the link, like `yoursite.com` or `github.com/yourname`, and you get every post that shares it, even when the link sits behind a word.

**Why are results newest first?** Most people want the latest mentions. Results are sorted by date across all channels, so **Max posts per keyword** always gives you the newest ones.

**Can I get older posts?** Yes. Set **Posted after** and **Posted before** to search any date range, even years back, and every post in that range is checked. Without dates, each channel's recent history is searched, up to its latest 20,000 posts.

**Can I get only new posts on a schedule?** Yes. Schedule the actor and set **Posted after** to a period like `1 day`. The period counts back from the moment each run starts, so a daily run gets every new post once.

**What if two keywords find the same post?** You get it once, labeled with the first keyword that found it, and you pay for it once.

**Can I add channels I already know?** Yes. Put them in **Also search these channels** and they are searched on top of the ones found for you. Use **Skip these channels** to leave channels out.

**Can I download the photos and videos?** Yes. Posts include direct links to their photos and videos. A few large videos play only in the Telegram app: those come with their preview image and length, and you open them from the post link.

**How fresh is the data?** Every run reads the channels live, so you get posts published minutes ago.

**Is this an official Telegram tool?** No. Telegram Keyword Search Scraper is an independent tool. It is not affiliated with, endorsed by, or sponsored by Telegram.

### More tools from us

- [Telegram Channel Scraper](https://apify.com/vero-api/telegram-channel-scraper) — every post from the public channels you choose.
- [Telegram Username Checker](https://apify.com/vero-api/telegram-username-checker) — profiles, channels, groups, and bots by username.
- [WhatsApp Channel Search Scraper](https://apify.com/vero-api/whatsapp-channel-search-scraper) — find WhatsApp channels by keyword.
- [Threads Scraper](https://apify.com/vero-api/threads-scraper) — posts, profiles, hashtags, and replies from Meta Threads.
- [YouTube Transcript Scraper](https://apify.com/vero-api/youtube-transcript-scraper) — captions and subtitles from YouTube videos in bulk.

# Actor input Schema

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

What to search Telegram for: a brand, product, topic, hashtag, or a link like <code>yoursite.com</code>. Each keyword is searched on its own across all public channels. Matching ignores letter case and finds the keyword inside words and links, so <code>invest</code> also finds <i>investor</i> and <i>investing</i>.

## `maxPostsPerKeyword` (type: `integer`):

How many matching posts you want for each keyword. You always get the newest ones first.

## `postedAfter` (type: `string`):

Only get posts published on or after this date. Pick a date, or enter a period like <code>7 days</code> to get just the fresh posts on every scheduled run. Setting it also searches each channel's full history within your dates.

## `postedBefore` (type: `string`):

Only get posts published before this date. Combine with <b>Posted after</b> to search an exact date range, even years back.

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

How posts must match a keyword with several words.

## `language` (type: `string`):

Find channels that write in this language. Leave empty to search channels in every language.

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

How many of the most relevant channels to search for each keyword. More channels find more posts; fewer finish faster.

## `extraChannels` (type: `array`):

Public channels to always include, on top of the ones found for you. Paste usernames (e.g. <code>durov</code>) or links (e.g. <code>https://t.me/durov</code>).

## `excludeChannels` (type: `array`):

Channels to leave out of your results, e.g. spam or your own channel. Paste usernames or links.

## Actor input object example

```json
{
  "keywords": [
    "openai"
  ],
  "maxPostsPerKeyword": 100,
  "matchMode": "allWords",
  "maxChannelsPerKeyword": 50
}
```

# Actor output Schema

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

One row per matching post, newest first for each keyword: keyword, channel, url, date, text, views, reactions, links, hashtags, mentions, photos, videos (link, preview image, length), link preview, and the channel's profile with subscriber count.

# 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": [
        "openai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tgscraper/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": ["openai"] }

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

```

## MCP server setup

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