Introduction
The YouTube to MP3 API allows you to programmatically download YouTube videos in MP3, MP4, or both formats. Simply send a GET request with the video URL, and the API will respond with download links and metadata.
Pricing Plans
Free
$0 / month
- • Unlimited requests
- • MP3 downloads
- • No API key needed
Most Popular
Pro
$19 / month
- • Priority servers
- • MP3 + MP4 downloads
- • Faster response time
Enterprise
Custom
- • Dedicated servers
- • Bulk integrations
- • 24/7 premium support
API Endpoint
GET https://www.yt2mp3converter.net/apis/fetch.php?url=VIDEO_URL&format=mp3
Replace VIDEO_URL with the YouTube video link.
Parameters
url– YouTube video link (required).format– Valid values:mp3(audio),videos(video with audio), ormp3-mp4(both formats). Default ismp3.stime– Start time (optional, in seconds).etime– End time (optional, in seconds).
Example Request
https://www.yt2mp3converter.net/apis/fetch.php?url=https://www.youtube.com/watch?v=abcd1234&format=mp3
Example Response
{
"title": "Sample Video",
"duration": "3:45",
"filesize": "5 MB",
"download": "https://cdn.yt2mp3converter.net/d/abcd1234.mp3"
}Pricing
The API is currently free for unlimited usage. No API key required.