Back to Downloader
Klyph Developer API
REST v1.0Integrate high-speed, multi-platform media resolution directly into your websites, CLI tools, bots, and mobile apps.
Real-Time Stream Extract
4K, 1080p & MP3 Audio
No Rate-Limits & Free
How the API Works (Streaming Architecture)
01
Send Target URL
POST video link from YouTube, TikTok, Instagram or Facebook
02
Direct CDN Extraction
Klyph resolves available bitrates without buffering files on server
03
Edge Stream Trigger
Client device streams media directly from source at maximum speed
POST
Content-Type: application/json/api/fetchResolves platform media URLs, decrypts streaming signatures, and returns direct video resolutions (4K, 1080p, 720p) along with studio MP3 audio streams and thumbnail previews.
curl -X POST https://your-domain.vercel.app/api/fetch \
-H "Content-Type: application/json" \
-d '{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'Response Structure (200 OK)
{
"success": true,
"data": {
"platform": "youtube",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"author": "Rick Astley",
"thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",
"duration": "3:33",
"formats": [
{
"id": "v-1080",
"quality": "1080p Full HD",
"resolution": "1080p",
"ext": "mp4",
"type": "video",
"url": "https://rr5---sn-cvh7knzk.googlevideo.com/videoplayback?...",
"filesize": "48.2 MB",
"isDirect": true
},
{
"id": "best-audio",
"quality": "Audio Only (320kbps)",
"ext": "mp3",
"type": "audio",
"url": "https://rr5---sn-cvh7knzk.googlevideo.com/videoplayback?...",
"filesize": "4.8 MB",
"isDirect": true
}
]
}
}GET
/api/downloadStream download gateway. Automatically streams media bytes with customized Content-Disposition: attachment; filename="..." headers, prompting the client browser to immediately save the file into the device Downloads directory.
Parameters
FIELDTYPEDESCRIPTION
urlstringThe direct media stream URL returned by /api/fetch.filenamestringCustom desired filename for the downloaded media (e.g. MyVideo.mp4).