the query string
TRUE to skip HTTP redirects (for !bang commands)
TRUE to remove html from results
TRUE to to skip disambiguation (D) Type.
the appname used to identify your application.
Always returns a list. If the API call was successful it contains the response of
the duckduckgo API as parsed by
fromJSON. In addition the object's
attributes contain additional meta data. Especially the
status attribute indicates
if something went wrong during the HTTP call or parsing of the JSON text.
In case the call was successful the
status attribute is equal to "OK".
In case something went wrong, the
status attribute is equal to "error" and in the
error attribute you will find more information. In particular the
type, which is
either "http_error" or "json_parse_error" depending on the error's source.
In case of a "http_error", there is an additional
In case of "json_parse_error", there is an additional
In addition there is always a
source element with the URL used to query the data.
1 2 3 4 5
## Not run: tmp <- duckduck_answer("duckduckgo") tmp$Abstract ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.