DuckDuckGo API

Find images, articles, and videos for a query. Get search suggestions, shortcuts, and Instant Answers with source links when available.

Use Cases

Collect results for a topic

Send a query to Image Search, News Search, or Video Search. Filter news by date, images by size or license, and videos by duration or resolution.

Compare suggestions across regions

Find a region code such as us-en or de-de, then send it with a partial query to read DuckDuckGo’s suggestions.

Find sources for an entity

Look up a topic such as Nikola Tesla. Read the Instant Answer, related topics, and source links when DuckDuckGo returns them.

Find search shortcuts

Use a prefix such as "!w" to find shortcuts for sites you want to search directly.

API Endpoints

Available endpoints for the DuckDuckGo API

POST /v1/duckduckgo/images

DuckDuckGo Image Search

Read first-page thumbnails, source links and displayed dimensions. Filter by size, color, type, layout and license.

Parameters

color string
image_type string
layout string
license string
limit integer
query string required
region string
safesearch string
size string
View endpoint documentation
POST /v1/duckduckgo/news

DuckDuckGo News Search

Read first-page news links, publishers, excerpts and relative dates. Filter by date and Safe Search.

Parameters

limit integer
query string required
region string
safesearch string
timelimit string
View endpoint documentation
POST /v1/duckduckgo/videos

DuckDuckGo Video Search

Read first-page video links, thumbnails, durations and publishers. Filter by duration and resolution.

Parameters

duration string
limit integer
query string required
region string
resolution string
safesearch string
View endpoint documentation
POST /v1/duckduckgo/autocomplete

DuckDuckGo Search Suggestions

Read autocomplete suggestions for a partial query and region.

Parameters

limit integer
query string required
region string
View endpoint documentation
POST /v1/duckduckgo/instant

DuckDuckGo Instant Answer

Read the public Instant Answer response, including definitions, source links and grouped related topics when available.

Parameters

query string required
View endpoint documentation
POST /v1/duckduckgo/bangs

DuckDuckGo Bang Suggestions

Read DuckDuckGo shortcut suggestions for a bang prefix.

Parameters

limit integer
query string required
region string
View endpoint documentation
POST /v1/duckduckgo/regions

DuckDuckGo Region Reference

List DuckDuckGo's published search region codes and labels.

View endpoint documentation

Frequently Asked Questions

Common questions about the DuckDuckGo API

How many results can I get?

Image, news, and video requests read the first page. A limit sets the maximum returned, and the page may contain fewer results.

Why is an Instant Answer missing?

The response sets found to false when DuckDuckGo returns no answer, definition, or related topic.

Where can I find a region code?

Regions lists the published codes, including language-specific options and wt-wt for no region preference.

Start scraping DuckDuckGo

Get your free API key