{"sport":"tennis",
"needs":{
"liveScores":{"source":"ESPN public site API scoreboard (ATP and WTA)","url":"https://site.api.espn.com/apis/site/v2/sports/tennis/atp/scoreboard","key":"none","fields":{"events[].id":"tournament id, e.g. 339-2026 (<eventId>-<season>)","events[].name":"tournament name","events[].groupings[].grouping.slug":"draw: mens-singles, mens-doubles (WTA: womens-*)","events[].groupings[].competitions[].id":"match id","competitions[].date / startDate":"match start, UTC ISO","competitions[].status.type.name/state/detail":"STATUS_FINAL, STATUS_RETIRED, STATUS_WALKOVER, ...; state pre/in/post","competitions[].round.displayName":"round","competitions[].competitors[].athlete.displayName (singles) / roster.athletes[] (doubles)":"players","competitors[].winner":"winner flag","competitors[].linescores[].value / tiebreak":"games per set and tiebreak points","competitors[].curatedRank.current":"seed/rank","competitions[].notes[].text":"result line, e.g. '... bt ... 6-3 5-7 1-0 (10-4)'","venue.court":"court"},"rateLimit":"None stated; it is an undocumented public API. Cache responses for about 30 to 60 seconds while matches are live.","terms":"Undocumented. Disney/ESPN Terms of Use give a personal, noncommercial licence and forbid extraction by automated means. Get a licence before commercial use.","verified":true},
"schedule":{"source":"ESPN public site API scoreboard with a dates parameter","url":"https://site.api.espn.com/apis/site/v2/sports/tennis/atp/scoreboard?dates=20270105","key":"none","fields":{"events[].id":"tournament id","events[].date / endDate":"tournament window, UTC","events[].name":"tournament","events[].major":"Grand Slam flag","events[].season.year":"season","events[].groupings":"empty until the draw is published, then holds the matches","leagues[0].season":"current season (2027 as of 2026-11-26)"},"rateLimit":"None stated","terms":"Same as liveScores","verified":true},
"injuries":{"source":"ESPN public news API (no structured tennis injury feed was found)","url":"https://site.api.espn.com/apis/site/v2/sports/tennis/atp/news","key":"none","fields":{"articles[].headline":"headline, e.g. 'No. 2 Jannik Sinner missing 2027 Australian Open to rehab knee'","articles[].published":"UTC timestamp","articles[].id":"article id"},"rateLimit":"None stated","terms":"Same as liveScores. The text is editorial, so withdrawals must be pulled out of it by text parsing or AI.","verified":true},
"odds":{"source":"The Odds API v4 (free Starter key: 500 credits a month)","url":"https://api.the-odds-api.com/v4/sports/?apiKey=x","key":"free","fields":{"[].key":"sport key per tournament, e.g. tennis_atp_aus_open_singles, tennis_atp_french_open (listed in the docs)","odds endpoint /v4/sports/{key}/odds: [].id, commence_time, home_team, away_team, bookmakers[].markets[].outcomes[].name/price":"from the docs, not seen live","headers x-requests-remaining / x-requests-used":"quota"},"rateLimit":"Free tier: 500 credits a month. The /sports endpoint does not count against the quota.","terms":"Commercial API sold by plan. I did not read its terms page.","verified":false},
"history":{"source":"ESPN public site API scoreboard with past dates","url":"https://site.api.espn.com/apis/site/v2/sports/tennis/atp/scoreboard?dates=20240121","key":"none","fields":{"same as liveScores":"the whole tournament is returned for any date inside it","status.type.name":"FINAL / RETIRED / WALKOVER","competitors[].winner, linescores":"outcome and score"},"rateLimit":"None stated. The responses are large (about 1.8 MB for the 2024 Australian Open).","terms":"Same as liveScores","verified":true}
},
"extras":{
"rankings":{"source":"ESPN rankings API","url":"https://site.api.espn.com/apis/site/v2/sports/tennis/atp/rankings","key":"none","fields":{"rankings[0].ranks[].current/previous/points/trend":"ranking","ranks[].athlete.id/displayName":"player"},"rateLimit":"None stated","terms":"Same as liveScores","verified":true},
"age":{"source":"ESPN core API athlete","url":"https://sports.core.api.espn.com/v2/sports/tennis/leagues/atp/athletes/3623?lang=en","key":"none","fields":{"age":"age (25)","dateOfBirth":"date of birth","debutYear":"debut year","height/weight":"physical"},"rateLimit":"None stated","terms":"Same as liveScores","verified":true},
"headToHead":{"source":"None that worked. The ATP Tour h2h page returned 403. Build head-to-head from the ESPN history above, filtering on athlete ids.","url":"https://site.api.espn.com/apis/site/v2/sports/tennis/atp/scoreboard?dates=20240121","key":"none","fields":{"competitors[].athlete.displayName, winner":"derive h2h"},"rateLimit":"None stated","terms":"Same as liveScores","verified":false},
"surface":{"source":"None that worked. Neither ESPN response carries a surface field (only venue and court). Tennis-data.co.uk spreadsheets have a Surface column, but the files returned 404 today and are licensed for private use only.","url":"https://tennis-data.co.uk/data.php","key":"none","fields":{},"rateLimit":"None stated","terms":"'Its use is intended for private individuals only, not commerical...'","verified":false},
"retirementsWalkovers":{"source":"ESPN scoreboard","url":"https://site.api.espn.com/apis/site/v2/sports/tennis/atp/scoreboard?dates=20240121","key":"none","fields":{"status.type.name":"STATUS_RETIRED (id 38) / STATUS_WALKOVER (id 40)","notes[].text":"'... 4-0 ret' or '... w/o'","competitors[].winner":"the player who advanced"},"rateLimit":"None stated","terms":"Same as liveScores","verified":true}
},
"sampleEvent":{"id":"970-2027","date":"2027-01-02T05:00Z","endDate":"2027-01-11T04:59Z","name":"Brisbane International presented by ANZ","competitors":"not yet published: groupings is [] because the draw is out about two days before play; previousWinners lists Daniil Medvedev (men's singles)"},
"gaps":[{"need":"odds","alternative":"The Odds API needs a free key. I could not call its odds endpoint without one; it only confirmed the key is required. ESPN tennis responses carry no odds."},{"need":"injuries","alternative":"No structured tennis injury feed found; use ESPN news headlines."},{"need":"surface","alternative":"No working source. Keep a static mapping from tournament id to surface."},{"need":"headToHead","alternative":"Derive it from ESPN history."},{"need":"history bulk CSV","alternative":"The JeffSackmann tennis_atp GitHub repo returned 404 today, and tennis-data files returned 404 and are non-commercial. Use ESPN by date."}],
"notes":"ESPN scoreboard: ?dates=YYYYMMDD returns every tournament running on that day, with all matches. A date range (dates=A-B) on the generic /tennis/scoreboard returned 404, so use one date per tournament. Results are not paginated, but whole Grand Slam draws are 1.5-2 MB, so cache them. Event ids have the form <tournamentId>-<season> (172-2025 Roland Garros); match ids are numeric. All times are UTC 'Z' without seconds; the calendar is laid out in America/New_York. Groupings separate singles and doubles. Doubles competitors are type 'team', with an id like '2725-2434' and roster.athletes[]. Singles carry athlete.displayName. For an empty groupings array, show the tournament without matches. Retired and walkover matches count as completed: exclude walkovers from model backtests and flag retirements. Off-season (late November): the default scoreboard returns the last tournament (ATP Finals); 2027 tournaments appear with empty draws. To backtest three seasons, step through each tournament's dates (or use the core API seasons/{year} events). The /tennis/atp/injuries endpoint returns only a stub with no data. The summary endpoint returned 400 for tennis. ESPN is unofficial and may change without notice; its terms are personal and noncommercial."}
