Access the API
The DuckDuckGo API is part of a bigger suite of SERP scraping solutions developed by our team.
The DuckDuckGo API works as a custom engine of our SERP API suite. Accessing the API is possible by sending GET requests via our official SERP API endpoint and by specifying the engine=duckduckgo parameter.
The official SERP API endpoint is:
https://serpapi.webscrapingapi.com/v2
You can use this as the base URL for the DuckDuckGo API https://serpapi.webscrapingapi.com/v2?api_key=<YOUR_API_KEY>&engine=duckduckgo
The API Key
All SERP API requests must include api_key. Requests without a valid key return 401 Unauthorized.
If you haven't obtained your API key, you can do so by registering an account here, followed by subscribing to our SERP API service. Once subscribed, your private API key will be available inside the Dashboard, under the SERP API section.
Examples use <YOUR_API_KEY> as the API key placeholder.
Make sure you store the API key in a safe, private file. Making your API key publicly available can affect the usage on your subscription plan.