# Telegram Channel Post Search API

> Returns messages matching a search keyword from a specific Telegram channel. Filter results using channel username, query term, and result limit.

Source: https://www.sandbase.ai/model/telegram/web/channel-search
API reference: https://www.sandbase.ai/model/telegram/web/channel-search/docs

## Facts

- Provider: Telegram
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/telegram/web/channel-search`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, telegram
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/telegram/web/channel-search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `channel` | string | yes |  |
| `query` | string | yes |  |
| `limit` | integer | no |  |

## FAQ

### How do I use the Telegram Channel Post Search API?

Send a POST request to https://api.sandbase.ai/v1/api/telegram/web/channel-search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Telegram Channel Post Search API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Telegram Channel Post Search API accept?

Required: channel (string) and query (string). Optional: limit (integer). The Parameters table and the Playground on this page list every field.

### What does the Telegram Channel Post Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Telegram developer account or API key?

No. Telegram Channel Post Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Telegram API access separately.

## README

### Telegram Channel Post Search API

Search for messages within a target Telegram channel matching a `query` string using the channel username in `channel`.

#### Use cases

- Search channel history for specific topic mentions or announcements.
- Locate media posts matching specific keyword queries within a channel.
- Track historical coverage of particular terms across a channel feed.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/channel-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel": "telegram", "query": "privacy"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | Keyword (required). |
| `channel` | string | Yes | Channel username (required). |
| `limit` | integer | No | Number of hits (1-100, default 20). |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "messages": [
    {
      "author": "Telegram News",
      "date": "2026-07-19T17:57:15+00:00",
      "id": 450,
      "text": "⭐️ Rich Text Editor. You can now create articles and long posts in a visual editor that s…",
      "text_html": "⭐️ Rich Text Editor. You can now create articles and long posts in a visual editor that s…",
      "type": "video",
      "url": "https://t.me/telegram/450",
      "views": "1.25M"
    }
  ]
}
```

#### Notes

- Accepts a `limit` between 1 and 100 hits, with a default of 20.
- Keyword matching through `query` is case-insensitive.

#### Related APIs

- [Telegram Batch Channel Info](/model/telegram/web/batch-channel-info): Returns basic channel profile details including title, description, and verified status for multiple public Telegram channels at once.
- [Telegram Channel Info](/model/telegram/web/channel-info): Returns public metadata for a Telegram channel, including title, description, verified status, and username, using the public web preview.
- [Telegram Channel Posts](/model/telegram/web/channel-posts): Get a public Telegram channel's recent posts: text, media, forwards, replies, link previews, reactions, views and time, with cursor pagination.
