Download links
| File | Method | Purpose |
|---|---|---|
| api.php | POST / GET | Fetch video metadata + download URLs |
| proxy.php | GET | Proxy thumbnails & force-download files |
| Param | Type | Description | |
|---|---|---|---|
| url | string | REQUIRED | Video URL |
| platform | string | OPTIONAL | Force platform. Default: auto |
GET proxy.php?type=thumb&url=ENCODED_THUMB_URL
Bypasses CDN hotlink protection by proxying image through your server.
GET proxy.php?type=dl&url=ENCODED_URL&filename=video&ext=mp4
Streams the file from your server with Content-Disposition: attachment — guaranteed direct download.
{
"status": "success",
"platform": "kuaishou",
"title": "Video caption",
"author": "@username",
"thumbnail": "https://cdn.example.com/thumb.jpg",
"downloads": [
{
"quality": "HD",
"url": "https://cdn.example.com/video.mp4",
"type": "video",
"ext": "mp4"
}
]
}
const res = await fetch('api.php', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ url: videoUrl, platform: 'auto' }) }); const data = await res.json(); // Force download via proxy data.downloads.forEach(dl => { const dlUrl = `proxy.php?type=dl&url=${encodeURIComponent(dl.url)}&filename=video&ext=${dl.ext}`; window.location.href = dlUrl; });
curl -X POST https://yourdomain.com/api.php \ -H "Content-Type: application/json" \ -d '{"url":"https://www.tiktok.com/...","platform":"auto"}'