The DuckDuckGo Instant Answer API
The DuckDuckGo Instant Answer API answers a query with what DuckDuckGo would show above the results: a summary of the topic. Asking it about duckduckgo in JSON format returns fields such as Abstract, AbstractSource, Infobox, RelatedTopics and Results, where the abstract and infobox come from Wikipedia and Results held just the official site link.
That is useful for quick facts about a well-known topic. It is not a DuckDuckGo search API: a DuckDuckGo API search for most queries returns related topics, not the ten blue links, and no ranking of pages. It needs no API key.
DuckDuckGo search results as JSON
The DuckDuckGo Search Scraper works as a DuckDuckGo SERP API. Give it a query, the number of results (at least 10), an optional time frame (past day, week, month or year) and the safe search level. Each result has the title, URL, snippet and hostname, plus the result's date where DuckDuckGo shows one.
DuckDuckGo's rankings differ from Google's, which makes them useful for checking how a site ranks outside Google and for privacy-minded search tools. Rankings can vary between requests. 1,000 results cost $0.60.

DuckDuckGo search API in Python
import requests
response = requests.post(
"https://extracto.cloud/api/v1/parsers/duckduckgo-search-scraper?wait=1",
headers={"X-API-KEY": "ext_your_api_key", "Idempotency-Key": "ddg-paris-museums-2026-11-20"},
json={"input": {"query": "Paris museums", "maxRecords": 20}},
timeout=600,
)
for i, r in enumerate(response.json()["data"], 1):
print(i, r["hostname"], "-", r["title"])Open-source DuckDuckGo search API Python packages exist too. They read DuckDuckGo's HTML pages and are rate-limited quickly from a single IP, so they suit small scripts better than monitoring jobs.
Is the DuckDuckGo API free?
The Instant Answer API is free and has no published pricing. There is no official DuckDuckGo API pricing for web results because there is no such API. The scraper costs $0.6 / 1,000 results, with 2,500 trial credits for new accounts; other engines are covered in the SERP API comparison.
What people use DuckDuckGo results for
- Rank checks outside Google: where your pages appear on a privacy-focused engine.
- Search-backed tools and agents: fresh web results for a query without Google's restrictions.
- Research: compare result sets across DuckDuckGo, Bing and Google for the same query.
