Skip to main content
Scrape a public Telegram channel: info and posts

Authorizations

x-scrapeunblocker-key
string
header
required

Your ScrapeUnblocker API key. Apply on every request.

Query Parameters

channel
string | null

Public channel: username ('durov'), '@durov', or a t.me link ('https://t.me/durov', 'https://t.me/s/durov'). A post link ('https://t.me/durov/400') returns that one post.

max_posts
integer | null

Posts to collect, newest first (1-500), paging back through the channel's history; each page fetched is billed as one request. Omit it for one page, billed once: the newest posts (a page has 20 message slots and an album fills one per photo, so it can hold fewer posts).

before
integer | null

Only posts with an id below this one. Pass nextBefore of a previous response to continue where it stopped.

after
integer | null

Stop at this post id: only posts with a higher id are returned.

since
string | null

Stop at this date: only posts published on or after it (YYYY-MM-DD or an ISO-8601 datetime, UTC when no offset is given).

q
string | null

Search inside the channel: only posts matching this text.

post_id
integer | null

Return only this post (a post id of the channel).

proxy_country
string | null

Exit-IP country (ISO-2). Blank lets us pick the exit.

Response

JSON with channel, a posts array, postsReturned, pagesFetched, hasMore and nextBefore.