get_market_odds
Opening and closing lines by sportsbook for the half and quarter markets (history from the 2023 season)
Use it when you need a game's half or quarter lines as history: each sportsbook's opening and closing 1st half or 1st quarter winner, spread or total, or the 2nd half and quarter totals.
Parameters
game_idstringrequired- Game id from get_schedule or get_games.
marketenum: h2h_h1 | spreads_h1 | totals_h1 | h2h_q1 | spreads_q1 | totals_q1 | totals_q2 | totals_q3 | totals_q4 | totals_h2required- The market: h2h_h1 (1st half winner), spreads_h1 (1st half point spread), totals_h1 (1st half total points), h2h_q1 (1st quarter winner), spreads_q1 (1st quarter point spread), totals_q1 (1st quarter total points), totals_q2 (2nd quarter total points), totals_q3 (3rd quarter total points), totals_q4 (4th quarter total points), totals_h2 (2nd half total points)
bookmakerstringoptional- One bookmaker key, e.g. draftkings, fanduel, pinnacle.
estimate_onlybooleanoptional- Return what this call would cost, without charging or running it.
Notes
- Over MCP, ask for it in plain English and the client calls
get_market_oddsitself. Point any MCP client athttps://mcp.endzoneapi.com/mcp?key=YOUR_API_KEY. - Each call costs 10 credits, taken before it runs and refunded if the server errors.
- Not the call you need? Find the right call by what you are trying to answer.
Request
curl -X POST https://mcp.endzoneapi.com/v1/get_market_odds \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"game_id": "2024_01_BAL_KC",
"market": "totals_h1"
}'Response
{
"game_id": "2024_01_BAL_KC",
"market": "totals_h1",
"label": "1st half total points",
"scheduled_start": "2024-09-06T00:20:00.000Z",
"books": [
{
"bookmaker": "betmgm",
"opening": [
{
"outcome": "Over",
"point": 23,
"price": -105
},
{
"outcome": "Under",
"point": 23,
"price": -115
}
],
"opening_captured_at": "2024-09-05T23:45:38.000Z",
"closing": [
{
"outcome": "Over",
"point": 23,
"price": -105
},
{
"outcome": "Under",
"point": 23,
"price": -115
}
],
"closing_captured_at": "2024-09-05T23:45:38.000Z",
"minutes_before_start": 34.4
}
],
"count": 7
}Response fields
game_idstringmarketstringlabelstringscheduled_startstringbooks[]array- List of objects
books[].bookmakerstringbooks[].opening[]array- List of objects
books[].opening[].outcomestringbooks[].opening[].pointnumberbooks[].opening[].pricenumberbooks[].opening_captured_atstringbooks[].closing[]array- List of objects
books[].closing[].outcomestringbooks[].closing[].pointnumberbooks[].closing[].pricenumberbooks[].closing_captured_atstringbooks[].minutes_before_startnumbercountnumber
Related endpoints
Returns the game_id this one takes.
Upcoming games by week or for the next N days
Returns the game_id this one takes.
Query games by season, week, team, date, type, or status, with closing lines
Takes the game_id this one returns.
Full game detail with team stats, starting QBs, odds, weather, and officials
Takes the game_id this one returns.
How one player's prop line moved before a game, every capture by sportsbook
Try it
500 free credits every month: 50 calls to get_market_odds, and no card.