API Reference
Head-to-Head (H2H)
The H2H module delivers rivalry records, match histories, per-match statistics, and aggregate comparisons between any two players — or between one player and all their opponents.
Endpoint Summary
|
|
|
|
|
|
Get H2H Info
GET
Returns H2H records broken down by court surface. Each record shows the win count for both players on a specific surface./tennis/v2/{tour_type}/h2h/info/{player1_id}/{player2_id}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id | Yes | First Player ID (≥ 1). |
player2_id | Yes | Second Player ID (≥ 1). |
Get H2H Matches
GET
Returns the full list of past matches between two players with scores and tournament details./tennis/v2/{tour_type}/h2h/matches/{player1_id}/{player2_id}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id | Yes | First Player ID (≥ 1). |
player2_id | Yes | Second Player ID (≥ 1). |
Query Parameter
| Parameter | Required | Description |
|---|---|---|
include | No | Comma-separated relations to load. Available: round, tournament, tournament.court, tournament.rank, tournament.country, stat (per-match serve & return statistics).Example: include=round,tournament.court |
filter | No | Semicolon-separated filters in Key:value format. Available filters:
filter=GameYear:2024,2025;TourRank:1 |
surface | No | Filter by surface: acrylic, hard, clay, grass, I.hard, carpet, clay. Example: surface=hard |
pageSize | No | Results per page. Default: 10. Example: pageSize=10. |
pageNo | No | Page number, 1-indexed. Default: 1. Example: pageNo=1. Use hasNextPage in the response to check for more pages. |
Get H2H Stats
GET
Returns aggregated serve and return statistics comparing the two players over all their meetings./tennis/v2/{tour_type}/h2h/stats/{player1_id}/{player2_id}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id | Yes | First Player ID (≥ 1). |
player2_id | Yes | Second Player ID (≥ 1). |
Query Parameter
| Parameter | Required | Description |
|---|---|---|
surface | No | Filter by surface: acrylic, hard, clay, grass, I.hard, carpet, clay. Example: surface=hard |
Get H2H Filter
GET
Returns available filter options for an H2H comparison (surfaces, years, rounds, etc.)/tennis/v2/{tour_type}/h2h/filter/{player1_id}/{player2_id}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id | Yes | First Player ID (≥ 1). |
player2_id | Yes | Second Player ID (≥ 1). |
Response Properties
Returns the distinct filter values present in the two players' H2H match history — used to build filter UI panels.
| Parameter | Type | Description |
|---|---|---|
rounds | array | Distinct rounds played: each item is roundId, round. |
courts | array | Distinct court surfaces: each item is courtId, court. |
tournaments | array | Distinct tournaments where matches were played: each item is tournamentId, tournament, tournamentDate. |
tournamentRanks | array | Distinct tournament tiers: each item is rankId, rank. |
gameYears | array<number> | Distinct calendar years in which matches occurred, sorted descending. |
Get H2H Player's Vs All Opponents Stats
GET
Returns a player's win/loss record and stats against every opponent they have ever faced/tennis/v2/{tour_type}/h2h/vs-all-stats/{player_id}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player_id | Yes | Player ID (≥ 1). Obtain from the Players module. |
Get H2H Match Stats in Tournament
GET
Returns detailed per-match statistics for the encounter between two players in a specific tournament./tennis/v2/{tour_type}/h2h/match-stats/{tournament_id}/{player1_id}/{player2_id}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
tournament_id | Yes | Tournament ID must be numeric value >= 1 |
player1_id | Yes | First Player ID (≥ 1). |
player2_id | Yes | Second Player ID (≥ 1). |
Get H2H Player Type
GET
Retrieve the tour type of a player, indicating whether they compete on the ATP or WTA tour./tennis/v2/h2h/playerType/{player_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
player_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Profile Data
GET
Retrieve comprehensive profile information for both players in a head-to-head matchup, including rankings, career records, recent form, playing style, season performance, titles, prize money, and surface-specific head-to-head results./tennis/v2/h2h/profile/{tour_type}/{player1_id_or_name}/{player2_id_or_name}/{limit}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
limit | Yes | "true" to limit recent matches, "false" for full history |
Query Parameter
| Parameter | Required | Description |
|---|---|---|
includeAll | Yes | Include all historical data. Example: includeAll=false |
Get H2H Surface Breakdown
GET
Retrieve the head-to-head win/loss breakdown between two players across different court surfaces, including hard, indoor hard, clay, grass, and overall career totals./tennis/v2/h2h/surfaceBreakdown/{tour_type}/{player_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Statistics
GET
Retrieve comprehensive head-to-head statistics between two players, including match record, serving and returning performance, break point efficiency, tiebreak results, deciding-set records, first-set trends, tournament-level performance, and surface-specific head-to-head results./tennis/v2/h2h/stats/{tour_type}/{player1_id_or_name}/{player2_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Query Parameter
| Parameter | Required | Description |
|---|---|---|
year | No | Filter to a specific year. Example: year=2026 |
surface | No | Filter by surface: acrylic, hard, clay, grass, I.hard, carpet, clay. Example: surface=hard |
tournament | No | Filter by tournament name. Example: tournament=EFG%20Swiss%20Open%20-%20Gstaad |
Get H2H Filters
GET
Retrieve all available filter options for head-to-head comparisons, including court surfaces, tournament rounds, competition levels, tournaments, and seasons. Use these values to build valid filter queries for H2H endpoints./tennis/v2/h2h/filters/{player1_id_or_name}/{player2_id_or_name}/{tour_type}Path Parameter
| Parameter | Required | Description |
|---|---|---|
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
tour_type | Yes | Tour category. Allowed values: atp, wta. |
Get H2H Upcoming Event
GET
Retrieve the next scheduled match between two players, including match date and time, tournament, round, court surface, player details, and other available event information./tennis/v2/h2h/upcoming/{tour_type}/{player1_id_or_name}/{player2_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Player's Recent Matches
GET
Retrieve a player's recent head-to-head matches against a specific opponent, including match results, tournament details, round, court surface, score, and match date./tennis/v2/h2h/recent/{tour_type}/{player_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Player Vs Player Recent Event
GET
Retrieve the most recent or upcoming event between two players, including match details, tournament information, player status, recent form, career earnings, and other available head-to-head event data./tennis/v2/h2h/player-vs-player/recent-event/{tour_type}/{player1_id_or_name}/{player2_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Player's Recent Stats
GET
Retrieve a player's recent performance statistics against a specific opponent, including serving and return metrics, break point efficiency, season performance, deciding-set record, and career win/loss records by court surface./tennis/v2/h2h/recent-stats/{tour_type}/{player_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Breakdown
GET
Retrieve a comprehensive statistical breakdown for a player in head-to-head analysis, including career achievements, tournament performance, surface records, serving and return statistics, match outcomes, tiebreaks, deciding sets, opponent ranking metrics, and year-to-date performance./tennis/v2/h2h/breakdown/{tour_type}/{player_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Filters Vs
GET
Retrieve all available filter options for head-to-head player comparisons, including court surfaces, tournament rounds, competition levels, tournaments, and seasons. Use these values to build valid filter queries for player-vs-player H2H endpoints./tennis/v2/h2h/filters/{player1_id_or_name}/{player2_id_or_name}/{tour_type}/vsPath Parameter
| Parameter | Required | Description |
|---|---|---|
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
tour_type | Yes | Tour category. Allowed values: atp, wta. |
Get H2H Player's Last Match Played
GET
Retrieve a player's most recently completed match against a specific opponent, including the match result, score, tournament, round, and match duration./tennis/v2/h2h/filters/{tour_type}/{player_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H Player's Rivalries
GET
Retrieve a player's biggest head-to-head rivalries, including each opponent's name, head-to-head win/loss record, and total matches played against that opponent./tennis/v2/h2h/rivalries/{tour_type}/{player_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Query Parameter
| Parameter | Required | Description |
|---|---|---|
includeAll | No | Include all historical data. Example: includeAll=false |
limit | No | Number of rivalries to return (default: 10). Example: limit=10 |
Get H2H Current Event Stats
GET
Retrieve a player's current head-to-head performance statistics, including recent form, serving efficiency, break point performance, service holds, tiebreak record, match duration, total points won, and average opponent ranking./tennis/v2/h2h/current/{tour_type}/{player1_id_or_name}/{player2_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Get H2H History
GET
Returns a full history of past matches played between two players/tennis/v2/h2h/history/{tour_type}/{player1_id_or_name}/{player2_id_or_name}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
player1_id_or_name | Yes | Can be either the player's name or numeric player ID. |
player2_id_or_name | Yes | Can be either the player's name or numeric player ID. |
Query Parameter
| Parameter | Required | Description |
|---|---|---|
surface | No | Filter by surface: acrylic, hard, clay, grass, I.hard, carpet, clay. Example: surface=hard |
Get H2H Interesting Matchup
GET
Retrieves the most interesting potential head-to-head matchups based on the current potential fixtures. Each result includes both players, their career head-to-head record, and the tour where the matchup could occur./tennis/v2/interesting-h2h/{tour_type}Path Parameter
| Parameter | Required | Description |
|---|---|---|
tour_type | Yes | Tour category. Allowed values: atp, wta. |
Query Parameter
| Parameter | Required | Description |
|---|---|---|
includeAll | No | Include all historical data. Example: includeAll=false |
top | No | Maximum number of top potential matchups to return. Example: top=10 |
page | No | Page number (default: 1). Example: page=1 |
limit | No | Number of rivalries to return (default: 10). Example: limit=10 |