Nominatim · API Governance Rules

Nominatim API Rules

Spectral linting rules defining API design standards and conventions for Nominatim.

9 Rules error 5 warn 3 info 1
View Rules File View on GitHub

Rule Categories

nominatim

Rules

error
nominatim-operation-summary-required
Every operation must include a Title-Cased summary.
$.paths[*][get,post,put,delete,patch]
warn
nominatim-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
nominatim-operation-id-camel
operationId must be lowerCamelCase or a single noun (search, reverse, lookup, details, status, deletable, polygons).
$.paths[*][get,post,put,delete,patch].operationId
error
nominatim-tags-required
Every operation must declare at least one tag.
$.paths[*][get,post,put,delete,patch]
error
nominatim-response-200-required
Every operation must define a 200 response.
$.paths[*][get,post,put,delete,patch].responses
warn
nominatim-format-parameter-enum
A format query parameter must enumerate Nominatim output formats.
$.paths[*][get].parameters[?(@.name=='format')].schema
error
nominatim-license-info
API info must declare the BSD-2-Clause license.
$.info.license
warn
nominatim-terms-of-service
API info must reference the OSMF Nominatim usage policy.
$.info
info
nominatim-rate-limit-doc
Description should mention the OSMF usage policy and 1 req/sec ceiling.
$.info.description

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, all]]
documentationUrl: https://nominatim.org/release-docs/develop/api/Overview/
rules:
  nominatim-operation-summary-required:
    description: Every operation must include a Title-Cased summary.
    severity: error
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: summary
      function: truthy
  nominatim-operation-summary-title-case:
    description: Operation summaries must use Title Case.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch].summary
    then:
      function: pattern
      functionOptions:
        match: '^[A-Z][A-Za-z0-9]*( ([A-Z][A-Za-z0-9]*|Or|And|For|In|On|To|By|Of|The|A|An))*$'
  nominatim-operation-id-camel:
    description: operationId must be lowerCamelCase or a single noun (search, reverse, lookup, details, status, deletable, polygons).
    severity: error
    given: $.paths[*][get,post,put,delete,patch].operationId
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]*$'
  nominatim-tags-required:
    description: Every operation must declare at least one tag.
    severity: error
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: tags
      function: truthy
  nominatim-response-200-required:
    description: Every operation must define a 200 response.
    severity: error
    given: $.paths[*][get,post,put,delete,patch].responses
    then:
      field: '200'
      function: truthy
  nominatim-format-parameter-enum:
    description: A format query parameter must enumerate Nominatim output formats.
    severity: warn
    given: $.paths[*][get].parameters[?(@.name=='format')].schema
    then:
      field: enum
      function: truthy
  nominatim-license-info:
    description: API info must declare the BSD-2-Clause license.
    severity: error
    given: $.info.license
    then:
      field: name
      function: pattern
      functionOptions:
        match: '^BSD-2-Clause$'
  nominatim-terms-of-service:
    description: API info must reference the OSMF Nominatim usage policy.
    severity: warn
    given: $.info
    then:
      field: termsOfService
      function: pattern
      functionOptions:
        match: 'operations\.osmfoundation\.org/policies/nominatim'
  nominatim-rate-limit-doc:
    description: Description should mention the OSMF usage policy and 1 req/sec ceiling.
    severity: info
    given: $.info.description
    then:
      function: pattern
      functionOptions:
        match: '(1 request per second|Usage Policy|usage policy)'

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/nominatim-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.