All-in-One Social Media Downloader API

API ID 14136

Download videos, photos and audio from Instagram, TikTok, YouTube, Facebook, X, Pinterest and more with one URL. Returns clean JSON with direct download links.

3,433 ms avg response

API Documentation

Endpoints

Request
Pass one public link from Instagram (posts, reels, carousels, stories and highlights), TikTok, Facebook, X (Twitter), Pinterest, Rutube or Likee and get the media back as clean JSON: id, source, type (video, image or album), a direct download_url, width, height, thumbnail_url, duration and caption. The response shape is the same for every platform. Multi-item posts (Instagram carousels, TikTok photo posts, Pinterest idea pins) return type album with an items array instead of a top-level download_url, so check type first. TikTok responses also include music_url and a music object with the original sound. Always read the ok field: ok true means success, ok false comes with a detail message explaining the error.
Endpoint ID: 34978
GET https://zylalabs.com/api/14136/all-in-one+social+media+downloader+api/34978/download+media+by+url
INPUT PARAMETERS

Download Media by URL — Endpoint Features

Object Description
url Required Public link to an Instagram, TikTok, Facebook, X, Pinterest, Rutube or Likee post, reel, story or video. The https:// scheme is optional.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "id": "6718335390845095173",
    "source": "tiktok.com",
    "type": "video",
    "download_url": "https://v16me.tiktokcdn.com/81f51c103e626bf7b41214e152417b9b/6acc2df8/video/tos/alisg/tos-alisg-ve-37c799-sg/c9f7a85bfdd7452aaffabc48131961fc/?a=1340&bti=OHYpc2JnaDF3b253bEBqOjo2QDptZl5wYmNiZitsaHFgIzE0M2A%3D&&bt=1469&ft=4bEs3MOa8Zmo08yR4a4jVnbjQgFrKsd.&mime_type=video_mp4&rc=Ojg0Omk2NDtkaTw1PDkzOUBpM245aWhvZ3U4bjMzZzczM0A0MzMwNmBhNTAxMWEuLy02YSMzc29gcGdnMXJfLS01MTZzcw%3D%3D&vvpl=1&l=20261011084636CB0A7F184F8EA34CFE84&btag=e00070000",
    "width": 720,
    "height": 1280,
    "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/dc1c2b319b174c7eabd57ba4b191cc93~tplv-tiktokx-origin.jpeg?dr=16282&refresh_token=0181da86&x-expires=1791763200&x-signature=9Pm1A00ui3LkNlu%2F75mbH9C5X6g%3D&t=5872c671&ps=4f5296ae&shp=d05b14bd&shcp=ad95869f&idc=my2&biz_tag=tt_video&s=FEED&sc=dynamic_cover",
    "duration": 10,
    "caption": "Scramble up ur name & I’ll try to guess it😍❤️ #foryoupage #petsoftiktok #aesthetic",
    "music_url": "https://sf16-ies-music-va.tiktokcdn.com/obj/musically-maliva-obj/1633261625900085.mp3",
    "music": {
        "id": null,
        "title": null,
        "author": null,
        "cover": null,
        "duration": 10,
        "album": null,
        "original": null,
        "download_url": "https://sf16-ies-music-va.tiktokcdn.com/obj/musically-maliva-obj/1633261625900085.mp3"
    }
}
Download Media by URL — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14136/all-in-one+social+media+downloader+api/34978/download+media+by+url?url=https://www.tiktok.com/@scout2015/video/6718335390845095173' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Get metadata for a YouTube video before downloading it: video_id, title, author, author_url, thumbnail, duration in seconds, thumbnails (low and max) and a formats list with every available quality (144p up to 2160p, plus an audio track) and its exact file size in bytes. Use it to show users what they are about to download and to pick a format for the Download YouTube Video endpoint. YouTube community post links (youtube.com/post/...) work too: then is_post is true and the response describes the post with its author, text, hashtags, likes, publish date and media (images with a direct download_url and preview_url). Check is_post first. Always read the ok field: ok true means success, ok false comes with a detail message explaining the error.
Endpoint ID: 34979
GET https://zylalabs.com/api/14136/all-in-one+social+media+downloader+api/34979/youtube+video+info
INPUT PARAMETERS

YouTube Video Info — Endpoint Features

