sportdb.io documentation
A fast, multi-sport data & odds REST API: fixtures, live & final scores, standings, lineups and stats, plus odds from 20+ domestic bookmakers and the betting exchanges, with value / arbitrage / dropping-odds signals.
Introduction
Every response is JSON. Timestamps are ISO-8601 UTC and, where relevant, epoch milliseconds (kickoff_ms); every odds price is stamped with its age so you always know how fresh it is.
The API is sport-first: every sport-scoped resource lives under /v1/{sport}/…, where sport is one of football, basketball, tennis, hockey. This keeps each sport a clean, separately-billable surface.
Base URL
https://sportdb.io/v1
The API is versioned in the path (/v1). Breaking changes ship under a new version; additive changes (new fields, new endpoints) do not.
Authentication
All endpoints except /v1/health require an API key. Create an account and generate a key in your dashboard (or register first). Keys look like sdb_live_… and are shown once — store them securely. You can create, rotate and revoke keys at any time in the dashboard.
Send the key in any of these ways (header is recommended):
# Header (recommended)
curl https://sportdb.io/v1/football/fixtures \
-H "X-API-Key: sdb_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Bearer token
curl https://sportdb.io/v1/football/fixtures \
-H "Authorization: Bearer sdb_live_xxxx"
# Query string (handy for quick tests)
curl "https://sportdb.io/v1/football/fixtures?apikey=sdb_live_xxxx"
Quickstart
Fetch the best price per outcome across every book for upcoming football matches:
# curl
curl https://sportdb.io/v1/football/odds \
-H "X-API-Key: $SPORTDB_KEY"
# Python
import requests
r = requests.get(
"https://sportdb.io/v1/football/odds",
headers={"X-API-Key": "sdb_live_xxxx"},
params={"limit": 20},
)
for ev in r.json()["data"]:
print(ev["home"], "vs", ev["away"], "→", ev["best"]["home"])
// JavaScript (fetch)
const res = await fetch("https://sportdb.io/v1/football/odds", {
headers: { "X-API-Key": "sdb_live_xxxx" },
});
const { data } = await res.json();
Full, runnable snippets in curl / Python / JavaScript / PHP for every endpoint live in the interactive API reference.
Requests & responses
List endpoints return a consistent envelope:
{
"data": [ /* array of results */ ],
"count": 20,
"meta": { "sport": "football", "generated_at": "2026-11-25T13:40:00+00:00" }
}
- Pagination / size:
?limit=(1–500, default 100). - Time window (fixtures/odds):
?hours=ahead from now (default 72). - Timestamps: ISO-8601 UTC strings;
kickoff_msis epoch milliseconds. Odds prices carryage_seconds. - IDs:
fixture_idis stable and joins across/fixtures,/fixtures/{id}/lineupsand/fixtures/{id}/stats.
Sports & coverage
Four sports today. Coverage differs per domain and is expanding — the live source of truth is GET /v1/sports (per-sport domains & markets) and GET /v1/books.
| Sport | Fixtures | Scores | Odds | Signals | Standings / lineups / stats |
|---|---|---|---|---|---|
| Football ⚽ | yes | yes | yes | yes | yes |
| Basketball 🏀 | yes | soon | yes | yes | — |
| Tennis 🎾 | yes | yes | yes | yes | — |
| Ice Hockey 🏒 | yes | yes | soon | soon | — |
Odds markets per sport: football 1x2, double_chance, btts, totals, handicap; basketball moneyline, totals, spread; tennis winner.
Endpoints
Account & cross-sport resources live at the root; everything else is under /v1/{sport}/…. See the reference for full parameters, schemas and per-language samples.
Account & meta
Service status and database reachability. Public (no key).
Your plan, entitlements and usage today.
Supported sports with their domains and odds markets.
Covered bookmakers and exchanges, each with a live flag.
Core data
Upcoming schedule: kickoff, league, teams. Params: hours, limit.
Live & finished results with match state.
In-progress events only.
Odds
Pre-match prices from every book, plus the best per outcome. Params: hours, limit. (football, basketball, tennis)
Signals premium
+EV candidates vs the fair market price. Params: min_ev, scope (all|validated), limit.
Cross-book arbitrage opportunities. Params: min_profit, limit.
Dropping odds. Params: window (1h|24h), min_change, limit.
Reference & detail
League / tournament registry.
League table for a tournament id.
Lineups & formations for a fixture.
Match statistics for a fixture.
In-progress scores (alias of scores/live).
Hierarchy football
Browse by country and competition (181 countries, 1,000+ competitions, each with a real table).
Countries that have competitions.
Competitions in a country, e.g. /v1/football/england.
Seasons for a competition, e.g. .../england/premier-league.
League table for a season.
Matches
Match detail (id is the fixture_id from /fixtures).
Lineups per team (players, positions, formation).
Team statistics for the match.
Players & clubs lite
Lite search/profile derived from lineups and matches — not full bios, season stats or transfers.
Search players by name.
Player: positions, teams, recent matches.
Search clubs by name (ranked by activity).
Club: name and recent matches.
MCP server (for AI agents)
sportdb.io is also a remote MCP server (Model Context Protocol) over Streamable HTTP, so Claude, Cursor and other AI agents can call the API as native tools. Endpoint: POST https://sportdb.io/v1/mcp, authenticated with your X-API-Key and metered like any API call. Tools: live_scores, fixtures, odds, value_bets, arbitrage, dropping_odds, countries, competitions, standings.
# Add to any MCP client via the mcp-remote bridge
{ "mcpServers": { "sportdb": {
"command": "npx",
"args": ["mcp-remote", "https://sportdb.io/v1/mcp",
"--header", "X-API-Key:sdb_live_xxxx"] } } }
Bookmakers & exchanges
We normalize odds from 20+ domestic Balkan bookmakers that global odds APIs don't carry (Mozzart, MaxBet, Meridian, AdmiralBet, Superbet, Soccerbet, MerkurXtip, BalkanBet, Efbet and more), so you can compare prices and find the best across all of them.
We also carry the betting exchanges — Betfair Exchange, Sharp Exchange and OrbitExchange, which all share one Betfair liquidity pool — useful as a sharp, fair-value benchmark. In /v1/books they are tagged "type":"exchange", "liquidity":"betfair".
Signals
The /value, /arbs and /drops endpoints surface opportunities computed from the live market: positive expected value against the fair price, cross-book arbitrage, and sharp dropping odds. Each row ships with its inputs (books, prices, fair odds, timestamps) so you can judge it yourself.
Plans & rate limits
Each plan sets a per-minute rate limit, a daily request quota, and which domains it may call. Manage your subscription in the dashboard.
| Plan | Rate / min | Requests / day | Includes |
|---|---|---|---|
| Free | 30 | 100 | Data: sports, books, fixtures, scores, standings, lineups, stats |
| Starter (€19) | 120 | 7,000 | Everything in Free + odds |
| Pro (€79) | 300 | 70,000 | Everything in Starter + live odds + signals |
| Max (€139) | 600 | 150,000 | Everything in Pro, higher volume & rate |
| Business | 1,200 | 1,000,000 | Everything, SLA & priority |
Calling a domain your plan doesn't include returns 403 plan_not_entitled. Every response carries rate-limit headers:
X-RateLimit-Limit: 20000 # daily quota
X-RateLimit-Remaining: 19866
X-RateLimit-Reset: 1795629600 # epoch seconds (next UTC midnight)
Errors
Errors use standard HTTP status codes and a consistent JSON body:
{ "error": { "code": "plan_not_entitled",
"message": "Your plan does not include 'odds'. Upgrade to access it." } }
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthenticated | Missing or invalid API key. |
| 403 | plan_not_entitled | Your plan doesn't include this domain. |
| 404 | — | Unknown route or unsupported {sport}. |
| 422 | unsupported_sport | Sport not available for this endpoint (e.g. hockey odds). |
| 429 | rate_limited | Too many requests this minute. |
| 429 | quota_exceeded | Daily quota reached. |
Changelog
- 2026-11-25 — Sport-first layout (
/v1/{sport}/…). Betfair-liquidity exchanges added to coverage. - 2026-11 — v1 launch: 4 sports, odds from 20+ books, value / arbs / drops signals, direct & RapidAPI billing.
Support
Questions, higher limits or a custom plan? Email [email protected]. See also the Terms and Privacy Policy.