Country State City API · API Governance Rules
Country State City API API Rules
Spectral linting rules defining API design standards and conventions for Country State City API.
7 Rules
error 4
warn 3
Rule Categories
csc
Rules
error
csc-info-title
API title must mention Country State City.
$.info.title
warn
csc-server-base-url
Servers must reference https://api.countrystatecity.in/v1.
$.servers[*].url
error
csc-api-key-security
Spec must define an X-CSCAPI-KEY API key security scheme.
$.components.securitySchemes
warn
csc-global-security
API must apply the API key security globally.
$
error
csc-operation-id
Every operation must define an operationId.
$.paths.*.get
error
csc-operation-tags
Every operation must define at least one tag.
$.paths.*.get
warn
csc-401-response
All authenticated operations should document a 401 response.
$.paths.*.get.responses
Spectral Ruleset
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.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/country-state-city-api-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.