See Today’s Tennis API Data Displayed as Real Website Widgets
This demo automatically detects a live or upcoming match from today, then uses that match to populate live scores, odds movement, player profiles, H2H, rankings and fixtures.
Auto-populated from today’s live or upcoming tennis matches
The page first checks live matches. If there are no live matches, it checks today’s fixtures. The selected match is then used across the visual demos below.
Live Scores Board
Display today’s live matches as a sportsbook/media-style scoreboard.
GET /tennis/v2/extend/api/events/live
Frontend code
fetch("/api/tennis-demo.php?endpointId=live-events&limit=20")
Odds Movement Cards
Uses the selected match event ID to display recent odds movement.
GET /tennis/v2/extend/api/odds/summary/movements/last-10/{eventId}
Frontend code
fetch("/api/tennis-demo.php?endpointId=odds-movements-last-10&eventId={eventId}")
Player Profile Card
Uses player one from today’s selected match.
GET /tennis/v2/ms-api/profile/{name}
Frontend code
fetch("/api/tennis-demo.php?endpointId=player-profile&name={playerName}")
H2H Comparison Widget
Uses player IDs from today’s selected match when available.
GET /tennis/v2/{type}/h2h/info/{player1}/{player2}
Frontend code
fetch("/api/tennis-demo.php?endpointId=h2h-info&type=atp&player1={player1Id}&player2={player2Id}")
Current Rankings Table
Displays ATP or WTA rankings based on today’s selected match context.
GET /tennis/v2/{type}/ranking/singles
Frontend code
fetch("/api/tennis-demo.php?endpointId=singles-rankings&type=atp&pageSize=10&pageNo=1")
Today’s Fixtures List
Shows upcoming tennis fixtures for ATP or WTA.
GET /tennis/v2/{type}/fixtures
Frontend code
fetch("/api/tennis-demo.php?endpointId=fixtures-today&type=atp")
Build Tennis Apps, Betting Tools, Ranking Tables & Live Scoreboards
Use Tennis API data to power sports apps, media sites, betting models, prediction tools, player profiles and tennis analytics dashboards.