United States Census Bureau · API Governance Rules
United States Census Bureau API Rules
Spectral linting rules defining API design standards and conventions for United States Census Bureau.
8 Rules
error 2
warn 4
info 2
Rule Categories
census
Rules
warn
census-year-parameter-documented
Year path parameters should document available year ranges
$.paths..parameters[?(@.name == "year")].description
error
census-get-parameter-required
The get query parameter is the primary Census API parameter and should be marked required
$.paths..parameters[?(@.name == "get")]
warn
census-for-geography-documented
The for geography parameter should document FIPS code syntax
$.paths..parameters[?(@.name == "for")].description
info
census-key-parameter-documented
API key parameters should explain usage limits
$.paths..parameters[?(@.name == "key")].description
error
census-operation-ids-present
All operations must have operationIds
$.paths[*][*]
warn
census-tags-present
All operations should have tags for dataset grouping
$.paths[*][*]
warn
census-response-schema-defined
All 200 responses should define response schema
$.paths..responses.200.content.application/json
info
census-2d-array-response-described
The 2D array response format should be documented
$.paths..[?(@.tags && @.tags.includes('American Community Survey'))].description