Youtube To Mp3 Download

FREE
By CoolGuruji
Updated 5 months ago
Tools
9.1/10
Popularity Score
432ms
Latency
99%
Success Rate

Youtube To Mp3 Download API Documentation

Convert & Download single video or multiple Youtube videos in Mp3 format using our youtube to mp3 API. Multiple Embedding features are supported like html link, javascript, iframe. Its free also provide affiliate programs.

View API Details
GETFor Downloading Single Videos as MP3
GETFor Downloading Multiple Videos as MP3
GETFor Downloading Single Videos as MP3

Enter the youtube video id that you want to download as mp3.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
video_idSTRING
REQUIREDIts for single video just enter its id like lF-jPBnZ098
Code Snippet
unirest.get("https://coolguruji-youtube-to-mp3-download-v1.p.rapidapi.com/?id=lF-jPBnZ098")
.header("X-RapidAPI-Host", "coolguruji-youtube-to-mp3-download-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://coolguruji-youtube-to-mp3-download-v1.p.rapidapi.com/?id={video_id}
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://coolguruji-youtube-to-mp3-download-v1.p.rapidapi.com/?id=lF-jPBnZ098")
.header("X-RapidAPI-Host", "coolguruji-youtube-to-mp3-download-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication