# DuckDuckGo Maps Scraper (`searchapi/duckduckgo-maps-scraper`) Actor

Scrapes local business and place results from DuckDuckGo Maps. Extracts name, address, phone, website, rating, reviews, category, hours, and coordinates.

- **URL**: https://apify.com/searchapi/duckduckgo-maps-scraper.md
- **Developed by:** [Search API](https://apify.com/searchapi) (community)
- **Categories:** Developer tools, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 search results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## DuckDuckGo Maps Scraper

Scrapes local business and place results from DuckDuckGo Maps. Extracts name, address, phone, website, rating, reviews, category, hours, and coordinates.

### What this Actor collects

The Actor converts DuckDuckGo Maps place responses into one clean JSON record per business or place, including address and coordinates, contact details, categories, ratings and reviews, hours, images, provider provenance, and search context when available.

- Uses the input limits and filters below to control the crawl.
- Stores source-backed fields defined by the 63-field dataset schema.
- Omits optional fields when the source does not expose a value instead of writing nulls or fabricated placeholders.

### Use cases

- Local lead research
- Location and category monitoring
- Business-directory enrichment

### Input

Provide input in JSON. Fields marked required must be supplied. The Default / example column shows a schema default when one exists; otherwise it shows a documented prefill or fixture value.

| Field | Type | Required | Default / example | Description |
| --- | --- | :---: | --- | --- |
| `query` | string | Yes | `"coffee shops"` | What to search for (e.g. 'coffee shops', 'pizza restaurants', 'dentist'). |
| `location` | string | No | `"New York"` | City, neighborhood or address to search near (e.g. 'New York', 'London', 'Tokyo'). |
| `maxItems` | integer | No | `20` | Maximum number of local results to scrape. |
| `category` | string | No | — | Filter results to a specific business category (e.g. 'restaurant', 'hotel'). |
| `minRating` | number | No | — | Only include businesses with a rating at or above this value (0–5). |
| `openNow` | boolean | No | `false` | If true, only include businesses that are currently open. |
| `region` | string | No | `"us-en"` | DuckDuckGo region code (e.g. us-en, uk-en). |
| `proxyConfiguration` | object | No | `{"useApifyProxy":true}` | Proxy settings for the scraper. |
| `maxRequestRetries` | integer | No | `2` | Number of retries after navigation, response, or blocking failures. |
| `requestTimeoutSecs` | integer | No | `45` | Maximum seconds to wait for the page and DuckDuckGo local.js response. |
| `headless` | boolean | No | `true` | Run Firefox without a visible window. |

#### Example input

```json
{
  "query": "coffee shops",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "location": "New York",
  "openNow": false,
  "region": "us-en",
  "maxRequestRetries": 2,
  "requestTimeoutSecs": 45
}
```

### Output

The default dataset contains one item per place or local-business result. The following are the most useful fields; contact, review, opening-hours, and provider fields appear only when exposed by the underlying map providers.

| Field | Type | Description |
| --- | --- | --- |
| `position` | integer | Position |
| `name` | string | Business Name |
| `address` | string | Address |
| `phone` | string | Phone |
| `website` | string | Website |
| `rating` | number | Rating |
| `reviewCount` | integer | Review Count |
| `category` | string | Category |
| `isOpenNow` | boolean | Is Open Now |
| `provider` | string | Data Provider |
| `searchQuery` | string | Search Query |
| `scrapedAt` | string | Scraped At |
| `type` | string | Type |
| `link` | string | Source Link |
| `resultType` | string | Result Type |
| `page` | integer | Page |

<details>
<summary>All 63 declared dataset fields</summary>

`type`, `resultType`, `position`, `page`, `name`, `uid`, `poiId`, `address`, `addressLines`, `city`
`state`, `country`, `postalCode`, `neighborhood`, `latitude`, `longitude`, `phone`, `phoneRaw`, `website`, `category`
`categories`, `rating`, `ratingCount`, `reviewCount`, `reviewSnippet`, `reviews`, `price`, `priceLevel`, `hours`, `openingHours`
`isOpen`, `isOpenNow`, `businessStatus`, `isPermanentlyClosed`, `timezone`, `distanceToUserMeters`, `navigationUrl`, `directionsUrl`, `thumbnail`, `imageUrl`
`images`, `photoUrl`, `menuUrl`, `link`, `detailUrl`, `domain`, `provider`, `providerUrl`, `providerMetadata`, `fieldProvenance`
`socialProfiles`, `isSponsored`, `isExactMatch`, `sourceResponseType`, `sourceQuery`, `engineId`, `engineData`, `searchQuery`, `searchUrl`, `market`
`language`, `scrapedAt`, `searchMetadata`

</details>

#### Example dataset item

This compact example is taken from local Actor storage. Long text and nested collections are shortened for documentation only.

```json
{
  "position": 1,
  "name": "Ten Thousand Coffee",
  "address": "1410 Broadway, Unit 105, New York, NY 10018",
  "phone": "+1 646 589 6771",
  "website": "https://10000coffee.com/locationusa/?q=YToxOntzOjEyOiJrZXl3b3JkX3R5cGUiO3M6MzoiYWxsIjt9&bmode=view&idx=9502912&t=board",
  "rating": 4.5,
  "reviewCount": 440,
  "category": "Coffee & tea",
  "isOpenNow": true,
  "provider": "Yelp",
  "searchQuery": "coffee shops near New York",
  "scrapedAt": "2026-07-23T17:07:36.657Z"
}
```

### Related Actors

- [Duck.ai Guest Answers Scraper](https://apify.com/searchapi/duckduckgo-ai-answers-scraper)
- [DuckDuckGo Autocomplete Scraper](https://apify.com/searchapi/duckduckgo-autocomplete-scraper)
- [DuckDuckGo Bangs Directory Scraper](https://apify.com/searchapi/duckduckgo-bangs-directory-scraper)

# Actor input Schema

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

What to search for (e.g. 'coffee shops', 'pizza restaurants', 'dentist').

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

City, neighborhood or address to search near (e.g. 'New York', 'London', 'Tokyo').

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

Maximum number of local results to scrape.

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

Filter results to a specific business category (e.g. 'restaurant', 'hotel').

## `minRating` (type: `number`):

Only include businesses with a rating at or above this value (0–5).

## `openNow` (type: `boolean`):

If true, only include businesses that are currently open.

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

DuckDuckGo region code (e.g. us-en, uk-en).

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

Proxy settings for the scraper.

## `maxRequestRetries` (type: `integer`):

Number of retries after navigation, response, or blocking failures.

## `requestTimeoutSecs` (type: `integer`):

Maximum seconds to wait for the page and DuckDuckGo local.js response.

## `headless` (type: `boolean`):

Run Firefox without a visible window.

## Actor input object example

```json
{
  "query": "coffee shops",
  "location": "New York",
  "maxItems": 20,
  "minRating": 4,
  "openNow": false,
  "region": "us-en",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxRequestRetries": 2,
  "requestTimeoutSecs": 45,
  "headless": true
}
```

# Actor output Schema

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

Source-backed local business and place results from DuckDuckGo Maps, including coordinates, provider identifiers, hours, reviews, photos, and provenance.

# 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 = {
    "query": "coffee shops",
    "location": "New York",
    "maxItems": 20,
    "region": "us-en",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/duckduckgo-maps-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 = {
    "query": "coffee shops",
    "location": "New York",
    "maxItems": 20,
    "region": "us-en",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("searchapi/duckduckgo-maps-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 '{
  "query": "coffee shops",
  "location": "New York",
  "maxItems": 20,
  "region": "us-en",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call searchapi/duckduckgo-maps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,searchapi/duckduckgo-maps-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/he2zsjw4k5Bye3F91/builds/874CZAQy68nJYtlh5/openapi.json
