# Duckduckgo Scraper (`fastdataapi/duckduckgo-scraper`) Actor

Duckduckgo Scraper searches DuckDuckGo by keyword across web, images, videos and news modes in one run: title, URL, description and hostname, plus !bang suggestions. No login or API key.

- **URL**: https://apify.com/fastdataapi/duckduckgo-scraper.md
- **Developed by:** [Fast Data API](https://apify.com/fastdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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, Image, Video and News Results

Duckduckgo Scraper pulls DuckDuckGo search results for any keyword — web pages, images, videos and news, in one run. Each result comes back as structured JSON with the title, URL, description, and mode-specific fields like image size, video view count or news publish time, plus DuckDuckGo's own `!bang` shortcut suggestions. Every response is ready to pass straight to an LLM, index into a vector store, or feed a SEO/research pipeline. No DuckDuckGo account, login or cookies are needed. Start with one keyword and one mode, then scale to dozens of queries across all four modes in a single run.

![Duckduckgo Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/ad-duckduckgo-hero.webp)

***

### What data can I extract with Duckduckgo Scraper?

Using this DuckDuckGo Search API, you will be able to extract the following DuckDuckGo search data:

| 🔎 Query & mode | 📝 Title & URL | 🧾 Description (web/video) | 🔗 !bang shortcut (web) |
|---|---|---|---|
| 🖼️ Image URL, thumbnail, size | 🎬 Video duration, publisher, view count | 📰 News excerpt, publish time, syndicate source | 🌐 Hostname & favicon (web) |

***

### How to use Duckduckgo Scraper

Anyone who needs live DuckDuckGo results — without scraping HTML themselves or paying for the official DuckDuckGo API (there isn't one) — can run this and get normalized JSON back in seconds.

**Copy to your AI assistant:**

```text
fastdataapi/duckduckgo-scraper is an Apify Actor that returns DuckDuckGo search results as structured JSON: title, url, description, hostname, icon, bang shortcuts (web mode), image/thumbnail/size (images mode), duration/publisher/viewCount (videos mode), and excerpt/date/syndicate (news mode). Use it whenever someone needs live DuckDuckGo results without a browser, an API key, or HTML parsing - SEO rank tracking, competitive research, or feeding an LLM agent live web/news/image results. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/fastdataapi~duckduckgo-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"search":["Python"],"searchMode":["default"],"maxItems":20,"region":"wt-wt","safeSearch":"OFF"}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("fastdataapi/duckduckgo-scraper").call(run_input={...}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: search (array of strings, required, the keywords to search), searchMode (array, one or more of "default"|"images"|"videos"|"news", default ["default"]), maxItems (integer, results per query per mode, default 20), endPage (integer, continuation-page cap per query per mode, default 1), region (string, DuckDuckGo region code, default "wt-wt"), safeSearch (string, "OFF"|"MODERATE"|"STRICT", default "OFF"), proxyConfiguration (object, optional starting proxy). Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/fastdataapi~duckduckgo-scraper/builds/default
```

#### Duckduckgo Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at fastdataapi and it can read DuckDuckGo on its own: web, image, video and news results. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=fastdataapi/duckduckgo-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Duckduckgo Scraper](https://apify.com/fastdataapi/duckduckgo-scraper) in the Apify Store.
3. Enter your search keyword(s) and pick a search mode.
4. Click **Start**.
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Duckduckgo Scraper to bulk

Add more entries to the "Search queries" list and/or select more than one search mode — each (query, mode) pair gets its own "Max results" allowance, independent of the others. 10 queries × 2 modes × 20 results = up to 400 results in one run.

***

### ✨ Features

Duckduckgo Scraper fetches clean, structured DuckDuckGo results ⚡ at low cost 💸. It's ideal for keyword-rank checks, building a research/RAG corpus, monitoring news coverage of a topic, and sourcing royalty-free-search images.
It extracts, per result:

- **Title & URL** – the result's headline and destination link
- **Description** – the web snippet (plus the untouched raw-HTML version) or a video's description
- **!bang shortcut** – DuckDuckGo's own shortcut suggestion (keyword, target site) when one is attached
- **Image data** – full-size and thumbnail URLs, pixel dimensions, source site (images mode)
- **Video data** – duration, publisher, publish date, view count (videos mode)
- **News data** – excerpt, publish date, relative time, syndication source (news mode)

⚡ No login, no API key, no browser — plain HTTP requests to DuckDuckGo's own search endpoints.

***

### Use cases 💡

- **SEO analyst** — track keyword rankings across web, image and news results in one run.
- **Researcher** — pull DuckDuckGo results into a RAG pipeline as a privacy-respecting alternative to Google.
- **News monitor** — track news-mode results for a brand or topic by publish time.
- **Growth marketer** — mine `!bang` suggestions to see which sites DuckDuckGo treats as canonical for a keyword.
- **AI agent builder** — give an agent live web search as a tool call instead of a stale training cutoff.

Building an AI agent? [Connect Duckduckgo Scraper over MCP](#duckduckgo-scraper-mcp-server-use-these-actors-from-chatgpt-claude-or-cursor) and let it call the actor on its own.

***

### Why choose this actor?

1. **Four result types, one actor.** Web, images, videos and news all come from the same run — no separate actor per mode.
2. **Bulk queries and modes together.** Every query and every selected mode gets its own result allowance, so a 10-keyword × 4-mode run returns up to 40 independent result sets without re-running the actor.
3. **The raw and the cleaned description, both kept.** Web-mode results carry a cleaned `description` and a `rawDescription` that keeps DuckDuckGo's own `<b>` highlight markup — useful for showing matched terms.

***

### ⬇️ Input

![Duckduckgo Scraper input form with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/ad-duckduckgo-input.webp)

Enter one or more search keywords in **Search queries** (required) and pick one or more **Search mode(s)**. Every other field is optional and has a working default.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `search` | Yes | array | Keywords to search; each is its own input | `["Python", "javascript"]` |
| `searchMode` | No | array | One or more of `"default"` (web) | `"images"` | `"videos"` | `"news"`; default `["default"]` | `["default", "news"]` |
| `maxItems` | No | integer | Results per query per mode; default `20` | `20` |
| `endPage` | No | integer | Continuation-page cap per query per mode; default `1` (follow pages until `maxItems`) | `1` |
| `region` | No | string | DuckDuckGo region code; default `"wt-wt"` (all regions) | `"us-en"` |
| `safeSearch` | No | string | `"OFF"` | `"MODERATE"` | `"STRICT"`; default `"OFF"` | `"OFF"` |
| `proxyConfiguration` | No | object | Optional starting proxy; the actor escalates on its own if blocked | `{"useApifyProxy": false}` |

#### Free plan limits

Users on the Apify free plan can fetch up to 20 results per run (all queries and search modes together) and 200 results per month. When the limit is reached the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "search": ["Python", "javascript"],
  "searchMode": ["default", "news"],
  "maxItems": 20,
  "endPage": 1,
  "region": "wt-wt",
  "safeSearch": "OFF",
  "proxyConfiguration": { "useApifyProxy": false }
}
```

***

### ⬆️ Output

![Duckduckgo Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/ad-duckduckgo-output.webp)

Every result is one typed, normalized JSON item with the same schema on every run — fields outside a result's own mode come back as `null`. Export in JSON (default), CSV or Excel.

#### Example output

```json
[
  {
    "query": "Python",
    "searchMode": "default",
    "title": "Welcome to Python.org",
    "url": "https://www.python.org/",
    "description": "The official home of the Python Programming Language",
    "rawDescription": "The official home of the <b>Python</b> Programming Language",
    "hostname": "www.python.org",
    "icon": "https://external-content.duckduckgo.com/ip3/www.python.org.ico",
    "bang": { "prefix": "pep", "title": "Python PEP", "domain": "www.python.org" }
  },
  {
    "query": "Python",
    "searchMode": "news",
    "title": "Why is Python the go-to language for AI?",
    "url": "https://note.com/adsextremer/n/ne720f6520008?hl=en",
    "excerpt": "Why \"Python\" always seems to come up in AI discussions...",
    "image": "https://assets.st-note.com/production/uploads/images/336595251/rectangle_large_type_2.png",
    "date": 1794833940,
    "relativeTime": "2 hours ago",
    "syndicate": "bing",
    "isOld": false
  }
]
```

***

### How does it work?

Duckduckgo Scraper sends the same requests DuckDuckGo's own search pages send when you type a keyword — no DuckDuckGo account needed, because the results are public to any visitor. It starts with a direct connection and switches to a datacenter, then a residential proxy on its own if a request is refused, so you don't need to manage proxies yourself. It returns only what DuckDuckGo shows any visitor; the JSON schema stays the same across runs even if DuckDuckGo changes how its pages look.

***

### How do you integrate Duckduckgo Scraper into your stack?

Duckduckgo Scraper works with what you already use: a REST API from any language, MCP for AI agents, and no-code tools.

#### Using Duckduckgo Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/acts/fastdataapi~duckduckgo-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"search": ["Python"], "searchMode": ["default"], "maxItems": 20},
)
for item in resp.json():
    print(item["title"], item["url"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Register Duckduckgo Scraper as a tool your agent can call directly:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=fastdataapi/duckduckgo-scraper"
```

Works the same way in Cursor and Windsurf.

#### No-code tools (n8n, Make, LangChain)

In n8n, use the Apify node's "Run an Actor" action with `fastdataapi/duckduckgo-scraper`. In Make, use the Apify app's "Run an Actor" module, then "Get Dataset Items". In LangChain, `langchain-apify`'s `ApifyActorsTool("fastdataapi/duckduckgo-scraper")` gives an agent the same results as a tool call.

***

### Is it legal to scrape DuckDuckGo data?

Scraping publicly available search-result data is generally permissible in most jurisdictions. Duckduckgo Scraper returns only publicly available data — the same results any visitor sees without logging in. Under GDPR and similar laws, scraping public data is generally permissible, but storing and using it must comply with local data-protection law. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Duckduckgo Scraper return?

Title, URL, description, hostname and (in web mode) a `!bang` shortcut suggestion, plus mode-specific fields for images, videos and news. See [the data fields section](#what-data-can-i-extract-with-duckduckgo-scraper).

#### Does Duckduckgo Scraper require a DuckDuckGo account or login?

No. Only public search-result data is extracted; no credentials are needed.

#### What happens if a query returns no results?

The query is skipped with 0 rows for that query/mode pair; the run log and status message say how many results were saved overall.

#### Can I search multiple keywords at once?

Yes — add more entries to the "Search queries" list; each query gets its own "Max results" allowance for every selected search mode.

#### Does Duckduckgo Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Duckduckgo Scraper is available as an MCP tool. Use `claude mcp add --transport http apify "https://mcp.apify.com/?tools=fastdataapi/duckduckgo-scraper"` to register it in Claude Code, Cursor or Windsurf. Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Duckduckgo Scraper return data in a format LLMs can use directly?

Yes. Typed, normalized JSON with consistent field names. No HTML parsing, no selectors — pass it straight to an LLM, index it into a vector store, or feed it to an agent tool.

#### Can I use Duckduckgo Scraper without managing proxies or browser infrastructure?

Yes. Proxy escalation runs on the actor's side — it starts with a direct connection and only moves to a stronger proxy if a request is refused. You send one request and get structured JSON back.

#### Which fields work best for AI training data and RAG indexing?

For RAG: the description, raw description and excerpt fields. For structured filtering: the view count, publish date and image dimension fields — all typed primitives, no normalization needed.

***

### Your feedback

Found a bug or missing a field? Let us know through the actor's Issues tab. The fastdataapi team reads every report and ships fixes.

# Actor input Schema

## `search` (type: `array`):

One or more keyword searches, e.g. "Python". Each query is its own input and gets its own "Max results" allowance, for every selected search mode.

## `searchMode` (type: `array`):

Which DuckDuckGo result type(s) to fetch for every query. Each selected mode is its own "Max results" allowance per query.

## `maxItems` (type: `integer`):

Maximum results for EACH query, for EACH selected search mode -- not a shared total. 2 queries x 2 modes x 20 = up to 80 results. Free plan: up to 20 results per run (all queries/modes together) and 200 per month; paid plans have no limit.

## `endPage` (type: `integer`):

Stop following DuckDuckGo's own continuation pages after this many, per query per mode. Leave at 1 to follow pages until "Max results" is reached (or DuckDuckGo runs out).

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

The DuckDuckGo region/market to search from.

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

DuckDuckGo's own safe-search filter level, applied to every query and mode.

## `proxyConfiguration` (type: `object`):

Optional proxy to start with. When requests are refused, the actor moves to stronger proxies on its own.

## Actor input object example

```json
{
  "search": [
    "Football"
  ],
  "searchMode": [
    "images"
  ],
  "maxItems": 20,
  "endPage": 1,
  "region": "wt-wt",
  "safeSearch": "OFF",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

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

No description

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

No description

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

No description

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

No description

# 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 = {
    "search": [
        "Football"
    ],
    "searchMode": [
        "images"
    ],
    "maxItems": 20,
    "endPage": 1,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fastdataapi/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 = {
    "search": ["Football"],
    "searchMode": ["images"],
    "maxItems": 20,
    "endPage": 1,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fastdataapi/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 '{
  "search": [
    "Football"
  ],
  "searchMode": [
    "images"
  ],
  "maxItems": 20,
  "endPage": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fastdataapi/duckduckgo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fastdataapi/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/1Q4fSVzbJImftqBpZ/builds/5KmceDdigcRk3xiQo/openapi.json
