API Parameters
DuckDuckGo Search API request parameters.
Set engine=duckduckgo for every DuckDuckGo Search API request.
The DuckDuckGo engine uses query parameters to control region, interface language, safe search, and time filtering. Send them to the DuckDuckGo Search API endpoint.
| Parameter | Required | Type | Description |
|---|---|---|---|
api_key | ✅ | string | Your SERP API key. See Access the API. |
engine | ✅ | string | Must be duckduckgo. |
q | ✅ | string | Search query. |
kl | ❌ | string | Country and language code for the search, such as en_US. See the geo parameter options. |
kad | ❌ | string | Interface language for DuckDuckGo controls and labels. See the interface language options. |
kp | ❌ | int | Safe search mode: 1 for on, -1 for moderate, -2 for off. |
df | ❌ | string | Time range: d past day, w past week, m past month, y past year. Omit for any time. |