Skip to main content
GET
/
telegram
/
media
/
{channelId}
/
{messageId}
curl -X GET "https://scrape.st/telegram/media/1001234567/42" \
  --output media.jpg
{
  "error": "Media not found"
}
Download media (images, videos) from a Telegram message. The response is the raw binary file with the correct MIME type in the Content-Type header. Responses are cached for 24 hours.
This endpoint does not require an API key but is heavily rate-limited to 2 requests per 60 seconds.

Path Parameters

channelId
string
required
The Telegram channel ID.
messageId
string
required
The message ID containing the media.

Response

Returns the binary media file with the appropriate Content-Type header (e.g., image/jpeg, video/mp4).

Error Response

error
string
Error message when the media is not found. Returns status 404.
curl -X GET "https://scrape.st/telegram/media/1001234567/42" \
  --output media.jpg
{
  "error": "Media not found"
}