# DoorDash Restaurant Scraper (`w3crawler/doordash-restaurant-scraper`) Actor

Extract publicly visible DoorDash restaurant listing data by location and fail closed with diagnostics when access is unavailable.

- **URL**: https://apify.com/w3crawler/doordash-restaurant-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 48.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 restaurants

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/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

## DoorDash Restaurant Scraper

Extract publicly visible restaurant listings from DoorDash search, listing, and store pages. The Actor reads restaurant JSON-LD and visible listing cards to return the restaurant name, storefront URL, slug, cuisine, price range, address, image, and requested location, plus rating, review count, delivery text, fees, minimum order, neighborhood, distance, tags, open-state, and payment or delivery signals when the page shows them.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/doordash-restaurant-scraper) and select **Try for free**, or open the **Input** tab.
2. Add public DoorDash listing, search, or store URLs to `startUrls`. To use a location page instead, leave `startUrls` empty and set `location` to a URL-style place value such as `new-york`.
3. Set `maxItems` and `maxPages` for the first run. Leave `saveDebugHtml` off unless you are debugging a page.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to see candidates, duplicates, requests, browser or proxy attempts, and any page that produced no listing.

### Input

All fields are optional. When `startUrls` is empty, the Actor builds one `https://www.doordash.com/food-delivery/<location>/` page from `location`. The example below mirrors `.actor/input.json`.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `location` | string | Optional | `"New York, NY"` | Location text used to build the default listing URL and copied into each row's `location` field, up to 200 characters. Use a URL-style value when relying on the default URL. |
| `startUrls` | object array | Optional | `[{"url":"https://www.doordash.com/store/mcdonalds-new-york-2731118/"}]` | Up to 10 public DoorDash listing, search, or store pages. Each entry is an object with a `url` string. When supplied, these pages replace the location-built URL; the schema default is an empty list. |
| `maxItems` | integer | Optional | `2` | Maximum normal restaurant rows across the run, 1–100. The bundled example uses 2; the schema default is 30. |
| `maxPages` | integer | Optional | `1` | Maximum pages requested, including supplied URLs and same-host next links, 1–10. The bundled example uses 1; the schema default is 3. |
| `requestTimeoutSecs` | integer | Optional | `45` | Timeout for each direct, browser, or proxy request, 5–60 seconds. The bundled example uses 45; the schema default is 20. |
| `maxRequestRetries` | integer | Optional | `2` | Retries for transient request failures, 0–3. |
| `requestDelayMs` | integer | Optional | `500` | Delay before retries and additional proxy sessions, 0–10,000 ms. The bundled example uses 500; the schema default is 600. |
| `maxBytes` | integer | Optional | `5000000` | Largest response body retained per page, 100,000–5,000,000 bytes. The bundled example uses 5,000,000; the schema default is 3,000,000. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":true,"apifyProxyCountry":"US"}` | Optional standard Apify Proxy fallback. The bundled example enables US proxy traffic; the schema default is `{"useApifyProxy":false}`. The bundled file also names an environment-specific proxy group, omitted here. |
| `saveDebugHtml` | boolean | Optional | `false` | Debug/QA use only: stores the first bounded response under the key-value store key `debug_html`. Leave off for production runs. |
| `maxProxyAttempts` | integer | Optional | `3` | Maximum proxy sessions tried when public data is still unavailable, 1–3. The bundled example uses 3; the schema default is 2. |

Default input from `.actor/input.json`:

```json
{
  "startUrls": [
    {
      "url": "https://www.doordash.com/store/mcdonalds-new-york-2731118/"
    }
  ],
  "location": "New York, NY",
  "maxItems": 2,
  "maxPages": 1,
  "requestTimeoutSecs": 45,
  "requestDelayMs": 500,
  "maxBytes": 5000000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  },
  "maxProxyAttempts": 3
}
```

`maxRequestRetries` and `saveDebugHtml` keep their schema defaults of `2` and `false`. Only public HTTPS pages on `doordash.com` or its subdomains are accepted. Each queued page is fetched directly; if it yields no restaurant candidates, the Actor may try one bounded browser session, then up to `maxProxyAttempts` proxy attempts using HTTP proxy sessions and a final proxied browser session. It follows only same-host `rel=next` links, and it does not sign in, solve CAPTCHAs, or call a private API. The saved rows below came from a separate run that used the New York City restaurant listing URL.

### Output

The dataset contains one row per unique public restaurant listing. Optional fields are omitted when DoorDash does not publish them; values are not inferred, and no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `id` | string | Always | Stable ID built from the listing URL, name, and address, prefixed `doordash-restaurant-`. |
| `recordType` | string | Always | Row discriminator; always `doordash-public-restaurant`. |
| `targetType` | string | Always | Record category; always `restaurant-listing`. |
| `name` | string | Always | Restaurant name as displayed in the listing. |
| `url` | string | Always | Public DoorDash storefront URL for the restaurant. |
| `sourceUrl` | string | Always | Listing, search, or store page that was actually parsed. |
| `searchUrl` | string | Always | Discovery page URL; for these rows it matches `sourceUrl`. |
| `slug` | string | When published | Storefront slug from the listing URL, such as `big-wong-restaurant-new-york-39641643`. |
| `cuisine` | string | When published | Cuisine or category label shown on the card or in JSON-LD. |
| `rating` | number | When published | Numeric rating from 0 to 5. |
| `ratingText` | string | When published | Rating as displayed, such as `4.5`. |
| `reviewCount` | integer | When published | Number of ratings or reviews, normalized to a nonnegative integer. |
| `deliveryTime` | string | When published | Displayed delivery estimate, such as `25–40 min`. |
| `deliveryFee` | string | When published | Displayed delivery fee text. |
| `minOrder` | string | When published | Displayed minimum-order text. |
| `priceRange` | string | When published | Price level shown on the listing, such as `$` or `$$`. |
| `address` | string | When published | Street address shown for the restaurant. |
| `neighborhood` | string | When published | Neighborhood label when the page exposes one. |
| `distance` | string | When published | Distance text from the requested location when shown. |
| `imageUrl` | string | When published | Header or card image URL for the restaurant. |
| `logoUrl` | string | When published | Logo URL when the page exposes one separately. |
| `tags` | string array | When published | Labels shown on the card, such as service or dietary tags. |
| `isSponsored` | boolean | When published | Whether the listing is marked as sponsored. |
| `promoted` | boolean | When published | Whether the page marks the listing as promoted. |
| `isOpenNow` | boolean | When published | Whether the listing reports the restaurant as open. |
| `isOpenText` | string | When published | Open or closed text as displayed. |
| `paymentMethods` | string array | When published | Payment methods listed for the restaurant. |
| `deliveryModes` | string array | When published | Delivery or pickup modes listed for the restaurant. |
| `location` | string | When supplied | Location text from the input, copied to every row. |
| `position` | integer | Always | One-based order in which the row was saved. |
| `extractionMethod` | string | Always | Parser that produced the record: `doordash-public-jsonld`, `doordash-public-dom-link`, or `doordash-public-html`. |
| `scrapedAt` | string | Always | UTC time the row was saved, in ISO 8601 format. |

The example below is the complete real saved row for the first listing from the 2026-10-25 run. Rating, review count, delivery text, tags, and open-state fields are absent because that listing did not expose them to the parser.

```json
{
  "id": "doordash-restaurant-7hinol",
  "recordType": "doordash-public-restaurant",
  "targetType": "restaurant-listing",
  "name": "Big Wong Restaurant",
  "url": "https://www.doordash.com/store/big-wong-restaurant-new-york-39641643/",
  "sourceUrl": "https://www.doordash.com/food-delivery/new-york-city-ny-restaurants/",
  "searchUrl": "https://www.doordash.com/food-delivery/new-york-city-ny-restaurants/",
  "slug": "big-wong-restaurant-new-york-39641643",
  "cuisine": "Cantonese",
  "priceRange": "$",
  "address": "67 Mott St, New York, NY, United States",
  "imageUrl": "https://img.cdn4dd.com/cdn-cgi/image/fit=contain,format=auto/https://doordash-static.s3.amazonaws.com/media/store/header/e9d01290-6b9f-4bc8-a964-669c03c117ca.png",
  "location": "New York, NY",
  "position": 1,
  "extractionMethod": "doordash-public-jsonld",
  "scrapedAt": "2026-10-25T20:50:04.815Z"
}
```

`tags`, `paymentMethods`, and `deliveryModes` are arrays of strings when present; they are omitted rather than written as empty arrays. `position` is the order the row was saved, not the restaurant's organic search rank. `sourceUrl` is the page that was parsed, while `url` is the restaurant's own storefront.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT`.

| Field | Meaning |
| --- | --- |
| `actor` | Actor slug, `doordash-restaurant-scraper`. |
| `recordType` | Summary discriminator, `run-summary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical outcome that mirrors `status`. |
| `dataStatus` | Completeness: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `requestedTargetCount` | URLs supplied in `startUrls`, or 1 when the location-built URL is used. |
| `scheduledTargetCount` | Pages actually queued and processed, capped by `maxPages`. |
| `emittedCount` | Normal restaurant rows saved. |
| `normalCount` | Normal restaurant rows produced; matches `emittedCount`. |
| `diagnosticCount` | Pages that failed, were blocked, or exposed no usable listing. |
| `failureCount` | Failed pages counted toward `dataStatus`. |
| `candidateCount` | Restaurant candidates parsed before filtering and deduplication. |
| `duplicateCount` | Candidates skipped because the same restaurant was already saved. |
| `requestCount` | Direct, browser, and proxy HTTP attempts, including retries. |
| `maxItems` | Item limit used for the run. |
| `maxPages` | Page limit used for the run. |
| `retryCount` | Transient retries performed. |
| `browserAttemptCount` | Requests made by the bounded direct-browser fallback. |
| `proxyAttemptCount` | Requests made through proxy sessions. |
| `visitedTargetCount` | Unique pages visited. The archived run reports 0 even though one page was scheduled, so that stored value is inconsistent with the other counts. |
| `proxyRequested` | Whether the input enabled Apify Proxy. |
| `proxyConfigured` | Whether an Apify Proxy configuration was created for the run. |
| `browserFallbackUsed` | Whether a browser session was started. |
| `fixtureUsed` | Whether the run parsed a bundled QA fixture instead of a live page. |
| `completedAt` | UTC time the summary was written, in ISO 8601 format. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Restaurant rows were saved and no page failed. |
| `SUCCEEDED` | `PARTIAL` | Rows were saved, but at least one page failed or exposed no listing. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | Pages completed without a hard failure but contained no usable restaurant listing. |
| `FAILED` | `FAILED` | No rows were saved and at least one page failed. |

