{
  "sport": "UFC/MMA",
  "needs": {
    "liveScores": {
      "source": "ESPN site API, UFC scoreboard (same pattern covers PFL, Bellator)",
      "url": "https://site.api.espn.com/apis/site/v2/sports/mma/ufc/scoreboard",
      "key": "none",
      "fields": "events[].id=event id; events[].date & competitions[].date=start time (UTC, 'Z' suffix); competitions[].competitors[].athlete.fullName=fighter name; competitors[].winner=bout outcome once final; competitions[].status.type.state='pre'|'in'|'post', status.type.completed=bool, status.type.description/detail=human status; competitions[].status.clock/displayClock/period=live round/clock when in progress; competitions[].venue=location; competitions[].broadcasts=TV/streaming",
      "rateLimit": "No published limit or documented SLA; this is ESPN's unofficial/undocumented public site API (no api-key gate), widely used by developers but not guaranteed stable.",
      "terms": "No MMA-specific scores (round-by-round) beyond winner/loss and status; Disney/ESPN Terms of Use (disneytermsofuse.com) state: 'Commercial, Marketing, or Branding Use Prohibited... we do not allow uses of the Disney Products... that are commercial or business-related... that advertise or offer to sell or promote products or services (whether or not for profit)'. A paid commercial website built on this endpoint is against ESPN's stated terms even though the endpoint itself needs no key.",
      "verified": true
    },
    "schedule": {
      "source": "ESPN site API, UFC scoreboard (leagues[].calendar array lists the full upcoming slate; events[] lists near-term cards; supports ?dates=YYYYMMDD for any day/range)",
      "url": "https://site.api.espn.com/apis/site/v2/sports/mma/ufc/scoreboard",
      "key": "none",
      "fields": "leagues[0].calendar[].label=event name, startDate/endDate=UTC window, calendar[].event.$ref=link to full core-API event resource; events[].id, events[].name, events[].date, events[].competitions[].venue.address={city,country}",
      "rateLimit": "Same as liveScores entry: no documented limit; unofficial endpoint.",
      "terms": "Same Disney/ESPN Terms of Use commercial-use prohibition as above.",
      "verified": true
    },
    "injuries": {
      "source": "No dedicated structured injury/withdrawal/availability API exists for MMA, free or paid-and-documented. Nearest working alternative: ESPN MMA news feed (free text headlines, not structured fields) which frequently reports pullouts/injuries/replacements as headlines.",
      "url": "https://site.api.espn.com/apis/site/v2/sports/mma/ufc/news",
      "key": "none",
      "fields": "articles[].headline=free-text headline (e.g. a withdrawal/injury headline), articles[].description, articles[].published=ISO timestamp, articles[].links.web.href=article URL. There is no boolean/structured 'withdrawn' or 'injury' field; detecting a withdrawal requires parsing headline text, not a reliable schema.",
      "rateLimit": "No published limit; unofficial endpoint.",
      "terms": "Same Disney/ESPN Terms of Use commercial-use prohibition as liveScores.",
      "verified": true
    },
    "odds": {
      "source": "The Odds API (h2h/moneyline odds aggregated from sportsbooks; covers MMA under a dedicated sport key)",
      "url": "https://api.the-odds-api.com/v4/sports/mma_mixed_martial_arts/odds/?regions=us&markets=h2h&apiKey=YOUR_KEY",
      "key": "free",
      "fields": "Response (per the-odds-api.com v4 docs/schema; verified a sibling NFL odds JSON sample on the-odds-api.com homepage): id=event id, commence_time=ISO start time, home_team/away_team (fighter names for MMA), bookmakers[].key/title=sportsbook, bookmakers[].markets[].outcomes[].name/price=moneyline per fighter.",
      "rateLimit": "Free 'Starter' plan = 500 credits per month (confirmed on the-odds-api.com homepage pricing table: 'Starter FREE 500 credits per month, All sports'); each odds call for one market/region typically costs multiple credits, so effective call volume is well under 500 requests/month.",
      "terms": "Requires a free account/API key (no anonymous access - verified: unauthenticated request to /v4/sports/ returned HTTP 401 'API key is missing'/'API key is not valid'). Commercial use terms require checking the-odds-api.com ToS/plan terms directly before production use; higher usage requires a paid plan.",
      "verified": true
    },
    "history": {
      "source": "ESPN site API, UFC scoreboard with ?dates= parameter (date-scoped query over historical dates); confirmed working back through at least three full seasons",
      "url": "https://site.api.espn.com/apis/site/v2/sports/mma/ufc/scoreboard?dates=20231111",
      "key": "none",
      "fields": "events[].name=card name (e.g. 'UFC 295: Prochazka vs. Pereira'), events[].date=event date, competitions[].competitors[].athlete.displayName + competitors[].winner=bout result, competitions[].status.type.name='STATUS_FINAL'/completed=true for finished bouts, competitions[].status.detail/shortDetail=finish detail text.",
      "rateLimit": "No published limit; unofficial endpoint; must be queried one date (or small date range) at a time, so backtesting 3+ seasons means iterating many ?dates= calls.",
      "terms": "Same Disney/ESPN Terms of Use commercial-use prohibition as liveScores.",
      "verified": true
    }
  },
  "extras": {
    "fighterProfile": {
      "source": "ESPN common API, athlete profile endpoint (record, age, height, reach, stance, striking style)",
      "url": "https://site.web.api.espn.com/apis/common/v3/sports/mma/ufc/athletes/4689965",
      "key": "none",
      "fields": "athlete.displayName, athlete.displayHeight (e.g. 5' 7\"), athlete.displayReach (e.g. 66\"), athlete.displayWeight, athlete.displayDOB and athlete.age, athlete.stance.text (e.g. 'Southpaw'), athlete.displayFightingStyle, athlete.statsSummary.statistics[] (wins-losses-draws, TKO/TKO-losses, submissions/submission-losses record splits), athlete.citizenship, athlete.weightClass.text, athlete.links[] (includes a 'history' link to the fighter's full ESPN fight-by-fight page for opposition quality analysis).",
      "rateLimit": "No published limit; unofficial endpoint.",
      "terms": "Same Disney/ESPN Terms of Use commercial-use prohibition as liveScores.",
      "verified": true
    },
    "fightByFightHistoryAndOtherPromotions": {
      "source": "Sherdog Fight Finder (fighter pages carry full career fight-by-fight history with dates, opponents, method, round; covers UFC plus most other promotions - Bellator, PFL, ONE, regional cards - in one place). HTML page, not a JSON API.",
      "url": "https://www.sherdog.com/fighter/Jon-Jones-27944",
      "key": "none",
      "fields": "Page contains schema.org Person JSON-LD plus an HTML fight-history table per bout: opponent name, event name/date, method (KO/TKO/Sub/Decision), round, promotion. No clean JSON field paths - requires HTML/JSON-LD scraping, which is fragile to markup changes.",
      "rateLimit": "robots.txt (checked at sherdog.com/robots.txt) allows 'User-agent: * Allow: /' with a sitemap, i.e. no crawl restriction stated, but no rate limit or API SLA is published either since this is a webpage, not an API.",
      "terms": "No API terms published for programmatic/commercial reuse; site is a consumer webpage, so scraping it for a commercial product carries copyright/ToS risk that was not found resolved anywhere on the site.",
      "verified": true
    },
    "otherPromotionsViaEspn": {
      "source": "ESPN site API supports the same scoreboard pattern for PFL and Bellator (confirmed both respond 200 with league metadata), so one adapter design covers UFC + PFL + Bellator.",
      "url": "https://site.api.espn.com/apis/site/v2/sports/mma/pfl/scoreboard",
      "key": "none",
      "fields": "Identical schema to the UFC scoreboard (leagues[], events[], competitions[]). Bellator's feed returned a season.year of 2024 in this check, suggesting ESPN's Bellator coverage may lag behind its UFC/PFL coverage in freshness.",
      "rateLimit": "Same as liveScores entry.",
      "terms": "Same Disney/ESPN Terms of Use commercial-use prohibition as liveScores.",
      "verified": true
    }
  },
  "sampleEvent": {
    "id": "600062700",
    "name": "UFC Fight Night: Adesanya vs Magomedov",
    "date": "2026-12-05T15:00Z",
    "competitors": ["Mateusz Rebecki (21-5-0)", "Elves Brener (17-6-0)"],
    "source": "https://site.api.espn.com/apis/site/v2/sports/mma/ufc/scoreboard, events[0]"
  },
  "gaps": {
    "injuries": "No free, documented, structured injury/withdrawal/availability API exists for MMA. Paid options exist (e.g. SportsData.io's MMA/UFC feed lists 'news' among its data types but injury/withdrawal structuring was not confirmed; Sportradar's MMA API organizes feeds by task but its injury-feed coverage was not confirmed either) - neither was verified live since both require a paid key. Nearest free alternative verified live: ESPN's MMA news endpoint (headline text only, requires manual/NLP parsing to detect withdrawals).",
    "odds": "No free, no-key odds source was found for MMA; the-odds-api.com needs a free API key (500 credits/month) and is the best available option.",
    "sherdogAsJsonApi": "Sherdog has no JSON API; fight-by-fight history requires HTML/JSON-LD scraping of sherdog.com, which carries unresolved commercial-reuse terms risk."
  },
  "notes": "Pitfalls: (1) ESPN's site.api.espn.com is an undocumented, unofficial API - no SLA, no published rate limit, and schemas have changed before without notice; cache aggressively and build adapters defensively against missing fields. (2) Disney/ESPN's own Terms of Use explicitly prohibit commercial or business-related use of 'Disney Products' including endpoints under espn.com, which conflicts with charging users for predictions built on this data - this should be flagged to the project owner as a licensing risk, not silently ignored. (3) Dates: the scoreboard's ?dates=YYYYMMDD param takes a single UTC calendar day, not a range; ESPN's event date/startDate fields are UTC ('...Z' suffix) and must be converted for local fight-card time (UFC cards often span a US-evening/Saturday but land on the next UTC calendar day). (4) Pagination: the scoreboard endpoint returns only events for the date(s) given - no leagues/offset pagination; to backtest 3+ seasons you must iterate one date (or small range) per call, which is many requests for a full history. (5) 'Season' on this endpoint is a calendar year container (season.year), not a fixed fight-week id - UFC runs year-round so there is no meaningful season boundary like team sports. (6) Fighter ids (athlete.id) differ from event/competition ids; linking a fighter's profile to a specific bout requires joining competitors[].athlete.id from the scoreboard to the /athletes/{id} endpoint. (7) The Odds API's MMA sport key is 'mma_mixed_martial_arts' (verify current key via /v4/sports/ listing, which also needs the key) and odds calls cost multiple credits per market/region, so the 500-credit free tier covers far fewer live calls than 500.",
  "sourcesVerifiedLive": true
}
