# Telegram Keyword Search Scraper | Channel Posts & Views (`genial_candlestand/telegram-keyword-search-scraper`) Actor

Get public Telegram channel posts that match your keywords: post text, date, views, reactions, photos, links and channel subscribers. Finds channels via Google and/or your list, runs Telegram's own in-channel search, optional deep history scan and date filter. No login.

- **URL**: https://apify.com/genial_candlestand/telegram-keyword-search-scraper.md
- **Developed by:** [Flowo](https://apify.com/genial_candlestand) (community)
- **Categories:** Social media, News, 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.91 / 1,000 telegram 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 | Channel Posts & Views

![Telegram Keyword Search Scraper | Channel Posts & Views](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/telegram-org-post-content-search-by-keyword-banner-f8ec1cb4.png)

Find public Telegram channel posts that mention your keywords and get each post's text, publish date, view count, reaction count, photos and links, plus the channel's title, subscriber count and description. Channels are found for every keyword with a Google search of t.me pages and/or taken from your own list, then searched with Telegram's own in-channel search, so every row is a post that matched your keyword. No Telegram account, login or API key is needed.

### What does Telegram Keyword Search Scraper do?

You enter one or more keywords (for example `bitcoin etf`, `#bitcoin` or `нейросеть`). For each keyword the actor finds relevant public channels via Google (up to 30 per keyword) and adds the channels you list yourself. It then runs Telegram's search inside every channel and returns one dataset row per matching post, newest first. An optional deep search reads older channel history to find matches beyond the ~22 posts Telegram's web search returns per channel.

It is built for brand and crypto monitoring, PR and marketing research, journalists and researchers who follow Telegram news channels, and AI agents that need "Telegram posts about X" in one call.

### How to scrape Telegram posts by keyword

![How Telegram Keyword Search Scraper works: Finds public channels per keyword via a Google site:t.me search; Adds your own channels and runs Telegram's search in each one; Optional deep search scans ol](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/telegram-org-post-content-search-by-keyword-how-c75f9f75.png)

1. Open the actor in Apify Console and enter your keywords in **Keywords**, one per line.
2. Optionally add channels in **Channels to search** (`durov`, `@durov` or `https://t.me/s/durov`). Turn off **Discover channels via Google** to search only your list.
3. Set **Max discovered channels per keyword** and **Max posts per channel and keyword**; pick a **Discovery language** for non-English topics.
4. For older posts, turn on **Deep search**; to get only fresh posts, set **Posted after** (e.g. `7 days`).
5. Click **Start** and download the posts as JSON, CSV, Excel or HTML from the Output tab.

### How much does it cost to scrape Telegram posts?

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Telegram post | $2.25 per 1,000 | $2.137 per 1,000 | $2.025 per 1,000 | $1.912 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 60 rows in 35 s.

You pay per matching post: one dataset row is one `post` event ($2.25 per 1,000 posts on the Free plan). Channel discovery via Google and the deep history scan are included in that price. Channels with no matches, groups and bots that are skipped, and failed pages cost nothing, because they produce no row. The only other charge is the small actor start fee ($0.00005 per GB of memory; the actor runs with 256 MB). A post found by two different keywords is returned twice (one row per keyword) and charged twice.

| Scenario | Posts (events) | Cost on the Free plan |
|---|---|---|
| One keyword in one of your channels, Telegram search only | ~22 | ~$0.05 |
| Default run: `bitcoin etf` with Google discovery of 10 channels | ~200 | ~$0.45 |
| 5 keywords × 10 discovered channels | ~1,000 | ~$2.25 |
| Deep search across many channels, capped by `maxItems: 5000` | 5,000 | ~$11.25 |

Set **Max posts in total** (`maxItems`) to cap the cost of a run.

### Input

![Telegram Keyword Search Scraper input example: Keywords, Discover channels via Google, Max discovered channels per keyword, Max posts per channel and keyword, Deep search (older matches), Max scanned ](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/telegram-org-post-content-search-by-keyword-input-64838714.png)

| Field | Type | Default | What it does |
|---|---|---|---|
| `queries` | array of strings, **required**, 1–50 lines | prefill `["bitcoin etf"]` | Keywords. All words of a line must be in the post (AND); case and word order do not matter; hashtags (`#bitcoin`) work. `OR`, `-word` and quotes are treated as plain words. Empty lines are rejected. |
| `channels` | array of strings | — | Your own public channels: username, `@username` or a t.me link (`durov`, `@durov`, `https://t.me/s/durov`). Groups, bots, users and invite links (`t.me/+…`) are skipped with a warning. Searched in addition to discovered channels. |
| `discoverChannels` | boolean | `true` | Find channels for each keyword with a Google search of t.me pages. When off, `channels` is required. |
| `maxChannelsPerQuery` | integer 1–30 | `10` | Channels Google discovery may add per keyword (up to 5 Google pages are read). Your own channels are not counted. |
| `maxPostsPerChannel` | integer 1–1000 | `50` | Matching posts per channel and keyword, newest first. Without deep search Telegram returns at most about 22. |
| `deepSearch` | boolean | `false` | When Telegram's search hits its cap in a channel, scan older history (20 posts per page) and keep posts that contain every word of the keyword. |
| `deepSearchMaxScannedPosts` | integer 20–10000 | `500` | Older posts deep search reads per channel and keyword. Used only when deep search is on. |
| `publishedAfter` | string (date) | — | Keep only posts published on or after this date: `YYYY-MM-DD` or relative like `30 days`. Must not be in the future. |
| `language` | select, 20 languages | `en` | Interface language of the Google discovery search (en, ru, es, pt, de, fr, it, tr, ar, fa, hi, id, uk, uz, kk, zh-CN, ja, ko, vi, pl). Does not filter posts; ignored when discovery is off. |
| `maxItems` | integer ≥ 1 | `1000` | Stop after this many posts in total. |
| `proxyConfiguration` | proxy | Apify proxy | Proxy for the Telegram pages. Google discovery always uses the Apify Google SERP proxy. |

Example input — recent posts for two keywords:

```json
{
  "queries": ["bitcoin etf", "#bitcoin"],
  "publishedAfter": "7 days",
  "maxItems": 300
}
```

Example input — older matches in one channel you choose:

```json
{
  "queries": ["privacy"],
  "channels": ["durov"],
  "discoverChannels": false,
  "deepSearch": true,
  "maxPostsPerChannel": 40,
  "deepSearchMaxScannedPosts": 100
}
```

### What data can you extract from Telegram posts?

![Telegram Keyword Search Scraper output example: Published, Channel, Text, Views, Reactions](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/telegram-org-post-content-search-by-keyword-output-4b3cbab8.png)

Each row is one post found for one keyword (`id` + `query` is unique).

| Field | Description |
|---|---|
| `url`, `id`, `messageId` | Post link (`https://t.me/<channel>/<messageId>`), post id `<channel>/<messageId>`, message number |
| `query`, `position` | The keyword line that found the post; 1-based rank in this channel for this keyword, newest first |
| `text` | Post text (plain text, emoji kept, line breaks as `\n`); `null` for posts without text, e.g. polls |
| `publishedAt`, `edited` | Publish time (ISO 8601, UTC); whether the post was edited |
| `views` | Views as shown by Telegram, rounded (11.7K → 11700) |
| `reactionsCount`, `paidReactionsCount` | Sum of emoji reactions; Telegram Stars (paid) reactions — 0 when none |
| `author` | Author signature, when the channel signs posts |
| `forwardedFrom`, `forwardedFromUrl` | Name and link of the source of a forwarded post |
| `replyToUrl` | Link to the post this post replies to |
| `linkPreviewUrl`, `linkPreviewTitle` | URL and title of the link preview card |
| `imageUrl` | Main image: first photo, else video thumbnail or link preview image |
| `photoUrls`, `videoUrls` | All photo URLs (albums included); video file URLs |
| `mediaType` | `photo`, `video`, `album`, `document`, `poll`, `sticker`, `other`; `null` for text only |
| `links`, `hashtags` | Links in the post text; hashtags in the text (with `#`, e.g. `#BTC`) |
| `matchedTerms` | Words Telegram highlighted as matches (lowercase); for deep-scan rows the keyword words found |
| `channelUsername`, `channelUrl`, `channelTitle`, `channelVerified` | Channel username, preview page `https://t.me/s/<username>`, display name, verified badge |
| `channelSubscribers`, `channelDescription`, `channelAvatarUrl` | Subscribers as shown (rounded for large channels), bio, avatar image |
| `discoveredVia` | `google` (discovered) or `input` (your list) |
| `matchSource` | `search` (Telegram search) or `deepScan` (deep history scan) |
| `scrapedAt` | When the row was scraped |

A real row from a `bitcoin etf` run:

```json
{
  "url": "https://t.me/glassnode/2098",
  "id": "glassnode/2098",
  "channelUsername": "glassnode",
  "messageId": 2098,
  "text": "Bitcoin has been grinding down and stablecoin supply is shrinking fast; the fastest contraction since June 2022.\nOur latest Week On-chain report contains eight more analyses, including cost basis, ETF flows, wallet accumulation and much more.",
  "publishedAt": "2026-11-11T14:00:35.000Z",
  "edited": false,
  "views": 4810,
  "reactionsCount": 13,
  "paidReactionsCount": 0,
  "author": null,
  "forwardedFrom": null,
  "forwardedFromUrl": null,
  "replyToUrl": null,
  "linkPreviewUrl": "https://x.com/i/article/2120511743210229761",
  "linkPreviewTitle": "X - The Everything App",
  "imageUrl": "https://cdn4.telesco.pe/file/B2qeCB7XZbttfin6xJbBl7RVFHY9iOEvTe-rxpSXCqb4MhVYuPms8-0rKAaFNdHtLovh2JtaoW6gD4KVOWGUDkg0t-Z4U6Kry6hX2Xf6a16beX7syxlBUO3E1b7WOyABDtlazSqURU9UU-QQ9ez9Dvg9xPWcyyPVmgXiTm5o1p7kCBBly3TeyeXz14lMuwFwkKbAchSIEjekYTFeM-anPb2mECkyww9PEoZ7MjHLw_0lcw_F9XtrHj9_8gGeawxkAYYqgmEVPMqaDrDGA3gecJppXBmKxi_ztA3O6biCpFQqv6mtuLwJ-V6YwoGQo8bBrxjpD0HoPYiNFI1yU-xnbQ.jpg",
  "photoUrls": [],
  "videoUrls": [],
  "mediaType": null,
  "links": [
    "https://x.com/i/article/2120511743210229761"
  ],
  "hashtags": [],
  "query": "bitcoin etf",
  "channelUrl": "https://t.me/s/glassnode",
  "channelTitle": "Glassnode",
  "channelVerified": false,
  "channelSubscribers": 43700,
  "channelDescription": "Institutional Data and Market Intelligence for Digital Assets.\nhttps://studio.glassnode.com/",
  "channelAvatarUrl": "https://cdn4.telesco.pe/file/a_yCDdGlg1sf8jiBfwjhoCRES5sq7LEbM4BvegAufupTLyk4cZwo8Nr6S4_NzlsriE9eCzBAC5UC6n2kuOsX21_y2aJhl_0FtN9KdbNC18zBXhrTB1U2H5hKzAAbL8Uk_1Jwnd-WDAMBHwDheTr2s55iBD4TQrPR_u9N95yiuVq3zw3hoxB7cUT7nUa6MqQz318mS2s3mLTPBRIuJU6i8953ypSkH9A4ol7N9mf1Ya6dZiwbEXzQZf345lVZRhC4QkvXAq8lLf8Ge75vvEF3vDSbbhUj8f9ARNe8KC1J6XLvMmfiQ8kRRsyZj9o_gjbtteFHsS5QxePDuqRDxzsYxA.jpg",
  "matchedTerms": [
    "bitcoin",
    "etf"
  ],
  "discoveredVia": "google",
  "matchSource": "search",
  "position": 1,
  "scrapedAt": "2026-11-19T10:58:54.490Z"
}

```

### Use cases

- **Crypto and finance monitoring** — track mentions of a token, ETF or exchange across Telegram channels, with views and reactions per post.
- **Brand and PR monitoring** — see which channels talk about your company or product and how often; filter to the last days with **Posted after**.
- **Influencer and channel discovery** — find channels writing about a topic and compare them by subscriber count and post views.
- **Non-English news research** — Russian, Persian, Uzbek and other Telegram news channels: set **Discovery language** and search in the local script.
- **Archive search in known channels** — list the channels and turn on deep search to find older posts on a subject.

### Limitations

- Telegram has no public global search on the web, so the actor only covers **public channels** — those Google finds for the keyword plus those you list. Groups, bots, users, private channels and channels without a public preview are skipped.
- Telegram's web search returns at most **about 22 newest matches per channel and keyword**. More need deep search, which reads 20 posts per request and is bounded by `deepSearchMaxScannedPosts`.
- Telegram matches **whole words**: a word prefix such as `telegr` usually finds nothing. `OR`, `-word` and quotes have no operator meaning.
- Discovery depends on Google's index: it reads up to 5 Google pages per keyword and may find fewer channels than `maxChannelsPerQuery`. Google pages can take a while to load.
- `views` and `channelSubscribers` are the rounded numbers Telegram shows (e.g. 9.94M → 9940000).
- Image, video and avatar URLs are signed Telegram CDN links that expire; download files soon if you need them.
- Fields that can be `null`: `text`, `views`, `author`, `forwardedFrom`, `forwardedFromUrl`, `replyToUrl`, `linkPreviewUrl`, `linkPreviewTitle`, `imageUrl`, `mediaType`, `channelTitle`, `channelSubscribers`, `channelDescription`, `channelAvatarUrl`. Lists that can be empty: `photoUrls`, `videoUrls`, `links`, `hashtags`, `matchedTerms` (e.g. emoji-only keywords or poll posts are matched without highlighted words).

### Tips and troubleshooting

- **Need more than ~22 posts per channel?** Raise `maxPostsPerChannel` and turn on `deepSearch`; raise `deepSearchMaxScannedPosts` to go further back in history.
- **Only new posts:** set `publishedAfter` (e.g. `1 day` or `2026-11-01`) and run the actor on a schedule; with deep search the history scan stops once posts are older than this date.
- **0 rows?** Check the log: either Google found no t.me channels for the keyword (add channels yourself) or no channel had a post with all words of the line. Use whole words and fewer words per line.
- **Search only your channels:** set `discoverChannels` to `false` and fill `channels`; without any valid channel the run stops with an input error.
- **Discovery failing:** Google discovery needs access to the Apify Google SERP proxy. If it fails, your own channels are still searched.
- **Several keywords:** put each on its own line in `queries`; the same post found by two keywords comes back as two rows.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/telegram-keyword-search-scraper").call(run_input={
    "queries": ["bitcoin etf"],
    "maxChannelsPerQuery": 3,
    "maxPostsPerChannel": 20,
    "maxItems": 60,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/telegram-keyword-search-scraper').call({
    "queries": ["bitcoin etf"],
    "maxChannelsPerQuery": 3,
    "maxPostsPerChannel": 20,
    "maxItems": 60,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~telegram-keyword-search-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["bitcoin etf"],"maxChannelsPerQuery":3,"maxPostsPerChannel":20,"maxItems":60}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/telegram-keyword-search-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/telegram-keyword-search-scraper"}}}`. Then ask, for example:

- "Find Telegram channel posts about bitcoin etf from the last 7 days with views and reactions"
- "Search the durov Telegram channel for posts mentioning privacy, including older history"
- "Which Russian Telegram channels post about нейросеть, and how many subscribers do they have?"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Do I need a Telegram account or API key?**<br>
No. The actor reads the public web preview of channels (`t.me/s/<channel>`) and Google results; no login, phone number or API key is used.

**Can it search all of Telegram?**<br>
No. Telegram offers no public global search without an account. The actor searches inside public channels found via Google for your keyword and inside the channels you list.

**Does every row really contain my keyword?**<br>
Rows from Telegram search are the posts Telegram itself returned for the keyword (`matchSource: "search"`, highlighted words in `matchedTerms`). Deep-scan rows are kept only when every word of the keyword occurs in the post text or link preview title (`matchSource: "deepScan"`).

**Can I search groups or private channels?**<br>
No. Groups, bots, users, invite links and private channels have no public post search; they are skipped with a log message and cost nothing.

**How is it different from other Telegram keyword search actors?**<br>
It runs Telegram's own search inside each channel, so rows are matching posts, not just the newest post of a discovered page. Output is flat camelCase with real `null` values and booleans, and the price is one event per post ($2.25 per 1,000 on the Free plan) with discovery and deep search included, compared with $2.50 per 1,000 rows of the most used keyword-search actor.

**Is it legal to scrape Telegram?**<br>
The actor collects only data that public Telegram channels show to anyone on the web, without logging in. You are responsible for how you use the data, including copyright and personal-data rules such as GDPR, in your jurisdiction.

### Also useful

- [Reddit Scraper](https://apify.com/genial_candlestand/reddit-posts-comments-scraper) — track the same topics on Reddit: posts, comments, subreddits and users
- [Google News Scraper](https://apify.com/genial_candlestand/google-news-articles-search-scraper) — compare Telegram chatter with news articles found by the same keyword
- [YouTube Search Scraper](https://apify.com/genial_candlestand/youtube-search-scraper) — find videos and channels about your keyword, with views
- [WeChat Article Search Scraper](https://apify.com/genial_candlestand/wechat-article-search-scraper) — search WeChat official-account articles by keyword for Chinese-language coverage
- [Google Search Scraper](https://apify.com/genial_candlestand/google-search-results-scraper) — get organic Google results for your keyword beyond Telegram

# Actor input Schema

## `queries` (type: `array`):

One keyword search per line, e.g. bitcoin etf. A post matches when it contains all words of the line (AND); case and word order do not matter, hashtags (#bitcoin) work, whole words only. OR, -word and quotes are treated as plain words. Empty lines are rejected. 1–50 lines.

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

Public channels to search for every keyword, as username, @username or t.me link (durov, @durov, https://t.me/s/durov). Groups, bots, users and invite links (t.me/+…) are skipped with a warning. Searched in addition to the channels found by discovery.

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

Find channels for each keyword with a Google search of t.me pages, then search inside them. Turn off to search only your listed channels (Channels is then required).

## `maxChannelsPerQuery` (type: `integer`):

How many channels Google discovery may add per keyword, 1–30 (up to 5 Google pages are read). Your own channels are not counted.

## `maxPostsPerChannel` (type: `integer`):

Upper limit of matching posts per channel and keyword, newest first, 1–1000. Telegram's search returns at most about 22 recent matches per channel; turn on Deep search for more.

## `deepSearch` (type: `boolean`):

When Telegram's search hits its ~22-post cap in a channel, also scan older history (20 posts per page) and keep posts that contain every word of the keyword. Slower; bounded by Max scanned posts.

## `deepSearchMaxScannedPosts` (type: `integer`):

How many older posts Deep search reads per channel and keyword before it stops, 20–10000. Only used when Deep search is on.

## `publishedAfter` (type: `string`):

Keep only posts published on or after this date: YYYY-MM-DD or relative like 30 days. Empty = any date. Must not be in the future.

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

Interface language of the Google search used for channel discovery (helps find channels in that language). Does not filter posts; ignored when discovery is off.

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

Stop the run after this many posts across all keywords and channels.

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

Proxy for the Telegram pages (Apify proxy by default). Google discovery always uses the Apify Google SERP proxy.

## Actor input object example

```json
{
  "queries": [
    "bitcoin etf"
  ],
  "discoverChannels": true,
  "maxChannelsPerQuery": 10,
  "maxPostsPerChannel": 50,
  "deepSearch": false,
  "deepSearchMaxScannedPosts": 500,
  "language": "en",
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset with every matching post

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

Posts in the overview view (channel, date, text, views)

# 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 = {
    "queries": [
        "bitcoin etf"
    ]
};

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

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

```

## MCP server setup

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