API reference · Search engines
DuckDuckGo Search
Search DuckDuckGo HTML results by query, with supported market and date filters. Continuation uses the returned cursor, not numbered pages.
Example
curl -X POST 'https://api.serpbase.dev/duckduckgo/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"query":"coffee shops"}'{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "duckduckgo_search",
"query": "coffee shops",
"action": "search",
"organic": [
{
"display_link": "www.tripadvisor.com/Restaurants-g303957-c8-Pekanbaru_Riau_Province_Sumatra.html",
"link": "https://www.tripadvisor.com/Restaurants-g303957-c8-Pekanbaru_Riau_Province_Sumatra.html",
"position": 1,
"rank": 1,
"snippet": "Best Cafés in Pekanbaru, Riau Province: Find Tripadvisor traveller reviews of Pekanbaru Cafés and se…",
"title": "THE 10 BEST Cafés in Pekanbaru (Updated 2026) - Tripadvisor",
"url": "https://www.tripadvisor.com/Restaurants-g303957-c8-Pekanbaru_Riau_Province_Sumatra.html"
},
{
"display_link": "tempatwisataseru.com/cafe-tempat-nongkrong-di-pekanbaru-paling-hits-cozy-abis/",
"link": "https://tempatwisataseru.com/cafe-tempat-nongkrong-di-pekanbaru-paling-hits-cozy-abis/",
"position": 2,
"rank": 2,
"snippet": "Tempat nongkrong di Pekanbaru yang terakhir adalah pesona coffee Pekanbaru yang berada di kawasan ja…",
"title": "28 Cafe & Tempat Nongkrong di Pekanbaru Paling Hits, Cozy Abis!",
"url": "https://tempatwisataseru.com/cafe-tempat-nongkrong-di-pekanbaru-paling-hits-cozy-abis/"
}
],
"pagination": {
"has_more": true,
"next_cursor": "eyJhcGkiOlsiZC5qcyJdLCJkYyI6WyIxMSJdLCJrbCI6WyJ3dC13dCJdLCJuZXh0UGFyYW1zIjpbIiJdLCJvIjpbImpzb24iXSwi…"
},
"search_type": "search",
"search_url": "https://html.duckduckgo.com/html/?q=coffee+shops",
"source": "duckduckgo",
"url": "https://html.duckduckgo.com/html/?q=coffee+shops"
}Parameters
formatMore
markdown returns the same result as Markdown text (text/markdown) for language models: no envelope, no duplicate alias fields, no inline images. Same credits; failures keep the JSON envelope.
querycountryMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
cursorMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
deviceMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
dfMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
glMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
hlMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
htmlMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
klMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
languageMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
limitMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
markdownMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
mobileMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
next_page_tokenMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
numMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
pageMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
qMore
Use one spelling at a time; the API validates the parameters and values supported by this product.
The sample shows example parameters, not the complete request contract. Known fields are validated by the API; additional parameters are allowed.
What comes back
The fields are those in the response above; every endpoint also carries status, credits_charged and request_id.
If it fails
A failed request has a non-zero status and an error, and is not charged. The ones you will see here:
1000A parameter is missing or wrongFix the request1020No credits leftTop up1029Over your requests per secondWait Retry-After seconds1502 · 1504The source could not be read this timeRetry