Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

DuckDuckGo Search

API दस्तावेज़
https://api.sandbase.ai/v1/api/duckduckgo/search

DuckDuckGo organic search results for a keyword, with region and safe-search options.

मूल्य
$0.015USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 1 वैकल्पिक

प्लेग्राउंड

इनपुट
max 500 chars
region code, e.g. us-en
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

DuckDuckGo Search API

This API returns DuckDuckGo organic search results for a keyword. Each result has a title, link, snippet and position, and the response also lists related searches. It needs a query in q and accepts an optional region code in kl.

Use cases

  • Track which pages rank for a keyword in a given region, such as us-en.
  • Collect titles, links and snippets of top results to research a topic or a brand.
  • Read sitelinks to see which sub-pages DuckDuckGo shows under a main result.
  • Use related_searches to find follow-up queries for keyword research.

Request

curl -X POST "https://api.sandbase.ai/v1/api/duckduckgo/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "apple", "kl": "us-en"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
qstringYesmax 500 chars
klstringNoregion code, e.g. us-en

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "organic_results": [
    {
      "favicon": "https://external-content.duckduckgo.com/ip3/www.apple.com.ico",
      "link": "https://www.apple.com/",
      "position": 1,
      "sitelinks": [
        {
          "link": "https://www.apple.com/shop/buy-iphone/iphone-18-pro",
          "snippet": "Get $35-$885 off a new iPhone 18 Pro or iPhone 18 Pro Max when you trade in an i…",
          "title": "Shop Iphone 18 Pro"
        }
      ],
      "snippet": "Discover the innovative world of Apple and shop everything iPhone, iPad, Apple W…",
      "title": "Apple"
    }
  ],
  "related_searches": [
    {
      "link": "https://duckduckgo.com/?q=apple%20music%20login&origin=related",
      "query": "apple music login"
    }
  ],
  "search_information": {
    "organic_results_state": "Results for exact spelling"
  }
}

Response fields

FieldMeaning
organic_results[].titleTitle of the search result.
organic_results[].linkURL of the result page.
organic_results[].snippetShort text excerpt shown under the result title.
organic_results[].positionRank of the result in the list. The first result has position 1.
organic_results[].faviconURL of the site's icon image.
organic_results[].sitelinks[].title / organic_results[].sitelinks[].link / organic_results[].sitelinks[].snippetTitle, URL and snippet of a sub-page shown under a result. Only some results have sitelinks.
related_searches[].queryText of a related search suggestion.
related_searches[].linkDuckDuckGo URL that runs the related search.
search_information.organic_results_stateShort note on how the results match the query, for example Results for exact spelling.

Notes

  • q is required and can be up to 500 characters. kl sets the region and language, for example us-en.
  • The response has no pagination fields, and the request has no page parameter.
  • For news articles on a topic, call DuckDuckGo News Search. For places, call DuckDuckGo Maps.

Pricing

$0.015 per successful call. Failed calls are not charged.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
DuckDuckGo$0.015 प्रति कॉलJSON
DuckDuckGo$0.01 प्रति कॉलJSON
DuckDuckGo$0.01 प्रति कॉलJSON
DuckDuckGo$0.00015 प्रति कॉलअसिंक्रोनस JSON
DuckDuckGo$0.015 प्रति कॉलJSON
DuckDuckGo$0.01 प्रति कॉलJSON

प्रश्न

FAQ

DuckDuckGo Search API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/duckduckgo/search पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

DuckDuckGo Search API की लागत कितनी है?

$0.015 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

DuckDuckGo Search API कौन-से parameters स्वीकार करती है?

आवश्यक: q (string)। वैकल्पिक: kl (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

DuckDuckGo Search API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक DuckDuckGo developer account या API key चाहिए?

नहीं। DuckDuckGo Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से DuckDuckGo API access के लिए आवेदन करने की आवश्यकता नहीं है।