Chess.com · API Governance Rules

Chess.com API Rules

Spectral linting rules defining API design standards and conventions for Chess.com.

6 Rules error 1 warn 3 info 2
View Rules File View on GitHub

Rule Categories

chess

Rules

error
chess-com-base-url
All Chess.com API operations must live under https://api.chess.com/pub
$.servers[*].url
warn
chess-com-no-auth
Chess.com Published Data API is public; no security scheme should be required
$.paths[*][*].security
warn
chess-com-title-case-summary
Operation summaries should be Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
chess-com-username-lowercase
Username path parameters must be documented as all-lowercase
$.paths..parameters[?(@.name=='username')].description
info
chess-com-rate-limit-mention
API description should mention 429 / parallel-request throttling
$.info.description
info
chess-com-user-agent-mention
API description should mention the User-Agent best practice
$.info.description

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, all]]
functions: []
documentationUrl: https://www.chess.com/news/view/published-data-api
rules:
  chess-com-base-url:
    description: All Chess.com API operations must live under https://api.chess.com/pub
    message: '{{property}} server URL must start with https://api.chess.com/pub'
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://api\.chess\.com/pub'

  chess-com-no-auth:
    description: Chess.com Published Data API is public; no security scheme should be required
    message: Chess.com endpoints must not require authentication.
    severity: warn
    given: $.paths[*][*].security
    then:
      function: falsy

  chess-com-title-case-summary:
    description: Operation summaries should be Title Case
    message: '{{property}} summary should use Title Case (e.g. "Get Player Profile").'
    severity: warn
    given: $.paths[*][get,post,put,patch,delete].summary
    then:
      function: pattern
      functionOptions:
        match: '^[A-Z][A-Za-z0-9]*( [A-Z][A-Za-z0-9]*)*'

  chess-com-username-lowercase:
    description: Username path parameters must be documented as all-lowercase
    message: Username parameter should specify that values are lowercased.
    severity: warn
    given: $.paths..parameters[?(@.name=='username')].description
    then:
      function: pattern
      functionOptions:
        match: '(?i)lowercase|all-lowercase'

  chess-com-rate-limit-mention:
    description: API description should mention 429 / parallel-request throttling
    message: Top-level info.description should mention Chess.com parallel-request rate limits.
    severity: info
    given: $.info.description
    then:
      function: pattern
      functionOptions:
        match: '(?i)429|rate|parallel'

  chess-com-user-agent-mention:
    description: API description should mention the User-Agent best practice
    severity: info
    given: $.info.description
    then:
      function: pattern
      functionOptions:
        match: '(?i)User-Agent'

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/chess-com-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.