# Search all of Telegram for a keyword or brand

**Use case:** 

Find the newest Telegram posts that mention a keyword, brand or topic across public channels, with views, reactions and the channel each one came from. The example searches ChatGPT and OpenAI over the last 30 days.

## Input

```json
{
  "channels": [
    "durov",
    "https://t.me/WatcherGuru",
    "https://t.me/tginfo/4459"
  ],
  "searchQueries": [
    "chatgpt",
    "openai"
  ],
  "maxPostsPerChannel": 10,
  "maxPostsPerSearch": 30,
  "maxChannelsPerSearch": 10,
  "searchLanguage": "en",
  "searchCountry": "us",
  "postedAfter": "30 days",
  "skipServiceMessages": true,
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "includeChannelInfo": true,
  "onlyNewPosts": false,
  "memoryName": "default",
  "maxConcurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "channel": {
    "label": "Channel",
    "format": "text"
  },
  "text": {
    "label": "Text",
    "format": "text"
  },
  "date": {
    "label": "Posted",
    "format": "date"
  },
  "views": {
    "label": "Views",
    "format": "number"
  },
  "reactionsTotal": {
    "label": "Reactions",
    "format": "number"
  },
  "commentsCount": {
    "label": "Comments",
    "format": "number"
  },
  "viewRate": {
    "label": "Views % of subscribers",
    "format": "number"
  },
  "mediaTypes": {
    "label": "Media",
    "format": "array"
  },
  "hashtags": {
    "label": "Hashtags",
    "format": "array"
  },
  "links": {
    "label": "Links",
    "format": "array"
  },
  "forwardedFrom": {
    "label": "Forwarded from",
    "format": "object"
  },
  "source": {
    "label": "Found via",
    "format": "text"
  },
  "searchQuery": {
    "label": "Search",
    "format": "text"
  },
  "url": {
    "label": "Post",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Telegram Channel Scraper & Monitor: Posts, Search, No Login Actor is ready to run with the inputs already set for "Search all of Telegram for a keyword or brand". [Sign up or log in](https://console.apify.com/create-task-from-example/zhuIXLFBmxn3VVL4v) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Search all of Telegram for a keyword or brand" task

The Telegram Channel Scraper & Monitor: Posts, Search, No Login Actor will start running based on the input automatically. You can also change all the input fields, like channels, groups or post links, search all of telegram (keywords), and more, to match your specific use case.

### 3. Receive the "Search all of Telegram for a keyword or brand" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as channel, text, posted, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Search all of Telegram for a keyword or brand" task via API](https://apify.com/panix/telegram-scraper.md).

## FAQ

### What does the keyword search task return?

The newest matching posts across the public channels found for each keyword, with searchQuery and channelRank on every post, plus a channel row (subscribers, title, description) for each channel that had matches.

### How are the channels found?

A web search of t.me finds the public channels that discuss your keyword, then Telegram's own search runs inside each channel. Set Search language and Search country to find channels in other languages.

### How much does the keyword search task cost?

Each keyword costs $0.010 per run on the Free plan and $0.008 on Starter, plus $0.80 / $0.60 per 1,000 posts and $2.00 / $1.50 per 1,000 channel rows. Keywords with no channels found are free.

### Do I need a Telegram account, phone number or API key?

No. The task reads Telegram's public web preview of each channel (t.me/s/...). There is nothing to log in to.

## About this Actor

This example demonstrates how to use [Telegram Channel Scraper & Monitor: Posts, Search, No Login](https://apify.com/panix/telegram-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/panix/telegram-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/panix/telegram-scraper.md

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`).
