Live Sports Odds

FREEMIUM
By theoddsapi
Updated a month ago
Sports
9/10
Popularity Score
154ms
Latency
100%
Success Rate

Live Sports Odds API Documentation

Odds data for NFL, NBA, MLB, EPL, AFL and loads more, from US, UK and Aussie bookmakers. Get started for free!

View API Details
version 1
GETodds
GETsports
GETodds

Returns the most recent odds for several bookmakers for a given region and sport

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
regionSTRING
REQUIREDDetermines the bookmakers returned. Valid regions are us, uk and au (for United States, United Kingdom and Australia respectively)
sportSTRING
REQUIREDThe sport key returned from the /sports endpoint. To see any live and the next 8 upcoming games across sports, set to "upcoming"
Optional Parameters
mktSTRING
OPTIONALThe market to be returned. Defaults to h2h (moneyline). Valid markets are h2h, spreads and totals
Code Snippet
unirest.get("https://odds.p.rapidapi.com/v1/odds?sport={sport}&region={region}&mkt={mkt}")
.header("X-RapidAPI-Host", "odds.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://odds.p.rapidapi.com/v1/odds?sport={sport}&region={region}&mkt={mkt}
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://odds.p.rapidapi.com/v1/odds?sport={sport}&region={region}&mkt={mkt}")
.header("X-RapidAPI-Host", "odds.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