DuckDuckGo搜索 API

DuckDuckGo搜索API允许用户集成DuckDuckGo的搜索功能,为各种应用提供搜索结果
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

关于API: 

DuckDuckGo搜索API是一个强大且易于使用的解决方案,允许用户将DuckDuckGo注重隐私的搜索功能无缝集成到他们的应用、网站和工具中。因为其对用户隐私的承诺和缺乏个性化追踪,DuckDuckGo为传统搜索引擎提供了一种替代方案,而该API将其搜索技术的好处扩展给寻求可靠且专注的隐私搜索解决方案的用户。

DuckDuckGo搜索API的核心使用户能够轻松添加DuckDuckGo的搜索功能。这种简单的交互允许您充分利用DuckDuckGo搜索引擎的强大功能,而无需复杂的实现,使其可用于各种应用和平台。

DuckDuckGo搜索API的一个重要特点是其搜索能力。用户可以期待最新的结果,以确保检索到的信息是最新的,并反映了互联网上可用的最新内容。这种实时功能对于信息时效性至关重要的应用和平台尤为宝贵。

总之,DuckDuckGo搜索API在搜索结果的交付中融合了隐私、简单性和效率的原则。通过允许用户将DuckDuckGo的搜索引擎无缝集成到他们的应用中,该API为用户提供了一种注重隐私的替代方案,促进了更安全和用户友好的在线体验。其能力使其成为那些希望通过隐私搜索解决方案增强应用的用户的宝贵资源。

 

该API接收什么以及您的API提供什么(输入/输出)?

它将接收参数并为您提供一个JSON。

 

这个API最常见的使用案例是什么?

  1. 研究工具的集成:将多个搜索引擎API无缝集成到研究工具中,以收集多样的观点和全面的信息。

    浏览器扩展:通过整合API来增强浏览器扩展,允许用户直接在浏览器中进行多次搜索。

    信息面板:为仪表板提供支持,能够从多个搜索引擎提取结果以进行全面的数据分析。

    内容创作工具:通过集成API来增强内容创作工具,使用户高效收集各种信息和参考资料。

    教育平台:将API集成到教育平台中,帮助学生进行更广范围的搜索引擎结果研究。

     

您的计划是否有任何限制?

每秒1次请求,适用于所有计划。

API 文档

端点


使用此工具在DuckDuck Go搜索引擎上查找搜索结果。获取第一页的结果。



                                                                            
GET https://zylalabs.com/api/3350/duckduckgo+search+api/3626/web+search
                                                                            
                                                                        

网页搜索 - 端点功能

