FixtureOdds API documentation
Bookmaker prices for football, with stat markets and every price change, over a JSON API and an MCP server. These guides cover what you need before the first request; the API reference lists every endpoint.
Quickstart
- Create an account and start the free 3-day trial, or pick a monthly plan.
- In the dashboard, create an API key and give it a name. It looks like
fo_live_k3j9p2m7q4xa_…and is shown once, so store it somewhere safe. - List the sites your plan covers. Each bookmaker is a separate API under its code; today that is
1xbet, so every path below starts with/api/v1/1xbet.
curl https://fixtureodds.com/api/v1/sites -H "Authorization: Bearer $FIXTUREODDS_KEY"Then list a site’s upcoming fixtures, here only those with open fouls markets:
curl "https://fixtureodds.com/api/v1/1xbet/fixtures?family=fouls" -H "Authorization: Bearer $FIXTUREODDS_KEY"Open one fixture. /markets returns every market the site lists for it, grouped by market; /stats returns only the stat markets, grouped by family and then by period:
curl "https://fixtureodds.com/api/v1/1xbet/fixtures/ev_q7mxk2r4bt9a/stats" -H "Authorization: Bearer $FIXTUREODDS_KEY"Every selection carries a numeric id. Use it to pull that selection’s full price history, oldest change first:
curl "https://fixtureodds.com/api/v1/1xbet/selections/48213907/history" -H "Authorization: Bearer $FIXTUREODDS_KEY"The same in Python and Node.js
import os
import requests
BASE = "https://fixtureodds.com/api/v1"
SITE = "1xbet" # a site code from GET /api/v1/sites
HEADERS = {"Authorization": f"Bearer {os.environ['FIXTUREODDS_KEY']}"}
fixtures = requests.get(f"{BASE}/{SITE}/fixtures", headers=HEADERS, timeout=10)
fixtures.raise_for_status()
for fx in fixtures.json()["data"]:
markets = requests.get(
f"{BASE}/{SITE}/fixtures/{fx['id']}/markets",
params={"family": "fouls"},
headers=HEADERS,
timeout=10,
).json()["data"]
print(fx["home"], "v", fx["away"], len(markets), "fouls markets")const base = "https://fixtureodds.com/api/v1";
const site = "1xbet"; // a site code from GET /api/v1/sites
const headers = { Authorization: `Bearer ${process.env.FIXTUREODDS_KEY}` };
let cursor = null;
do {
const url = new URL(`${base}/${site}/fixtures`);
if (cursor) url.searchParams.set("cursor", cursor);
const res = await fetch(url, { headers });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const { data, meta } = await res.json();
for (const fx of data) console.log(fx.startsAt, fx.home, "v", fx.away);
cursor = meta.nextCursor;
} while (cursor);Prematch prices refresh about every 5 minutes, faster for matches we watch closely, so polling a fixture more often than that rarely returns anything new. Each fixture’s pricedAt says when its prices were last refreshed.
Authentication
Send your API key on every request, to the API and to the MCP server alike, as a bearer token or in the x-api-key header:
Authorization: Bearer fo_live_k3j9p2m7q4xa_…
# or
x-api-key: fo_live_k3j9p2m7q4xa_…- An account can hold several keys. Name them by where they run, so you can revoke one without touching the others.
- The dashboard shows when each key was last used. Revoked keys stop working at once.
- Keys belong on servers and in notebooks, not in browser code or public repositories. Anyone holding a key spends your quota.
- Your dashboard sign-in does not authorise API calls, and an API key does not open the dashboard.
A missing key returns 401 missing_api_key; a malformed or revoked one, 401 invalid_api_key. A valid key without an active plan gets 402 no_active_plan, and a request for a site, MCP or price history outside your plan gets 403.
Rate limits
Every plan has two limits, and both count API requests and MCP tool calls together. MCP initialize and tools/list messages are free.
- Daily quota: requests per account per UTC day. It resets at 00:00 UTC.
- Per-minute limit: caps bursts, so one loop cannot spend the day’s quota in a minute.
Each response carries the state of your daily quota:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests your plan allows per UTC day. |
X-RateLimit-Remaining | Requests left today. |
X-RateLimit-Reset | When the quota resets, as Unix time in seconds. |
HTTP/1.1 200 OK
Content-Type: application/json
X-RateLimit-Limit: 20000
X-RateLimit-Remaining: 18341
X-RateLimit-Reset: 1796515200Over either limit, the API answers 429 Too Many Requests with a Retry-After header in seconds. The body names the limit you reached in scope: minute or day.
HTTP/1.1 429 Too Many Requests
Retry-After: 12
X-RateLimit-Limit: 20000
X-RateLimit-Remaining: 18342
X-RateLimit-Reset: 1796515200
{
"error": {
"code": "rate_limited",
"message": "Per-minute limit reached.",
"scope": "minute",
"retryAfter": 12
}
}Wait for Retry-After before retrying. Retrying sooner is refused and still counts towards the per-minute limit. Plan limits are listed on the pricing page.
Responses and errors
Every site returns the same envelope: data holds the result and meta says where it came from. Below, the fouls markets of one fixture; each market holds selections[].
{
"data": [
{
"name": "Fouls. Total",
"family": "fouls",
"period": 0,
"isCombo": false,
"selections": [
{
"id": 48213907,
"name": "Over",
"line": 24.5,
"price": 1.83,
"blocked": false,
"updatedAt": "2026-12-05T14:52:07Z"
},
{
"id": 48213908,
"name": "Under",
"line": 24.5,
"price": 1.95,
"blocked": false,
"updatedAt": "2026-12-05T14:52:07Z"
}
]
}
],
"meta": {
"site": "1xbet",
"fixture": "ev_q7mxk2r4bt9a",
"format": "decimal",
"count": 10
}
}Fields worth knowing
- Market and selection names stay as the bookmaker writes them. Do not match on them across sites.
familytags the stat markets we recognise:fouls,offsides,shots,shots_on_target,cornersandyellow_cards. Other markets havenull.periodis0for the full match,1for the first half and2for the second.isCombomarks combination markets, included when your plan has them.priceisnullwhen the market is closed (addincludeClosed=trueto see those), andblocked: truemeans the bookmaker has suspended the selection.- IDs: fixtures (
ev_) and leagues (lg_) have stable string ids; selections have numeric ids. Treat them as opaque. - Pages: long lists return
meta.nextCursor. Repeat the request withcursor=<nextCursor>until it isnull. - Times are ISO 8601 in UTC.
Errors
Errors share one shape on every endpoint: an error object with a machine-readable code and a sentence for people in message.
{ "error": { "code": "fixture_not_found", "message": "No fixture ev_q7mxk2r4bt9a on this site." } }| Status | Codes | When |
|---|---|---|
| 400 | invalid_requestinvalid_cursor | A parameter or cursor is wrong. |
| 401 | missing_api_keyinvalid_api_key | No key, or a malformed or revoked one. |
| 402 | no_active_plan | The account has no active plan. |
| 403 | site_not_in_planfeature_not_in_planhistory_not_in_plan | The plan does not include this site, MCP or price history. |
| 404 | site_not_foundfixture_not_foundselection_not_found | Unknown site, or nothing with that id on it. |
| 429 | rate_limited | Per-minute limit or daily quota reached. See Retry-After. |
A 5xx response is our fault: retry with exponential backoff.
Odds formats
Prices are decimal by default, as numbers. Add format=american or format=fractional to any endpoint that returns prices, history included, and they come back as strings; meta.format confirms which you got.
format | Example | Type |
|---|---|---|
| decimal (default) | 1.857 | number |
| american | "-117" | string |
| fractional | "6/7" | string |
Decimal is the exact form we store; use it for modelling and convert for display. A closed market is null in every format.