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
| Parameter | Required | What it does |
|---|---|---|
sport_key | Yes | League key, e.g. basketball_nba. |
market | No | h2h, spreads or totals. |
result | No | hit, miss, push or void. Void rows are hidden unless you ask for them. |
event_id | No | One game. |
limit | No | Rows per page, default 100, maximum 500. |
offset | No | Row 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 }
}| Field | Meaning |
|---|---|
soft_book, soft_price, soft_point | The sportsbook price that was graded. |
sharp_book, sharp_price, sharp_point | The reference price it was compared with at the same moment. |
snapshot_time | When the gap was recorded, before the start. |
result | hit, miss, push or void, from the final score. |
payout | Units 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_score | Final 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