RapidAPI logo

Simple Audio And Sound Converter

FREEMIUM
By petadata
Updated 4 months ago
Media
1.8/10
Popularity Score
565ms
Latency
100%
Success Rate

Simple Audio And Sound Converter API Documentation

Cloud API to convert sounds between various formats.

View API Details
Post Via Form
POSTConvert
Common
GETCheckConversionStatus
DELETEDeleteTask
GETDownloadConvertedFile
POSTConvert

Creates sound conversion job and returns id of task

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fileBINARY
REQUIREDSource file to convert
targetFormatSTRING
REQUIREDOutput sound type acceptable values ( AAC, AIFF, AU, CAF, FLAC, IRCAM, MP3, OGG, PAF, PVF, SVX, VOC, W64, WAV, WMA )
Code Snippet
unirest.post("https://petadata-simple-audio-and-sound-converter-v1.p.rapidapi.com/Convert")
.header("X-RapidAPI-Host", "petadata-simple-audio-and-sound-converter-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://petadata-simple-audio-and-sound-converter-v1.p.rapidapi.com/Convert
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://petadata-simple-audio-and-sound-converter-v1.p.rapidapi.com/Convert")
.header("X-RapidAPI-Host", "petadata-simple-audio-and-sound-converter-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