---
title: "Player stats"
method: POST
path: "/v1/get_player_stats"
tags: ["Multi-table"]
---

# Player stats

`POST /v1/get_player_stats`

## Request

- Base URL: `https://mcp.acesapi.com`
- URL: `https://mcp.acesapi.com/v1/get_player_stats`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Use for a player's match statistics by season: wins, losses, sets and games won, tiebreaks won and lost, deciding sets, 6-0 sets and retirements, all counted from scores; plus the record by round and by the opponent's ranking (top 10, 11-50, 51-100). No serve statistics: they are not available. Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 3 credits.

## Request body

- object
  - `player_id` string, required: Player id from search_players.
  - `season` union: Year (default every season).
    - string
    - number
  - `league` 'tennis' | 'wta': League. Defaults to tennis. One of: tennis, wta.

## Response `200`

The result, wrapped in data.

- object
  - `data` object, required
    - `tour` string, required
    - `player_id` string, required
    - `name` string, required
    - `season` number, nullable, required
    - `by_season` object[], required
    - `by_round` object[], required
    - `by_opponent_rank` object[], required
    - `note` string, required

## Other responses

- `400`: Invalid arguments.
- `401`: Missing or invalid API key.
- `402`: Not enough credits.
- `429`: Rate limited.

---

[API](https://skmtc.dev/acesapi/apis/acesapi-api.md) · [All operations](https://skmtc.dev/acesapi/apis/acesapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/acesapi/apis/acesapi-api/revisions/01a182013f8b?raw)
