# Chess.com or lichess player profile and ratings API

Get Chess.com or Lichess player profiles by username via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, username, and retrieve structured data including structured JSON records, identifiers, and response metadata for chess reference, and record navigation, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/chess/chess-com-or-lichess-player-profile-and-ratings-api/18e95ca2-13c1-42a2-a28f-d2e43e7cf4b5/
API ID: 18e95ca2-13c1-42a2-a28f-d2e43e7cf4b5
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/chess/v1/player
Page update time: 2026-12-03T02:47:47.991Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:46.878Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Chess.com & Lichess Player Profile API

Pass username with site, default chesscom. Rating categories retain their own dates, best values and deviation fields; profile last\_online and source retrieval time are separate.

## What You Can Build

- **Chess reference**: Keep source site and entity identity.
- **Record navigation**: Preserve the site-specific category and time-control scope.

## Returned Data

| Field | Meaning |
| --- | --- |
| `ratings` | Source rating categories and records |
| `ratings.blitz.rating` | Blitz rating in the reference structure |
| `ratings.blitz.best` | Separate source peak blitz rating |
| `fide` | Source FIDE reference when present |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Chess.com or lichess player profile and ratings API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string",
          "description": "Username."
        },
        "site": {
          "type": "string",
          "description": "chesscom (default) or lichess.",
          "enum": [
            "chesscom",
            "lichess"
          ]
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "username"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "avatar": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "country": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "fide": {
      "type": "integer"
    },
    "followers": {
      "type": "integer"
    },
    "is_streamer": {
      "type": "boolean"
    },
    "joined": {
      "type": "string"
    },
    "last_online": {
      "type": "string"
    },
    "league": {
      "type": "string"
    },
    "location": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "player_id": {
      "type": "integer"
    },
    "puzzle_rush_best": {
      "type": "integer"
    },
    "ratings": {
      "type": "object",
      "properties": {
        "blitz": {
          "type": "object",
          "properties": {
            "best": {
              "type": "integer"
            },
            "best_date": {
              "type": "string"
            },
            "best_game": {
              "type": "string"
            },
            "date": {
              "type": "string"
            },
            "draws": {
              "type": "integer"
            },
            "losses": {
              "type": "integer"
            },
            "rating": {
              "type": "integer"
            },
            "rd": {
              "type": "integer"
            },
            "wins": {
              "type": "integer"
            }
          }
        },
        "bullet": {
          "type": "object",
          "properties": {
            "best": {
              "type": "integer"
            },
            "best_date": {
              "type": "string"
            },
            "best_game": {
              "type": "string"
            },
            "date": {
              "type": "string"
            },
            "draws": {
              "type": "integer"
            },
            "losses": {
              "type": "integer"
            },
            "rating": {
              "type": "integer"
            },
            "rd": {
              "type": "integer"
            },
            "wins": {
              "type": "integer"
            }
          }
        },
        "chess960_daily": {
          "type": "object",
          "properties": {
            "best": {
              "type": "integer"
            },
            "best_date": {
              "type": "string"
            },
            "best_game": {
              "type": "string"
            },
            "date": {
              "type": "string"
            },
            "draws": {
              "type": "integer"
            },
            "losses": {
              "type": "integer"
            },
            "rating": {
              "type": "integer"
            },
            "rd": {
              "type": "integer"
            },
            "wins": {
              "type": "integer"
            }
          }
        },
        "daily": {
          "type": "object",
          "properties": {
            "best": {
              "type": "integer"
            },
            "best_date": {
              "type": "string"
            },
            "best_game": {
              "type": "string"
            },
            "date": {
              "type": "string"
            },
            "draws": {
              "type": "integer"
            },
            "losses": {
              "type": "integer"
            },
            "rating": {
              "type": "integer"
            },
            "rd": {
              "type": "integer"
            },
            "wins": {
              "type": "integer"
            }
          }
        },
        "rapid": {
          "type": "object",
          "properties": {
            "best": {
              "type": "integer"
            },
            "best_date": {
              "type": "string"
            },
            "best_game": {
              "type": "string"
            },
            "date": {
              "type": "string"
            },
            "draws": {
              "type": "integer"
            },
            "losses": {
              "type": "integer"
            },
            "rating": {
              "type": "integer"
            },
            "rd": {
              "type": "integer"
            },
            "wins": {
              "type": "integer"
            }
          }
        }
      }
    },
    "site": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "tactics": {
      "type": "object",
      "properties": {
        "highest": {
          "type": "integer"
        },
        "lowest": {
          "type": "integer"
        }
      }
    },
    "title": {
      "type": "string"
    },
    "twitch_url": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "username": {
      "type": "string"
    },
    "verified": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/chess/v1/player?output=json&raw=0&username=hikaru' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "avatar": "https://images.chesscomfiles.com/uploads/v1/user/15448422.88c010c1.200x200o.3c5619f5441e.png",
  "cached": false,
  "country": "US",
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:20:23.709Z",
  "fide": 2814,
  "followers": 1435442,
  "is_streamer": true,
  "joined": "2014-01-06T21:20:58.000Z",
  "last_online": "2026-11-18T12:21:29.000Z",
  "league": "Legend",
  "location": "Florida",
  "name": "Hikaru Nakamura",
  "player_id": 15448422,
  "puzzle_rush_best": 123,
  "ratings": {
    "blitz": {
      "best": 3503,
      "best_date": "2026-10-06T16:21:39.000Z",
      "best_game": "https://www.chess.com/game/live/184580310677",
      "date": "2026-11-19T01:35:02.000Z",
      "draws": 4397,
      "losses": 5573,
      "rating": 3465,
      "rd": 29,
      "wins": 36259
    },
    "bullet": {
      "best": 3570,
      "best_date": "2020-11-11T23:07:27.000Z",
      "best_game": "https://www.chess.com/game/live/5710095242",
      "date": "2026-11-16T20:15:03.000Z",
      "draws": 1197,
      "losses": 2562,
      "rating": 3402,
      "rd": 28,
      "wins": 17334
    },
    "chess960_daily": {
      "best": 1489,
      "best_date": "2014-04-09T19:50:07.000Z",
      "best_game": "https://www.chess.com/game/daily/87191830",
      "date": "2015-10-10T06:23:34.000Z",
      "draws": 0,
      "losses": 2,
      "rating": 1231,
      "rd": 230,
      "wins": 1
    },
    "daily": {
      "best": 2464,
      "best_date": "2014-04-10T13:32:20.000Z",
      "best_game": "https://www.chess.com/game/daily/84604826",
      "date": "2026-02-08T15:03:41.000Z",
      "draws": 4,
      "losses": 11,
      "rating": 2239,
      "rd": 103,
      "wins": 73
    },
    "rapid": {
      "best": 2927,
      "best_date": "2022-02-26T19:08:34.000Z",
      "best_game": "https://www.chess.com/game/live/141332265952",
      "date": "2026-08-15T12:18:49.000Z",
      "draws": 220,
      "losses": 69,
      "rating": 2838,
      "rd": 44,
      "wins": 205
    }
  },
  "site": "chesscom",
  "status": "premium",
  "tactics": {
    "highest": 2730,
    "lowest": 2730
  },
  "title": "GM",
  "twitch_url": "https://twitch.tv/gmhikaru",
  "url": "https://www.chess.com/member/Hikaru",
  "username": "hikaru",
  "verified": false
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Are current and best ratings the same?
Keep rating, best, best_date and source category dates separately.

### Can a site rating replace fide?
No. FIDE and platform-specific rating pools are separate source fields.

### Does an absent category mean a zero rating?
No. Preserve unavailable source rating records as unknown.

### Is last_online the time ratings were updated?
No. Keep profile activity, per-category dates and fetched_at separately.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/chess/chess-com-or-lichess-player-profile-and-ratings-api/18e95ca2-13c1-42a2-a28f-d2e43e7cf4b5/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
