Skip to main content

Base URL

https://v2.tennis.sportsapipro.com
These endpoints require the Player Entity ID, NOT the Team ID. Using a Team ID (e.g., 275923 for Alcaraz) on /api/players/ endpoints will return incorrect data. You must use the Player Entity ID (e.g., 3111 for Alcaraz).
Player sport validation is enforced. If you use a non-tennis player ID, the API will return an error indicating the player’s actual sport (e.g., “Player 3111 is not a tennis player (sport: football)”). This prevents cross-sport data leakage.
How to find the Player Entity ID:
  1. Search for the player → GET /api/search?q=alcaraz → returns Team ID 275923
  2. Get team detailsGET /api/teams/275923 → response contains "player": { "id": 3111, ... }
  3. Use player.id for all /api/players/ endpoints → GET /api/players/3111/h2h/119248
Both IDs represent the same person but access different data. Use /api/players/:id for career stats and H2H. Use /api/teams/:id for match history and tournament entries.

Player Profile

Player Details

GET /api/players/{id}

Player Image

GET /api/players/{id}/image

Career Statistics

Overall Statistics

GET /api/players/{id}/statistics

Available Stat Seasons

GET /api/players/{id}/statistics/seasons

Stats by Match Type

GET /api/players/{id}/statistics/match-type?type=overall

Player Traits

Characteristics

GET /api/players/{id}/characteristics
Returns player traits (playing style, strengths).

Attribute Overviews

GET /api/players/{id}/attribute-overviews
Returns skill ratings.

Last Year Summary

GET /api/players/{id}/last-year-summary

Tennis-Specific Endpoints 🎾

Head-to-Head vs Opponent

GET /api/players/{id}/h2h/{opponentId}
Returns the direct head-to-head record between two players. Tennis-specific — not available in football or basketball.
opponentId
number
required
The opponent’s player ID.

National Team Statistics

GET /api/players/{id}/national-team-statistics
Returns Davis Cup / Billie Jean King Cup statistics.

Events & Media

Tournaments Played

GET /api/players/{id}/unique-tournaments

Recent Matches

GET /api/players/{id}/events/last/{page}

Player Media

GET /api/players/{id}/media

Player Videos

GET /api/players/{id}/media/videos

Season-Specific Stats

Tournament Season Statistics

GET /api/players/{id}/tournament/{tid}/season/{sid}/statistics?type=overall

Tournament Season Ratings

GET /api/players/{id}/tournament/{tid}/season/{sid}/ratings?type=overall

Tournament Season Summary

GET /api/players/{id}/tournament/{tid}/season/{sid}/summary

Example Requests

# Use Player Entity IDs for both players (NOT Team IDs)
curl -X GET "https://v2.tennis.sportsapipro.com/api/players/3111/h2h/119248" \
  -H "x-api-key: YOUR_API_KEY"