AllSportDB.com

FREEMIUM
By AllSportDB
Updated 5 months ago
Sports
6.8/10
Popularity Score
748ms
Latency
100%
Success Rate

AllSportDB.com API Overview

AllSportDB.com web site contains details of hundreds of sport events around the world and allows sports fans to keep track of their favourite sports.

Contact API Provider
star-blueRate

Get API access to information on our web site AllSportDB.com.

Data can be requested using REST API calls and will be returned in JSON format.

Main endpoint to return calendar data

  • Get calendar

Example request will return the list of events for this week:

/calendar?week=0

Other endpoints

  • Get competitions
  • Get countries
  • Get locations
  • Get continents
  • Get regions
  • Get games types

Flag endpoints

  • Get country flag
  • Get region flag

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://allsportdb-com.p.rapidapi.com/calendar?objectType=0")
.header("X-RapidAPI-Host", "allsportdb-com.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