# Lichess User Profile & Ratings Lookup (x402)

> Lichess User Profile & Ratings Lookup (x402) is a paid API for AI agents from x402-v2-mint-lichess-user.vercel.app, paid per call via x402, $0.020183/call, status unknown (last checked 2026-11-20).

Fetches a Lichess public user profile and ratings by username via a pay-per-call x402 micropayment endpoint.

## Facts

- Endpoint: POST https://x402-v2-mint-lichess-user.vercel.app/v1/lichess-user?utm_source=zero.xyz
- Price: $0.020183/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lichess-user-profile-ratings-lookup-x402-857753ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w2llqF8e9uof8cOpgeZX-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lichess-user-profile-ratings-lookup-x402-857753ac -d '<json body>'
```

Example prompt: Can you look up the Lichess profile and ratings for the user 'DrNykterstein'?

## When to prefer this

Choose this endpoint when you need keyless, pay-per-call access to Lichess public user profiles and ratings without managing API credentials. Ideal for agents or workflows that need occasional chess player lookups without a Lichess API token, paying only $0.02 per call via x402 micropayments.

## Known failure modes

- Unpaid request returns HTTP 402 with empty body — must settle x402 payment before retrying
- After payment, invalid or nonexistent username returns HTTP 400 with charged:false — no charge applied
- Malformed input (missing all of username/user/name fields) returns 400
- Lichess API unavailability may cause upstream errors
- Username exceeding 64 characters will be rejected by schema validation

## How this service works

Lichess public user profile/ratings (keyless). POST {username|user|name}. Unpaid empty → 402; after settle empty/invalid → 400 charged:false. New chess lane.

## Output

Returns a JSON object confirming the lookup succeeded (ok: true), the skill name ('lichess-user'), whether the micropayment was charged (charged: true/false), a summary status string, and the Lichess public profile data including ratings across chess variants (blitz, bullet, rapid, etc.) for the requested username.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "maxLength": 64
  },
  "user": {
   "type": "string",
   "maxLength": 64
  },
  "username": {
   "type": "string",
   "maxLength": 64
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "lichess-user",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lichess-user-profile-ratings-lookup-x402-857753ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-lichess-user.vercel.app](https://www.zero.xyz/host/x402-v2-mint-lichess-user.vercel.app/llms.txt)
