Search posts in a channel
/v1/api/telegram/web/channel-searchSearch 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"`).
Request body
Call this sync operation at its vendor-qualified URL. The model identity is encoded in the path; only operation-specific input fields belong in the request body.
Channel username (required).
Number of hits (1-100, default 20).
Range: 1 to 100
Default: 20
Keyword (required).
Response Schema
A synchronous completed response contains exactly one outputs item with only data. Failed and timeout responses contain error and never outputs.
Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.
Current public run status.
Allowed values: pending, running, completed, failed, timeout
Public SandBase model name used for this run.
Present only for completed runs. Contains exactly one item whose only field is data.
Operation-specific business payload. This reference uses an empty object when no safe example can be confirmed.
Present only for failed or timeout runs. Contains a public error type and sanitized message.
Stable public error category.
Sanitized error message safe to show to clients.
Usage details when available.
API capabilities
Capabilities declared by the API registry.
Default: api, telegram
Execution mode declared by the API registry.
Default: sync
pending response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"pending","model":"telegram/web/channel-search"}
running response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"running","model":"telegram/web/channel-search"}
completed response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"completed","model":"telegram/web/channel-search","outputs":[{"data":{}}]}
failed response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"failed","model":"telegram/web/channel-search","error":{"type":"upstream_error","message":"upstream request failed"}}
timeout response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"timeout","model":"telegram/web/channel-search","error":{"type":"upstream_error","message":"upstream request failed"}}