DuckDuckGo · API Governance Rules
DuckDuckGo API Rules
Spectral linting rules defining API design standards and conventions for DuckDuckGo.
DuckDuckGo API Rules is a Spectral governance ruleset published by DuckDuckGo on the APIs.io network, containing 7 lint rules.
The ruleset includes 4 error-severity rules and 3 warning-severity rules.
Tagged areas include Search, Privacy, Browser, AI Chat, and Email Protection.
Rulesets can be applied to your own OpenAPI specs via Spectral to enforce the same governance standards.
7 Rules
error 4
warn 3
Rule Categories
ddg
Rules
error
ddg-info-contact
DuckDuckGo specs must declare a contact pointing at https://duckduckgo.com/api.
$.info.contact
error
ddg-server-https-api-host
The Instant Answer server must be api.duckduckgo.com over HTTPS.
$.servers[*].url
error
ddg-operation-id-camel
Operation IDs must be lowerCamelCase.
$.paths.*.*.operationId
warn
ddg-operation-summary-title-case
Operation summaries should use Title Case.
$.paths.*.*.summary
warn
ddg-query-format-enum
The `format` query parameter must be enumerated to json, xml.
$.paths.*.*.parameters[?(@.name == 'format')]
error
ddg-required-q-parameter
Every operation must accept a required `q` query parameter.
$.paths.*.get
warn
ddg-response-includes-redirect
Instant Answer responses must document a Redirect field for !bang support.
$.components.schemas.InstantAnswer.properties