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"
}
]
}
Telegram Queries
Search Channel by Type
Fetch specific media types from a Telegram channel
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
string
required
The Telegram channel username (e.g.
@durov) or numeric IDstring
required
The media type to fetch. Valid values:
links, photos, videos,
documents.Query Parameters
number
default:"20"
Number of results to return (1-100)
Response
number
Total number of matching messages found
array
Show properties
Show properties
number
Message ID
string
Message text content
number
Unix timestamp of the message
string | null
ID of the channel
string | null
Title of the channel
string | null
ID of the sender
number | null
Number of views
number | null
Number of forwards
boolean
Whether the message contains media
string | null
Type of media (
photo, video, document, url, or null)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"
}
]
}