API · DuckDuckGo
GET /duckduckgo/news
DuckDuckGo News: titles, excerpts, sources, dates, images.
| Request | GET /v1/duckduckgo/news |
| Operation id | duckduckgo.news.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
DuckDuckGo News: titles, excerpts, sources, dates, images.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | |
region | string | no | DuckDuckGo region (default us-en; wt-wt for none). Example: de-de. |
safe_search | "strict" | "moderate" | "off" | no | One of strict, moderate, off. |
time_range | "any" | "day" | "week" | "month" | "year" | no | One of any, day, week, month, year. |
limit | integer | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | News articles. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | DuckDuckGo has nothing for that search. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | DuckDuckGo is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.