Api Endpoint

chess402.vercel.app

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

Open interactive test console

Offering

Provider
chess402.vercel.app
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
General Utilities
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://chess402.vercel.app/api/user
MIME type
Not provided
First seen
2026-10-16T01:58:03.323Z
Last seen
Tags
AI, Random, Search

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0xfbd46201267609ad3c66bd1b99b7f1cc80b1852f"
  }
]

Observed health

Status
Healthy
Latest latency
56 ms
Average latency
266 ms
HTTP status
204
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Lichess user profile lookup.",
      "properties": {
        "username": {
          "description": "Lichess username (case-insensitive).",
          "maxLength": 30,
          "minLength": 2,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "username"
      ],
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output 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"
}