The unOfficial World Cup 2014

FREE
By community
Updated 5 months ago
Sports
-/10
Popularity Score
-
Latency
-
Success Rate

The unOfficial World Cup 2014 API Documentation

The kimonolabs World Cup 2014 API provides easy access to up-to-date player, team and match data for the 2014 World Cup as well as historical player performance across their respective club teams. The API is RESTful and uses standard HTTP response codes to indicate errors. JSON will be returned in all responses from the API.

View API Details
Player Season Stats
GETList all Player Season Stats
GETRetrieve a Player Season Stat
Teams
GETList all teams
GETRetrieve a Team
Players
GETList all players
GETRetrieve a player
Matches
GETList all matches
GETRetrieve a Match
Clubs
GETList all clubs
GETRetrieve a club
GETList all Player Season Stats

Returns a JSON array containing PlayerSeasonStat objects matching the arguments provided.

Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apikeyQUERY
REQUIREDYour Kimonolabs API key
Optional Parameters
sortSTRING
OPTIONALSort by any field ascending, or descending (1=ascending, -1=descending)
fieldsSTRING
OPTIONALDisplay only certain fields, comma separated
offsetSTRING
OPTIONALStarting index of first returned object (offset=0)
limitSTRING
OPTIONALMaximum number of objects returned (default: 50)
Code Snippet
unirest.get("https://community-unofficial-world-cup.p.rapidapi.com/api/player_season_stats?sort=goalsScored%2C-1&fields=season%2Cteam%2CgoalsScored&offset=50&limit=250")
.header("X-RapidAPI-Host", "community-unofficial-world-cup.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://community-unofficial-world-cup.p.rapidapi.com/api/player_season_stats
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://community-unofficial-world-cup.p.rapidapi.com/api/player_season_stats?sort=goalsScored%2C-1&fields=season%2Cteam%2CgoalsScored&offset=50&limit=250")
.header("X-RapidAPI-Host", "community-unofficial-world-cup.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