Example `OUTPUT` from the saved 2026-10-25 run:

```json
{
  "actor": "doordash-restaurant-scraper",
  "recordType": "run-summary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "requestedTargetCount": 1,
  "scheduledTargetCount": 1,
  "emittedCount": 2,
  "normalCount": 2,
  "diagnosticCount": 0,
  "failureCount": 0,
  "candidateCount": 2,
  "duplicateCount": 0,
  "requestCount": 1,
  "maxItems": 2,
  "maxPages": 1,
  "retryCount": 0,
  "browserAttemptCount": 0,
  "proxyAttemptCount": 0,
  "visitedTargetCount": 0,
  "proxyRequested": true,
  "proxyConfigured": true,
  "browserFallbackUsed": false,
  "fixtureUsed": false,
  "completedAt": "2026-10-25T20:50:04.945Z"
}
```

The run read one listing page and saved two restaurants from its JSON-LD. It did not need the browser, a retry, or a proxy request, even though a proxy was configured. `visitedTargetCount: 0` is the archived value noted above.

### Coverage and limitations

The Actor captures only fields that DoorDash includes in the public page it receives. Search cards often omit rating, delivery estimates, fees, tags, and open-state fields, while a store page may expose a different subset. The parser recognizes JSON-LD, listing-card links, and a bounded HTML fallback; a page that renders restaurant data only after client-side interaction may yield no candidate.

A page is not retried through another transport after an access boundary, and the Actor does not bypass login walls or CAPTCHAs. It follows at most `maxPages` pages and stops at `maxItems` rows. `saveDebugHtml` writes a page body for debugging and is not intended for production. The runner also accepts hidden `fixtureFile` and `fixtureHtml` options for offline QA; they are not part of the public schema. Treat `fixtureUsed: true` summaries as non-live examples.

### Usage and support

Cost depends on Apify compute, the number of pages, browser fallback, proxy sessions, and response size. A listing page is usually cheaper than many store pages; keep `maxPages` low and rely on `maxItems` to bound rows. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/doordash-restaurant-scraper/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT` summary; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by DoorDash. Use it only for public data and in accordance with DoorDash's terms, robots guidance, and applicable law.

# Changelog

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

# Actor input Schema

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

DoorDash location text used to build the default public page URL.

## `startUrls` (type: `array`):

Optional public DoorDash pages; when omitted, a bounded location page is used.

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

Maximum public restaurant records to emit.

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

Maximum total public pages to inspect across the supplied URLs and explicit same-host next links.

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

Timeout for each public DoorDash request.

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

Bounded retries for transient public request failures.

## `requestDelayMs` (type: `integer`):

Bounded delay between transient retries and proxy attempts.

## `maxBytes` (type: `integer`):

Hard response-size bound for each page.

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

Optional standard Apify Proxy fallback for public DoorDash pages.

## `saveDebugHtml` (type: `boolean`):

When enabled, the first public response body is stored under the debug_html key for inspection.

## `maxProxyAttempts` (type: `integer`):

Bounded new-session attempts when public restaurant data is unavailable.

## Actor input object example

```json
{
  "location": "new-york",
  "startUrls": [],
  "maxItems": 30,
  "maxPages": 3,
  "requestTimeoutSecs": 20,
  "maxRequestRetries": 2,
  "requestDelayMs": 600,
  "maxBytes": 3000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "saveDebugHtml": false,
  "maxProxyAttempts": 2
}
```

# Actor output Schema

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

No description

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

No description

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

Run status and counters stored by the Actor.

# 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 = {
    "location": "new-york"
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/doordash-restaurant-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 = { "location": "new-york" }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/doordash-restaurant-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 '{
  "location": "new-york"
}' |
apify call w3crawler/doordash-restaurant-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/doordash-restaurant-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/37gz9A4OALraEriK4/builds/wOCDQ5qlXNhynxQGp/openapi.json
