Download and convert videos from YouTube. Output formats include MP4, MP3, M4A, FLAC, WAV, OPUS
Authentication
Provide your API key in requests (header or query parameter as specified by the API).
Billing System (usage-based)
Pricing is per API call and depends on format, video quality, and duration. Prices are calculated in USD and converted to RapidAPI Units.
Base Pricing (per download)
MP3, M4A, WEBM, AAC, FLAC, OPUS, OGG, VORBIS, WAV: $0.00027
MP4 360p/480p/720p/1080p: $0.00027
MP4 1440p: $0.00036
MP4 4K/8K: $0.00045
Duration-Based Multipliers
Standard duration limits: 4K 15 min; 1440p 60 min; 1080p 90 min; others 120 min.
If a video exceeds the standard limit for its quality:
Up to standard limit: x1 (base price)
Up to +90 minutes: x3
Up to +180 minutes: x5
Each additional +90 minutes: +2x (e.g., x7, x9, ...)
Example
4K video, 30 minutes → $0.00045 x 3 = $0.00135.
Plans and Limits
Free Plan: 500 units/day.
Pro Plan: 100,000 units/month; overage $0.000042 per extra unit.
Overage Calculation (Pro)
If a Pro Plan user exceeds 100,000 units in a month, they pay $0.000042 per extra unit.
Example: 120,000 units → 20,000 extra → 20,000 x $0.000042 = $0.84.
Notes
Actual unit consumption depends on selected format and duration. The API response includes the exact unit cost for each request. For extended duration add corresponding parameter.
Downloads video and audio from Youtube
Possible formats:
Audio: mp3, m4a, flac, opus, wav
Video: 360, 480, 720, 1080, 1440, 2160
Note: The audio links expire after 2 hours.
Download - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] Youtube video url |
format |
[Required] Possible formats: Audio: mp3, m4a, flac, opus, wav Video: 360, 480, 720, 1080, 1440, 2160 |
{"success":true,"id":"1ccceb8a90f41f69e894d080a4247276340d4085","image":"https://i.ytimg.com/vi/btPJPFnesV4/hqdefault.jpg","progress_url":"https://youtube-api-progress-copy-development.up.railway.app/api/progress?id=1ccceb8a90f41f69e894d080a4247276340d4085"}
curl --location --request GET 'https://zylalabs.com/api/11016/youtube+download+and+info+api/20761/download?url=https://www.youtube.com/watch?v=btPJPFnesV4&format=360' --header 'Authorization: Bearer YOUR_API_KEY'
| 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.
The GET Info endpoint returns metadata about a YouTube video, including the title, thumbnail image, and video ID. The GET Download endpoint provides a success status and a unique ID for tracking the download progress, along with the title and an image URL.
Key fields in the GET Info response include "title," "image," and "id." For the GET Download response, important fields are "success," "id," "title," and "progress_url," which tracks the download status.
The GET Info endpoint typically requires the video ID as a parameter. The GET Download endpoint allows parameters for selecting the desired format (audio or video) and quality (e.g., 360p, 1080p) to customize the download.
The response data is structured in JSON format. For the GET Info endpoint, it includes fields like "title" and "image." The GET Download response includes a "success" boolean, "id," and "progress_url," allowing users to track the download.
The GET Info endpoint provides details about the video, such as its title and thumbnail. The GET Download endpoint offers a way to download the video or audio in various formats and qualities, along with progress tracking.
Users can utilize the "title" and "image" fields from the GET Info response for display purposes. The "progress_url" from the GET Download response can be used to monitor the download status, ensuring users can manage their downloads effectively.
Typical use cases include downloading music tracks as MP3s, saving educational videos in MP4 format for offline viewing, or extracting audio from video content for podcasts or presentations.
Data accuracy is maintained by sourcing information directly from YouTube's platform. The API ensures that the metadata and download capabilities reflect the most current state of the videos available on YouTube.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Service Level:
100%
Response Time:
1,040ms
Service Level:
100%
Response Time:
2,461ms
Service Level:
100%
Response Time:
307ms
Service Level:
100%
Response Time:
2,292ms
Service Level:
93%
Response Time:
4,369ms
Service Level:
100%
Response Time:
1,838ms
Service Level:
100%
Response Time:
248ms
Service Level:
100%
Response Time:
854ms
Service Level:
100%
Response Time:
1,682ms
Service Level:
100%
Response Time:
528ms
Service Level:
100%
Response Time:
635ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
2,379ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
628ms
Service Level:
100%
Response Time:
1,837ms
Service Level:
100%
Response Time:
449ms
Service Level:
100%
Response Time:
1,254ms
Service Level:
60%
Response Time:
2,150ms
Service Level:
100%
Response Time:
833ms