running
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
Search terms
For example: "DuckDuckGo"
Function to callback (for a JSONP formatted response).
For example: "process_duckduckgo"
1 to skip HTTP redirects (for !bang commands - see http://duckduckgo.com/bang.html).
For example: "1"
1 to remove HTML from text, e.g. bold and italics.
For example: "1"
1 to skip disambiguation (D) Type.
For example: "1"
1 to make JSON look pretty.
For example: "1"
Results
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."
Name of source.
For example: "Wikipedia"
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."
Deep link to expanded topic page in AbstractSource
For example: "http://en.wikipedia.org/wiki/DuckDuckGo"
Instant answer.
For example: "3"
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"
Dictionary definition (may differ from Abstract).
For example: "barge definition: any of various boats."
Name of Definition source.
For example: "Merriam-Webster"
Deep link to expanded definition page in DefinitionSource.
For example: "http://www.merriam-webster.com/dictionary/barge"
name of topic that goes with Abstract
For example: "DuckDuckGo"
Link to image that goes with Abstract
For example: "http://i.duck.co/i/3f8af7d7.png"
!bang redirect URL (see http://duckduckgo.com/bang.html for details).
For example: "http://www.imdb.com/find?s=all&q=rushmore"
Array of internal links to related topics associated with Abstract.
HTML link(s) to related topic(s).
For example: "<a href="http://duckduckgo.com/c/Internet_search_engines">Internet search engines</a>"
First URL in Result.
For example: "http://duckduckgo.com/c/Internet_search_engines"
Icon associated with related topic(s).
Height of icon (in px).
For example: "16"
Width of icon (in px).
For example: "16"
URL of icon.
For example: "http://i.duck.co/i/duckduckgo.com.ico"
Text from first URL.
For example: "Internet search engines"
Array of external links associated with Abstract.
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 from FirstURL.
For example: "Official site"
First URL in Result
For example: "http://duckduckgo.com/"
Icon associated with FirstURL.
Height of icon (in px).
For example: "16"
Width of icon (in px).
For example: "16"
URL of icon.
For example: "http://i.duck.co/i/duckduckgo.com.ico"
Response category, i.e. A (article), D (disambiguation), C (category), N (name), E (exclusive), or nothing.
For example: "A"
Example
{
"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.
