telegram/web/channel-search
Search posts in a channel by keyword (case-insensitive).. Uses Telegram's server-side search over the full channel history when the MTProto backend is enabled (`data.backend = "mtproto"`). otherwise falls back to best-ef...
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runtelegram/web/channel-searchInput Schema
3 parameters · 2 required · 1 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Required | Keyword (required). |
channel | string | Required | Channel username (required). |
limit | integer | Optional | Number of hits (1-100, default 20). · Min: 1 · Max: 100 · Default: 20 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Code Examples
Ready-to-run snippets
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "telegram/web/channel-search",
"limit": 20,
"prompt": "a beautiful sunset over mountains"
}'API README
Search posts in a channel
Search posts in a channel by keyword (case-insensitive). Uses Telegram's server-side search over the full channel history when the MTProto backend is enabled (data.backend = "mtproto"). otherwise falls back to best-effort local filtering over recent history (data.backend = "web"). It is suitable for telegram workflows.
Capability
Search posts in a channel by keyword (case-insensitive). Uses Telegram's server-side search over the full channel history when the MTProto backend is enabled (data.backend = "mtproto"). otherwise falls back to best-effort local filtering over recent history (data.backend = "web"). It helps applications, agents, and automated workflows turn that capability into repeatable tasks and useful downstream experiences.
Common use cases
- Search and discover relevant records for research, monitoring, and product experiences.
- Create repeatable integrations that pass structured results to downstream business systems.
- Support scheduled jobs, internal tools, and agent workflows with structured results.

