RapidAPI logo

Sports Scores

FREEMIUM
By hmoccupe
Updated 18 days ago
Sports
7/10
Popularity Score
223ms
Latency
100%
Success Rate

Sports Scores API Documentation

All Sports result , fixture and live data

View API Details
payed_use
GETget_event_by_id
free_use
GETget_events_by_league
GETget_events_by_sport
GETleagues by country
GETcountrys by sport
GETget sports list
GETget_events_by_country
GETget_event_by_id

get all available data for a givin event (use an id from : geteventsbyleague or geteventsbysport or geteventsby_country)

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
idNUMBER
REQUIREDevent_id
Code Snippet
unirest.get("https://sports-scores.p.rapidapi.com/get_event_by_id?id=<required>")
.header("X-RapidAPI-Host", "sports-scores.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://sports-scores.p.rapidapi.com/get_event_by_id
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://sports-scores.p.rapidapi.com/get_event_by_id?id=<required>")
.header("X-RapidAPI-Host", "sports-scores.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