API Hop Docs
DuckDuckGo endpoint reference
DuckDuckGo: Web search · Light search.
Concurrency limit
AI and Data each share an account-wide pool of concurrent slots: 5 AI / 2 Data by default, adjusted by your subscription. Endpoint overrides still cannot exceed the category pool. Reaching either limit returns HTTP 429. Asynchronous tasks occupy a slot until execution ends.
GET /v1/duckduckgo/search GET /v1/duckduckgo/light DuckDuckGo: Web search · Light search.
Authentication and billing
The default price is $0.0003 (300 credits) per successful request. Use your API Hop API key. Availability depends on active gateways and key permissions. Check the current catalog and your account for the price per successful request; account-specific pricing takes precedence. Successful empty results are billable. Failed requests release the credit reservation. Requests time out after 60 seconds, with no automatic retry or pagination. Settlement failures never repeat the upstream request.
Authorization: Bearer YOUR_API_KEYSend query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. JSON only; no automatic pagination or retries. Copy identifiers and continuation tokens from fresh responses. Examples are illustrative. Each completed lookup, including a confirmed empty or unavailable result, is billed separately. XOR means exactly one parameter; NOT means excluded; => means requires.
DuckDuckGo: Web search
GET https://api.apihop.ai/v1/duckduckgo/search
Request parameters
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | best hiking boots |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | us |
language | string | Provider-supported language code, such as en.; language: optional | en |
safe | string | Provider safe-search filtering.; safe: optional; active, strict, moderate, off | active |
time_range | string | d, w, m, y, or an inclusive date interval YYYY-MM-DD..YYYY-MM-DD. Result dates (published_at) are returned only for queries without quotation marks that use time_range.; time_range: optional; maxLength: 22; ^(?:[dwmy]|[0-9]{4}-[0-9]{2}-[0-9]{2}\.\.[0-9]{4}-[0-9]{2}-[0-9]{2})$ | - |
next_page_token | string | Copy the opaque next_page_token from the previous response using the same account, search parameters, device, and result limit. Tokens expire after one hour; restart pagination if rejected or expired.; next_page_token: optional; minLength: 1; maxLength: 24576 | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
start | integer | Native result offset; cannot be combined with a continuation or a page greater than one.; start: optional; min: 0; max: 100000 | 0 |
m | integer | Maximum results requested from the native source; initial pages can contain fewer results.; m: optional; min: 1; max: 50 | 1 |
search_assist | boolean | Include native Search Assist answers when available. Cannot be combined with m when true.; search_assist: optional | true |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokenscustom time_range: valid ordered YYYY-MM-DD..YYYY-MM-DD
Examples
curl --get "https://api.apihop.ai/v1/duckduckgo/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "country=us" \
--data-urlencode "language=en" \
--data-urlencode "query=best hiking boots"DuckDuckGo: Light search
GET https://api.apihop.ai/v1/duckduckgo/light
Request parameters
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | coffee |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
time_range | string | d, w, m, y, or an inclusive date interval YYYY-MM-DD..YYYY-MM-DD.; time_range: optional; maxLength: 22; ^(?:[dwmy]|[0-9]{4}-[0-9]{2}-[0-9]{2}\.\.[0-9]{4}-[0-9]{2}-[0-9]{2})$ | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
next_page_token | string | Copy the opaque next_page_token from the previous response using the same account, search parameters, device, and result limit. Tokens expire after one hour; restart pagination if rejected or expired.; next_page_token: optional; minLength: 1; maxLength: 24576 | - |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokenscustom time_range: valid ordered YYYY-MM-DD..YYYY-MM-DD
Examples
curl --get "https://api.apihop.ai/v1/duckduckgo/light" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Responses and errors
The native JSON response and numeric precision are preserved. The example below illustrates an empty successful result, not a live call. HTTP 400 means invalid input; 401 authentication required; 402 insufficient credit; 403 unavailable or unauthorized; 405 unsupported method; 429 rate limit; 5xx service or upstream failure. Keep X-Request-Id for diagnosis.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}