Duck Duck Go搜索API作为访问DuckDuckGo广泛搜索结果数据库的入口,为用户提供了一整套工具,以便访问和利用这些宝贵的数据。凭借直观的界面,用户可以无缝地将DuckDuckGo搜索结果融入他们的项目,使得在应用程序中直接访问相关的以隐私为导向的搜索结果成为可能。
除了其以隐私为中心的理念外,Duck Duck Go搜索API还提供了广泛的功能和特性,增强了其对用户的实用性。例如,用户可以利用API执行高级搜索查询,基于特定标准优化搜索结果,并为每个搜索结果检索详细的元数据,包括标题、描述、URL等。
总而言之,Duck Duck Go搜索API为开发者提供了一个强大的、聚焦隐私的解决方案,以便将搜索结果集成到他们的应用程序中。凭借对用户隐私的坚定承诺、全面的功能集和详尽的文档,Duck Duck Go搜索API成为希望在不妥协用户隐私的情况下提升其应用程序搜索体验的用户的重要资源。
这个API接收什么,提供什么(输入/输出)?
它将接收参数并提供您一个JSON。
所有计划每秒5个请求。
要使用此端点,您必须在参数中指明搜索词
获得结果 - 端点功能
| 对象 | 描述 |
|---|---|
q |
[必需] Indicates a term |
{"status":"success","query":"iphone","results":[{"position":1,"url":"https:\/\/www.apple.com\/iphone\/","title":"iPhone - Apple","description":"iPhone is known for its iconic design and premium materials \u2014 like iPhone 16 Pro, which is forged in titanium. On the brilliant display, Dynamic Island bubbles up important info so you don't miss a beat.","description_html":"<b>iPhone<\/b> is known for its iconic design and premium materials \u2014 like <b>iPhone<\/b> 16 Pro, which is forged in titanium. On the brilliant display, Dynamic Island bubbles up important info so you don't miss a beat.","types":"products","host":"www.apple.com","sublinks":[{"snippet":"Compare features and technical specifications for iPhone 16 Pro, iPhone 16 Pro Max, iPhone 16, iPhone 16 Plus, iPhone SE, and many more.","targetUrl":"https:\/\/www.apple.com\/iphone\/compare\/","text":"Compare Models"},{"snippet":"Shop the latest iPhone models and accessories. Save with Apple Trade In, carrier offers, and flexible monthly payment options. Get expert help today.","targetUrl":"https:\/\/www.apple.com\/shop\/buy-iphone","text":"Buy iPhone"},{"snippet":"Learn how to set up and use your iPhone. Find all the topics, resources, and contact options you need for iPhone.","targetUrl":"https:\/\/support.apple.com\/iphone","text":"Official Apple Support"},{"snippet":"\u00b0 T-Mobile iPhone 14 Special Deal: Monthly price (if shown) reflects net monthly payment, after application of T-Mobile trade-in credit applied over 24 months with purchase of an iPhone 14 or iPhone 14 Plus and trade-in of eligible smartphone. Receive credit with purchase of an iPhone 14 or 14 Plus of $999, $800 or $400 for customers on a Go5G ...","targetUrl":"https:\/\/www.apple.com\/shop\/buy-iphone\/iphone-14","text":"iPhone 14 and iPhone 14 Plus"},{"snippet":"Pricing shown for iPhone 15 and iPhone 15 Plus includes a $30 connectivity discount for Boost Mobile, T\u2011Mobile, and Verizon customers that requires activation and would otherwise be $30 higher for all other customers. ** AT&T iPhone SE Special Deal: Buy an iPhone SE 64 GB and get $358.36 in bill credits applied over 36 months. Buy an iPhone ...","targetUrl":"https:\/\/www.apple.com\/iphone-se\/","text":"iPhone Se"},{"snippet":"Pricing shown for iPhone 15 and iPhone 15 Plus includes a $30 connectivity discount for Boost Mobile, T\u2011Mobile, and Verizon customers that requires activation and would otherwise be $30 higher for all other customers. Trade\u2011in values may vary, and are based on the condition and model of your trade\u2011in device.","targetUrl":"https:\/\/www.apple.com\/iphone\/switch\/","text":"Switch to iPhone"}]},{"position":2,"url":"https:\/\/www.apple.com\/shop\/buy-iphone","title":"Buy iPhone - Apple","description":"Shop the latest iPhone models and accessories. Save with Apple Trade In, carrier offers, and flexible monthly payment options. Get expert help today.","description_html":"Shop the latest <b>iPhone<\/b> models and accessories. Save with Apple Trade In, carrier offers, and flexible monthly payment options. Get expert help today.","types":"","host":"www.apple.com","sublinks":[]},{"position":3,"url":"https:\/\/www.apple.com\/iphone\/buy\/","title":"iPhone - Buying iPhone - Apple","description":"Purchase your next iPhone from the Apple Store. Get answers about carriers, offers, payments, trade-in, setup, and more.","description_html":"Purchase your next <b>iPhone<\/b> from the Apple Store. Get answers about carriers, offers, payments, trade-in, setup, and more.","types":"products","host":"www.apple.com","sublinks":[]},{"position":4,"url":"https:\/\/www.bestbuy.com\/site\/mobile-cell-phones\/iphone\/pcmcat305200050000.c?id=pcmcat305200050000","title":"iPhone: New Apple iPhones & Accessories - Best Buy","description":"Shop Best Buy for the latest Apple iPhone and accessories. Check out the newest iPhone or other popular iPhone models.","description_html":"Shop Best Buy for the latest Apple <b>iPhone<\/b> and accessories. Check out the newest <b>iPhone<\/b> or other popular <b>iPhone<\/b> models.","types":"translations","host":"www.bestbuy.com","sublinks":[]},{"position":5,"url":"https:\/\/www.cnet.com\/tech\/mobile\/best-iphone\/","title":"Best iPhone in 2024: Which Apple Phone Should You Buy?","description":"Whether you're eyeing the iPhone 16 or a discounted iPhone 15, we tested them all to help you find the best iPhone for your needs.","description_html":"Whether you're eyeing the <b>iPhone<\/b> 16 or a discounted <b>iPhone<\/b> 15, we tested them all to help you find the best <b>iPhone<\/b> for your needs.","types":"news","host":"www.cnet.com","sublinks":[]},{"position":6,"url":"https:\/\/support.apple.com\/iphone","title":"iPhone - Official Apple Support","description":"Learn how to set up and use your iPhone. Find all the topics, resources, and contact options you need for iPhone.","description_html":"Learn how to set up and use your <b>iPhone<\/b>. Find all the topics, resources, and contact options you need for <b>iPhone<\/b>.","types":"","host":"support.apple.com","sublinks":[]},{"position":7,"url":"https:\/\/www.tomsguide.com\/us\/best-apple-iphone,review-6348.html","title":"Best iPhones in 2024: Which iPhone should you buy? - Tom's Guide","description":"The iPhone 16 Pro Max is the best iPhone you can buy, sporting the biggest screen, most powerful chipset and best cameras.","description_html":"The <b>iPhone<\/b> 16 Pro Max is the best <b>iPhone<\/b> you can buy, sporting the biggest screen, most powerful chipset and best cameras.","types":"","host":"www.tomsguide.com","sublinks":[]},{"position":8,"url":"https:\/\/www.att.com\/stores\/new-jersey\/piscataway\/iphone-12","title":"iPhone 12 in Piscataway, NJ | - Buy Online & Pickup in Store | AT&T","description":"Find the iPhone 12 in Piscataway, NJ from AT&T or shop online & choose a delivery option that suits your needs, including free express shipping.","description_html":"Find the <b>iPhone<\/b> 12 in Piscataway, NJ from AT&T or shop online & choose a delivery option that suits your needs, including free express shipping.","types":"","host":"www.att.com","sublinks":[]},{"position":9,"url":"https:\/\/www.verizon.com\/smartphones\/apple\/","title":"Shop Apple smartphones - Verizon","description":"Apple's latest iPhone is the 16 series, which includes iPhone 16, iPhone 16 Plus, iPhone 16 Pro, and iPhone 16 Pro Max. Every new iPhone generation pushes the envelope a little further making buying the latest model exciting. For example, the new iPhone 16 series comes with USB-C charging, faster A18 and A18 Pro chips, the new Camera Control button, Dynamic Island, and more. Exploring some of ...","description_html":"Apple's latest <b>iPhone<\/b> is the 16 series, which includes <b>iPhone<\/b> 16, <b>iPhone<\/b> 16 Plus, <b>iPhone<\/b> 16 Pro, and <b>iPhone<\/b> 16 Pro Max. Every new <b>iPhone<\/b> generation pushes the envelope a little further making buying the latest model exciting. For example, the new <b>iPhone<\/b> 16 series comes with USB-C charging, faster A18 and A18 Pro chips, the new Camera Control button, Dynamic Island, and more. Exploring some of ...","types":"","host":"www.verizon.com","sublinks":[]},{"position":10,"url":"https:\/\/www.att.com\/stores\/new-jersey\/piscataway\/iphone-16","title":"Shop iPhone 16, iPhone 16 Pro, & iPhone 16 Pro Max in Piscataway, NJ ...","description":"Get iPhone 16 in Piscataway, NJ Discover the full range of iPhone 16 models, including the iPhone 16 Plus, iPhone 16 Pro, and iPhone 16 Pro Max, available now in Piscataway.","description_html":"Get <b>iPhone<\/b> 16 in Piscataway, NJ Discover the full range of <b>iPhone<\/b> 16 models, including the <b>iPhone<\/b> 16 Plus, <b>iPhone<\/b> 16 Pro, and <b>iPhone<\/b> 16 Pro Max, available now in Piscataway.","types":"","host":"www.att.com","sublinks":[]}]}
curl --location --request GET 'https://zylalabs.com/api/4136/duck+duck+go+search+api/4996/get+results?q=iphone' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
要使用此API,用户必须输入搜索词以获取结果列表及其元数据
Duck Duck Go搜索API允许用户将搜索结果直接集成到他们的网站、应用程序和服务中
有不同的计划以满足所有需求,包括对少量请求的免费试用,但您的速率是有限的以避免滥用服务
Zyla为几乎所有编程语言提供了广泛的集成方法。您可以根据需要使用这些代码与您的项目集成
Duck Duck Go 搜索 API 是一个对重视用户隐私、搜索结果公平性和数据处理透明度的人们具有吸引力的选择
API返回一个包含搜索结果的JSON对象,包括标题、描述、URL和其他元数据,如位置和结果类型
响应中的关键字段包括“状态”“查询”“结果”(包含结果对象的数组),在每个结果中,还有“位置”“网址”“标题”和“描述”等字段
响应数据被构造成一个具有顶级状态和查询的JSON对象,后面跟着一个结果数组。每个结果对象包含关于个别搜索结果的详细信息
GET结果端点的主要参数是搜索词,用户必须指定此参数以检索相关的搜索结果
该API提供的信息包括网页标题、URL、描述以及额外的元数据,如摘要和相关链接,从而实现全面的搜索结果整合
数据准确性通过DuckDuckGo对提供来自各种可信网站的可靠搜索结果的承诺得以保持,确保用户获得相关和最新的信息
典型的用例包括在应用程序中嵌入搜索结果 进行数据分析 以及通过根据搜索查询提供个性化内容推荐来增强用户体验
用户可以解析 JSON 响应以提取相关字段 在他们的应用程序中显示搜索结果 并根据用户交互使用元数据进行进一步分析或内容推荐
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 日之前提交请求,您的付款将在此时间范围内处理。
服务级别:
100%
响应时间:
1,645ms
服务级别:
100%
响应时间:
3,312ms
服务级别:
100%
响应时间:
1,583ms
服务级别:
100%
响应时间:
2,398ms
服务级别:
100%
响应时间:
761ms
服务级别:
100%
响应时间:
9,005ms
服务级别:
100%
响应时间:
3,442ms
服务级别:
100%
响应时间:
2,745ms
服务级别:
100%
响应时间:
2,128ms
服务级别:
100%
响应时间:
1,002ms