---
title: "Rankings"
method: POST
path: "/v1/get_rankings"
tags: ["Basic lookup"]
---

# Rankings

`POST /v1/get_rankings`

## Request

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

Use for the ranking list: the latest (default), or a season and week, or the list in force on a date, with rank, previous rank, points and player. Pass player_id instead for one player's ranking history. Weekly lists hold the top 100 to 150 for most weeks since 2007. Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 2 credits.

## Request body

- object
  - `season` union: Year.
    - string
    - number
  - `week` integer: Week number of the season.
  - `date` string: The list in force on this date, YYYY-MM-DD.
  - `player_id` string: One player's ranking history instead of a list.
  - `limit` integer: Max rows of a list (default 100).
  - `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
    - `season` number
    - `week` number
    - `ranking_date` string, nullable
    - `rankings` object[]
    - `player_id` string
    - `name` string
    - `best_rank` number, nullable
    - `history` object[]
    - `count` number, 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)
