CoinGecko · API Governance Rules
CoinGecko API Rules
Spectral linting rules defining API design standards and conventions for CoinGecko.
10 Rules
error 3
warn 5
info 2
Rule Categories
coingecko
Rules
error
coingecko-info-contact
API contact information must be present.
$.info
error
coingecko-server-https
All server URLs must use HTTPS.
$.servers[*].url
warn
coingecko-server-host
Server URLs must reference a CoinGecko host.
$.servers[*].url
info
coingecko-versioned-path
Server URLs should expose /api/v3 versioning.
$.servers[*].url
warn
coingecko-api-key-header
Authenticated APIs should use x-cg-demo-api-key or x-cg-pro-api-key.
$.components.securitySchemes[*]
error
coingecko-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
coingecko-operation-tags
Operations must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
coingecko-operation-summary
Operations should declare a summary.
$.paths[*][get,post,put,patch,delete]
warn
coingecko-error-responses
GET operations should declare 401 and 429 error responses.
$.paths[*].get.responses
info
coingecko-currency-param
Pricing endpoints should accept vs_currency or vs_currencies.
$.paths[*].get.parameters[?(@.in == 'query')]