RapidAPI logo

OneMusic

FREE
By ideas2it
Updated 4 months ago
6.9/10
Popularity Score
162ms
Latency
-
Success Rate

OneMusic API Documentation

OneMusicAPI is an aggregated API, combining several of the largest, most accurate online music databases. OneMusicAPI allows you to query all of these databases with one call. This means less integration code for you to write, debug, maintain and (re) deploy.

OneMusicAPI is lightweight; it is of a 'REST' style. You pass queries to OneMusicAPI in the form of URLs with the query details in the URL's query string. You receive results in JSON format.

View API Details
GETOneMusic
GETOneMusic
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
titleSTRING
REQUIRED
artistSTRING
REQUIRED
maxResultCountNUMBER
REQUIRED
user_keySTRING
REQUIRED
incSTRING
REQUIRED - CONSTANT
Code Snippet
unirest.get("https://ideas2it-onemusic.p.rapidapi.com/20131025/release?title=Doolittle&artist=Pixies&maxResultCount=5&user_key=f0a1932291e7bd326e563401987a8619&inc=images")
.header("X-RapidAPI-Host", "ideas2it-onemusic.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://ideas2it-onemusic.p.rapidapi.com/20131025/release
Request Method: GET
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.get("https://ideas2it-onemusic.p.rapidapi.com/20131025/release?title=Doolittle&artist=Pixies&maxResultCount=5&user_key=f0a1932291e7bd326e563401987a8619&inc=images")
.header("X-RapidAPI-Host", "ideas2it-onemusic.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