Home/Docs/Odds endpoint

Odds endpoint: GET /odds/

Last updated 2026-11-16

GET /odds/?sport_key=... returns every upcoming game for one league with each sportsbook's current moneyline, spread and total. Each game carries a UTC start_time; each book row carries one market, an updated_at timestamp and its outcomes. A game leaves the response when it starts, so in-play prices are not served.

Request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.bettingdataapi.com/odds/?sport_key=americanfootball_nfl&markets=h2h&bookmakers=draftkings,fanduel"

Parameters

ParameterRequiredWhat it does
sport_keyYesLeague key, e.g. americanfootball_nfl, basketball_nba, soccer_epl. GET /sports/ lists every key and the plan that unlocks it.
marketsNoComma-separated: h2h, spreads, totals. Business also has alternate_spreads and alternate_totals. Default: h2h, spreads and totals.
bookmakersNoComma-separated book keys, e.g. draftkings,fanduel,pinnacle. The strongest way to keep a response small.
regionsNoComma-separated region codes such as us, uk, eu, au. Default: every book the league has.
commenceTimeFromNoISO 8601 UTC lower bound on start time, e.g. 2026-11-22T00:00:00Z.
commenceTimeToNoISO 8601 UTC upper bound on start time.
event_idNoOne game. Get ids from GET /events/.
oddsFormatNoamerican (default, e.g. -110) or decimal (e.g. 1.909).

One unsupported value in any comma-separated parameter rejects the whole request with a 400 that explains which value was wrong. MMA returns h2h and totals only.

Response

{
  "success": true,
  "data": [
    {
      "event_id": "35e3bdff558b5d1506251e814986f164",
      "sport": "americanfootball",
      "league": "NFL",
      "home_team": "Baltimore Ravens",
      "away_team": "Los Angeles Chargers",
      "start_time": "2026-11-17T01:15:00Z",
      "books": [
        {
          "book": "draftkings",
          "market": "h2h",
          "updated_at": "2026-11-16T12:43:15.313Z",
          "outcomes": [
            { "name": "Baltimore Ravens", "price": -225 },
            { "name": "Los Angeles Chargers", "price": 185 }
          ]
        },
        {
          "book": "fanduel",
          "market": "h2h",
          "updated_at": "2026-11-16T15:31:01.424Z",
          "outcomes": [
            { "name": "Baltimore Ravens", "price": -230 },
            { "name": "Los Angeles Chargers", "price": 190 }
          ]
        }
      ]
    }
  ]
}
FieldMeaning
event_idStable id for the game. Use it with every other endpoint.
start_timeScheduled start, ISO 8601 UTC.
books[].bookBookmaker key. Read these from an unfiltered response to learn which books a league has.
books[].marketOne market per row. A book with three markets appears as three rows.
books[].updated_atWhen that book's price last changed. Use it to judge freshness per book.
outcomes[].pointThe line for spreads and totals. Absent on moneylines.

Pulling one day's slate

commenceTimeFrom and commenceTimeTo filter on start_time. Games that have already started are not returned, so poll before the first start of the day if you want the full card.

import os, requests
from datetime import datetime, timedelta, timezone

API_KEY = os.environ["BETTING_DATA_API_KEY"]
start = datetime.now(timezone.utc).replace(hour=0, minute=0, second=0, microsecond=0)
params = {
    "sport_key": "americanfootball_nfl",
    "markets": "h2h,spreads,totals",
    "bookmakers": "draftkings,fanduel,pinnacle",
    "commenceTimeFrom": start.strftime("%Y-%m-%dT%H:%M:%SZ"),
    "commenceTimeTo": (start + timedelta(days=1)).strftime("%Y-%m-%dT%H:%M:%SZ"),
}
r = requests.get("https://api.bettingdataapi.com/odds/", headers={"x-api-key": API_KEY}, params=params, timeout=15)
r.raise_for_status()
for ev in r.json()["data"]:
    print(ev["start_time"], ev["away_team"], "at", ev["home_team"], len(ev["books"]), "book rows")

What happens at kickoff

The board carries upcoming games only. At its start time a game leaves /odds/, /events/ and /props/. Pre-game prices from before the start are kept and can be read from /historical/odds on the Business plan.

Frequently asked questions

Does GET /odds/ return in-play odds?

No. GET /odds/ returns upcoming games, and each game leaves the response when it starts. Pre-game prices recorded before the start are available from /historical/odds on the Business plan.

How do I get odds for one game?

Call GET /events/?sport_key=... to find the event_id, then call GET /odds/?sport_key=...&event_id=... .

How do I limit the response to specific sportsbooks?

Pass bookmakers with comma-separated book keys, for example bookmakers=draftkings,fanduel,pinnacle. An unknown key returns a 400 that names it; the keys a league carries are the book values in its unfiltered /odds/ response.

Can I get decimal odds?

Yes. Add oddsFormat=decimal to /odds/. The default is American odds.

Try it with a free key

25 requests per day, moneylines for the free leagues, no credit card.

Get a free API key