Object Description
url Required YouTube video link (watch, youtu.be, shorts, embed, live) or 11-character video ID. A community post link (youtube.com/post/...) also works.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "is_post": false,
    "video_id": "dQw4w9WgXcQ",
    "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
    "author": "Rick Astley",
    "author_url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
    "thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg",
    "duration": 213,
    "thumbnails": {
        "low": "https://i.ytimg.com/vi/dQw4w9WgXcQ/default.jpg",
        "max": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg"
    },
    "formats": [
        {
            "type": "video",
            "format": "144p",
            "filesize": 5507589
        },
        {
            "type": "video",
            "format": "240p",
            "filesize": 7759569
        },
        {
            "type": "video",
            "format": "360p",
            "filesize": 11832459
        },
        {
            "type": "video",
            "format": "480p",
            "filesize": 17552966
        },
        {
            "type": "video",
            "format": "720p",
            "filesize": 29905327
        },
        {
            "type": "video",
            "format": "1080p",
            "filesize": 84361446
        },
        {
            "type": "video",
            "format": "1440p",
            "filesize": 125617724
        },
        {
            "type": "video",
            "format": "2160p",
            "filesize": 243784090
        },
        {
            "type": "audio",
            "format": "audio",
            "filesize": 3449447
        }
    ]
}
YouTube Video Info — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14136/all-in-one+social+media+downloader+api/34979/youtube+video+info?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Get a direct download link for a YouTube video or its audio track. Send a JSON body with url (any YouTube link: watch, youtu.be, shorts, embed or live, or an 11-character video ID) and format: audio for the audio track, or one of the video qualities 144p, 240p, 360p, 480p, 720p, 1080p, 1440p or 2160p. The response returns video_id, duration, filename, thumbnails and a download_url that serves the file directly. The download_url works without authentication and stays valid for 10 minutes, so start the download right away. Call the YouTube Video Info endpoint first to see which formats are available and how large each file is. Always read the ok field: ok true means success, ok false comes with a detail message explaining the error.
Endpoint ID: 34980
POST https://zylalabs.com/api/14136/all-in-one+social+media+downloader+api/34980/download+youtube+video
INPUT PARAMETERS

Download YouTube Video — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "video_id": "dQw4w9WgXcQ",
    "duration": null,
    "filename": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster) - Rick Astley (720p, h264).mp4",
    "download_url": "https://api.fastsaver.io/v1/tunnel?id=670946ea-46ac-4d08-9e94-4d12e0193537",
    "thumbnails": {
        "low": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mqdefault.jpg",
        "max": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg"
    }
}
Download YouTube Video — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/14136/all-in-one+social+media+downloader+api/34980/download+youtube+video' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "format": "720p"}'

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the All-in-One Social Media Downloader API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Download videos, photos and audio from Instagram, TikTok, YouTube, Facebook, X, Pinterest and more with one URL. Returns clean JSON with direct download links.

All-in-One Social Media Downloader API FAQs

Each endpoint returns clean JSON data. The "Download Media by URL" endpoint provides media details like id, source, type, download_url, dimensions, thumbnail_url, duration, and caption. The "YouTube Video Info" endpoint returns metadata including video_id, title, author, duration, thumbnails, and available formats. The "Download YouTube Video" endpoint returns a direct download link along with video_id, filename, and thumbnails.

Key fields include "ok" (indicating success), "id" (media identifier), "source" (platform), "type" (media type), "download_url" (link to the media), "width" and "height" (dimensions), "thumbnail_url" (preview image), "duration" (for videos), and "caption" (media description). For YouTube, additional fields like "title," "author," and "formats" are included.

The response data is structured in a JSON format with a top-level "ok" field indicating success. For media downloads, the data includes a main object with media details. Multi-item posts return an "items" array under the "type" field. YouTube responses may include a "formats" array detailing available video qualities and sizes.

The "Download Media by URL" endpoint requires a public media link. The "Download YouTube Video" endpoint accepts a JSON body with "url" (YouTube link) and "format" (video quality or audio). Accepted video formats include 144p, 240p, 360p, 480p, 720p, 1080p, 1440p, and 2160p.

The "Download Media by URL" endpoint provides media details from various platforms, including type, download links, and captions. The "YouTube Video Info" endpoint offers metadata about YouTube videos, such as title, author, and available formats. The "Download YouTube Video" endpoint gives direct download links and file information.

Users can utilize the returned data by checking the "ok" field for success. They can extract media details like download links and dimensions for display or processing. For YouTube, users can present metadata to help users choose formats before downloading. The structured response allows easy parsing for integration into applications.

Typical use cases include downloading social media content for offline access, creating compilations of media from various platforms, and integrating media downloads into applications or websites. Users can also analyze video metadata for content management or display purposes.

Data accuracy is maintained by sourcing media directly from the respective platforms (e.g., Instagram, YouTube). The API checks the validity of links and returns error messages when issues arise. Regular updates and checks ensure that the API reflects the latest media and metadata available from these platforms.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs