# Search Telegram Posts by Keyword: Telegram Search Engine

**Use case:** 

Searches public Telegram channels for posts that contain ChatGPT in the last 30 days and returns up to 10 posts, two per channel, with text, date, views, channel and link. Replace the keyword to search Telegram for any topic.

## Input

```json
{
  "collectionMode": "keyword",
  "keywords": [
    "ChatGPT"
  ],
  "afterDate": "30 days",
  "postsPerKeyword": 5,
  "spreadAcrossChannels": true,
  "channels": [],
  "maxResults": 10,
  "maxResultsPerChannel": 2,
  "discoveryCoverage": "standard",
  "maxUnproductiveDiscoveryPages": 2,
  "searchWithinChannels": true,
  "countryCode": "auto",
  "languageCode": "en",
  "keywordMatchScope": "postText",
  "excludeSignatureOnlyMatches": true,
  "includeContextPosts": false,
  "includeKeywords": [],
  "excludeKeywords": [],
  "regexFilters": [],
  "excludeForwards": false,
  "mediaFilter": "any",
  "postLanguages": [],
  "excludeChannels": [],
  "sourcePriority": "channelsFirst",
  "downloadMedia": false
}
```

## Output

```json
{
  "messageUrl": {
    "label": "Post URL",
    "format": "string"
  },
  "channelUsername": {
    "label": "Channel username",
    "format": "string"
  },
  "channelName": {
    "label": "Channel name",
    "format": "string"
  },
  "channelUrl": {
    "label": "Channel URL",
    "format": "string"
  },
  "messageId": {
    "label": "Message id",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "text": {
    "label": "Post text",
    "format": "string"
  },
  "views": {
    "label": "Views",
    "format": "string"
  },
  "reactions": {
    "label": "Reactions",
    "format": "array"
  },
  "media": {
    "label": "Media",
    "format": "array"
  },
  "matchedKeywords": {
    "label": "Matched keywords",
    "format": "array"
  },
  "matchedTextKeywords": {
    "label": "Keywords in post text",
    "format": "array"
  },
  "matchedChannelKeywords": {
    "label": "Keywords in channel title",
    "format": "array"
  },
  "matchType": {
    "label": "Match type",
    "format": "string"
  },
  "discoveredBy": {
    "label": "Collection source",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Collected",
    "format": "string"
  }
}
```

## How it works

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

The Telegram Scraper: Keyword Search, Mentions & Alerts Actor is ready to run with the inputs already set for "Search Telegram Posts by Keyword: Telegram Search Engine". [Sign up or log in](https://console.apify.com/create-task-from-example/geyfybn3gDbU6DlKE) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Search Telegram Posts by Keyword: Telegram Search Engine" task

The Telegram Scraper: Keyword Search, Mentions & Alerts Actor will start running based on the input automatically. You can also change all the input fields, like where do you want to search?, keywords to find, and more, to match your specific use case.

### 3. Receive the "Search Telegram Posts by Keyword: Telegram Search Engine" 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 post url, channel username, channel name, 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 Telegram Posts by Keyword: Telegram Search Engine" task via API](https://apify.com/monkey.d.scraping/telegram-keyword-search-channel-scraper.md).

## FAQ

### How do I search Telegram for several words?

Put one keyword per line, or combine words in one line with AND, OR and NOT, for example ChatGPT AND pricing NOT jobs. Quotation marks keep an exact phrase together.

### What does this example cost?

The Actor charges $0.001 per post ($1 per 1,000), $0.005 per verified keyword discovery page and a $0.00005 start fee, platform usage included. The verified run returned 8 posts from 3 discovery pages for $0.02305. The saved run cap is $0.05.

### Do I need a Telegram account?

No. The Actor searches public Telegram channels without a Telegram login, phone number or API key; an Apify account is enough.

### Which fields are exported?

Each row contains the post text, publication date, channel, views, matched keyword and a direct link to the post. Download it as CSV, Excel or JSON.

### Can I run it automatically?

Yes. Run it through the Apify API or the Python and Node.js clients, connect it to n8n, Make or Zapier, or call it from AI agents through the Apify MCP server. Apify Schedules can repeat it daily or hourly.

## About this Actor

This example demonstrates how to use [Telegram Scraper: Keyword Search, Mentions & Alerts](https://apify.com/monkey.d.scraping/telegram-keyword-search-channel-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/monkey.d.scraping/telegram-keyword-search-channel-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/monkey.d.scraping/telegram-keyword-search-channel-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`).
