FREE USAGE
DuckDuckGo Zero-click Info
DuckDuckGo Zero-click Info includes topic summaries, categories, disambiguation, official sites, !bang redirects, definitions and more. You can use this API for many things, e.g. define people, places, things, words and concepts; provides direct links to other services (via !bang syntax); list related topics; and gives official sites when available.

API Docs

Test Console

Tag Other

Methods

  • Zero Click Info

Zero Click Info (GET)

Our Zero-click Info API gives you free access to much of our topic summaries, categories, disambiguation, !bang redirects, definitions and more.

Parameters

query
STRING
Search terms

For example: "DuckDuckGo"

callback(optional)
STRING
Function to callback (for a JSONP formatted response).

For example: "process_duckduckgo"

no_redirect(optional)
NUMBER
1 to skip HTTP redirects (for !bang commands - see http://duckduckgo.com/bang.html).

For example: "1"

no_html(optional)
NUMBER
1 to remove HTML from text, e.g. bold and italics.

For example: "1"

skip_disambig(optional)
NUMBER
1 to skip disambiguation (D) Type.

For example: "1"

pretty(optional)
NUMBER
1 to make JSON look pretty.

For example: "1"

Results

Abstract
STRING
Topic summary (can contain HTML, e.g. italics).

For example: "DuckDuckGo is a search engine based in Valley Forge, Pennsylvania that uses information from crowd-sourced sites with the aim of augmenting traditional results and improving relevance."

AbstractSource
STRING
Name of source.

For example: "Wikipedia"

AbstractText
STRING
Topic summary (with no HTML).

For example: "DuckDuckGo is a search engine based in Valley Forge, Pennsylvania that uses information from crowd-sourced sites with the aim of augmenting traditional results and improving relevance."

AbstractURL
STRING
Deep link to expanded topic page in AbstractSource

For example: "http://en.wikipedia.org/wiki/DuckDuckGo"

Answer
STRING
Instant answer.

For example: "3"

AnswerType
STRING
Type of Answer, e.g. calc, color, digest, info, ip, iploc, phone, pw, rand, regexp, unicode, upc, or zip (see http://duckduckgo.com/goodies.html & http://duckduckgo.com/tech.html for examples).

For example: "calc"

Definition
STRING
Dictionary definition (may differ from Abstract).

For example: "barge definition: any of various boats."

DefinitionSource
STRING
Name of Definition source.

For example: "Merriam-Webster"

DefinitionURL
STRING
Deep link to expanded definition page in DefinitionSource.

For example: "http://www.merriam-webster.com/dictionary/barge"

Heading
STRING
name of topic that goes with Abstract

For example: "DuckDuckGo"

Image
STRING
Link to image that goes with Abstract

For example: "http://i.duck.co/i/3f8af7d7.png"

Redirect
STRING
!bang redirect URL (see http://duckduckgo.com/bang.html for details).

For example: "http://www.imdb.com/find?s=all&q=rushmore"

RelatedTopics
array of OBJECT
Array of internal links to related topics associated with Abstract.
Result
STRING
HTML link(s) to related topic(s).

For example: "<a href="http://duckduckgo.com/c/Internet_search_engines">Internet search engines</a>"

FirstURL
STRING
First URL in Result.

For example: "http://duckduckgo.com/c/Internet_search_engines"

Icon
OBJECT
Icon associated with related topic(s).
Height
NUMBER
Height of icon (in px).

For example: "16"

Width
NUMBER
Width of icon (in px).

For example: "16"

URL
STRING
URL of icon.

For example: "http://i.duck.co/i/duckduckgo.com.ico"

Text
STRING
Text from first URL.

For example: "Internet search engines"

Results
array of OBJECT
Array of external links associated with Abstract.
Result
STRING
HTML link(s) to external site(s).

For example: "<a href="http://duckduckgo.com/"><b>Official site</b></a><a href="http://duckduckgo.com/"></a>"

Text
STRING
Text from FirstURL.

For example: "Official site"

FirstURL
STRING
First URL in Result

For example: "http://duckduckgo.com/"

Icon
OBJECT
Icon associated with FirstURL.
Height
NUMBER
Height of icon (in px).

For example: "16"

Width
NUMBER
Width of icon (in px).

For example: "16"

URL
STRING
URL of icon.

For example: "http://i.duck.co/i/duckduckgo.com.ico"

Type
NONE
Response category, i.e. A (article), D (disambiguation), C (category), N (name), E (exclusive), or nothing.

For example: "A"

Example

JSON
{
  "Abstract": "DuckDuckGo is a search engine based in Valley Forge, Pennsylvania that uses information from crowd-sourced sites with the aim of augmenting traditional results and improving relevance.",
  "AbstractSource": "Wikipedia",
  "AbstractText": "DuckDuckGo is a search engine based in Valley Forge, Pennsylvania that uses information from crowd-sourced sites with the aim of augmenting traditional results and improving relevance.",
  "AbstractURL": "http://en.wikipedia.org/wiki/DuckDuckGo",
  "Answer": "3",
  "AnswerType": "calc",
  "Definition": "barge definition: any of various boats.",
  "DefinitionSource": "Merriam-Webster",
  "DefinitionURL": "http://www.merriam-webster.com/dictionary/barge",
  "Heading": "DuckDuckGo",
  "Image": "http://i.duck.co/i/3f8af7d7.png",
  "Redirect": "http://www.imdb.com/find?s=all&q=rushmore",
  "RelatedTopics": [
    {
      "Result": "<a href=\"http://duckduckgo.com/c/Internet_search_engines\">Internet search engines</a>",
      "FirstURL": "http://duckduckgo.com/c/Internet_search_engines",
      "Icon": {
        "Height": 16,
        "Width": 16,
        "URL": "http://i.duck.co/i/duckduckgo.com.ico"
      },
      "Text": "Internet search engines"
    }
  ],
  "Results": [
    {
      "Result": "<a href=\"http://duckduckgo.com/\"><b>Official site</b></a><a href=\"http://duckduckgo.com/\"></a>",
      "Text": "Official site",
      "FirstURL": "http://duckduckgo.com/",
      "Icon": {
        "Height": 16,
        "Width": 16,
        "URL": "http://i.duck.co/i/duckduckgo.com.ico"
      }
    }
  ],
  "Type": "A"
}

JSON (Learn how)

GET http://Alv9FMMJql6L2xfid2voKJuTs.proxy.mashape.com/?query=A-VALUE&callback=A-VALUE&no_redirect=A-VALUE&no_html=A-VALUE&skip_disambig=A-VALUE&pretty=A-VALUE&o=json
  • The required parameters have a yellow background, while the optional are gray
  • Authentication: Request a valid _token before making the API call. Learn how.

PHP (Learn how)

This client library will be auto-generated on the fly

Ruby (Learn how)

This client library will be auto-generated on the fly

Python (Learn how)

This client library will be auto-generated on the fly

Java (Learn how)

This client library will be auto-generated on the fly

Objective C (Learn how)

This client library will be auto-generated on the fly

Erlang (Learn how)

This client library will be auto-generated on the fly