{
  "openapi": "3.0.1",
  "info": {
    "title": "DoorDash Scraper - Restaurants, Menus & Prices",
    "description": "Scrape DoorDash restaurants & menus by city: name, full address, cuisine, price tier, menu items with prices, rating, reviews and geo. Optional full menu & review enrichment and monitoring. No login or API key.",
    "version": "0.1",
    "x-build-id": "fDxnaS7nSPwizZNki"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~doordash-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-doordash-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~doordash-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-doordash-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~doordash-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-doordash-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities to scrape restaurants in, as \"City, ST\" — e.g. \"Austin, TX\", \"New York, NY\", \"Los Angeles, CA\". One per row.",
            "items": {
              "type": "string"
            }
          },
          "cuisines": {
            "title": "Cuisines (optional)",
            "type": "array",
            "description": "Optional cuisine filters to expand coverage per city — e.g. pizza, mexican, chinese, sushi, burgers, thai, indian, vegan. Each cuisine is scraped separately per city (~50 restaurants each). Leave empty for the general restaurant list.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (city or store)",
            "type": "array",
            "description": "DoorDash URLs to scrape directly: city pages (https://www.doordash.com/food-delivery/<city>-<st>-restaurants/) or single restaurant pages (https://www.doordash.com/store/<slug>-<id>/). Store URLs always pull the full menu, rating and reviews. One per row.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results (restaurants)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on restaurant records across the whole run.",
            "default": 100
          },
          "includeStoreDetails": {
            "title": "Include full store details (full menu, rating, reviews, geo)",
            "type": "boolean",
            "description": "Open each restaurant's store page for the complete menu (every section, item & price), star rating, review count, customer reviews and geo coordinates. One extra request per restaurant. Off = a fast, cheap run with the city-feed data (name, address, cuisine, price tier, logo and a popular-items menu preview).",
            "default": false
          },
          "includeReviews": {
            "title": "Include customer reviews (with store details)",
            "type": "boolean",
            "description": "When store details are on, also include individual customer reviews (author, star rating, text).",
            "default": true
          },
          "maxReviewsPerStore": {
            "title": "Max reviews per restaurant",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum customer reviews to keep per restaurant (DoorDash exposes a handful of recent reviews).",
            "default": 10
          },
          "cuisineFilter": {
            "title": "Cuisine filter (output)",
            "type": "array",
            "description": "Keep only restaurants whose cuisine matches one of these (case-insensitive substring, e.g. \"pizza\", \"mexican\"). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "priceTiers": {
            "title": "Price tiers",
            "type": "array",
            "description": "Keep only restaurants in these price tiers: 1 = $, 2 = $$, 3 = $$$, 4 = $$$$. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "$",
                "$$",
                "$$$",
                "$$$$"
              ]
            },
            "default": []
          },
          "minRating": {
            "title": "Minimum rating (requires store details)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only restaurants with a star rating at or above this value (1–5). Requires store details on. 0 = no filter.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum reviews (requires store details)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Keep only restaurants with at least this many reviews. Requires store details on. 0 = no filter.",
            "default": 0
          },
          "withMenuOnly": {
            "title": "Only restaurants with a menu",
            "type": "boolean",
            "description": "Output only restaurants that have menu items.",
            "default": false
          },
          "deduplicateStores": {
            "title": "Deduplicate restaurants",
            "type": "boolean",
            "description": "Skip a restaurant already emitted earlier in the same run (common when scraping a city across multiple cuisines).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new restaurants",
            "type": "boolean",
            "description": "Remember which restaurants were already returned and emit ONLY restaurants not seen in previous runs. Pairs with Apify Schedules to track new restaurant openings in a market over time.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that holds the 'already seen' store ids for monitoring mode. Use a different name per tracked market to keep histories separate.",
            "default": "doordash-scraper-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum parallel requests. Lower it for very large runs if you see transient blocks; raise it for speed.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. DoorDash serves clean pages over US residential IPs but challenges datacenter IPs, so US Residential is the default and recommended setting. Blocked requests retry automatically on a fresh IP.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "countryCode": "US"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}