GroundsocialDocs

API · DuckDuckGo

GET /duckduckgo/instant-answer

DuckDuckGo’s Instant Answer for a topic: abstract, infobox, related topics.

RequestGET /v1/duckduckgo/instant-answer
Operation idduckduckgo.instant_answer.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

DuckDuckGo’s Instant Answer for a topic: abstract, infobox, related topics.

Query parameters

NameTypeRequiredDescription
querystringyesExample: Albert Einstein.

Responses

StatusMeaningSchema
200The Instant Answer.DuckDuckGoInstantAnswer
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404DuckDuckGo has nothing for that search.Error
429Too many requests. Wait for Retry-After seconds.Error
503DuckDuckGo is temporarily unavailable. Retryable; nothing was charged.Error

DuckDuckGoInstantAnswer fields

FieldTypeDescription
Headingstring
Abstractstring
AbstractTextstring
AbstractSourcestring
AbstractURLstring
Imagestring
Typestring
Answerobject
Definitionstring
Entitystring
Infoboxobject
RelatedTopicsobject[]
Resultsobject[]

Errors use one shape everywhere; see Errors for every code and what to do.