{"sport": "NBA (regular season and playoffs)", "recommendedProvider": {"name": "SportsDataIO (conditional)", "reason": "Only candidate with a public statement that commercial licences permit caching/storing, ML/model use and display of derived outputs, and with documented NBA scores, injuries/lineups and odds feeds. Not live-tested: requires a key and a commercial licence scoped in writing. Sportradar is the fallback (documented NBA schedule/injuries/play-in, but needs a sales agreement; trial is non-commercial). ESPN public endpoints responded 200 but no commercial licence was found, so do not ship on them."}, "needs": [{"need": "live scores + schedule", "endpoint": "GET https://api.sportsdata.io/v3/nba/scores/json/GamesByDate/{date} (also GamesByDateFinal, Schedules/{season}); date format yyyy-MMM-dd or yyyy-MM-dd per docs", "auth": "API key (query key= or Ocp-Apim-Subscription-Key header); commercial subscription required", "fieldMapping": "UNVERIFIED (no key). Map from docs GameInfo: GameID->event.id, Season/SeasonType->season semantics, DateTime/DateTimeUTC->start, Status->status, HomeTeam/AwayTeam/TeamIDs, scores, Quarters (overtime). Confirm against a real response before coding.", "idsTimezoneStatus": "GameID/TeamID/PlayerID integer, stable within provider; DateTime documented as US Eastern, use DateTimeUTC if present (verify). Status values (Scheduled/InProgress/Final/F/OT/Postponed/Canceled) must be confirmed. SeasonType codes (1 reg,2 pre,3 post,4 offseason,5 AllStar) and play-in handling must be verified in a sample; do not assume.", "coverage": "documented NBA scores; no live test", "nullSemantics": "unknown until sampled; treat null scores as not-started, never as 0"}, {"need": "injuries/withdrawals + projected vs confirmed lineups", "endpoint": "SportsDataIO NBA 'Depth Charts, Lineups & Injuries' feed (documented subfeeds; exact path not verified), plus Daily Injuries on Sportradar as alternative", "auth": "API key, subscription", "fieldMapping": "UNVERIFIED; require injury status, body part, updated timestamp, and a lineup confirmed-vs-projected flag. Existence of that flag was NOT verified in docs.", "idsTimezoneStatus": "Use provider PlayerID; map statuses to Out/Doubtful/Questionable/Probable/Available; record provider update time separately from fetch time", "coverage": "documented-only", "nullSemantics": "absent injury row != healthy; absence means 'no report'"}, {"need": "comparison odds", "endpoint": "SportsDataIO Game Lines / In-Game Odds - by Date (documented; GameOdd objects, sportsbook groups). Pregame path not verified", "auth": "API key; betting-data package may be separately licensed", "fieldMapping": "UNVERIFIED: expect spread, moneyline, total per sportsbook; record sportsbook id and updated time", "idsTimezoneStatus": "keyed by GameID", "coverage": "documented-only; ESPN sampled competitions carried no odds", "nullSemantics": "missing sportsbook line = unquoted, not zero; empty list must be shown as 'unavailable'"}, {"need": "historical results", "endpoint": "SportsDataIO Games/Schedules by season (GamesByDateFinal, Schedules/{season}); historical-data product mentioned on site", "auth": "API key; historical depth is licence-dependent (unknown)", "fieldMapping": "same as scores; include overtime periods in Quarters", "idsTimezoneStatus": "same as scores", "coverage": "unknown depth", "nullSemantics": "unknown"}, {"need": "rest/back-to-back, overtime, play-in/season semantics", "endpoint": "derived from schedule; no provider flag verified", "auth": "n/a", "fieldMapping": "compute rest days from DateTimeUTC of prior game per team; overtime from period count >4; play-in from SeasonType/notes only after sample check", "idsTimezoneStatus": "compute in UTC then convert to venue-local", "coverage": "derived", "nullSemantics": "first game of season: rest = null"}], "accessStatus": "documented-only (ESPN public endpoints live-tested 200 but without evidenced rights; both primary providers returned 401/403 without keys; NBA CDN 403)", "rightsStatus": "unclear", "rightsEvidence": [{"url": "https://sportsdata.io/help/data-rights-and-licensing-questions", "use": "commercial display/retention/AI", "excerpt": "Commercial licenses permit ingesting, caching, and storing API responses on your own infrastructure for the operation of your licensed product. There are no forced refresh intervals or caching restrictions for ingested data."}, {"url": "https://sportsdata.io/help/data-rights-and-licensing-questions", "use": "AI/model use and derived display", "excerpt": "We can provide commercial licenses that permit using the data as an input to statistical models, machine-learning systems, projections, ratings, and other derived analytics."}, {"url": "https://sportsdata.io/help/data-rights-and-licensing-questions", "use": "retention after expiry; attribution", "excerpt": "Post-termination rights to previously delivered data (raw or derived) are set in your individual license agreement."}, {"url": "https://sportsdata.io/terms-of-service", "use": "automated access", "excerpt": "use any robot, spider, scraper or other automated means or interface not authorized by us to access SportsDataIO or extract data"}, {"url": "https://developer.sportradar.com/sportradar-updates/page/master-terms-and-conditions-for-non-betting-services", "use": "trial is not commercial", "excerpt": "Free Trial means non-commercial use of the Service provided by the Sportradar to prospective Clients for internal testing and evaluation purposes only"}, {"url": "https://developer.sportradar.com/sportradar-updates/page/master-terms-and-conditions-for-non-betting-services", "use": "display only on authorised Properties", "excerpt": "reproduce, modify, display, perform, transmit, distribute or otherwise use or exploit in any manner the Data or Content other than display on the Properties authorized"}, {"note": "ESPN: no terms text for the site.api.espn.com endpoints was retrieved (disneytermsofuse.com returned a stub); rights treated as not evidenced, not as prohibited. The help-centre statements are marketing-level; the signed agreement controls. Whether the Sportradar master terms address AI/ML use was not found."}], "observations": [{"url": "https://site.api.espn.com/apis/site/v2/sports/basketball/nba/scoreboard", "method": "GET", "retrievedUTC": "2026-11-26T03:01:36Z", "httpStatus": 200, "sha256": "17c8a8d5549648826253ca1b303164b13e6e3bc2e163752161240a17be1520d3", "excerpt": "{\"leagues\":[{\"id\":\"46\",\"abbreviation\":\"NBA\",\"season\":{\"year\":2027,\"displayName\":\"2026-27\",\"type\":{\"id\":\"2\",\"name\":\"Regular Season\"}}}],\"day\":{\"date\":\"2026-11-25\"}}; 9 events; event 401909317 MIA@PHI STATUS_FINAL; 401909320 STATUS_IN_PROGRESS \"1:51 - 4th Quarter\"", "freshness": "fetch time = HTTP date 2026-11-26T03:01:36Z, cache-control max-age=1; no per-payload update timestamp found. Live in-progress game present. No odds object in sampled competitions. Lead only: no licence found."}, {"url": "https://site.api.espn.com/apis/site/v2/sports/basketball/nba/injuries", "method": "GET", "retrievedUTC": "2026-11-26T03:01:36Z", "httpStatus": 200, "sha256": "ed3d7ad19ac7fc0c2ca79e9d6794fb19bc77bf0b0cf2a138b3d53ad19d802bd2", "excerpt": "{\"timestamp\":\"2026-11-26T03:01:29Z\",\"status\":\"success\",\"injuries\":[{\"displayName\":\"Atlanta Hawks\",\"injuries\":[{\"id\":\"540374\",\"status\":\"Out\",\"date\":\"2026-11-21T22:12Z\",\"details\":{\"returnDate\":\"2026-11-27\"}}]}]}; 26 team groups; statuses seen: Out, Day-To-Day", "freshness": "payload timestamp 2026-11-26T03:01:29Z (data), fetched 03:01:36Z; per-item date = last report update; cache-control max-age=4. Source labelled 'basic/manual'."}, {"url": "https://cdn.nba.com/static/json/liveData/scoreboard/todaysScoreboard_00.json", "method": "GET", "retrievedUTC": "2026-11-26T03:01:36Z", "httpStatus": 403, "sha256": "edfc5f7308d60bc5d1ac3c7d3251b7ba1973da8ad382cbc929c16bf95ebd861a", "excerpt": "<HTML><HEAD> <TITLE>Access Denied</TITLE>", "freshness": "n/a - not live coverage (403) from this environment"}, {"url": "https://api.sportsdata.io/v3/nba/scores/json/GamesByDate/2026-11-25", "method": "GET", "retrievedUTC": "2026-11-26T03:01:36Z", "httpStatus": 401, "sha256": "5fd310c61d399e5e74285c06ec1c08708a915b2625eb188b2e4643280ead31c4", "excerpt": "{\"HttpStatusCode\":401,\"Code\":401,\"Description\":\"API key missing in request\"}", "freshness": "n/a - not live coverage (401, no key held)"}, {"url": "https://api.sportradar.com/nba/trial/v8/en/games/2026/11/25/schedule.json", "method": "GET", "retrievedUTC": "2026-11-26T03:01:36Z", "httpStatus": 403, "sha256": "bb8e87be88b131ca6083be36352c0801508714fad6add8d569d416228f44cdfd", "excerpt": "<title>Authentication Error</title><p>Authentication Error</p>", "freshness": "n/a - not live coverage (403, no key held)"}, {"url": "https://sportsdata.io/help/data-rights-and-licensing-questions", "method": "GET", "retrievedUTC": "2026-11-26T03:02:00Z", "httpStatus": 200, "sha256": "1558ed55985ad6b559e909cbd15713d24e004eece7a32c9c8b3f061362cfde1d", "excerpt": "Commercial licenses permit ingesting, caching, and storing API responses on your own infrastructure...", "freshness": "undated page"}, {"url": "https://developer.sportradar.com/sportradar-updates/page/master-terms-and-conditions-for-non-betting-services", "method": "GET", "retrievedUTC": "2026-11-26T03:02:02Z", "httpStatus": 200, "sha256": "1280006ab7ac1e58815859fc6cfd34d18dcf9985af742a381a3c10ea2fa60e61", "excerpt": "1.13. Free Trial means non-commercial use ... for internal testing and evaluation purposes only", "freshness": "undated page"}, {"url": "https://developer.sportradar.com/basketball/reference/nba-overview", "method": "GET", "retrievedUTC": "2026-11-26T03:01:39Z", "httpStatus": 200, "sha256": "350a8f5b12f4af11dc67c4744c4214b593c26e1a7e3c9544834124e434224644", "excerpt": "docs list: Daily Schedule, Daily Injuries, Game Summary, Injuries, Play-In Tournament section", "freshness": "documentation only"}, {"url": "https://sportsdata.io/developers/api-documentation/nba", "method": "GET", "retrievedUTC": "2026-11-26T03:01:37Z", "httpStatus": 200, "sha256": "40d96119dbe4735e99afc38bc356944416dd3e735a445c93e3b883e5edad8ff7", "excerpt": "GET https://api.sportsdata.io/v3/nba/scores/json/GamesByDate/{date} ... key string true Subscription Required", "freshness": "documentation only"}, {"url": "https://disneytermsofuse.com/", "method": "GET", "retrievedUTC": "2026-11-26T03:02:11Z", "httpStatus": 200, "sha256": "9c427a17cd9f (prefix only)", "excerpt": "Page body was a footer/link stub (867 chars); no ESPN API terms text retrieved", "freshness": "n/a"}], "cachePolicy": {"sportsdataio": "No forced refresh intervals or caching restrictions per help centre (contract controls); rate limit/quota unknown (plan-specific, unverified).", "sportradar": "unknown; trial has lower rate limits per docs search summary, not verified on page", "espn": "cache-control max-age=1 (scoreboard) and max-age=4 (injuries) observed from headers; no quota published/verified", "recommendation": "poll live scores 15-30s only once licensed; cache injuries 60-300s; shared server-side cache so user requests never hit the provider"}, "crossCheck": {"status": "unable", "detail": "Event 401909317 (ESPN id, MIA @ PHI, 2026-11-25T22:00Z, STATUS_FINAL) was observed only in ESPN. Independent confirmation was not possible: NBA CDN returned 403, SportsDataIO 401, Sportradar 403, none usable without credentials. No second-source agreement is claimed."}, "gaps": ["No credentialed response from any commercial provider; every field mapping for SportsDataIO is documented-only.", "No written commercial licence; needs scope for display, retention after termination, AI/model use, attribution.", "Projected vs confirmed lineup flag, play-in season type, overtime representation and odds history depth unverified.", "ESPN rights unevidenced; NBA CDN blocked (403) here; odds from ESPN absent in sample.", "Time zone of SportsDataIO DateTime fields unverified; prefer UTC field."], "nextSteps": ["Request SportsDataIO commercial quote naming NBA scores, injuries/lineups, game lines, historical; get written rights for caching, AI use, post-termination retention and attribution.", "Use the trial key (non-commercial, internal evaluation only) to sample GamesByDate, injuries, odds and record fixtures, then fill field mappings.", "Store keys as server-side secrets; never expose to clients.", "Run a two-source result cross-check (provider vs licensed second source) before launch.", "Do not accept wagers; display odds as comparison information only if the licence covers odds display."]}