RapidAPI logo

Music Trivia

FREE
By roomtek
Updated 4 months ago
Media
6.1/10
Popularity Score
2099ms
Latency
43%
Success Rate

Music Trivia API Documentation

A Music Trivia API driven by listeners of ZPlayer, a media player on Android

View API Details
GET/getgamelevel
GET/getgamelevel

get a game level with a level parameter. The level this does not imply difficulty

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
outputSTRING
OPTIONALset output format type , 'xml' or 'json'
levelNUMBER
OPTIONALpaginated level
Code Snippet
unirest.get("https://roomtek-music-trivia-v1.p.rapidapi.com/getgamelevel")
.header("X-RapidAPI-Host", "roomtek-music-trivia-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://roomtek-music-trivia-v1.p.rapidapi.com/getgamelevel
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://roomtek-music-trivia-v1.p.rapidapi.com/getgamelevel")
.header("X-RapidAPI-Host", "roomtek-music-trivia-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