DuckDuckGo News API

Api Details

Endpoint GET https://serpapi.abcproxy.com/search

Description Retrieve comprehensive user profile including basic info, account status and optional permission sets.


Request

HTTP Request

curl -X GET "https://serpapi.abcproxy.com/search" \
  -d "engine=duckduckgo_news" \
  -d "q=Coffee" \
  -d "no_cache=false" \
  -d "api_key=YOUR_API_KEY"

API Parameters

Search Query

Name
Type
Required
Description
Example

q

string

Yes

Parameter defines the query you want to search. You can use anything that you would use in a regular DuckDuckGo search. (e.g., inurl:, site:, intitle:, etc.)

coffee

Localization

Name
Type
Required
Description
Example

kl

string

No

Parameter defines the region to use for the DuckDuckGo search. Region code examples: us-en for the United States, uk-en for United Kingdom, or fr-fr for France. Head to the DuckDuckGo regions for a full list of supported regions.

en

Advanced Duckduckgo Filters

Name
Type
Required
Description
Example

safe

string

No

Parameter defines the level of filtering for adult content. It can be set to 1 (Strict), -1 (Moderate - default), or -2 (Off).

-1

df

string

No

Parameter defines results filtered by date. It can be set to: d: Past day, w: Past week, m: Past month, y: Past year, or you can pass a custom date following the next format: from_date + .. + to_date(e.g. 2021-06-15..2021-06-16).

-

Pagination

Name
Type
Required
Description
Example

start

string

No

Parameter defines the result offset. It skips the given number of results. It's used for pagination. When pagination is not being used (initial search request), number of organic_results can vary between 26 and 30. When pagination is being used (value of start parameter is bigger than 0), organic_results return 50 results.

-

Serpapi Parameters

Name
Type
Required
Description
Example

engine

string

Yes

Set parameter to duckduckgo_news to use the DuckDuckGo News API engine.

duckduckgo_news

no_cache

boolean

No

Parameter will force SerpApi to fetch the Google Play results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache.

trueorfalse

api_key

string

Yes

Parameter defines the SerpApi private key to use.

-


Response

Success 200

Response Body

Response Fields

Field
Type
Description

search_metadata

object

Contains timing and status information

search_parameters

object

Contains query parameters and search context

ads

object[]

Ads

organic_results

object[]

OrganicResults

knowledge_graph

object[]

KnowledgeGraph

related_searches

object[]

RelatedSearches

inline_images

object[]

InlineImages


Error Responses

Common Errors

HTTP Status
Error Code
Description

200

400

API Key can not be empty

200

401

Param error

200

402

Api key error

200

403

Insufficient Balance

200

404

Deduction failed

200

405

Failed to record usage count

200

406

Unsupported engine

200

407

Network error

200

408

File not found

200

409

Limit param error

200

410

Build url error

200

411

Failed to QueryRecentRecord

200

412

Failed to find json

200

413

Get html error

200

414

HTML is empty

200

429

Too many request

Error Example


Last updated