Skip to main content
GET
/
telegram
/
channel
/
{channelId}
/
type
/
{type}
/
search
curl -X GET "https://scrape.st/telegram/channel/@durov/type/photos/search?limit=20" \
  -H "x-api-key: YOUR_API_KEY"
{
  "total": 5,
  "messages": [
    {
      "id": 123456,
      "text": "Check out this photo!",
      "date": 1714567890,
      "channelId": "1001234567",
      "channelTitle": "Photography Channel",
      "fromId": "987654321",
      "views": 5000,
      "forwards": 120,
      "hasMedia": true,
      "mediaType": "photo"
    }
  ]
}
Retrieve specific media message types (links, photos, videos, or documents) from a Telegram channel.

Path Parameters

channelId
string
required
The Telegram channel username (e.g. @durov) or numeric ID
type
string
required
The media type to fetch. Valid values: links, photos, videos, documents.

Query Parameters

limit
number
default:"20"
Number of results to return (1-100)

Response

total
number
Total number of matching messages found
messages
array
curl -X GET "https://scrape.st/telegram/channel/@durov/type/photos/search?limit=20" \
  -H "x-api-key: YOUR_API_KEY"
{
  "total": 5,
  "messages": [
    {
      "id": 123456,
      "text": "Check out this photo!",
      "date": 1714567890,
      "channelId": "1001234567",
      "channelTitle": "Photography Channel",
      "fromId": "987654321",
      "views": 5000,
      "forwards": 120,
      "hasMedia": true,
      "mediaType": "photo"
    }
  ]
}