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.
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,682ms
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:
100%
Response Time:
682ms
Service Level:
100%
Response Time:
854ms
Service Level:
93%
Response Time:
4,419ms
Service Level:
100%
Response Time:
860ms
Service Level:
100%
Response Time:
248ms