DuckDuckGo
App · Web Search · 1 action
Search the web with DuckDuckGo's Instant Answer API: topic summaries, direct answers, definitions, and related links.
Search the web
Search the web with DuckDuckGo and get an instant answer: a topic summary, a direct answer or definition when one exists, and a list of related links. No API key required.
Inputs
- Query
querytextRequired - What to search for.
- Keep instant answers for !bang searches
no_redirecttrue/false - When on, a query that starts with a DuckDuckGo !bang (like '!w cats') returns instant-answer data instead of redirecting to the external site. On by default.Default:
true. - Skip disambiguation pages
skip_disambigtrue/false - When on, an ambiguous term returns its most likely single meaning instead of a list of possible meanings. On by default.Default:
true.
Outputs
abstracttext- A short summary of the topic.
abstract_sourcetext- Where the summary came from (e.g. Wikipedia).
abstract_urltext- A link to the summary's source page.
answertext- A direct answer (e.g. for a calculation), if any.
answer_typetext- The kind of direct answer (e.g. 'calc').
definitiontext- A dictionary definition of the term, if any.
definition_sourcetext- Where the definition came from.
definition_urltext- A link to the definition's source.
headingtext- The title of the matched topic, if any.
imagetext- An image URL for the topic, if any.
querytext- The query that was searched.
related_topicslist- Related links, each with text, url, and icon.
response_typetext- DuckDuckGo's answer category: A=article, D=disambiguation, C=category, N=name, E=exclusive, or empty when there is no instant answer.
result_countnumber- How many related topics were returned.
resultslist- The topic's official site links, if any.
Example output
{
"abstract": "DuckDuckGo is an internet search engine that emphasizes protecting searchers' privacy.",
"abstract_source": "Wikipedia",
"abstract_url": "https://en.wikipedia.org/wiki/DuckDuckGo",
"answer": "",
"answer_type": "",
"definition": "",
"definition_source": "",
"definition_url": "",
"heading": "DuckDuckGo",
"image": "https://duckduckgo.com/i/ea7be744.png",
"query": "duckduckgo",
"related_topics": [
{
"icon": "https://duckduckgo.com/i/9c9d4a90.png",
"text": "Search engine - a software system for finding information.",
"url": "https://duckduckgo.com/Search_engine"
}
],
"response_type": "A",
"result_count": 1,
"results": [
{
"icon": "https://duckduckgo.com/i/ea7be744.png",
"text": "Official site",
"url": "https://duckduckgo.com"
}
]
}