# Telegram Keyword Monitor: Search & Track Mentions (`elquidata/telegram-keyword-monitor`) Actor

Search public Telegram channels for keywords, brand names or tickers and get every matching post with text, date, views and link. Turn on monitor mode and each scheduled run returns only new mentions. You pay only for posts that match. No login or bot token.

- **URL**: https://apify.com/elquidata/telegram-keyword-monitor.md
- **Developed by:** [Elqui Data](https://apify.com/elquidata) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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 Monitor

Watch public Telegram channels for the words that matter to you — a brand, a competitor, a ticker, a person, a topic — and get every post that mentions them, with text, date, views and a direct link. No Telegram account, phone number, API ID or bot token is needed.

It is built for schedules. With monitor mode on, each run looks only at what was published since the previous one, so you get every match exactly once, and you pay only for posts that match.

### What you can do with it

- **Brand and competitor alerts**: know within the hour when a channel mentions your product.
- **Crypto and market signals**: catch "listing", "airdrop", "delisting" or `$TICKER` mentions across exchange and news channels.
- **News and OSINT monitoring**: follow topics, names or places across many channels at once.
- **Feed an AI agent or a workflow**: send only the relevant posts to Slack, a database, n8n, Make or an LLM, without paying to process everything else.

### How it works

Run it once to search past posts, or turn on `onlyNewMessages` (monitor mode) and schedule it:

1. **First run for a channel**: finds past matches with Telegram's own in-channel search, newest first, then marks the channel's newest post as the starting point. Turn `searchHistoryOnFirstRun` off to skip the history and just start watching.
2. **Every later run**: reads the posts published after that point, oldest first, checks them against all your keywords and returns the ones that match.
3. **Nothing is skipped**: if more matches arrived than your limit allows, the next run continues from where this one stopped. The position is saved after every page, so an aborted run resumes without duplicates.

Keyword matching is done by the Actor itself, so it means the same thing on every run: it ignores upper and lower case, accepts phrases, and can be restricted to whole words.

### Input

| Field | What it does |
| --- | --- |
| `channels` | Public channels to watch: usernames, handles or links. Required. |
| `keywords` | Words or phrases. A post matches when it contains at least one. Required, up to 100. |
| `wholeWords` | `sol` matches `SOL` but not `solution`. Off by default. |
| `matchLinkPreviews` | Also look in the title and description of the link card under a post. On by default. |
| `maxMatchesPerChannel` | Maximum matches returned per channel in one run. Default 100. |
| `onlyNewMessages` | Monitor mode: look only at posts newer than the last one checked. Turn it on for scheduled runs. When off, every run searches the history again. |
| `searchHistoryOnFirstRun` | In monitor mode, also return past matches on the first run. On by default. |
| `stateName` | Name of the position used by monitor mode. Use one name per independent monitor. |
| `dateFrom` | Ignore posts published before this moment. Accepts dates or values such as `30 days`. UTC. |
| `includeHtml` | Add the original HTML formatting of each post. |

Example: an hourly alert for exchange listings.

```json
{
    "channels": ["binance_announcements", "cointelegraph"],
    "keywords": ["listing", "will list", "delist"],
    "onlyNewMessages": true,
    "stateName": "listing-alerts"
}
```

Example: a one-off search of the last 90 days, with whole-word matching.

```json
{
    "channels": ["durov", "telegram"],
    "keywords": ["TON", "Stars"],
    "wholeWords": true,
    "dateFrom": "90 days"
}
```

### Output

One dataset item per matching post. `matchedKeywords` tells you why it was returned.

```json
{
    "matchedKeywords": ["premium"],
    "channel": "telegram",
    "channelTitle": "Telegram News",
    "messageId": 430,
    "url": "https://t.me/telegram/430",
    "date": "2026-01-01T15:03:11+00:00",
    "text": "...",
    "views": 2400000,
    "reactionsCount": 0,
    "reactions": [],
    "author": null,
    "isEdited": false,
    "forwardedFrom": null,
    "replyToMessageId": null,
    "replyToUrl": null,
    "links": ["https://telegram.org/blog/..."],
    "hashtags": [],
    "cashtags": [],
    "mentions": [],
    "media": [],
    "linkPreview": null,
    "buttons": [],
    "isUnsupported": false,
    "scrapedAt": "2026-11-16T04:02:10.000000+00:00"
}
```

The fields are the same as in [Telegram Channel Scraper](https://apify.com/elquidata/telegram-channel-scraper): views and reactions as numbers, media grouped per post, links, hashtags, cashtags and mentions already extracted.

A record named `SUMMARY` in the run's key-value store lists every channel with its status, the number of matches and the number of posts that were checked.

### Pricing

You pay per matching post stored in the dataset. Posts that were checked and did not match are free, and so are channels that could not be read. Set a maximum charge for a run and the Actor stops exactly there and resumes from that point on the next run.

### Limits you should know about

- Only **public channels** with a web preview at `t.me/s/<name>` can be watched. Private channels, groups and comments are out of reach, and this Actor does not try to access them.
- A run is as fresh as your schedule. Hourly runs mean alerts arrive within the hour, not in real time.
- The history search on the first run relies on Telegram's search to find candidates, which can miss posts where the word appears only inside a longer word. Later runs read every new post, so they miss nothing.
- A small share of posts is shown only inside Telegram's apps and has no text to match.

### Use it from code or from an AI agent

The Actor works with the Apify API, the JavaScript and Python clients, schedules, webhooks, integrations such as Make, n8n and Zapier, and the Apify MCP server.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("elquidata/telegram-keyword-monitor").call(run_input={
    "channels": ["binance_announcements"],
    "keywords": ["listing"],
    "onlyNewMessages": True,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["date"], post["matchedKeywords"], post["url"])
```

### Related tools

- [Telegram Channel Scraper](https://apify.com/elquidata/telegram-channel-scraper): every message of a channel, with an incremental mode for scheduled runs.
- [Telegram Channel Analytics](https://apify.com/elquidata/telegram-channel-info): subscribers, average views and engagement rate to decide which channels are worth watching.

### Questions and problems

Open an issue in the Issues tab with the channel name, the keywords and the run ID. Every report is read and answered.

This Actor reads only what Telegram publishes openly on the web. Make sure your use of the data follows the laws that apply to you and Telegram's terms.

# Actor input Schema

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

Public Telegram channels. Each entry can be a username (durov), a handle (@durov) or a link (https://t.me/durov). Private channels, groups and invite links have no public web preview and cannot be watched.

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

Words or phrases to look for, one per line. A post matches when it contains at least one of them. Matching ignores upper and lower case.

## `wholeWords` (type: `boolean`):

When on, 'sol' matches 'SOL' but not 'solution'. Leave off to match the text anywhere, including inside longer words.

## `matchLinkPreviews` (type: `boolean`):

Look for the keywords in the title and description of the link card under a post, not only in the post text.

## `maxMatchesPerChannel` (type: `integer`):

Maximum matching posts returned from each channel in one run. You are charged per match, so this is also your cost limit per channel.

## `onlyNewMessages` (type: `boolean`):

Turn this on for scheduled runs. The Actor remembers the last post checked in each channel and looks only at newer posts on the next run, so you get every match once and never pay for it twice. When off, every run searches the history again.

## `searchHistoryOnFirstRun` (type: `boolean`):

Applies to monitor mode. On the first run for a channel, also return matches from its history, newest first. Turn off to start watching from now and get only future matches.

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

Runs that share a state name share the same position in each channel. Use a different name for each independent monitor, for example 'brand-alerts' and 'competitors'.

## `dateFrom` (type: `string`):

Skip posts published before this moment. Pick a date or use a relative value such as '30 days'. Dates are read as UTC.

## `includeHtml` (type: `boolean`):

Add an 'html' field with the original formatting of each post. The plain 'text' field is always included.

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

Telegram's public preview works well through datacenter proxies, which is the default. Change this only if you see repeated request errors.

## Actor input object example

```json
{
  "channels": [
    "binance_announcements",
    "cointelegraph"
  ],
  "keywords": [
    "listing",
    "airdrop"
  ],
  "wholeWords": false,
  "matchLinkPreviews": true,
  "maxMatchesPerChannel": 50,
  "onlyNewMessages": false,
  "searchHistoryOnFirstRun": true,
  "stateName": "default",
  "includeHtml": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `matches` (type: `string`):

Every post that contains at least one keyword, with the keywords it matched.

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

Matches and messages scanned per channel, and the channels that could not be read.

# 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 = {
    "channels": [
        "binance_announcements",
        "cointelegraph"
    ],
    "keywords": [
        "listing",
        "airdrop"
    ],
    "maxMatchesPerChannel": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("elquidata/telegram-keyword-monitor").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 = {
    "channels": [
        "binance_announcements",
        "cointelegraph",
    ],
    "keywords": [
        "listing",
        "airdrop",
    ],
    "maxMatchesPerChannel": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("elquidata/telegram-keyword-monitor").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 '{
  "channels": [
    "binance_announcements",
    "cointelegraph"
  ],
  "keywords": [
    "listing",
    "airdrop"
  ],
  "maxMatchesPerChannel": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call elquidata/telegram-keyword-monitor --silent --output-dataset

```

## MCP server setup

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

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/Ohec7RTAKszte1g7X/builds/2RzFQSVWhD7emsFZu/openapi.json