对象 描述
q [必需] Enter your search term.
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {
   "Abstract" : "Manchester is a city and metropolitan borough of Greater Manchester, England, which had an estimated population of 568,996 in 2022. It contributes to the third-most populous metropolitan area in the United Kingdom as a part of Greater Manchester, which has a population of approximately 2.92 million. It is bordered by the Cheshire Plain to the south, the Pennines to the north and east, and the neighbouring city of Salford to the west. The city borders the boroughs of Trafford, Stockport, Tameside, Oldham, Rochdale, Bury and Salford. The history of Manchester began with the civilian settlement associated with the Roman fort of Mamucium or Mancunium, established c. AD 79 on a sandstone bluff near the confluence of the rivers Medlock and Irwell. Throughout the Middle Ages, Manchester remained a manorial township but began to expand \"at an astonishing rate\" around the turn of the 19th century.",
   "AbstractSource" : "Wikipedia",
   "AbstractText" : "Manchester is a city and metropolitan borough of Greater Manchester, England, which had an estimated population of 568,996 in 2022. It contributes to the third-most populous metropolitan area in the United Kingdom as a part of Greater Manchester, which has a population of approximately 2.92 million. It is bordered by the Cheshire Plain to the south, the Pennines to the north and east, and the neighbouring city of Salford to the west. The city borders the boroughs of Trafford, Stockport, Tameside, Oldham, Rochdale, Bury and Salford. The history of Manchester began with the civilian settlement associated with the Roman fort of Mamucium or Mancunium, established c. AD 79 on a sandstone bluff near the confluence of the rivers Medlock and Irwell. Throughout the Middle Ages, Manchester remained a manorial township but began to expand \"at an astonishing rate\" around the turn of the 19th century.",
   "AbstractURL" : "https://en.wikipedia.org/wiki/Manchester",
   "Answer" : "",
   "AnswerType" : "",
   "Definition" : "",
   "DefinitionSource" : "",
   "DefinitionURL" : "",
   "Entity" : "location",
   "Heading" : "Manchester",
   "Image" : "/i/46017d7df927cc94.jpg",
   "ImageHeight" : 270,
   "ImageIsLogo" : 0,
   "ImageWidth" : 404,
   "Infobox" : {
      "content" : [
         {
            "data_type" : "string",
            "label" : "Sovereign state",
            "value" : "United Kingdom",
            "wiki_order" : 0
         },
         {
            "data_type" : "string",
            "label" : "Country",
            "value" : "England",
            "wiki_order" : 1
         },
         {
            "data_type" : "string",
            "label" : "Region",
            "value" : "North West",
            "wiki_order" : 2
         },
         {
            "data_type" : "string",
            "label" : "Ceremonial county and city region",
            "value" : "Greater Manchester",
            "wiki_order" : 3
         },
         {
            "data_type" : "string",
            "label" : "Founded",
            "value" : "1st century AD",
            "wiki_order" : 4
         },
         {
            "data_type" : "string",
            "label" : "Town charter",
            "value" : "1301",
            "wiki_order" : 5
         },
         {
            "data_type" : "string",
            "label" : "City status",
            "value" : "29 March 1853",
            "wiki_order" : 6
         },
         {
            "data_type" : "string",
            "label" : "Metropolitan borough",
            "value" : "1 April 1974",
            "wiki_order" : 7
         },
         {
            "data_type" : "string",
            "label" : "Administrative HQ",
            "value" : "Manchester Town Hall",
            "wiki_order" : 8
         },
         {
            "data_type" : "string",
            "label" : "Type",
            "value" : "Metropolitan borough",
            "wiki_order" : 9
         },
         {
            "data_type" : "string",
            "label" : "Body",
            "value" : "Manchester City Council",
            "wiki_order" : 10
         },
         {
            "data_type" : "string",
            "label" : "Executive",
            "value" : "Leader and cabinet",
            "wiki_order" : 11
         },
         {
            "data_type" : "string",
            "label" : "Control",
            "value" : "Labour",
            "wiki_order" : 12
         },
         {
            "data_type" : "string",
            "label" : "Leader",
            "value" : "Bev Craig (L)",
            "wiki_order" : 13
         },
         {
            "data_type" : "string",
            "label" : "Lord Mayor",
            "value" : "Paul Andrews",
            "wiki_order" : 14
         },
         {
            "data_type" : "string",
            "label" : "Area rank",
            "value" : "204th",
            "wiki_order" : 15
         },
         {
            "data_type" : "string",
            "label" : "Population (mid-2014 est.)",
            "value" : "520,215",
            "wiki_order" : 16
         },
         {
            "data_type" : "string",
            "label" : "Rank",
            "value" : "6th",
            "wiki_order" : 17
         },
         {
            "data_type" : "string",
            "label" : "Demonym(s)",
            "value" : "Mancunian, Manc (colloq.)",
            "wiki_order" : 18
         },
         {
            "data_type" : "string",
            "label" : "Time zone",
            "value" : "GMT (UTC+0)",
            "wiki_order" : 19
         },
         {
            "data_type" : "string",
            "label" : "Summer (DST)",
            "value" : "BST (UTC+1)",
            "wiki_order" : 20
         },
         {
            "data_type" : "string",
            "label" : "Postcode area",
            "value" : "M, WA",
            "wiki_order" : 21
         },
         {
            "data_type" : "string",
            "label" : "Dialling code",
            "value" : "0161",
            "wiki_order" : 22
         },
         {
            "data_type" : "string",
            "label" : "ISO 3166 code",
            "value" : "GB-MAN",
            "wiki_order" : 23
         },
         {
            "data_type" : "string",
            "label" : "GSS code",
            "value" : "E08000003",
            "wiki_order" : 24
         },
         {
            "data_type" : "string",
            "label" : "Website",
            "value" : "[manchester.gov.uk]",
            "wiki_order" : 25
         },
         {
            "data_type" : "twitter_profile",
            "label" : "Twitter profile",
            "value" : "ManCityCouncil",
            "wiki_order" : "102"
         },
         {
            "data_type" : "coordinates",
            "label" : "Coordinates",
            "value" : {
               "altitude" : null,
               "globe" : "http://www.wikidata.org/entity/Q2",
               "latitude" : 53.466666666667,
               "longitude" : -2.2333333333333,
               "precision" : 0.016666666666667
            },
            "wiki_order" : "205"
         },
         {
            "data_type" : "area",
            "label" : "Area",
            "value" : {
               "amount" : "+115.6",
               "unit" : "http://www.wikidata.org/entity/Q712226"
            },
            "wiki_order" : "206"
         },
         {
            "data_type" : "instance",
            "label" : "Instance of",
            "value" : {
               "entity-type" : "item",
               "id" : "Q515",
               "numeric-id" : 515
            },
            "wiki_order" : "207"
         },
         {
            "data_type" : "instance_2",
            "label" : "Instance of",
            "value" : {
               "entity-type" : "item",
               "id" : "Q1549591",
               "numeric-id" : 1549591
            },
            "wiki_order" : "207"
         },
         {
            "data_type" : "instance_3",
            "label" : "Instance of",
            "value" : {
               "entity-type" : "item",
               "id" : "Q7897276",
               "numeric-id" : 7897276
            },
            "wiki_order" : "207"
         },
         {
            "data_type" : "official_website",
            "label" : "Official Website",
            "value" : "https://cms.manchester.gov.uk/",
            "wiki_order" : "208"
         },
         {
            "data_type" : "wd_description",
            "label" : "Wikidata description",
            "value" : "major city in Greater Manchester, England, UK",
            "wiki_order" : "210"
         },
         {
            "data_type" : "wikidata_id",
            "label" : "Wikidata id",
            "value" : "Q18125",
            "wiki_order" : "211"
         },
         {
            "data_type" : "wikidata_label",
            "label" : "Wikidata label",
            "value" : "Manchester",
            "wiki_order" : "212"
         },
         {
            "data_type" : "wikidata_aliases",
            "label" : "Wikidata aliases",
            "value" : [
               "Manchester",
               "Manchester, England",
               "Manchester, UK",
               "Cottonopolis",
               "Warehouse City",
               "Madchester",
               "Capital of the North",
               "Manchester, Lancashire"
            ],
            "wiki_order" : "213"
         },
         {
            "data_type" : "wiki_maps_trigger",
            "value" : "/local.js?&ha=1&lla=-2.2333333333333,53.466666666667:100&heading=Manchester&q=manchester",
            "wiki_order" : 999
         }
      ],
      "meta" : [
         {
            "data_type" : "string",
            "label" : "article_title",
            "value" : "Manchester"
         },
         {
            "data_type" : "string",
            "label" : "template_name",
            "value" : "infobox settlement"
         }
      ]
   },
   "OfficialDomain" : "manchester.gov.uk","_note":"Response truncated for documentation purposes"}
                                                                                                                                                                                                                    
                                                                                                    

