GroundsocialDocs

API · DuckDuckGo

GET /duckduckgo/rank

Where a domain or URL ranks on DuckDuckGo for a query, up to 200 deep.

RequestGET /v1/duckduckgo/rank
Operation idduckduckgo.rank.get
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Where a domain or URL ranks on DuckDuckGo for a query, up to 200 deep.

Query parameters

NameTypeRequiredDescription
querystringyes
urlstringyes
regionstringnoDuckDuckGo region (default us-en; wt-wt for none). Example: de-de.
safe_search"strict" | "moderate" | "off"noOne of strict, moderate, off.
time_range"any" | "day" | "week" | "month" | "year"noOne of any, day, week, month, year.
depthintegerno
all_matches"true" | "false"noOne of true, false.
include_subdomains"true" | "false"noOne of true, false.

Responses

StatusMeaningSchema
200The rank.
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404DuckDuckGo has nothing for that search.Error
429Too many requests. Wait for Retry-After seconds.Error
503DuckDuckGo is temporarily unavailable. Retryable; nothing was charged.Error

Errors use one shape everywhere; see Errors for every code and what to do.