This Choreo queries DuckDuckGo's Instant Answer API and retrieves topic summaries, disambiguation, categories, !bang redirects, definitions and other features described here.
The Choreo makes an HTTP GET request to the http://api.duckduckgo.com/ endpoint, which is described here.
Queries can be displayed in JSON or XML by setting the input variable Format to the desired response format. If JSON is chosen, additionally the following optional parameters can also be set:
- PrettyPrint
- NoRedirect
- NoHTML
- SkipDisambiguation
Here's an example query:
- Format: json
- PrettyPrint: 1
- Query: webos
Note: Not all Zero-click Info is available via this API for a variety of reasons. When information for a query is not available, an empty result set is returned.
The following is the JSON information returned by this Choreo:
{
"Definition" : "After HP's acquisition of Palm in 2010, webOS made its way into a subsequent line of tablet PCs.",
"DefinitionSource" : "",
"Heading" : "webOS",
"AbstractSource" : "Wikipedia",
"Image" : "http://i.duck.co/i/7f4d5414.png",
"RelatedTopics" : [
{
"Result" : "<a href=\"http://duckduckgo.com/Access_Linux_Platform\">Access Linux Platform</a> - The Access Linux Platform, once referred to as a \"next-generation version of the Palm OS\" is an open source-based operating system for mobile devices developed and marketed by Access Co., of Tok...",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/Access_Linux_Platform",
"Text" : "Access Linux Platform - The Access Linux Platform, once referred to as a \"next-generation version of the Palm OS\" is an open source-based operating system for mobile devices developed and marketed by Access Co., of Tok..."
},
{
"Result" : "<a href=\"http://duckduckgo.com/mobile_operating_system\">Mobile platform</a> - A mobile operating system, also known as a mobile OS, mobile software platform or a handheld operating system, is the operating system that controls a mobile device or informat...",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/mobile_operating_system",
"Text" : "Mobile platform - A mobile operating system, also known as a mobile OS, mobile software platform or a handheld operating system, is the operating system that controls a mobile device or informat..."
},
{
"Result" : "<a href=\"http://duckduckgo.com/c/Palm%2C_Inc.\">Palm, Inc.</a>",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/c/Palm%2C_Inc.",
"Text" : "Palm, Inc."
},
{
"Result" : "<a href=\"http://duckduckgo.com/c/Mobile_operating_systems\">Mobile operating systems</a>",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/c/Mobile_operating_systems",
"Text" : "Mobile operating systems"
},
{
"Result" : "<a href=\"http://duckduckgo.com/c/Mobile_Linux\">Mobile Linux</a>",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/c/Mobile_Linux",
"Text" : "Mobile Linux"
},
{
"Result" : "<a href=\"http://duckduckgo.com/c/Mobile_phone_operating_systems\">Mobile phone operating systems</a>",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/c/Mobile_phone_operating_systems",
"Text" : "Mobile phone operating systems"
},
{
"Result" : "<a href=\"http://duckduckgo.com/c/Software_based_on_Webkit\">Software based on Webkit</a>",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/c/Software_based_on_Webkit",
"Text" : "Software based on Webkit"
},
{
"Result" : "<a href=\"http://duckduckgo.com/c/Palm_webOS\">Palm webOS</a>",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/c/Palm_webOS",
"Text" : "Palm webOS"
},
{
"Result" : "<a href=\"http://duckduckgo.com/c/Smartphones\">Smartphones</a>",
"Icon" : {
"URL" : "",
"Height" : "",
"Width" : ""
},
"FirstURL" : "http://duckduckgo.com/c/Smartphones",
"Text" : "Smartphones"
}
],
"AbstractText" : "HP webOS is a mobile operating system based on a Linux kernel, initially developed by Palm, which was later acquired by Hewlett-Packard.",
"Abstract" : "HP webOS is a mobile operating system based on a Linux kernel, initially developed by Palm, which was later acquired by Hewlett-Packard.",
"AnswerType" : "",
"Redirect" : "",
"Type" : "A",
"DefinitionURL" : "",
"Answer" : "",
"Results" : [
{
"Result" : "<a href=\"http://developer.palm.com/\"><b>Official site</b></a><a href=\"http://developer.palm.com/\"></a>",
"Icon" : {
"URL" : "http://i.duck.co/i/developer.palm.com.ico",
"Height" : 16,
"Width" : 16
},
"FirstURL" : "http://developer.palm.com/",
"Text" : "Official site"
}
],
"AbstractURL" : "http://en.wikipedia.org/wiki/webOS"
}