Skip to main content

Odds API Documentation

Requirement

You need an API key to use OddsBlaze. Request access at www.oddsblaze.com.

Description

This endpoint returns game odds from sportsbooks.

API Endpoint

https://data.oddsblaze.com/v1/odds/{sportsbook_id}_{league_id}.json

Parameters

key (required)

Your OddsBlaze API key.

market

The market name(s) (e.g. Moneyline or Point Spread). Separate multiple markets with a comma (e.g. Moneyline,Point Spread,Total Points).

main

Include only main lines (true) or only alternate lines (false).

live

Include only live in-play games (true) or only pre-match games (false).

price

Output odds in decimal price (price=decimal).

game

The game id (e.g. mlb:arizona_diamondbacks:philadelphia_phillies:2024-06-21).

Example URLs

DraftKings MLB:

https://data.oddsblaze.com/v1/odds/draftkings_mlb.json?key=your_key

BetRivers NFL, Moneyline market:

https://data.oddsblaze.com/v1/odds/betrivers_nfl.json?key=your_key&market=Moneyline

Hard Rock Bet NFL, live in-play games:

https://data.oddsblaze.com/v1/odds/hard_rock_bet_nfl.json?key=your_key&live=true

BetMGM NCAAF, Point Spread & Total Points markets, main lines only, in decimal format:

https://data.oddsblaze.com/v1/odds/betmgm_ncaaf.json?key=your_key&market=Point%20Spread,Total%20Points&main=true&price=decimal

Example Response

{
"games": [
{
"id": "mlb:arizona_diamondbacks:philadelphia_phillies:2024-06-21",
"sport": "Baseball",
"league": "MLB",
"teams": {
"away": {
"id": "mlb:arizona_diamondbacks",
"name": "Arizona Diamondbacks",
"abbreviation": "AZ"
},
"home": {
"id": "mlb:philadelphia_phillies",
"name": "Philadelphia Phillies",
"abbreviation": "PHI"
}
},
"start": "2024-06-21T22:40:00",
"status": "Scheduled",
"live": false,
"tournament": "Game 3/3",
"sportsbooks": [
{
"id": "draftkings",
"name": "DraftKings",
"odds": [
{
"id": "draftkings:player_home_runs:blaze_alexander_over_0.5:mlb:arizona_diamondbacks:blaze_alexander:mlb:arizona_diamondbacks:philadelphia_phillies:2024-06-21",
"group": "draftkings:player_home_runs:0.5:mlb:arizona_diamondbacks:blaze_alexander:mlb:arizona_diamondbacks:philadelphia_phillies:2024-06-21",
"market": "Player Home Runs",
"name": "Blaze Alexander Over 0.5",
"main": true,
"price": "+600",
"points": 0.5,
"selection": "Over",
"link": "https://sportsbook.draftkings.com/event/ari-diamondbacks-@-phi-phillies/30721082?category=odds&subcategory=batter-props&outcomes=0ML76230958_3",
"sgp": "QjVDdk4rWFpMS1JEL241Q2lMcWZSVGRINmRYZkFCQjNVellSbUo3b0RUZHZ6cUpMMXBpaXpiS3FLMmM4MFhUSw==",
"grade": "dExxL0hhVUZ3aDJtNnVHQU9GL1JoV1JBSUl1K012QUxKR0puUDlnMXF4NnJ2NXNsN1FMTld0NFBlWDhjQ09BaWg3WUgvWmJUUzVUaVZPN1ZGaVZEN2x2NWRReXdPaUw5R2VCK29rM2ZUQ2JvNDNhNHFQbFplS05LTjdFN3lBcEk=",
"players": [
{
"id": "mlb:arizona_diamondbacks:blaze_alexander",
"name": "Blaze Alexander",
"position": "SS",
"team": {
"id": "mlb:arizona_diamondbacks",
"name": "Arizona Diamondbacks",
"abbreviation": "AZ"
}
}
],
"updated": "2024-06-21T20:34:06"
},
{
"id": "draftkings:player_home_runs:blaze_alexander_under_0.5:mlb:arizona_diamondbacks:blaze_alexander:mlb:arizona_diamondbacks:philadelphia_phillies:2024-06-21",
"group": "draftkings:player_home_runs:0.5:mlb:arizona_diamondbacks:blaze_alexander:mlb:arizona_diamondbacks:philadelphia_phillies:2024-06-21",
"market": "Player Home Runs",
"name": "Blaze Alexander Under 0.5",
"main": true,
"price": "-1400",
"points": 0.5,
"selection": "Under",
"link": "https://sportsbook.draftkings.com/event/ari-diamondbacks-@-phi-phillies/30721082?category=odds&subcategory=batter-props&outcomes=0ML76230958_1",
"sgp": "QjVDdk4rWFpMS1JEL241Q2lMcWZSVnJLeGZNcTNoUWJxNXFiQTQvQ2dUT2RpL2xlbVNxb05nT1djbldTbjl3Wg==",
"grade": "dExxL0hhVUZ3aDJtNnVHQU9GL1JoVzlOaTEvL05MWlc4dE5rNDgxaTMxZzA0aERqekhMNG1IM01adUdjU2JjK3ZDYm15aDV0eit3elJ6ZmRWM2ZOdjNGNWJmOEVHaUxOTERIOTYyZjgxUFlrbFVyUHk3QzlDOWxWaWplMlFnc3U=",
"players": [
{
"id": "mlb:arizona_diamondbacks:blaze_alexander",
"name": "Blaze Alexander",
"position": "SS",
"team": {
"id": "mlb:arizona_diamondbacks",
"name": "Arizona Diamondbacks",
"abbreviation": "AZ"
}
}
],
"updated": "2024-06-21T20:34:06"
}
]
}
]
}
]
}