SerpBase
通用搜索可调用

DuckDuckGo Search

按查询及支持的市场、日期条件搜索 DuckDuckGo HTML。后续请求使用返回游标,而非页码。

接口地址
POST https://api.serpbase.dev/duckduckgo/search
价格
1 积分
鉴权方式
X-API-Key

只有成功的请求才收费。每个接口有固定的积分价格(大多是 1 或 2 积分),失败的请求会自动退还积分。 计费 →

示例

cURL
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"
}
参数 · 返回字段

常见问题

DuckDuckGo Search API 怎么收费?

每次请求消耗 1 积分。积分来自预付积分包或月度套餐,新账号自带免费积分。

如何调用 DuckDuckGo Search API?

向 https://api.serpbase.dev/duckduckgo/search 发送 POST 请求,并在 X-API-Key 请求头中带上你的 API Key。返回 JSON,请检查 status(0 表示成功)。

支持哪些设备?

支持的设备:desktop,默认 desktop。

DuckDuckGo Search API 现在可以用吗?

可以,任何有效的 API Key 都能调用。