Video Object Schema
{
"id": number,
"chatId": number,
"title": string,
"thumbnailUrl": string,
"streamingUrl": string,
"downloadUrl": string,
"directUrl": string,
"uploadedAt": number,
"caption": string,
"fileSize": number,
"duration": number,
"mimeType": string
}
API Endpoints
GET
/api
Returns API information and list of available endpoints.
GET
/health
Health check endpoint. Returns server status and timestamp.
GET
/debug
Debug information including bot status, cache stats, and recent messages.
GET
/search?q={keyword}
Search videos by keyword. Searches through captions and filenames.
Parameters
q
(required)
Search keyword
GET
/trending
Fetch the latest videos sorted by date (newest first).
Parameters
limit
(optional)
Max videos (1-50, default: 50)
GET
/video/{id}
Get a single video by message ID.
Parameters
id
(required)
Telegram message ID
GET
/stream/{id}
Stream a video inline (plays in browser instead of downloading).
Parameters
id
(required)
Telegram message ID
GET
/thumbnail/{id}
Stream a video thumbnail inline.
Parameters
id
(required)
Telegram message ID
API Response
// Click any button above to test an endpoint...