RapidAPI logo

Video2Audio

FREE
By backend_box
Updated 4 months ago
-/10
Popularity Score
-
Latency
-
Success Rate

Video2Audio API Documentation

V2A API transcodes video files from URL to audio file. Very many video sites supported. Returns a link to the produced file. Until it has been completed there is a status provided then the actual file.

View API Details
POST/transcode
POST/transcode
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
urlSTRING
REQUIREDURL to a video file
Optional Parameters
qualityNUMBER
OPTIONALAudio file quality, a value between 0 (better) and 9 (worse). Default: 5.
formatSTRING
OPTIONALAudio file format. Supported formats: "aac", "flac", "mp3", "m4a", "opus", "vorbis", "wav". Default: mp3.
Code Snippet
unirest.post("https://pointsdb-video2mp3-v1.p.rapidapi.com/transcode")
.header("X-RapidAPI-Host", "pointsdb-video2mp3-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://pointsdb-video2mp3-v1.p.rapidapi.com/transcode
Request Method: POST
Response Headers
Response Body
Log inSign up

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.post("https://pointsdb-video2mp3-v1.p.rapidapi.com/transcode")
.header("X-RapidAPI-Host", "pointsdb-video2mp3-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication