Docs API reference Pricing Dashboard Get API key

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"
Treat your key like a password. Never embed it in client-side code or public repos. If a key leaks, revoke it in the dashboard.

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" }
}

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.

SportFixturesScoresOddsSignalsStandings / lineups / stats
Football ⚽yesyesyesyesyes
Basketball 🏀yessoonyesyes—
Tennis 🎾yesyesyesyes—
Ice Hockey 🏒yesyessoonsoon—

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

GET/v1/health

Service status and database reachability. Public (no key).

GET/v1/me

Your plan, entitlements and usage today.

GET/v1/sports

Supported sports with their domains and odds markets.

GET/v1/books

Covered bookmakers and exchanges, each with a live flag.

Core data

GET/v1/{sport}/fixtures

Upcoming schedule: kickoff, league, teams. Params: hours, limit.

GET/v1/{sport}/scores

Live & finished results with match state.

GET/v1/{sport}/scores/live

In-progress events only.

Odds

GET/v1/{sport}/odds

Pre-match prices from every book, plus the best per outcome. Params: hours, limit. (football, basketball, tennis)

Signals premium

GET/v1/{sport}/value

+EV candidates vs the fair market price. Params: min_ev, scope (all|validated), limit.

GET/v1/{sport}/arbs

Cross-book arbitrage opportunities. Params: min_profit, limit.

GET/v1/{sport}/drops

Dropping odds. Params: window (1h|24h), min_change, limit.

Reference & detail

GET/v1/{sport}/leagues

League / tournament registry.

GET/v1/{sport}/standings/{tournament}

League table for a tournament id.

GET/v1/{sport}/fixtures/{fixture}/lineups

Lineups & formations for a fixture.

GET/v1/{sport}/fixtures/{fixture}/stats

Match statistics for a fixture.

GET/v1/{sport}/live

In-progress scores (alias of scores/live).

Hierarchy football

Browse by country and competition (181 countries, 1,000+ competitions, each with a real table).

GET/v1/{sport}/countries

Countries that have competitions.

GET/v1/{sport}/{country}

Competitions in a country, e.g. /v1/football/england.

GET/v1/{sport}/{country}/{competition}

Seasons for a competition, e.g. .../england/premier-league.

GET/v1/{sport}/{country}/{competition}/{season}/standings

League table for a season.

Matches

GET/v1/match/{id}

Match detail (id is the fixture_id from /fixtures).

GET/v1/match/{id}/lineups

Lineups per team (players, positions, formation).

GET/v1/match/{id}/stats

Team statistics for the match.

Players & clubs lite

Lite search/profile derived from lineups and matches — not full bios, season stats or transfers.

GET/v1/players/search/{term}

Search players by name.

GET/v1/players/{id}

Player: positions, teams, recent matches.

GET/v1/clubs/search/{term}

Search clubs by name (ranked by activity).

GET/v1/clubs/{id}

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.

Not financial advice. Signals are candidates computed from the market, not a guarantee of profit. Every signals response includes this disclaimer. You are solely responsible for any decisions you make.

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.

PlanRate / minRequests / dayIncludes
Free30100Data: sports, books, fixtures, scores, standings, lineups, stats
Starter (€19)1207,000Everything in Free + odds
Pro (€79)30070,000Everything in Starter + live odds + signals
Max (€139)600150,000Everything in Pro, higher volume & rate
Business1,2001,000,000Everything, 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." } }
StatusCodeMeaning
401unauthenticatedMissing or invalid API key.
403plan_not_entitledYour plan doesn't include this domain.
404—Unknown route or unsupported {sport}.
422unsupported_sportSport not available for this endpoint (e.g. hockey odds).
429rate_limitedToo many requests this minute.
429quota_exceededDaily quota reached.

Changelog

Support

Questions, higher limits or a custom plan? Email [email protected]. See also the Terms and Privacy Policy.