网页搜索 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/3350/duckduckgo+search+api/3626/web+search?q=manchester' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 DuckDuckGo搜索 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

无长期承诺。随时升级、降级或取消。

🚀 企业版

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

DuckDuckGo搜索 API FAQs

要使用此API,用户必须指明搜索词以从DuckDuckGo获取结果

DuckDuckGo搜索API是一个工具,允许用户将DuckDuckGo搜索功能集成到他们的应用程序、网站或工具中

有不同的计划以适应所有口味,包括针对少量请求的免费试用,但您的速率是有限制的以避免滥用服务

Zyla为几乎所有编程语言提供了广泛的集成方法。您可以根据需要使用这些代码与您的项目集成

DuckDuckGo搜索API返回包含搜索结果的JSON数据,包括摘要、来源和相关链接。每个响应提供搜索查询结果的摘要

响应中的关键字段包括“摘要”(结果的总结)“摘要来源”(摘要的来源)和“摘要文本”(摘要的详细文本)这些字段帮助用户理解搜索结果的上下文

响应数据以JSON格式构造,键值对表示搜索结果的不同方面。这种组织方式便于解析和集成到应用程序中

该API提供有关广泛主题的信息,包括定义、摘要和指向文章或资源的链接。它涵盖了地理、历史和时事等各种类别

用户可以通过指定搜索词、地区和格式等参数来自定义他们的请求。这种灵活性使得搜索结果可以根据用户需求量身定制

用户可以从“摘要”和“摘要文本”字段提取相关信息,以在他们的应用程序中显示摘要或链接。这使得创建信息丰富的界面成为可能,从而增强用户体验

数据来源于各种信誉良好的平台,包括维基百科和其他公共信息库。这确保了广泛而可靠的搜索结果

数据的准确性通过持续更新和从可信平台获取来维持 API实时获取信息确保用户收到最新和相关的结果

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。

价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]


此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。

定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。

有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]

价格由月度或年度订阅决定,具体取决于所选计划。

API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。

Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。

要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。

要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。

要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。

"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。

是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。

您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。

7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。

当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。

付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。


相关 API


您可能还喜欢