{"openapi":"3.0.3","info":{"title":"sportdb.io API","version":"1.0.0","description":"Multi-sport data & odds API for the Balkans and beyond. Live scores, fixtures, standings, lineups, stats and bookmaker odds for football, basketball, tennis and ice hockey, plus value, arbitrage and dropping-odds signals you won't find elsewhere.\n\n## Authentication\nSend your API key in the `X-API-Key` header (or `?apikey=`). Get a free key at https:\/\/sportdb.io\/register and manage it at https:\/\/sportdb.io\/dashboard.\n\n## Plans & limits\nEach response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (daily window). Check your plan and usage any time with `GET \/me`. A `403 plan_not_entitled` means the endpoint's domain isn't in your plan.\n\n## Conventions\nJSON only. Times are ISO-8601 UTC. Decimal odds. Every odds\/score object carries its freshness (`updated_at` \/ `age_seconds`).","contact":{"name":"sportdb.io","url":"https:\/\/sportdb.io"}},"servers":[{"url":"https:\/\/sportdb.io\/v1","description":"Production"}],"security":[{"apiKeyAuth":[]}],"tags":[{"name":"Meta","description":"Service, account and catalog"},{"name":"Odds","description":"Bookmaker odds"},{"name":"Signals","description":"Value, arbitrage, dropping odds"},{"name":"Data","description":"Scores, fixtures, standings, lineups, stats"}],"paths":{"\/health":{"get":{"tags":["Meta"],"summary":"Service health & DB reachability","security":[],"parameters":[],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/health\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/health\",\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/health\");\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/health\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Health"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/me":{"get":{"tags":["Meta"],"summary":"Your plan, entitlements and usage today","security":[{"apiKeyAuth":[]}],"parameters":[],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/me\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/me\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/me\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/me\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Me"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/sports":{"get":{"tags":["Meta"],"summary":"Supported sports and markets","security":[{"apiKeyAuth":[]}],"parameters":[],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/sports\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/sports\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/sports\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/sports\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SportsResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/books":{"get":{"tags":["Meta"],"summary":"Covered bookmakers","security":[{"apiKeyAuth":[]}],"parameters":[],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/books\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/books\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/books\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/books\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BooksResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/fixtures":{"get":{"tags":["Data"],"summary":"Upcoming fixtures","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/fixtures\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/fixtures\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/fixtures\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/fixtures\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FixturesResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/scores":{"get":{"tags":["Data"],"summary":"Live & finished scores","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/scores\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/scores\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/scores\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/scores\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ScoresResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/scores\/live":{"get":{"tags":["Data"],"summary":"Live (in-progress) scores only","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/scores\/live\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/scores\/live\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/scores\/live\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/scores\/live\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ScoresResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/odds":{"get":{"tags":["Odds"],"summary":"Pre-match odds per event across all books, with best price","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"hours","in":"query","schema":{"type":"integer","default":72}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/odds\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/odds\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/odds\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/odds\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OddsResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/value":{"get":{"tags":["Signals"],"summary":"Active value (+EV) candidates","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"min_ev","in":"query","schema":{"type":"number"}},{"name":"scope","in":"query","schema":{"type":"string","enum":["all","validated"]}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/value?min_ev=1\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/value?min_ev=1\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/value?min_ev=1\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/value?min_ev=1\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ValueResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/arbs":{"get":{"tags":["Signals"],"summary":"Active arbitrage opportunities","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"min_profit","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/arbs\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/arbs\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/arbs\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/arbs\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ArbsResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/drops":{"get":{"tags":["Signals"],"summary":"Active dropping odds","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"window","in":"query","schema":{"type":"string","enum":["1h","24h"]}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/drops?window=1h\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/drops?window=1h\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/drops?window=1h\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/drops?window=1h\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DropsResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/leagues":{"get":{"tags":["Data"],"summary":"Supported leagues \/ tournaments","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/leagues\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/leagues\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/leagues\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/leagues\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LeaguesResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/standings\/{tournament}":{"get":{"tags":["Data"],"summary":"League standings by tournament id","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"tournament","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/standings\/17\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/standings\/17\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/standings\/17\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/standings\/17\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StandingsResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/fixtures\/{fixture}\/lineups":{"get":{"tags":["Data"],"summary":"Lineups for a fixture","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"fixture","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/lineups\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/lineups\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/lineups\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/lineups\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/fixtures\/{fixture}\/stats":{"get":{"tags":["Data"],"summary":"Statistics for a fixture","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"fixture","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/stats\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/stats\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/stats\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/fixtures\/123456\/stats\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/live":{"get":{"tags":["Data"],"summary":"Live (in-progress) scores (alias of scores\/live)","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/live\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/live\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/live\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/live\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ScoresResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/countries":{"get":{"tags":["Hierarchy"],"summary":"Countries that have competitions","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/countries\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/countries\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/countries\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/countries\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/{country}":{"get":{"tags":["Hierarchy"],"summary":"Competitions in a country","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"country","in":"path","required":true,"schema":{"type":"string"},"description":"Country slug, e.g. england"}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/england\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/england\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/england\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/england\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/{country}\/{competition}":{"get":{"tags":["Hierarchy"],"summary":"Seasons for a competition","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"country","in":"path","required":true,"schema":{"type":"string"},"description":"Country slug, e.g. england"},{"name":"competition","in":"path","required":true,"schema":{"type":"string"},"description":"Competition slug, e.g. premier-league"}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/{sport}\/{country}\/{competition}\/{season}\/standings":{"get":{"tags":["Hierarchy"],"summary":"League table for a competition + season","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"sport","in":"path","required":true,"schema":{"type":"string","enum":["football","basketball","tennis","hockey"]}},{"name":"country","in":"path","required":true,"schema":{"type":"string"},"description":"Country slug, e.g. england"},{"name":"competition","in":"path","required":true,"schema":{"type":"string"},"description":"Competition slug, e.g. premier-league"},{"name":"season","in":"path","required":true,"schema":{"type":"integer"},"description":"Season id (from the competition endpoint)."},{"name":"limit","in":"query","description":"Max rows (1-500).","schema":{"type":"integer","default":100,"maximum":500}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\/96668\/standings\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\/96668\/standings\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\/96668\/standings\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/football\/england\/premier-league\/96668\/standings\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StandingsResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/match\/{id}":{"get":{"tags":["Matches"],"summary":"Match detail","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/match\/1535334\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/match\/1535334\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/match\/1535334\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/match\/1535334\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/match\/{id}\/lineups":{"get":{"tags":["Matches"],"summary":"Match lineups (per team)","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/match\/1535334\/lineups\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/match\/1535334\/lineups\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/match\/1535334\/lineups\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/match\/1535334\/lineups\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/match\/{id}\/stats":{"get":{"tags":["Matches"],"summary":"Match team statistics","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/match\/1535334\/stats\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/match\/1535334\/stats\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/match\/1535334\/stats\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/match\/1535334\/stats\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/players\/search\/{term}":{"get":{"tags":["Players & clubs"],"summary":"Search players (lite, from lineups)","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"term","in":"path","required":true,"schema":{"type":"string"},"description":"Search term (min 2 chars)."}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/players\/search\/kane\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/players\/search\/kane\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/players\/search\/kane\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/players\/search\/kane\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/players\/{id}":{"get":{"tags":["Players & clubs"],"summary":"Player (lite)","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/players\/128114\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/players\/128114\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/players\/128114\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/players\/128114\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/clubs\/search\/{term}":{"get":{"tags":["Players & clubs"],"summary":"Search clubs (lite, from matches)","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"term","in":"path","required":true,"schema":{"type":"string"},"description":"Search term (min 2 chars)."}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/clubs\/search\/arsenal\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/clubs\/search\/arsenal\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/clubs\/search\/arsenal\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/clubs\/search\/arsenal\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}},"\/clubs\/{id}":{"get":{"tags":["Players & clubs"],"summary":"Club (lite)","security":[{"apiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl \"https:\/\/sportdb.io\/v1\/clubs\/1278622\" \\\n     -H \"X-API-Key: YOUR_KEY\""},{"lang":"Python","label":"Python","source":"import requests\n\nr = requests.get(\n    \"https:\/\/sportdb.io\/v1\/clubs\/1278622\",\n    headers={\"X-API-Key\": \"YOUR_KEY\"},\n)\nprint(r.json())"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https:\/\/sportdb.io\/v1\/clubs\/1278622\", {\n  headers: { \"X-API-Key\": \"YOUR_KEY\" },\n});\nconst data = await res.json();\nconsole.log(data);"},{"lang":"PHP","label":"PHP","source":"<?php\n$ch = curl_init(\"https:\/\/sportdb.io\/v1\/clubs\/1278622\");\ncurl_setopt_array($ch, [\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_HTTPHEADER => [\"X-API-Key: YOUR_KEY\"],\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericResponse"}}}},"401":{"$ref":"#\/components\/responses\/Unauthorized"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/TooMany"}}}}},"components":{"securitySchemes":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your sportdb.io API key."}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"error":{"code":"unauthenticated","message":"Missing or invalid API key."}}}}},"Forbidden":{"description":"Plan not entitled to this domain","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"error":{"code":"plan_not_entitled","message":"Your plan does not include 'odds'. Upgrade to access it."}}}}},"TooMany":{"description":"Rate limit or daily quota exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"error":{"code":"quota_exceeded","message":"Daily request quota reached. Upgrade or try tomorrow."}}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"Health":{"type":"object","example":{"status":"ok","service":"sportdb.io","version":"v1","time":"2026-11-25T12:00:00+00:00","databases":{"sportdb":true,"xbet":true}}},"Me":{"type":"object","properties":{"channel":{"type":"string"},"plan":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"rate_per_min":{"type":"integer"},"daily_quota":{"type":"integer"},"used_today":{"type":"integer"},"remaining_today":{"type":"integer"},"reset_at":{"type":"string"}},"example":{"channel":"direct","plan":"pro","domains":["sports","books","fixtures","scores","standings","lineups","stats","odds","odds_live","signals"],"rate_per_min":120,"daily_quota":20000,"used_today":134,"remaining_today":19866,"reset_at":"2026-11-26T00:00:00+00:00"}},"Sport":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"odds_markets":{"type":"array","items":{"type":"string"}}}},"SportsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Sport"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"key":"football","title":"Football","domains":["fixtures","scores","standings","odds","signals"],"odds_markets":["1x2","totals","handicap"]}],"count":4}},"League":{"type":"object","properties":{"tournament_id":{"type":"integer"},"name":{"type":"string"},"country":{"type":"string"},"season_id":{"type":"integer","nullable":true}}},"LeaguesResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/League"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"tournament_id":17,"name":"Premier League","country":"England","season_id":54321}],"count":1}},"Book":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"country":{"type":"string"},"live":{"type":"boolean","nullable":true}}},"BooksResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Book"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"key":"mozzart","name":"Mozzart","country":"RS","live":true},{"key":"meridian","name":"Meridian","country":"RS","live":true}],"count":20}},"OddsBookPrice":{"type":"object","properties":{"book":{"type":"string"},"home":{"type":"number"},"draw":{"type":"number","nullable":true},"away":{"type":"number"},"updated_at":{"type":"string"},"age_seconds":{"type":"integer"}}},"OddsEvent":{"type":"object","properties":{"sport":{"type":"string"},"fixture_id":{"type":"integer"},"home":{"type":"string"},"away":{"type":"string"},"league":{"type":"string"},"kickoff":{"type":"string"},"kickoff_ms":{"type":"integer"},"market":{"type":"string"},"best":{"type":"object"},"books":{"type":"array","items":{"$ref":"#\/components\/schemas\/OddsBookPrice"}}}},"OddsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/OddsEvent"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"sport":"football","fixture_id":123456,"home":"Real Madrid","away":"Barcelona","league":"LaLiga","kickoff":"2026-11-27T18:00:00+00:00","kickoff_ms":1795000000000,"market":"1x2","best":{"home":{"odd":1.95,"book":"meridian"},"draw":{"odd":3.6,"book":"mozzart"},"away":{"odd":4.2,"book":"maxbet"}},"books":[{"book":"mozzart","home":1.9,"draw":3.6,"away":4.1,"updated_at":"2026-11-27T12:00:00+00:00","age_seconds":42}]}],"count":1}},"ValueSignal":{"type":"object","properties":{"sport":{"type":"string"},"home":{"type":"string"},"away":{"type":"string"},"league":{"type":"string"},"kickoff":{"type":"string"},"market":{"type":"string"},"line":{"type":"number","nullable":true},"outcome":{"type":"string"},"book":{"type":"string"},"odd":{"type":"number"},"fair_odd":{"type":"number"},"ev_pct":{"type":"number"},"kelly_quarter":{"type":"number"},"validated_scope":{"type":"boolean"},"low_confidence":{"type":"boolean"},"url":{"type":"string","nullable":true},"since":{"type":"string"}}},"ValueResponse":{"allOf":[{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ValueSignal"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"sport":"football","home":"Arsenal","away":"Chelsea","league":"Premier League","kickoff":"2026-11-27T15:00:00+00:00","market":"1x2","line":null,"outcome":"home","book":"admiralbet","odd":2.45,"fair_odd":2.3,"ev_pct":2.1,"kelly_quarter":0.008,"validated_scope":true,"low_confidence":false,"url":"https:\/\/admiralbet.rs\/...","since":"2026-11-27T12:40:00+00:00"}],"count":1,"disclaimer":"Signals are candidates computed from the market, not a guarantee of profit."}}]},"ArbSignal":{"type":"object","properties":{"sport":{"type":"string"},"home":{"type":"string"},"away":{"type":"string"},"league":{"type":"string"},"kickoff":{"type":"string"},"market":{"type":"string"},"line":{"type":"number","nullable":true},"profit_pct":{"type":"number"},"kind":{"type":"string"},"books_n":{"type":"integer"},"legs":{"type":"array","items":{"type":"object"}},"since":{"type":"string"}}},"ArbsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/ArbSignal"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"sport":"tennis","home":"Djokovic","away":"Alcaraz","league":"ATP","kickoff":"2026-11-28T13:00:00+00:00","market":"winner","line":null,"profit_pct":1.8,"kind":"surebet","books_n":2,"legs":[{"book":"mozzart","outcome":"home","odd":2.1},{"book":"meridian","outcome":"away","odd":2.05}],"since":"2026-11-28T10:00:00+00:00"}],"count":1}},"DropSignal":{"type":"object","properties":{"sport":{"type":"string"},"home":{"type":"string"},"away":{"type":"string"},"league":{"type":"string"},"kickoff":{"type":"string"},"market":{"type":"string"},"line":{"type":"number","nullable":true},"outcome":{"type":"string"},"window":{"type":"string"},"from_odds":{"type":"number"},"to_odds":{"type":"number"},"drop_pct":{"type":"number"},"prob_change":{"type":"number"},"books_n":{"type":"integer"},"sources_n":{"type":"integer"},"still_high":{"type":"array","items":{"type":"object"}}}},"DropsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/DropSignal"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"sport":"football","home":"Liverpool","away":"Everton","league":"Premier League","kickoff":"2026-11-29T17:00:00+00:00","market":"1x2","line":null,"outcome":"home","window":"1h","from_odds":2.4,"to_odds":2.05,"drop_pct":14.6,"prob_change":0.07,"books_n":8,"sources_n":3,"still_high":[{"book":"king","odd":2.3}]}],"count":1}},"Fixture":{"type":"object","properties":{"fixture_id":{"type":"integer"},"home":{"type":"string"},"away":{"type":"string"},"league":{"type":"string"},"kickoff":{"type":"string"},"kickoff_ms":{"type":"integer"}}},"FixturesResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Fixture"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"fixture_id":123456,"home":"Real Madrid","away":"Barcelona","league":"LaLiga","kickoff":"2026-11-27T18:00:00+00:00","kickoff_ms":1795000000000}],"count":1}},"Score":{"type":"object","properties":{"event_id":{"type":"integer"},"tournament":{"type":"string"},"home":{"type":"string"},"away":{"type":"string"},"score":{"type":"object"},"status":{"type":"string"},"status_detail":{"type":"string"},"updated_at":{"type":"string"}}},"ScoresResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Score"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"event_id":987654,"tournament":"LaLiga","home":"Real Madrid","away":"Barcelona","score":{"home":2,"away":1},"status":"inprogress","status_detail":"2nd half","updated_at":"2026-11-27T19:40:00+00:00"}],"count":1}},"Standing":{"type":"object","properties":{"rank":{"type":"integer"},"team":{"type":"string"},"played":{"type":"integer"},"win":{"type":"integer"},"draw":{"type":"integer"},"lose":{"type":"integer"},"gf":{"type":"integer"},"ga":{"type":"integer"},"gd":{"type":"integer"},"points":{"type":"integer"}}},"StandingsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Standing"}},"count":{"type":"integer"},"meta":{"type":"object"}},"example":{"data":[{"rank":1,"team":"Real Madrid","played":15,"win":13,"draw":1,"lose":1,"gf":40,"ga":8,"gd":32,"points":40}],"count":1}},"GenericResponse":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"count":{"type":"integer"},"meta":{"type":"object"}}}}}}