Public API
Free, open REST API for YouTube video metadata and downloads. No API key required.
Rate Limit: 30 requests per minute per IP.
GET
/api/info?url=<YOUTUBE_URL>
Get video metadata and all available download formats.
Parameters
url | required | YouTube video URL (any format) |
Try it
Example Response
{
"success": true,
"video": {
"id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up",
"author": "Rick Astley",
"length": 212,
"views": 1500000000,
"likes": 12000000
},
"formats": {
"combined": [{ "itag": 18, "label": "360p MP4", "hasAudio": true }],
"video": [...],
"audio": [{ "itag": 140, "label": "AAC 128kbps", "container": "m4a" }]
},
"downloadUrls": { "api": { "combined": [...], "audio": [...] } }
}
GET
/api/download?url=<URL>&itag=<ITAG>
Download or get a redirect URL for a specific format. Use the itag from /api/info.
Parameters
url | required | YouTube video URL |
itag | required | Format itag (from /api/info) |
redirect | optional | true (default) redirects to CDN. false proxies through server. |
type | optional | combined, video, or audio |
cURL Example
curl -L "https://yt-downloader-comment-db.pages.dev/api/download?url=https://youtu.be/dQw4w9WgXcQ&itag=18" -o video.mp4
GET
/api/search?q=<QUERY>&page=<N>
Search YouTube videos.
Parameters
q | required | Search query |
page | optional | Page number (1-10, default: 1) |
Try it
GET
/api/trending?type=<CATEGORY>
Get trending YouTube videos.
Parameters
type | optional | music, gaming, news, or empty for all |
Click "Fetch" or "Search" above to see a live response.