Home/Docs/Settlements endpoint

Settlements endpoint: GET /historical/settlements

Last updated 2026-11-16

GET /historical/settlements?sport_key=... returns graded rows on the Business plan: a price gap between a sportsbook and a sharp reference book, the final score of the game, the result (hit, miss, push or void) and the realized payout per unit. It is a backtesting dataset, not a live scores endpoint.

Request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.bettingdataapi.com/historical/settlements?sport_key=basketball_nba&market=spreads&limit=100"

Parameters

ParameterRequiredWhat it does
sport_keyYesLeague key, e.g. basketball_nba.
marketNoh2h, spreads or totals.
resultNohit, miss, push or void. Void rows are hidden unless you ask for them.
event_idNoOne game.
limitNoRows per page, default 100, maximum 500.
offsetNoRow offset for paging.

Response

{
  "success": true,
  "data": [
    {
      "event_id": "8f28b7aabe9c495a0bdae3904f285589",
      "sport_key": "basketball_nba",
      "market": "spreads",
      "soft_book": "fanduel", "soft_outcome": "Sacramento Kings", "soft_point": 12.5, "soft_price": -106,
      "sharp_book": "pinnacle", "sharp_outcome": "Sacramento Kings", "sharp_point": 13.0, "sharp_price": -109,
      "edge_score": 3, "line_gap": 0.5, "price_gap": 3,
      "result": "miss", "payout": -1.0,
      "commence_time": "2026-11-16T02:00:00+00:00",
      "snapshot_time": "2026-11-16T01:33:56.166848+00:00",
      "graded_at": "2026-11-16T05:51:13.59753+00:00",
      "home_team": "Sacramento Kings", "away_team": "Oklahoma City Thunder",
      "home_score": 103, "away_score": 125
    }
  ],
  "meta": { "sport_key": "basketball_nba", "count": 1, "limit": 100, "offset": 0 }
}
FieldMeaning
soft_book, soft_price, soft_pointThe sportsbook price that was graded.
sharp_book, sharp_price, sharp_pointThe reference price it was compared with at the same moment.
snapshot_timeWhen the gap was recorded, before the start.
resulthit, miss, push or void, from the final score.
payoutUnits won per unit staked at the soft price: -1.0 for a loss, 0 for a push, the American-odds return for a win.
home_score, away_scoreFinal score used for grading.

Backtest in a few lines

import requests

def settlements(api_key, sport_key, **filters):
    """Walk every page with limit/offset."""
    offset = 0
    while True:
        r = requests.get("https://api.bettingdataapi.com/historical/settlements",
                         headers={"x-api-key": api_key},
                         params={"sport_key": sport_key, "limit": 500, "offset": offset, **filters},
                         timeout=30)
        r.raise_for_status()
        rows = r.json()["data"]
        yield from rows
        if len(rows) < 500:
            break
        offset += 500

rows = list(settlements("YOUR_API_KEY", "basketball_nba", market="spreads"))
units = sum(r["payout"] for r in rows if r["result"] in ("hit", "miss", "push"))
print(len(rows), "graded rows, net units:", round(units, 2))

Graded rows are available from 2026-04-25 and appear once final scores are confirmed, usually within a few hours of the game ending.

Frequently asked questions

Does Betting Data API have a live scores endpoint?

No. Final scores appear on /historical/settlements alongside graded rows once a game is over. There is no in-game score endpoint.

Which plan includes /historical/settlements?

Business. Free and Pro keys receive a 403.

How far back does settlement data go?

Graded rows are available from 2026-04-25 onward.

What does payout mean?

Units won or lost per unit staked at the graded sportsbook price: -1.0 for a loss, 0 for a push and the American-odds return for a win.

Try it with a free key

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

Get a free API key