{
 "sport": "football",
 "scope": "Premier League (PL/2021), La Liga (PD/2014 'Primera Division'), Serie A (SA/2019), Bundesliga (BL1/2002), Ligue 1 (FL1/2015), UEFA Champions League (CL/2001) — football-data.org codes/ids as returned live by /v4/competitions",
 "recommendedProvider": {
  "name": "football-data.org API v4 (paid tier required for live scores/lineups/odds)",
  "conditional": true,
  "condition": "Deployable only after the operator registers and buys at least 'Free w/ Livescores' (€12/mo, live scores) — lineups need 'Free + Deep Data' (€29/mo) or higher, and 1X2 odds need the 'Odds Add-On' (€15/mo, add-on to a regular plan). Prices from pricing page fetched 2026-11-26; not purchased or tested here. Injuries/suspensions are NOT offered (gap). Historical backfill/backtesting can use openfootball/football.json (public domain) for the five leagues.",
  "why": "Only provider whose public endpoint answered from this host and whose published T&C explicitly contemplate display in a customer 'app or website' with attribution. All six competitions are listed live as plan TIER_ONE and in the Free plan's 12-competition list. API-Football (api-sports) could not be evaluated: its site, docs, terms and API all returned 403 / missing-key from this host."
 },
 "accessStatus": {
  "football-data.org": "live-tested (competition list only, unauthenticated). Match/score endpoints returned 403 without a token or an empty set; live score/lineup/odds coverage is documented-only.",
  "api-football.com (api-sports)": "unavailable from this host: API returned an error JSON 'Missing application key' at HTTP 403; website/docs/terms behind a Cloudflare 'Just a moment...' challenge (403). No key was used.",
  "openfootball/football.json": "live-tested (raw GitHub JSON, 200)."
 },
 "rightsStatus": {
  "football-data.org": "restricted — website display allowed under T&C with mandatory attribution, one subscription per application/domain, no post-cancellation display, logos/photos not licensed; AI/model use and retention while subscribed not addressed (unclear).",
  "api-football.com": "unclear — terms page not retrievable (403).",
  "openfootball/football.json": "confirmed public domain (README/repo page), but data is incomplete/stale for current season and has no UCL files for 2025-26/2026-27."
 },
 "rightsEvidence": [
  {
   "topic": "commercial display / attribution",
   "url": "https://www.football-data.org/about",
   "excerpt": "7.1 You agree to include the following attribution to Football-Data in your app or website: \"Football data provided by the Football-Data.org API\"."
  },
  {
   "topic": "scope of licence (single app/domain)",
   "url": "https://www.football-data.org/about",
   "excerpt": "The API Key applies to a single Application, in its web and/or mobile form and on any platform (i.e. for the web Application: the Subscription applies to a single domain name)."
  },
  {
   "topic": "retention after cancellation",
   "url": "https://www.football-data.org/about",
   "excerpt": "After cancellation of the subscription to the Service, the Customer is not permitted to reference the football data (incl. match fixtures, results, league tables, player/squad data, top scorers) obtained through the Football-Data API on their own site or service."
  },
  {
   "topic": "logos/images",
   "url": "https://www.football-data.org/about",
   "excerpt": "All graphics, including team logos and profile photos, are copyrighted by their legal owner."
  },
  {
   "topic": "credentials",
   "url": "https://www.football-data.org/about",
   "excerpt": "Developer credentials may not be stored in code repositories of open source projects."
  },
  {
   "topic": "AI/model use",
   "url": "https://www.football-data.org/about",
   "excerpt": "No clause found in the General Terms and Conditions (sections 1–12, effective June 1st, 2018) on AI/ML training or derived models; treat as unclear and ask daniel@football-data.org (address listed on pricing page) in writing."
  },
  {
   "topic": "openfootball licence",
   "url": "https://github.com/openfootball/football.json",
   "excerpt": "The football.json schema, data and scripts are dedicated to the public domain. Use as you please with no restrictions whatsoever."
  },
  {
   "topic": "betting context",
   "url": "https://www.football-data.org/about",
   "excerpt": "T&C contain no clause on betting/prediction sites (none found); site provides analysis only, no wagers — no explicit prohibition or permission located."
  }
 ],
 "needs": [
  {
   "need": "live scores and schedule",
   "provider": "football-data.org",
   "endpoint": "GET https://api.football-data.org/v4/competitions/{PL|PD|SA|BL1|FL1|CL}/matches?dateFrom=YYYY-MM-DD&dateTo=YYYY-MM-DD ; GET /v4/matches?status=LIVE ; GET /v4/matches/{id}",
   "auth": "Header X-Auth-Token: <operator key, server-side secret; never in repo>. Live (non-delayed) scores require a paid tier; Free tier is 'Scores delayed' / 'Schedules delayed'.",
   "fieldMapping": {
    "eventId": "matches[].id (int, stable)",
    "competitionId": "matches[].competition.id / competition.code",
    "seasonId": "matches[].season.id",
    "kickoffUtc": "matches[].utcDate (ISO-8601 Z, UTC)",
    "status": "matches[].status",
    "matchday": "matches[].matchday",
    "stage": "matches[].stage (e.g. REGULAR_SEASON, LEAGUE_STAGE, knockout stages)",
    "homeTeamId": "matches[].homeTeam.id",
    "awayTeamId": "matches[].awayTeam.id",
    "runningScore": "matches[].score.fullTime.home/away",
    "halfTime": "matches[].score.halfTime.home/away",
    "duration": "matches[].score.duration",
    "dataUpdatedAt": "matches[].lastUpdated"
   },
   "rules": "Status enum (match docs): SCHEDULED, TIMED, IN_PLAY, PAUSED, FINISHED, SUSPENDED, POSTPONED, CANCELLED, AWARDED; filter value LIVE = IN_PLAY+PAUSED. SCHEDULED = date not final; TIMED = exact kickoff known. Store utcDate in UTC, convert only in UI. Default date window is 'today' in UTC (policies page). score.fullTime is the running score while in play.",
   "coverage": "All six listed live with plan TIER_ONE; currentSeason for PL 2026-08-21..2027-05-30 (matchday 11), CL season id 2557 2026-09-08..2027-01-27 as returned (that endDate looks like league-phase only — verify knockout coverage after subscribing).",
   "nullSemantics": "API 'embraces null as a valid value' for unknown/not-yet values (e.g. score before kickoff); empty lists are valid. Treat null score as not started, not 0-0."
  },
  {
   "need": "1X2 / 90-minute result vs qualification",
   "provider": "football-data.org",
   "endpoint": "same match objects",
   "fieldMapping": {
    "result90": "score.regularTime.home/away when present, else score.fullTime when score.duration=REGULAR",
    "extraTimeGoals": "score.extraTime",
    "shootout": "score.penalties",
    "advancingTeam": "score.winner (HOME_TEAM|AWAY_TEAM|DRAW) — this reflects the overall winner incl. ET/pens, NOT the 1X2 outcome"
   },
   "rules": "Settle 1X2 predictions only on 90-minute goals: if duration is EXTRA_TIME or PENALTY_SHOOTOUT, 1X2 = DRAW per regularTime even though winner names the qualifier. Two-legged UCL ties: aggregate/qualification is a separate market; never map it to 1X2.",
   "coverage": "Documented (overtime policy page); not live-tested without key."
  },
  {
   "need": "comparison odds (1X2)",
   "provider": "football-data.org Odds Add-On",
   "endpoint": "match objects include odds node: odds.homeWin / odds.draw / odds.awayWin (docs sample shows \"homeWin\": 4.25)",
   "auth": "Paid Odds Add-On (€15/mo, '40 competitions', 'Pre-Match Home / Draw / Away odds'), only on top of a regular plan.",
   "fieldMapping": {
    "home": "odds.homeWin",
    "draw": "odds.draw",
    "away": "odds.awayWin"
   },
   "rules": "Pre-match only; single aggregated price (bookmaker identity/timestamp not documented) — label as 'reference odds', not live market. Not a multi-bookmaker comparison.",
   "coverage": "documented-only; whether all six competitions are among the 40 is not stated on pricing page.",
   "nullSemantics": "absent/null odds = not available, do not display implied probability."
  },
  {
   "need": "lineups",
   "provider": "football-data.org Deep Data",
   "endpoint": "GET /v4/matches/{id} or match lists with header X-Unfold-Lineups: true",
   "auth": "'Line-ups & Subs' appears from 'Free + Deep Data' (€29/mo) upward; Free plan omits it.",
   "fieldMapping": {
    "lineup": "homeTeam.lineup[] / awayTeam.lineup[] (player id, name, position, shirtNumber)",
    "bench": "homeTeam.bench[]",
    "formation": "homeTeam.formation"
   },
   "rules": "Lineups appear only near kickoff; empty list = not yet published.",
   "coverage": "documented-only (field names from v4 match docs sample; confirm after key)."
  },
  {
   "need": "injuries / suspensions / withdrawals",
   "provider": null,
   "reason": "Not listed in any football-data.org plan or add-on on the pricing page; coverage page contains no 'injur' string. API-Football reportedly has injuries but its docs/terms were unreachable (403) so nothing can be confirmed. ESPN/FPL not commercially cleared per brief.",
   "interim": "Derive only suspensions from bookings/cards (Deep Data: X-Unfold-Bookings) as an approximation, labelled as such; show 'injury data unavailable' otherwise."
  },
  {
   "need": "historical results / backtesting",
   "provider": "football-data.org (subscribed, 'numberOfAvailableSeasons':128 for PL) + openfootball/football.json (public domain)",
   "endpoint": "GET /v4/competitions/{code}/matches?season=YYYY (auth) ; GET https://raw.githubusercontent.com/openfootball/football.json/master/{YYYY-YY}/{en.1|es.1|it.1|de.1|fr.1}.json (no auth)",
   "fieldMapping": {
    "openfootball": "matches[].round, .date (local date), .time (local, no timezone field), .team1, .team2, .score.ht[2], .score.ft[2]"
   },
   "rules": "openfootball has no stable numeric IDs and no timezone: key by (season, date, team1, team2) and map team names to provider ids via an alias table. ft = 90-min score for league matches.",
   "coverage": "openfootball 2026-27 dir lists de.1, en.1, en.2, es.1, fr.1, it.1, nl.1, pt.1 — no uefa.cl; 2025-26/uefa.cl.json 404; 2024-25/uefa.cl.json 200. 2026-27 en.1: 380 fixtures, only 45 with scores, last commit 2026-09-22 → stale for live use.",
   "retention": "Football-data.org-sourced history must be removed from display if subscription ends (T&C 9.1); openfootball data has no such limit."
  }
 ],
 "observations": [
  {
   "url": "https://api.football-data.org/v4/competitions",
   "method": "GET (no auth)",
   "retrievedUtc": "2026-11-26T03:01:41Z",
   "http": 200,
   "sha256": "d46ad1428366c2d262e6b3b64083dfed34f4855b9f827f00e5975e84fd4b38f3",
   "bytes": 74356,
   "headers": "Date: Thu, 26 Nov 2026 03:01:42 GMT; X-Requests-Available: 49; X-API-Version: v4; X-Cache-Status: BYPASS",
   "excerpt": "{\"id\":2021,...\"name\":\"Premier League\",\"code\":\"PL\",\"type\":\"LEAGUE\",...\"plan\":\"TIER_ONE\",\"currentSeason\":{\"id\":2502,\"startDate\":\"2026-08-21\",\"endDate\":\"2027-05-30\",\"currentMatchday\":11,\"winner\":null},\"numberOfAvailableSeasons\":128,\"lastUpdated\":\"2026-08-10T07:41:50Z\"}",
   "freshness": "count 192; lastUpdated per competition is metadata update time (PL 2026-08-10, PD 2026-10-31, BL1/SA 2026-10-13, FL1 2026-08-18, CL 2026-05-31), not score freshness."
  },
  {
   "url": "https://api.football-data.org/v4/competitions/PL/matches?status=FINISHED",
   "method": "GET (no auth)",
   "retrievedUtc": "2026-11-26T03:01:43Z",
   "http": 403,
   "sha256": "2ed7e446e2d24b88fc0a2944c28555c9df188c3193a9ca7f0189709b821d3c44",
   "excerpt": "{\"message\":\"The resource you are looking for is restricted and apparently not within your permissions. Please check your subscription.\",\"errorCode\":403}",
   "freshness": "n/a — NOT coverage evidence"
  },
  {
   "url": "https://api.football-data.org/v4/matches",
   "method": "GET (no auth)",
   "retrievedUtc": "2026-11-26T03:01:44Z",
   "http": 200,
   "sha256": "b677c83f599d5f16290a42a24c285b096e4d39fcb6b94536928a0cfdbc43d890",
   "excerpt": "{\"filters\":{\"dateFrom\":\"2026-11-26\",\"dateTo\":\"2026-11-27\",\"permission\":null},\"resultSet\":{\"count\":0},\"matches\":[]}",
   "freshness": "empty set — NOT coverage evidence (unauthenticated clients are limited to area/competition lists per policies page)."
  },
  {
   "url": "https://v3.football.api-sports.io/status",
   "method": "GET (no key)",
   "retrievedUtc": "2026-11-26T03:01:46Z",
   "http": 403,
   "sha256": "655336a82939309b1dee698b9e2541264ba4a22338046a8c76d9ddea4add456b",
   "excerpt": "\"errors\": {\"token\": \"Missing application key, Check our documentation on how to add your API key in headers.\"...},\"results\": 0",
   "freshness": "n/a — same body for /fixtures?league=39&season=2024"
  },
  {
   "url": "https://www.api-football.com/terms (also /pricing, /coverage, /documentation-v3, api-sports.io/terms)",
   "method": "GET",
   "retrievedUtc": "2026-11-26T03:01:52Z",
   "http": 403,
   "sha256": "3a50c18312733c665f4beae655f94adc9dddffd96d744433dff306cd01f3b09e (terms)",
   "excerpt": "<title>Just a moment...</title>",
   "freshness": "Cloudflare challenge; not bypassed"
  },
  {
   "url": "https://raw.githubusercontent.com/openfootball/football.json/master/2024-25/en.1.json",
   "method": "GET",
   "retrievedUtc": "2026-11-26T03:01:47Z",
   "http": 200,
   "sha256": "c3d18f552d83382cd4b6b21127adbbfe38e7f8618ddc979fb5404f2df07d0a75",
   "excerpt": "{\"round\":\"Matchday 1\",\"date\":\"2024-08-16\",\"time\":\"20:00\",\"team1\":\"Manchester United FC\",\"team2\":\"Fulham FC\",\"score\":{\"ht\":[0,0],\"ft\":[1,0]}}",
   "freshness": "complete season, 380 matches"
  },
  {
   "url": "https://raw.githubusercontent.com/openfootball/football.json/master/2026-27/en.1.json",
   "method": "GET",
   "retrievedUtc": "2026-11-26T03:03:07Z",
   "http": 200,
   "sha256": "bb91f0ab3e8359df163bb9ec98549bfed85e200dd4c32f3bd606b5890d932dd2",
   "excerpt": "{\"round\":\"Matchday 5\",\"date\":\"2026-09-20\",\"time\":\"16:30\",\"team1\":\"Fulham FC\",\"team2\":\"Manchester United FC\",\"score\":{\"ht\":[0,0],\"ft\":[1,1]}}",
   "freshness": "45/380 scored; last commit touching file 2026-09-22T09:33:49Z (GitHub API) — ~2 months stale at fetch time"
  },
  {
   "url": "https://raw.githubusercontent.com/openfootball/football.json/master/2025-26/uefa.cl.json",
   "method": "GET",
   "retrievedUtc": "2026-11-26T03:03:08Z",
   "http": 404,
   "sha256": "d5558cd419c8d46bdc958064cb97f963d1ea793866414c025906ec15033512ed",
   "excerpt": "404: Not Found",
   "freshness": "UCL file absent for 2025-26 (and not listed in 2026-27 dir)"
  }
 ],
 "cachePolicy": {
  "quota": "Verified (policies page): unauthenticated 100 requests/24h, area+competition lists only; registered: 10 req/min free, 30 req/min Standard, 60 req/min above. Pricing page shows per-plan limits (Free 10/min, Free w/ Livescores 20/min, Deep Data 30/min, Standard 60/min, Advanced 100/min, Pro 120/min) — slightly inconsistent with policies page; observed header X-Requests-Available: 49 on unauthenticated call.",
  "caching": "No provider cache/TTL rule found in T&C (unknown). Recommended: server-side cache keyed by match id; poll /v4/matches?status=LIVE ≤ every 30–60 s within quota, fixtures every 6 h, finished matches immutable after lastUpdated stabilises; competitions daily. Share one cache for all users/agents. Purge provider-sourced display data on subscription end (T&C 9.1).",
  "source": "https://docs.football-data.org/general/v4/policies.html"
 },
 "crossCheck": {
  "event": "Premier League 2024-25 Matchday 1, Manchester United v Fulham, 16 Aug 2024",
  "providerA": "openfootball 2024-25/en.1.json: ft [1,0], ht [0,0] (see observation)",
  "providerB": "Wikipedia '2024–25 Manchester United F.C. season' (independent, cites BBC Sport and manutd.com): \"Manchester United opened their Premier League campaign on 16 August 2024 with a 1–0 win over Fulham.\"",
  "result": "agree (1–0). Could not cross-check against football-data.org match data: match endpoints require a token (403).",
  "url": "https://en.wikipedia.org/wiki/2024%E2%80%9325_Manchester_United_F.C._season"
 },
 "gaps": [
  "Injuries/suspensions: no licensed source confirmed; football-data.org does not list them.",
  "API-Football: rights, coverage and quota unverifiable from this host (403 Cloudflare / missing key); not rejected on merit.",
  "AI/model use and caching retention while subscribed: not addressed in football-data.org T&C — obtain written confirmation.",
  "Odds: single pre-match 1X2 set; whether all six competitions are in the add-on's 40 and bookmaker provenance are undocumented.",
  "CL currentSeason endDate 2027-01-27 as returned — confirm knockout rounds are delivered.",
  "Team logos/crests (emblem URLs) not licensed by provider; need own rights or text-only display.",
  "openfootball: current season stale, no UCL 2025-26/2026-27; history only.",
  "No live match payload was fetched; field names for lineups/odds are from docs samples."
 ],
 "nextSteps": [
  "Operator registers at https://www.football-data.org/client/register and buys Free w/ Livescores (minimum) or Free + Deep Data (lineups) plus Odds Add-On; store key as server secret X-Auth-Token.",
  "With key: GET /v4/competitions/{code}/matches for each of the six codes and one LIVE poll; record status/sha256 to upgrade accessStatus to live-tested.",
  "Email daniel@football-data.org to confirm paid-prediction-site use, AI/model use, caching retention and odds competition list.",
  "Add footer attribution 'Football data provided by the Football-Data.org API'; restrict to one domain.",
  "Separate procurement for injuries (re-test API-Football or another licensed vendor from a host not blocked by Cloudflare, with its terms).",
  "Build openfootball→provider team alias table for 2010-11..2024-25 backtests; settle 1X2 on regularTime only."
 ]
}