Scrapingdog

DuckDuckGo Search API

The DuckDuckGo Search API retrieves organic search results from DuckDuckGo with support for region codes, date filters, and pagination via next page tokens.

Endpoint: https://api.scrapingdog.com/duckduckgo/search

API Parameters

πŸ”‘

Scrapingdog Parameters

  • api_key Required
    Your personal API key. Available on your dashboard.

    Type: String
  • html Optional
    This will return the full HTML of the Google page.

    Default Value - false

    Type: String
πŸ”

Search Query

  • query Required
    This parameter specifies the search query. You can enter any terms or operators you would normally use in a standard DuckDuckGo search (e.g., inurl:, site:, intitle:, etc.).

    Type: String
🌍

Localization

  • kl Optional
    This parameter sets the region for the DuckDuckGo search. For example: us-en for the United States, uk-en for the United Kingdom, or fr-fr for France. See Supported Regions

    Type: String
βš™

️ Advanced DuckDuckGo Filters

  • df Optional
    This parameter filters results by date. Options include: d (Past day), w (Past week), m (Past month), y (Past year). You can also specify a custom range using the format: from_date..to_date (e.g., 2021-06-15..2024-06-16).

    Type: String
πŸ“„

Pagination

  • next_page_token Optional
    This parameter specifies the next page token, used to fetch subsequent results. Each page returns 15 results.

    Type: String

API Examples

Code to Integrate
curl "https://api.scrapingdog.com/duckduckgo/search?api_key=APIKEY&query=football"
API Response
{
  "organic_results": [
    {
      "title": "Order NFL Football Tickets - 2025 Full Event Schedule",
      "displayed_link": "tickets-center.com",
      "link": "https://duckduckgo.com/y.js?...",
      "snippet": "2025 Pittsburgh Steelers Tickets & Schedule...",
      "rank": 1
    },
    {
      "title": "NFL.com | Official Site of the National Football League",
      "displayed_link": "www.nfl.com",
      "link": "https://www.nfl.com/",
      "snippet": "The official source for NFL news, video highlights.",
      "rank": 2
    },
    {
      "title": "NFL on ESPN - Scores, Stats and Highlights",
      "displayed_link": "www.espn.com/nfl/",
      "link": "https://www.espn.com/nfl/",
      "snippet": "Visit ESPN for NFL live scores, video highlights.",
      "rank": 3
    }
  ],
  "next_page_token": "eyJxIjoiZm9vdGJhbGwiLCJzIjoiMTAifQ=="
}