RapidAPI logo

FIFA World Cup

FREE
By montanaflynn
Updated 4 months ago
Sports
8.7/10
Popularity Score
197ms
Latency
100%
Success Rate

FIFA World Cup API Documentation

Keep up with the FIFA World Cup action using this API that returns teams, rounds and matches in JSON format.

View API Details
GETTeams
GETRounds
GETGames
GETPersons
GETGoals
GETTeams

List of teams that played.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
acceptsSTRING
OPTIONALWhat content type to return (json, xml, csv, yaml)
Code Snippet
unirest.get("https://montanaflynn-fifa-world-cup.p.rapidapi.com/teams")
.header("X-RapidAPI-Host", "montanaflynn-fifa-world-cup.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("accepts", "json")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://montanaflynn-fifa-world-cup.p.rapidapi.com/teams
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://montanaflynn-fifa-world-cup.p.rapidapi.com/teams")
.header("X-RapidAPI-Host", "montanaflynn-fifa-world-cup.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("accepts", "json")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication