{"openapi":"3.1.0","info":{"title":"Squadmind API","version":"1.0.0","description":"Football data and forecasts for the Premier League, Championship, League One, League Two, La Liga, LaLiga 2, Bundesliga, 2. Bundesliga, 3. Liga, Serie A, Serie B, Ligue 1 and Ligue 2. Fixtures, results, events, squads, player season stats and standings, plus Squadmind's own forecasts, predicted line-ups and player values. Every data endpoint takes `as_of` and answers with what was known at that moment, from an archive that is never overwritten."},"servers":[{"url":"https://api.squadmind.ai"}],"security":[{"bearer":[]}],"paths":{"/v1/competitions":{"get":{"summary":"List competitions","parameters":[{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Competitions with coverage and model backtest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/competitions/{competition}":{"get":{"summary":"One competition","parameters":[{"name":"competition","in":"path","required":true,"schema":{"type":"string"},"example":"championship"},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"A competition (by id or slug)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/competitions/{competition}/standings":{"get":{"summary":"League table","parameters":[{"name":"competition","in":"path","required":true,"schema":{"type":"string"},"example":"la-liga"},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Standings by group","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/competitions/{competition}/teams":{"get":{"summary":"Teams in a competition","parameters":[{"name":"competition","in":"path","required":true,"schema":{"type":"string"},"example":"bundesliga"},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Teams","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/teams/{team}":{"get":{"summary":"One team","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string"},"example":"tm_…"},{"name":"currency","in":"query","required":false,"description":"EUR (default), GBP or USD: Squadmind values are converted at that day's ECB rate.","schema":{"type":"string","enum":["EUR","GBP","USD"]}},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Team with squad, last XI and Squadmind squad value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/players":{"get":{"summary":"List players","parameters":[{"name":"competition","in":"query","required":false,"description":"Competition id or slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Team id","schema":{"type":"string"}},{"name":"position","in":"query","required":false,"description":"GK, DEF, MID or FWD","schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"description":"EUR (default), GBP or USD: Squadmind values are converted at that day's ECB rate.","schema":{"type":"string","enum":["EUR","GBP","USD"]}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 500 (default 100).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer"}},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Players with season stats and Squadmind value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/players/{player}":{"get":{"summary":"One player","parameters":[{"name":"player","in":"path","required":true,"schema":{"type":"string"},"example":"plr_…"},{"name":"currency","in":"query","required":false,"description":"EUR (default), GBP or USD: Squadmind values are converted at that day's ECB rate.","schema":{"type":"string","enum":["EUR","GBP","USD"]}},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Player with season stats and Squadmind value (likely fee, range, wage band)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/players/{player}/value-history":{"get":{"summary":"A player's Squadmind value over time","parameters":[{"name":"player","in":"path","required":true,"schema":{"type":"string"},"example":"plr_…"},{"name":"currency","in":"query","required":false,"description":"EUR (default), GBP or USD: Squadmind values are converted at that day's ECB rate.","schema":{"type":"string","enum":["EUR","GBP","USD"]}},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Daily values (Starter plan and above)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/values":{"get":{"summary":"Squadmind player values","parameters":[{"name":"competition","in":"query","required":false,"description":"Competition id or slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Team id","schema":{"type":"string"}},{"name":"position","in":"query","required":false,"description":"GK, DEF, MID or FWD","schema":{"type":"string"}},{"name":"min_value","in":"query","required":false,"description":"Lowest value, in the chosen currency","schema":{"type":"number"}},{"name":"max_value","in":"query","required":false,"description":"Highest value, in the chosen currency","schema":{"type":"number"}},{"name":"currency","in":"query","required":false,"description":"EUR (default), GBP or USD: Squadmind values are converted at that day's ECB rate.","schema":{"type":"string","enum":["EUR","GBP","USD"]}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 500 (default 100).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer"}},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Players by value, highest first: likely fee today, 80% range, confidence and estimated weekly wage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/fixtures":{"get":{"summary":"List fixtures","parameters":[{"name":"competition","in":"query","required":false,"description":"Competition id or slug","schema":{"type":"string"}},{"name":"team","in":"query","required":false,"description":"Team id","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"e.g. NS, FT","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Kick-off from (ISO time)","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Kick-off until (ISO time)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 500 (default 100).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Items to skip.","schema":{"type":"integer"}},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Fixtures and results, with forecasts for upcoming matches","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/fixtures/{fixture}":{"get":{"summary":"One fixture","parameters":[{"name":"fixture","in":"path","required":true,"schema":{"type":"string"},"example":"fx_…"},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Fixture with events, forecast and predicted line-ups","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/fixtures/{fixture}/forecast-history":{"get":{"summary":"Every version of a fixture's forecast","parameters":[{"name":"fixture","in":"path","required":true,"schema":{"type":"string"},"example":"fx_…"},{"name":"as_of","in":"query","required":false,"description":"Answer with the data as Squadmind knew it at this moment (ISO 8601, UTC). Omit for the latest your plan allows.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Forecast versions with the time each was made and its proof","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/usage":{"get":{"summary":"Your plan, limits and today's usage","parameters":[],"responses":{"200":{"description":"Plan and keys","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/stream":{"get":{"summary":"Live match events (server-sent events)","parameters":[{"name":"fixtures","in":"query","required":false,"description":"Comma-separated fx_ ids. Pro follows up to 3; Business and above may omit it to follow every match.","schema":{"type":"string"}},{"name":"last_event_id","in":"query","required":false,"description":"Replay events after this id (or send the Last-Event-ID header)","schema":{"type":"string"}}],"description":"A text/event-stream. Events: match.state, lineup.confirmed, goal, card, substitution, penalty.missed, winprob.update. Each has an id; reconnect with Last-Event-ID to get what you missed (kept 36 hours).","responses":{"200":{"description":"Event stream","content":{"text/event-stream":{}}},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v1/status":{"get":{"summary":"Service status","parameters":[],"responses":{"200":{"description":"Whether data is fresh and the live stream is running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[]}},"/v1/track-record":{"get":{"summary":"Public track record","parameters":[],"responses":{"200":{"description":"Frozen forecasts with SHA-256 fingerprints, and results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[]}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Your key, sm_live_…, from squadmind.ai/developers. X-API-Key works too."}},"schemas":{"Envelope":{"type":"object","properties":{"data":{},"meta":{"type":"object","properties":{"as_of":{"type":["string","null"],"format":"date-time"},"known_at":{"type":"string","format":"date-time","description":"When Squadmind built the data you got"},"plan":{"type":"string"},"count":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"next_offset":{"type":["integer","null"]}}}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}