searchduckduckgo-api

DuckDuckGo API - How to get more results?


The default search using the DuckDuckGo API returns only the results on the first page (around 25 I guess). Is there any way to get more results or navigate to the 2nd, 3rd pages of the search results?

Websites like Faroo have a parameter called s (which stands for start) which can be set to 1 if we want the first 10 results, to 11 if we want the next 10 results and so on. Is there something like that for DuckDuckGo, too?


Solution

  • According to DuckDuckGo Search API documentation, all the available parameters are:

    q: query

    format: output format (json or xml)

    If format=='json', you can also pass:

    callback: function to callback (JSONP format) pretty: 1 to make JSON look pretty (like JSONView for Chrome/Firefox)

    no_redirect: 1 to skip HTTP redirects (for !bang commands).

    no_html: 1 to remove HTML from text, e.g. bold and italics.

    skip_disambig: 1 to skip disambiguation (D) Type.

    In particular, note that:

    This API does not include all of our links, however. That is, it is not a full search results API or a way to get DuckDuckGo results into your applications beyond our instant answers.