Skip to main content

GET /v1/telegram/web/fetch_channel_search

Search posts in a channel

stable · 2 credits per success

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"`).;channel: Channel username (required).;query: Keyword (required).;limit: Number of hits (1-100, default 20).

Sign up for 500 credits and run with your own API key. Sign up free

Request

curl
curl -s 'https://api.wellbyte.net/v1/telegram/web/fetch_channel_search?limit=20&query=TON&channel=durov' \
  -H "Authorization: Bearer dg_live_…"

Response

Sample captured 2026-09-23

data{
code:0
data{
note:"网页预览无原生搜索,此为近期历史的尽力过滤;完整搜索需启用 MTProto 后端"
query:"TON"
backend:"web"
channel:"durov"
matched:17
scanned:100
messages[ 2 items ]
}
meta{
endpoint:"telegram.web.fetch_channel_search"
cache_hit:false
elapsed_ms:0
request_id:"req_sample"
credits_charged:0
}
message:"ok"
}

No calls yet. Get one green run first, then switch to your own data.

    Request parameters

    NameTypeInRequiredDescriptionExample
    limitintegerqueryno返回条数20
    querystringqueryyes关键词TON
    channelstringqueryyes频道用户名durov

    Response fields

    Field dictionary coming soon — the executable panel shows the live shape.

    Errors

    codeHTTPMeaningBilled
    40001400Invalid parametersno
    40102401Invalid or revoked API Keyno
    40201402Insufficient creditsno
    40402404Resource not foundno
    42201422Quality gate failedno
    42901429Rate limit exceededno
    50401504Upstream timeoutno
    50201502Upstream errorno

    Billing

    Success costs 2 credits. Any failure — including a 200 that fails the quality gate — costs 0.

    All Telegram endpoints →

    Search

    Search endpoints and docs