Retrieve all markets and corresponding odds from a given game.
import requests
body = {
"api_key": "XXXX-XXXX-XXXX",
"game_id": "GAME:NBA_New_York_Knicks_Philadelphia_76ers_2024-04-30T23:00:00",
"league": "NBA",
"sportsbooks": ["Caesars", "DraftKings", "FanDuel"],
"markets": ["Moneyline", "Point Spread"]
}
response = requests.post("https://api.propprofessor.com/game/odds", json=body)
{
"id": "kwzVnUdfhmWndWZTnPSLloFrD",
"away_team": "Oklahoma City Thunder",
"home_team": "San Antonio Spurs",
"is_live": false,
"start": "2024-03-01T01:40:00",
"start_int": 1709257200,
"sport": "Basketball",
"league": "NBA",
"odds": [
{
"sportsbook": "Caesars",
"market": "Moneyline",
"selection": "Oklahoma City Thunder",
"odds": -600,
"line": null,
"url": "https://sportsbook.caesars.com/us/(STATE)/bet/basketball/ed12f43c-f49a-4593-b3a4-5d791fb58bce/oklahoma-city-thunder-at-san-antonio-spurs",
"deep_link": "https://sportsbook.caesars.com/us/(STATE)/bet/betslip?selectionIds=d89786a6-4f80-3c82-ab04-92be5cbda957",
"selection_type": null,
"participant": "Oklahoma City Thunder"
},
{
"sportsbook": "Caesars",
"market": "Moneyline",
"selection": "San Antonio Spurs",
"odds": 430,
"line": null,
"url": "https://sportsbook.caesars.com/us/(STATE)/bet/basketball/ed12f43c-f49a-4593-b3a4-5d791fb58bce/oklahoma-city-thunder-at-san-antonio-spurs",
"deep_link": "https://sportsbook.caesars.com/us/(STATE)/bet/betslip?selectionIds=3a2c7c49-6467-3284-89ab-e5648962a2b4",
"selection_type": null,
"participant": "San Antonio Spurs"
}
]
}