# $3/1K | DuckDuckGo Scraper - Web Results, News & Images (`scrapercompany/duckduckgo-scraper`) Actor

Scrape DuckDuckGo: web results (position, title, link, snippet), news stories (source, date, image) and images (original URL, size, title) for any query and region, with time, safe-search and image filters and paging. Made by ScraperCompany.

- **URL**: https://apify.com/scrapercompany/duckduckgo-scraper.md
- **Developed by:** [ScraperCompany](https://apify.com/scrapercompany) (community)
- **Categories:** SEO tools, News, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 duckduckgo results pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## DuckDuckGo Scraper - Web Results, News & Images

**DuckDuckGo Scraper** by ScraperCompany returns DuckDuckGo results as structured data in three search types. **Web results** give position, title, link, displayed link and snippet, 10 on the first page and about 15 on later pages.

### ⭐ Like this Actor? Leave a review

If DuckDuckGo Scraper saved you time, please [leave a review on the Store](https://apify.com/scrapercompany/duckduckgo-scraper/reviews). It takes a minute, helps other people find a scraper that works, and tells us what to build next.

> 🟢 **Nothing to set up:** no code, no login and no keys. Click **Try for free**, start a run, and export JSON, CSV or Excel, or pull the results through the Apify API. You pay only for results; failed and empty requests are free.

### 📦 What you get

| Mode | What you get | Price | Per 1,000 |
| --- | --- | --- | --- |
| `search` | Web results: position, title, link, displayed link and snippet | $0.003 | $3.00 |
| `news` | News stories, about 30 a page: title, link, source, date, snippet and image | $0.003 | $3.00 |
| `images` | Images, about 100 a page: image URL, width, height, thumbnail, title and the page it is on, with size, colour, type, layout and licence filters | $0.003 | $3.00 |

- 💵 **Price:** **$3 per 1,000** `serp-page` events ($0.003 each); failed and empty requests are free.
- ⚙️ **Setup:** none. No account on the site, no cookies, no keys.
- 📁 **Export:** JSON, CSV, Excel or HTML from the **Output** tab, or the Apify API.
- 🔁 **Automate:** schedules, webhooks, Make, Zapier, n8n and AI agents (MCP).

### ✨ What can this DuckDuckGo scraper do?

**News** lists about 30 stories a page with source, date, snippet and image. **Images** returns about 100 images a page with the original image URL, width, height and the page it is on, with size, colour, type, layout and licence filters. Pick a region and a time window and page through up to 20 pages. Use it for rank tracking, news monitoring and research. Pricing is pay-per-event: **$0.003 per results page**; failed requests and empty pages are not charged.

- **Web results**: position, title, link, displayed link, snippet.
- **News**: title, link, source, date (exact and relative), snippet and image, about 30 a page.
- **Images**: image URL, width, height, thumbnail, title and source page, about 100 a page.
- Image filters: **size, colour, type** (photo, clip art, GIF, transparent, line drawing), **layout** and **licence**.
- Any DuckDuckGo **region** (`us-en`, `uk-en`, `de-de`, ...), **time** (past day, week, month or year) and **safe search**.
- Up to 20 pages per query; one price per results page in every search type; empty pages are free.

### 🚀 Quick start: how to scrape DuckDuckGo search results

1. Click **Try for free** (or open the Actor in Apify Console) and go to the **Input** tab.
2. Pick a **Search type**, enter search queries and, optionally, a region such as `us-en` and a time window.
3. Adjust the options if needed.
4. Click **Start** and wait for the run to finish.
5. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or fetch them with the Apify API.

💡 **Tip:** run it once with the pre-filled input to see the output, then change the input to your own.

### ⚖️ What makes it different?

| | **DuckDuckGo Scraper** | Many alternatives |
| --- | --- | --- |
| Setup | Nothing to configure: no login, no keys | Often your own accounts, cookies or network setup |
| You pay for | Successful results; failed and empty requests are free | Often run time, or every attempt |
| When a request fails | Retried automatically, and never charged | Often an empty or failed run |

### 👥 Who uses DuckDuckGo data?

- **SEO teams**: Track rankings on DuckDuckGo next to Google and Bing, by region.
- **PR and media teams**: Monitor DuckDuckGo News for a brand or topic over the past day or week.
- **Data and AI teams**: Collect web, news and image results to ground models or build datasets.

### 🧭 Common jobs

#### Brand news watch

Schedule News for your brand with time set to the past day, daily.

#### Rank check

Run Web results for your keywords in each region you sell in and compare positions.

#### Reusable images

Run Images with a licence filter such as Free to share commercially.

### 📋 What DuckDuckGo data can you extract?

| Field | Description |
| --- | --- |
| `organic_results[].position / title / link / displayed_link / snippet` | Web results |
| `news_results[].title / link / source / date / relative_date / snippet / image` | News stories (News) |
| `images_results[].image / width / height / thumbnail / title / link` | Images (Images) |
| `search_information.page / has_more / results_on_page / region` | Which page this is and whether there is another |
| `search_parameters` | The query and filters used |

Every dataset item also carries `input` (the options used for that request), `request_id` (quote it to support), `billed` and `scraped_at`.

### ⌨️ Input

| Input | Name | What it does |
| --- | --- | --- |
| `mode` | Search type | Which DuckDuckGo results to collect for each query. |
| `queries` | Search queries | One DuckDuckGo search per line, one request each. Operators such as `site:` work. |
| `maxPages` | Pages per query | How many result pages to fetch for each query (1-20). Each page is a separate request and is charged separately; paging stops at the last page. |
| `region` | Region | DuckDuckGo region such as `us-en`, `uk-en`, `de-de`, `fr-fr` or `jp-jp`. |
| `safeSearch` | Safe search | Leave empty for DuckDuckGo's default (moderate). For images, moderate works as strict. |
| `time` | Published in the past | Only results from the past day, week, month or year. News takes day, week or month. |
| `size` | Image size | Images only. |
| `color` | Colour | Images only. |
| `type` | Image type | Images only. |
| `layout` | Layout | Images only. |
| `license` | Licence | Images only: the usage rights an image is published under. |

### 📥 Input example

This is the default input; running the Actor without changes uses it.

```json
{
  "mode": "search",
  "queries": [
    "python web scraping"
  ],
  "maxPages": 1,
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

### 📤 Output example

One dataset item per request (trimmed here; real items contain all the fields):

```json
{
  "mode": "search",
  "input": {
    "q": "python web scraping"
  },
  "meta": {
    "source": "duckduckgo"
  },
  "organic_results": [
    {
      "displayed_link": "www.geeksforgeeks.org/python/python-web-scraping-tutorial/",
      "link": "https://www.geeksforgeeks.org/python/python-web-scraping-tutorial/",
      "position": 1,
      "snippet": "Web scraping is the process of extracting data from websites automatically. Python is widely used for web scraping because of its easy syntax and powerful li...",
      "title": "Python Web Scraping Tutorial - GeeksforGeeks"
    },
    {
      "displayed_link": "realpython.com/beautiful-soup-web-scraper-python/",
      "link": "https://realpython.com/beautiful-soup-web-scraper-python/",
      "position": 2,
      "snippet": "Build a Python web scraper with Requests and Beautiful Soup. Learn to fetch a page's HTML and extract the specific data you're interested in.",
      "title": "Beautiful Soup: Build a Web Scraper With Python"
    }
  ],
  "search_information": {
    "has_more": true,
    "page": 1,
    "region": "wt-wt",
    "results_on_page": 10,
    "time_taken_s": 0.76
  },
  "search_parameters": {
    "page": 1,
    "q": "python web scraping",
    "region": null,
    "safe_search": null,
    "time": null
  },
  "request_id": "req_3f9c0d6e2b8a4c1f9e7d5b3a1c0e8f6d",
  "billed": true,
  "scraped_at": "2026-10-01T14:03:27.512Z"
}
```

A request that fails is saved with an `error` message instead (turn off **Include failed requests** to skip those). Failed requests are never charged.

### 💰 How much does it cost to scrape DuckDuckGo search results?

This Actor uses **pay-per-event** pricing: you pay for successful requests, not for compute time.

| Event | Charged when | Price | Per 1,000 |
| --- | --- | --- | --- |
| `serp-page` | One DuckDuckGo results page: web results (10 on page 1, about 15 later), news (about 30) or images (about 100). Empty pages are free. | $0.003 | $3.00 |

The **$3/1K** in the title is the price of 1,000 `serp-page` events.

#### Cost examples

| Job | Cost |
| --- | --- |
| 100 keywords, first page of web results | **$0.30** |
| One topic, 5 pages of news | **$0.01** |

Apify's $5 of free monthly usage covers about **1,666** `serp-page` events.

- ✅ Failed requests (errors, invalid input, a site refusing after retries) are **free**.
- ✅ Requests where the source returns nothing at all (no results, nothing priced) are saved but **not charged**.
- ✅ Set **Maximum cost per run** when you start a run and the Actor stops cleanly before going over it.

### 🔌 Integrations

#### ⏰ Schedules and webhooks

Use Apify **Schedules** to repeat a run hourly, daily or weekly and compare results over time, and **webhooks** or the **Integrations** tab to push new results to Make, Zapier, n8n, Google Sheets, Slack or your own warehouse.

#### 🤖 AI agents and MCP

Results are structured JSON, so they are easy to feed to a model. AI agents such as Claude can run this Actor and read its results through the [Apify MCP server](https://mcp.apify.com).

#### 💻 API: JavaScript and Python

Call the Actor from any language through the [Apify API](https://docs.apify.com/api/v2). With the JavaScript client (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrapercompany/duckduckgo-scraper').call({
    "mode": "search",
    "queries": [
        "python web scraping"
    ]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

With Python (`pip install apify-client`):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scrapercompany/duckduckgo-scraper").call(run_input={
    "mode": "search",
    "queries": ["python web scraping"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### ❓ FAQ

#### Do I need an account on the site, or an API key?

No. The Actor is ready to run as is, and you only pay the per-event prices above.

#### How many results are on a page?

Web results: 10 on page 1 and about 15 on later pages. News: about 30. Images: about 100. The price is per page.

#### How does paging work?

Pages per query fetches pages 1, 2, 3 and so on until DuckDuckGo has no more or the limit is reached. Each page is one charged event.

#### Why did a news run with "past year" fail?

DuckDuckGo News takes the past day, week or month only. The request is refused and not charged; pick a shorter window.

#### Are ads included?

No. Only the organic results, stories and images DuckDuckGo lists.

#### Is it legal to scrape DuckDuckGo search results?

The Actor collects publicly available information that anyone can see without logging in. You are responsible for how you use the results: respect the source site's terms, copyright and privacy law (such as GDPR) and do not collect personal data without a lawful basis. If in doubt, ask a lawyer.

#### What happens when a request fails?

Failed attempts are retried automatically. If a request still fails it is saved with the error message and not charged, and the rest of the batch keeps going. A run only fails when every request failed.

#### Why did a request return an error?

Read the `error` field: it says what was wrong with the input, for example a malformed date or an unknown id. Fix it and run again; failed requests cost nothing.

#### How many requests can I run at once?

Any number per run. The Actor sends up to 3 requests in parallel by default (change it under **Run options**); larger batches simply take longer.

### 🔗 Related scrapers

- [Bing Search Scraper](https://apify.com/scrapercompany/bing-search-scraper): Bing web results, news, images, videos and shopping
- [Google SERP Scraper](https://apify.com/scrapercompany/google-search-scraper): Google results with AI Overview and People also ask
- [Google News Scraper](https://apify.com/scrapercompany/google-news-scraper): news stories from Google News

### 📝 Tried it? Tell others

Once you have run DuckDuckGo Scraper, a [short review on the Store](https://apify.com/scrapercompany/duckduckgo-scraper/reviews) helps the next person decide.

### 💬 Support

Questions, a field you need, or a site that stopped working? Open an issue on the **Issues** tab. Include the `request_id` from the dataset item so we can trace the request. We read every issue.

# Changelog

This Actor's version history is a separate document: https://apify.com/scrapercompany/duckduckgo-scraper/changelog.md

# Actor input Schema

## `mode` (type: `string`):

Which DuckDuckGo results to collect for each query.

## `queries` (type: `array`):

One DuckDuckGo search per line, one request each. Operators such as <code>site:</code> work.

## `maxPages` (type: `integer`):

How many result pages to fetch for each query (1-20). Each page is a separate request and is charged separately; paging stops at the last page.

## `region` (type: `string`):

DuckDuckGo region such as <code>us-en</code>, <code>uk-en</code>, <code>de-de</code>, <code>fr-fr</code> or <code>jp-jp</code>. Leave empty for no region.

## `safeSearch` (type: `string`):

Leave empty for DuckDuckGo's default (moderate). For images, moderate works as strict.

## `time` (type: `string`):

Only results from the past day, week, month or year. News takes day, week or month.

## `size` (type: `string`):

Images only.

## `color` (type: `string`):

Images only.

## `type` (type: `string`):

Images only.

## `layout` (type: `string`):

Images only.

## `license` (type: `string`):

Images only: the usage rights an image is published under.

## `customRequests` (type: `array`):

Optional list of JSON objects, one request each, using the field names shown above. Each object is merged over the options above, so you only need to give what differs. Add <code>"mode": "news"</code> or <code>"mode": "images"</code> to mix search types. Example: <code>{"q":"best hiking boots","region":"uk-en","time":"y"}</code>

## `includeErrors` (type: `boolean`):

When on, a request that fails (for example an unknown property id) is saved as a dataset item with an <code>error</code> message so you can see what went wrong. Failed requests are never charged.

## `maxConcurrency` (type: `integer`):

How many requests run at the same time (1-8). Parallel runs share one limit, so extra requests wait for a free slot instead of failing.

## `maxRetries` (type: `integer`):

How many times a request that failed for a temporary reason is tried again right away. A request still failing then gets one more try at the end of the run, after a 30-second pause. Invalid input is never retried.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "python web scraping"
  ],
  "maxPages": 1,
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

# Actor output Schema

## `results` (type: `string`):

One dataset item per request.

## `summary` (type: `string`):

Counts of succeeded, failed, skipped and charged requests.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "python web scraping"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapercompany/duckduckgo-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "queries": ["python web scraping"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapercompany/duckduckgo-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "python web scraping"
  ]
}' |
apify call scrapercompany/duckduckgo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapercompany/duckduckgo-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QYuMynCutjUuUl0N6/builds/bWfJI8JLL48xgQXNv/openapi.json
