DuckDuckGo scraper for web search results as structured rows: title, URL, snippet, position, and query.
This tutorial shows what the Actor v0iddo/duckduckgo-scraper returns, how to run it on the Apify Store without code, and how to call it from Python and cURL.
What data you get
One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.
| Field | Label | Type | Example |
|---|---|---|---|
query |
Query | text | web scraping tools |
position |
Position | number | 1 |
title |
Title | text | The 12 best web scraping tools for 2026 - Apify Blog |
url |
URL | URL | https://blog.apify.com/best-web-scraping-tools/ |
displayUrl |
Display URL | text | blog.apify.com/best-web-scraping-tools/ |
snippet |
Snippet | text | Web scraping platforms, APIs, and no-code or low-code scrapers. Bas... |
page |
Page | number | 1 |
Real rows from a run of the Actor (fields that name people are left out):
[
{
"query": "web scraping tools",
"position": 1,
"page": 1,
"title": "The 12 best web scraping tools for 2026 - Apify Blog",
"url": "https://blog.apify.com/best-web-scraping-tools/",
"displayUrl": "blog.apify.com/best-web-scraping-tools/",
"snippet": "Web scraping platforms, APIs, and no-code or low-code scrapers. Based on five criteria, we list the top 12 web scraping tools for the year."
},
{
"query": "web scraping tools",
"position": 2,
"page": 1,
"title": "28 Best web scraping tools in 2026: Pros, cons and pricing - ScraperAPI",
"url": "https://www.scraperapi.com/web-scraping/tools/",
"displayUrl": "www.scraperapi.com/web-scraping/tools/",
"snippet": "Compare the 28 best web scraping tools with features, pros, cons, and pricing, from web data infrastructure to open-source libraries."
}
]
No code: run it on the Apify Store
- Open the DuckDuckGo Search Scraper page on Apify.
- Fill in the input form. An example input is already filled in.
- Press Start, wait for the run to finish, and download the results as JSON, CSV or Excel from the Output tab.
The input that is pre-filled on the Actor page:
{
"queries": [
"web scraping tools",
"python tutorial"
],
"region": "us-en",
"maxPages": 1,
"safeSearch": "moderate",
"maxItems": 20
}
Python (apify-client)
Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/duckduckgo-scraper.
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {'queries': ['web scraping tools', 'python tutorial'],
'region': 'us-en',
'maxPages': 1,
'safeSearch': 'moderate',
'maxItems': 20}
run = client.actor("v0iddo/duckduckgo-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
cURL
curl -X POST "https://api.apify.com/v2/acts/v0iddo~duckduckgo-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries": ["web scraping tools", "python tutorial"], "region": "us-en", "maxPages": 1, "safeSearch": "moderate", "maxItems": 20}'
Good to know
- Returns organic web search results from DuckDuckGo. Each page yields about 10 results; increase pages per query to collect more results for a single query.
- Use a region code such as us-en, uk-en, or de-de to get results localized to a country. A full list of region codes is available at duckduckgo.com/params.
- DuckDuckGo does not expose a paginated web search API; results are read from the static HTML endpoint that DuckDuckGo maintains for non-JavaScript browsers.
- Not affiliated with DuckDuckGo.
Price
$0.26 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.18 per 1,000.
FAQ
What data does the DuckDuckGo Search Scraper return?
Each result is one row in an Apify dataset. Fields include query, position, title, url, displayUrl, snippet, page. The table above shows every field with an example value.
Can I use it without writing code?
Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.
How much does it cost?
$0.26 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.18 per 1,000. A new Apify account gets $5 of platform credit every month.
Links
- Actor on the Apify Store: DuckDuckGo Search Scraper
- Full guide with every field and the JavaScript example: https://voidd0.github.io/duckduckgo-scraper/
Top comments (0)