---
title: "Ratings"
method: POST
path: "/v1/get_ratings"
tags: ["Basic lookup"]
---

# Ratings

`POST /v1/get_ratings`

## Request

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

Use for our Elo ratings, highest first: overall, or on one surface (hard, clay, grass). Players with a rated match since active_since (default a year ago) and at least 10 rated matches. Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 2 credits.

## Request body

- object
  - `surface` 'hard' | 'clay' | 'grass' | 'carpet': Rank by the surface rating instead of overall.
  - `active_since` string: Only players with a rated match since this date, YYYY-MM-DD (default one year ago).
  - `limit` integer: Max players (default 50).
  - `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
    - `surface` string, nullable, required
    - `active_since` string, required
    - `ratings` object[], required
    - `count` number, required
    - `method` 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)
