DuckDuckGo scraper API: search results as JSON
Send any DuckDuckGo page URL with recipe=duckduckgo and get title, url as JSON. No selectors to write, no proxies to pick.
- 1 page type
- 2 fields
- 5 credits a page · $0.50 per 1,000
- Working · 100% in 7 days
5,000 free credits for 21 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://html.duckduckgo.com/html/?q=how+to+bake+bread' \
--data-urlencode 'recipe=duckduckgo'
{
"result": {
"results": [
{
"title": "How to Bake Bread | King Arthur Baking",
"url": "https://duckduckgo.com/l/?uddg=https%3A%2F%2F..."
}
]
},
"success": true
}
What you get from DuckDuckGo
The fields of each page type and a real sample from our last validation, shortened.
Search and listing pages recipe=duckduckgo 5 credits a page
| Field | Type | Example |
|---|---|---|
results | list of 3+ items | |
results[].title | text | How to Bake Bread | King Arthur Baking |
results[].url | URL | https://duckduckgo.com/l/?uddg=https%3A%2F%2Fwww.kingarthurbaking.c... |
Sample answer, validated 2026-11-28
{
"results": [
{
"title": "How to Bake Bread | King Arthur Baking",
"url": "https://duckduckgo.com/l/?uddg=https%3A%2F%2Fwww.kingarthurbaking.com%2Flearn%2Fbread&rut=01570d67db9363713e38e76e6ce7b44bb8e7310671f4e59c4e5079754bfc32d8"
},
{
"title": "Bread Recipe: How to Make It - Taste of Home",
"url": "https://duckduckgo.com/l/?uddg=https%3A%2F%2Fwww.tasteofhome.com%2Frecipes%2Fbasic%2Dhomemade%2Dbread%2F&rut=24a79135f5e76c807ddee29483746e24e18ce8387356ec34..."
}
]
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on DuckDuckGo (JavaScript rendering, a wait for the content and scrolling).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://html.duckduckgo.com/html/?q=how+to+bake+bread' \
--data-urlencode 'recipe=duckduckgo'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://html.duckduckgo.com/html/?q=how+to+bake+bread", "recipe": "duckduckgo"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["results"][:3]:
print(item["title"], item["url"])
# Example output:
# How to Bake Bread | King Arthur Baking https://duckduckgo.com/l/?uddg=https%...
# Bread Recipe: How to Make It - Taste... https://duckduckgo.com/l/?uddg=https%...
const params = new URLSearchParams({
url: "https://html.duckduckgo.com/html/?q=how+to+bake+bread",
recipe: "duckduckgo",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.results.slice(0, 3)) {
console.log(item.title, item.url);
}
// Example output:
// How to Bake Bread | King Arthur Baking https://duckduckgo.com/l/?uddg=https%...
// Bread Recipe: How to Make It - Taste... https://duckduckgo.com/l/?uddg=https%...
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
Search DuckDuckGo with parameters
One call, no URL: send recipe=duckduckgo/search with the parameters below. We build the DuckDuckGo search URL and answer the listing JSON, at the same credits as the page call.
| Parameter | Type | Values |
|---|---|---|
query required | string | Search words, as typed in the DuckDuckGo search box. |
One call (query=coffee maker)
curl -G 'https://api.ujeebu.com/scrape' \
-H 'ApiKey: YOUR_API_KEY' \
-d 'recipe=duckduckgo/search' \
--data-urlencode 'query=coffee maker'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"recipe": "duckduckgo/search", "query": "coffee maker"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["results"][:3]:
print(item["title"], item["url"])
# Example output:
# How to Bake Bread | King Arthur Baking https://duckduckgo.com/l/?uddg=https%...
# Bread Recipe: How to Make It - Taste... https://duckduckgo.com/l/?uddg=https%...
const params = new URLSearchParams({
recipe: "duckduckgo/search",
query: "coffee maker",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.results.slice(0, 3)) {
console.log(item.title, item.url);
}
// Example output:
// How to Bake Bread | King Arthur Baking https://duckduckgo.com/l/?uddg=https%...
// Bread Recipe: How to Make It - Taste... https://duckduckgo.com/l/?uddg=https%...
The answer carries the built URL in the Ujb-Url header; a missing or invalid parameter answers 400 naming it (free). Have the URL already? Send it with recipe=duckduckgo/listing. Search with parameters in the docs
What people build with DuckDuckGo data
Research datasets
Build datasets of public pages for analysis, search or LLM pipelines.
Learn more
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Search results | 5 | $0.82 | $0.50 |
FAQ
What does the DuckDuckGo recipe return?
JSON with 2 fields from search results (recipe=duckduckgo), for example title, url. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape DuckDuckGo?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on DuckDuckGo: JavaScript rendering, a wait for the content and scrolling. Send only the URL and recipe=duckduckgo.
What happens when DuckDuckGo changes its pages?
We check DuckDuckGo every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I search DuckDuckGo with parameters?
Yes, in one call: send recipe=duckduckgo/search with query and no URL. We build the DuckDuckGo search URL (returned in the Ujb-Url header), apply recipe=duckduckgo/listing and answer its JSON, at the same credits as the page call. A missing or invalid parameter answers 400 naming it, and that call is free.
Related recipes
BingSearch results · 5 credits- Yahoo SearchSearch results · 5 credits
Naver SearchSearch results · 5 credits
LinkedInSearch results, Detail page, Profile · 5 credits
AmazonSearch results · 5 credits
X (Twitter)Profile · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with DuckDuckGo.
Get DuckDuckGo data as JSON today.
5,000 free credits for 21 days. No card.