Developer API
Build video and photo downloads into your own app or site. Post a link together with your API key and receive all available formats as JSON. To get a key, ask us via the contact page.
Request
curl -H "X-API-Key: aio_xxxxxxxx" \
"https://xtubesaver.com/api/v1/download?url=https://youtu.be/jNQXAC9IVRw"Response
{
"ok": true,
"platform": "Youtube",
"items": [{
"title": "Me at the zoo",
"thumbnail": "https://…",
"duration": 19,
"options": [
{ "kind": "video", "label": "240p", "ext": "mp4", "size": 629172,
"mode": "direct", "url": "https://xtubesaver.com/dl/download?t=…" },
{ "kind": "audio", "label": "MP3 192kbps", "ext": "mp3", "mode": "job",
"convert": {
"method": "POST",
"url": "https://xtubesaver.com/api/v1/jobs",
"body": { "token": "…" } } }
]
}]
}Conversions (MP3, merged HD)
curl -X POST -H "X-API-Key: aio_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"token":"…"}' https://xtubesaver.com/api/v1/jobs
# → {"ok": true, "id": "AbC…",
# "status": "https://xtubesaver.com/api/v1/jobs/AbC…"}
curl -H "X-API-Key: aio_xxxxxxxx" https://xtubesaver.com/api/v1/jobs/AbC…
# → {"ok": true, "status": "done", "progress": 100,
# "url": "https://xtubesaver.com/dl/jobs/AbC…/file"}Errors return a JSON body like {"error": "unsupported"} with an HTTP status: 400 invalid link, 401 bad key, 403 IP not allowed or API off, 404 job not found, 410 link expired (request it again), 422 cannot download, 429 quota or rate limit reached, 451 blocked by a copyright notice, 503 busy (try again shortly).
Download links (url and tokens) are valid for 1 hour; converted files stay available for 30 minutes. Status checks do not count towards your daily quota.
Photos and albums
Photo posts (Instagram, X, Pinterest, Bluesky, Flickr, Imgur…) return options with "kind": "image". Posts with several files (carousels, albums, stories) also get a "zip" object: start it like a conversion to get every file in one ZIP.
{
"ok": true,
"platform": "Instagram",
"items": [
{ "title": "…", "options": [
{ "kind": "image", "label": "JPG", "ext": "jpg", "dims": "1080×1350",
"mode": "direct", "url": "https://xtubesaver.com/dl/download?t=…" } ] },
{ "title": "…", "options": [ { "kind": "video", "label": "720p", … } ] }
],
"zip": {
"count": 2,
"token": "…",
"convert": {
"method": "POST",
"url": "https://xtubesaver.com/api/v1/jobs",
"body": { "token": "…" } } }
}Embeddable widget
Paste this code into any page to show the downloader there. No key needed.
<div data-downloader data-lang="en"></div>
<script src="https://xtubesaver.com/embed.js" async></script>data-theme="light|dark|auto" · data-max-width="720px"
<!-- without JavaScript -->
<iframe src="https://xtubesaver.com/embed/en" width="100%" height="560"
style="border:0;max-width:720px" loading="lazy" title="Video downloader"></iframe>