CH
Identity & Enrichment · x402 · early usage

Lichess user profile snapshot: ratings per perf, country, title, online status, counts

Lichess user profile snapshot: ratings per perf, country, title, online status, counts.

by chess402.vercel.app · discovered, not yet claimed by its owner · updated 2026-09-25

30d calls1
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Lichess user profile snapshot: ratings per perf, country, title, online status, counts.

Tags: bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-09-25
Input example from Bazaar metadata
{
  "username": "DrNykterstein"
}
Output example
{
  "count": {
    "all": 10450,
    "draw": 2450,
    "loss": 2000,
    "rated": 9800,
    "win": 6000
  },
  "createdAt": 1389027719000,
  "id": "drnykterstein",
  "online": false,
  "patron": false,
  "perfs": {
    "blitz": {
      "games": 1234,
      "prog": 12,
      "prov": false,
      "rating": 3153,
      "rd": 45
    },
    "bullet": {
      "games": 5678,
      "prog": -5,
      "prov": false,
      "rating": 3243,
      "rd": 40
    },
    "rapid": {
      "games": 89,
      "prog": 0,
      "prov": false,
      "rating": 2881,
      "rd": 60
    }
  },
  "playTime": {
    "total": 1234567,
    "tv": 0
  },
  "profile": {
    "flag": "NO"
  },
  "seenAt": 1700000000000,
  "title": "GM",
  "url": "https://lichess.org/@/DrNykterstein",
  "username": "DrNykterstein"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/55094.json for the price and payment options.
  3. Pay. Call GET https://chess402.vercel.app/api/user. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.001 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
1 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0010xfbd46201267609ad3c66bd1b99b7f1cc80b1852f300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xfbd46201267609ad3c66bd1b99b7f1cc80b1852f",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "amountUsd": 0.001,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": {},
      "description": "Lichess user profile snapshot.",
      "properties": {
        "count": {
          "additionalProperties": {},
          "description": "Game count breakdown.",
          "properties": {
            "all": {
              "description": "Total games.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "bookmark": {
              "description": "Bookmarked games.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "draw": {
              "description": "Draws.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "import": {
              "description": "Imported games.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "loss": {
              "description": "Losses.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "rated": {
              "description": "Rated games.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "win": {
              "description": "Wins.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "all",
            "rated",
            "win",
            "loss",
            "draw"
          ],
          "type": "object"
        },
        "createdAt": {
          "description": "Account creation timestamp (ms epoch).",
          "maximum": 9007199254740991,
          "minimum": -9007199254740991,
          "type": "integer"
        },
        "flair": {
          "description": "User flair emoji slug.",
          "type": "string"
        },
        "id": {
          "description": "Lowercase Lichess user id.",
          "type": "string"
        },
        "online": {
          "description": "Whether the user is online now.",
          "type": "boolean"
        },
        "patron": {
          "description": "Whether the user is a Lichess patron.",
          "type": "boolean"
        },
        "perfs": {
          "additionalProperties": {
            "additionalProperties": {},
            "properties": {
              "games": {
                "description": "Total games played.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "prog": {
                "description": "Rating progression (last 12 games).",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "prov": {
                "description": "Whether the rating is provisional.",
                "type": "boolean"
              },
              "rating": {
                "description": "Current rating.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "rd": {
                "description": "Rating deviation.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "games",
              "rating"
            ],
            "type": "object"
          },
          "description": "Per-variant performance objects keyed by perf name (bullet, blitz, rapid, classical, puzzle, …).",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "playTime": {
          "additionalProperties": false,
          "description": "Cumulative play time.",
          "properties": {
            "total": {
              "description": "Total seconds played on Lichess.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "tv": {
              "description": "Seconds streamed on Lichess TV.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "total",
            "tv"
          ],
          "type": "object"
        },
        "profile": {
          "additionalProperties": {},
          "description": "Free-form profile fields set by the user.",
          "properties": {
            "bio": {
              "description": "User biography.",
              "type": "string"
            },
            "firstName": {
              "type": "string"
            },
            "flag": {
              "description": "ISO 3166-1 alpha-2 country code.",
              "type": "string"
            },
            "lastName": {
              "type": "string"
            },
            "links": {
              "description": "User-provided links.",
              "type": "string"
            }
          },
          "type": "object"
        },
        "seenAt": {
          "description": "Last activity timestamp (ms epoch).",
          "maximum": 9007199254740991,
          "minimum": -9007199254740991,
          "type": "integer"
        },
        "title": {
          "description": "FIDE title (GM, IM, FM, ...), if any.",
          "type": "string"
        },
        "url": {
          "description": "Lichess profile URL.",
          "type": "string"
        },
        "username": {
          "description": "Display username.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "username"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "count": {
      "all": 0,
      "bookmark": 0,
      "draw": 0,
      "import": 0,
      "loss": 0,
      "rated": 0,
      "win": 0
    },
    "createdAt": 0,
    "flair": "string",
    "id": "string",
    "online": true,
    "patron": true,
    "perfs": {},
    "playTime": {
      "total": 0,
      "tv": 0
    },
    "profile": {
      "bio": "string",
      "firstName": "string",
      "flag": "string",
      "lastName": "string",
      "links": "string"
    },
    "seenAt": 0,
    "title": "string",
    "url": "string",
    "username": "string"
  },
  "type": "string"
}

Examples

curl
curl -X POST 'https://chess402.vercel.app/api/user' -H 'Content-Type: application/json' --data '{"username":"DrNykterstein"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://chess402.vercel.app/api/user", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"username\":\"DrNykterstein\"}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://chess402.vercel.app/api/user", json=json.loads("{\"username\":\"DrNykterstein\"}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
chess402.vercel.app
Endpoint
https://chess402.vercel.app/api/user
Machine-readable
/resources/55094.json