Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

DuckDuckGo News Search

API 文件
https://api.sandbase.ai/v1/api/duckduckgo/news

DuckDuckGo News results for a keyword: headline, source, date, snippet and link.

價格
$0.015美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
q
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

DuckDuckGo News Search API

This API returns DuckDuckGo News results for a keyword. Each result has a headline, source name, relative date, snippet, link and thumbnail. It needs one input: the search term in q.

Use cases

  • Track news mentions of a brand or product name such as apple.
  • Build a headline feed for a topic page or dashboard.
  • Collect article links and snippets for a media monitoring report.
  • Check which outlets cover a subject by counting the source values.

Request

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

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

Parameters

NameTypeRequiredDescription
qstringYesq

Example response

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

{
  "news_results": [
    {
      "date": "8 hours ago",
      "link": "https://techcrunch.com/2026/11/02/apple-says-its-hard-to-predict-when-iphone-duo…",
      "position": 1,
      "snippet": "Apple says iPhone Duo production is ramping up, but it still can't say when supp…",
      "source": "TechCrunch",
      "thumbnail": "https://techcrunch.com/wp-content/uploads/2026/09/iPhone-duo.jpeg?resize=1200,67…",
      "title": "Apple says it's 'hard to predict' when iPhone Duo constraints will improve"
    }
  ],
  "search_information": {
    "news_results_state": "Results for exact spelling"
  }
}

Response fields

FieldMeaning
news_results[].titleHeadline of the news article.
news_results[].linkFull URL of the article on the publisher's site.
news_results[].sourceName of the publication, for example TechCrunch or MarketWatch.
news_results[].dateWhen the article was published, as relative text such as 8 hours ago.
news_results[].snippetShort text excerpt from the article. Long snippets may end with an ellipsis.
news_results[].positionRank of the result in the list, starting at 1.
news_results[].thumbnailURL of the preview image for the article.
search_information.news_results_stateShort status text about the search, for example Results for exact spelling.

Notes

  • Pass the search term in q. This is the only parameter and it is required.
  • The date field is relative text, not a timestamp, so store the fetch time if you need to date articles later.
  • For general web results instead of news, use DuckDuckGo Search.

Pricing

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

探索更多

相關 APIs

所有 APIs
API價格回應
DuckDuckGo每次呼叫 $0.015JSON
DuckDuckGo每次呼叫 $0.01JSON
DuckDuckGo每次呼叫 $0.01JSON
DuckDuckGo每次呼叫 $0.00015非同步 JSON
DuckDuckGo每次呼叫 $0.015JSON
DuckDuckGo每次呼叫 $0.01JSON

問題

常見問題

我要如何使用 DuckDuckGo News Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/duckduckgo/news。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

DuckDuckGo News Search API 的費用是多少?

每次 $0.015,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

DuckDuckGo News Search API 接受哪些參數?

必要:q (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

DuckDuckGo News Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 DuckDuckGo 開發者帳號或 API 金鑰嗎?

不需要。DuckDuckGo News Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 DuckDuckGo API 存取權。