# DuckDuckGo Scraper: Search Results API (`bulkleads/duckduckgo-scraper`) Actor

DuckDuckGo scraper and search results (SERP) API: position, title, URL and snippet for the top 10 organic results of each query, in bulk, ads removed. No API key. $0.17 per 1,000 searches.

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

## Pricing

$0.17 / 1,000 searches

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** returns DuckDuckGo search results in bulk: position, title, URL and snippet for the top 10 organic results of each query, with ads removed. It costs **$0.17 per 1,000 searches**, and a search that fails is free.

### How to use it

1. Add **Search queries**, one per line.
2. Optionally set a **Region** such as us-en, uk-en or de-de.
3. Tick **One dataset item per result** if you want a flat table instead of one item per query.
4. Click **Start**.

### Output example

```json
{
  "query": "web scraping api",
  "ok": true,
  "results": [
    { "position": 1, "title": "Web Scraping API", "url": "https://example.com/", "snippet": "Scrape any website with one API call..." }
  ]
}
```

### What can I use it for?

- Rank tracking on DuckDuckGo
- Finding company websites, profiles and pages for lead research
- Feeding search results to AI agents and LLM tools
- Collecting URLs for a crawler

### Input reference

- `queries`: one search per line
- `region`: a DuckDuckGo region code such as us-en, uk-en, de-de or fr-fr (optional)
- `oneItemPerResult`: one dataset row per result instead of one per query

Start runs from the Apify API, Make, Zapier, n8n or the Apify MCP server with the same input, and download results as JSON, CSV or Excel.

### How much does it cost?

**$0.17 per 1,000 searches.** 100,000 searches cost $17. No proxy setup or API key needed; retries are handled for you.

### Add-ons

Optional steps, all off by default. An add-on made by another of our actors runs that actor on what this run found, in your own account: it shows as its own run, is charged by that actor at its own price, and its results are added to this run's dataset. The maximum cost you set for this run covers the add-ons too.

#### Emails and phones from each website

Turn on **Add emails and phones from each website** and every company website found is read (contact, team and about pages) for emails, phones and social profiles by [Website Contact Scraper](https://apify.com/bulkleads/website-contact-scraper), added as items marked `contacts_for`. Social networks, marketplaces and encyclopedias are skipped. It charges its own price: **$0.99 per 1,000 pages read**.

#### Decision-makers at each company

Turn on **Add decision-makers at each company** and the run also adds people with a work email at every company website it found, filtered by the titles you choose (CEO, Founder, Owner and President by default), from [LinkedIn Company Employees](https://apify.com/bulkleads/company-employees-scraper). Each is marked `contact_for` with the company. It charges its own price: **$1.14 per 1,000 people added**. Turn on **Check decision-makers' emails not checked yet** to have their emails checked first.

### FAQ

**How fast is it?** About a second per search, many in parallel.

**Do I get page text too?** Use [Web Search for AI Agents](https://apify.com/bulkleads/web-search-for-ai-agents) to get the text of the top pages.

### Related actors

Find company domains from names with [Company Name to Domain Finder](https://apify.com/bulkleads/company-name-to-domain).

# Actor input Schema

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

One per line.

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

e.g. us-en, uk-en, de-de (optional)

## `oneItemPerResult` (type: `boolean`):

One dataset item per result.

## `addDecisionMakers` (type: `boolean`):

Also adds people with a work email at each company website found, from LinkedIn Company Employees. Charged by it at its own price, per person added.

## `decisionMakerTitles` (type: `array`):

Only people with these titles, e.g. CEO, Founder, Head of Marketing.

## `decisionMakersPerCompany` (type: `integer`):

Decision-makers per company.

## `checkDecisionMakerEmails` (type: `boolean`):

Their emails not checked in the last 90 days are checked first by Bulk Email Verifier (charged by it at its own price).

## `addWebsiteContacts` (type: `boolean`):

Also reads each company website found (contact, team and about pages) for emails, phones and social profiles, with Website Contact Scraper. Charged by it at its own price, per page read.

## `websiteContactPages` (type: `integer`):

Pages read per website.

## Actor input object example

```json
{
  "queries": [
    "web scraping api",
    "best crm for small business",
    "cold email software",
    "b2b lead generation tools",
    "email verification service",
    "linkedin scraper",
    "google maps scraper",
    "sales intelligence platform",
    "b2b data provider",
    "lead enrichment api"
  ],
  "oneItemPerResult": false,
  "addDecisionMakers": false,
  "decisionMakerTitles": [
    "CEO",
    "Founder",
    "Owner",
    "President"
  ],
  "decisionMakersPerCompany": 3,
  "checkDecisionMakerEmails": false,
  "addWebsiteContacts": false,
  "websiteContactPages": 5
}
```

# Actor output Schema

## `results` (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 = {
    "queries": [
        "web scraping api",
        "best crm for small business",
        "cold email software",
        "b2b lead generation tools",
        "email verification service",
        "linkedin scraper",
        "google maps scraper",
        "sales intelligence platform",
        "b2b data provider",
        "lead enrichment api"
    ],
    "decisionMakerTitles": [
        "CEO",
        "Founder",
        "Owner",
        "President"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bulkleads/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": [
        "web scraping api",
        "best crm for small business",
        "cold email software",
        "b2b lead generation tools",
        "email verification service",
        "linkedin scraper",
        "google maps scraper",
        "sales intelligence platform",
        "b2b data provider",
        "lead enrichment api",
    ],
    "decisionMakerTitles": [
        "CEO",
        "Founder",
        "Owner",
        "President",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("bulkleads/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": [
    "web scraping api",
    "best crm for small business",
    "cold email software",
    "b2b lead generation tools",
    "email verification service",
    "linkedin scraper",
    "google maps scraper",
    "sales intelligence platform",
    "b2b data provider",
    "lead enrichment api"
  ],
  "decisionMakerTitles": [
    "CEO",
    "Founder",
    "Owner",
    "President"
  ]
}' |
apify call bulkleads/duckduckgo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bulkleads/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/8QqC0e7vgNgj8gZ6C/builds/mIefi0hKukoilSObS/openapi.json
