{
  "openapi": "3.0.1",
  "info": {
    "title": "DoorDash Restaurant Finder & Customer Review Extractor",
    "description": "Find DoorDash restaurants by city, address or search keyword, or pull store details and public customer reviews from store URLs and IDs. Returns cuisines, ratings, review distribution, price range, delivery fee, ETA, distance, DashPass and open-now flags, promotions, addresses and review text.",
    "version": "1.0",
    "x-build-id": "Q9WSbEZrkGVuJqRGW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~doordash-restaurant-finder-customer-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-doordash-restaurant-finder-customer-reviews",
        "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/crawlyth-forge~doordash-restaurant-finder-customer-reviews/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-doordash-restaurant-finder-customer-reviews",
        "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/crawlyth-forge~doordash-restaurant-finder-customer-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-doordash-restaurant-finder-customer-reviews",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "discover",
              "cityDirectory",
              "stores",
              "reviews"
            ],
            "type": "string",
            "description": "What to collect. Discover searches around a city or delivery address. City directory lists every store DoorDash shows for a city. Stores returns full detail for the URLs/IDs you paste. Reviews returns public customer reviews for those stores.",
            "default": "discover"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City or full delivery address for discover mode, for example 'New York, NY 10001' or '350 5th Ave, New York, NY 10118'. DoorDash localizes ratings, delivery fees, ETAs and availability to this location.",
            "default": "New York, NY 10001"
          },
          "city": {
            "title": "City directory",
            "type": "string",
            "description": "City name, DoorDash city slug or city page URL for cityDirectory mode, for example 'new-york-ny-restaurants', 'New York, NY', or 'https://www.doordash.com/food-delivery/new-york-ny-restaurants/'.",
            "default": "new-york-ny-restaurants"
          },
          "searchQuery": {
            "title": "Keyword or dish",
            "type": "string",
            "description": "Optional keyword for discover mode, for example 'pizza', 'sushi' or 'McDonald's'. Leave empty to list every store around the location.",
            "default": ""
          },
          "cuisine": {
            "title": "Cuisine",
            "enum": [
              "",
              "American",
              "Bakery",
              "BBQ",
              "Breakfast",
              "Bubble Tea",
              "Burgers",
              "Caribbean",
              "Chicken",
              "Chinese",
              "Coffee",
              "Colombian",
              "Convenience",
              "Desserts",
              "Empanadas",
              "French",
              "Greek",
              "Grocery",
              "Healthy",
              "Indian",
              "Italian",
              "Japanese",
              "Korean",
              "Mediterranean",
              "Mexican",
              "Middle Eastern",
              "Noodles",
              "Peruvian",
              "Pizza",
              "Poke",
              "Ramen",
              "Salads",
              "Sandwiches",
              "Seafood",
              "Soul Food",
              "Sushi",
              "Tacos",
              "Thai",
              "Vegan",
              "Vegetarian",
              "Vietnamese",
              "Wings"
            ],
            "type": "string",
            "description": "Optional cuisine filter using one of DoorDash's common cuisine labels. Leave on Any cuisine to use only the keyword above.",
            "default": ""
          },
          "storeUrls": {
            "title": "Store URLs or IDs",
            "type": "array",
            "description": "DoorDash store links or numeric store IDs for stores/reviews mode. Accepts https://www.doordash.com/store/<slug>-<id>/, bare store URLs, /reviews/store/<id>/ links, locale-prefixed links and bare numeric IDs. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "maxStores": {
            "title": "Max stores",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum store records to return in discover/cityDirectory/stores mode. In reviews mode it is the maximum number of stores whose reviews are read. Lower values are faster and cheaper.",
            "default": 20
          },
          "maxReviewsPerStore": {
            "title": "Max reviews per store",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum public reviews to keep per store. DoorDash shows about five recent public reviews to a signed-out visitor; the full written review history is only available after signing in, so values above five keep everything the public page serves.",
            "default": 5
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep stores rated at least this many stars (0 means no minimum). Stores without a published rating pass through unless 'Rated stores only' is on.",
            "default": 0
          },
          "ratedOnly": {
            "title": "Rated stores only",
            "type": "boolean",
            "description": "Drop stores that do not publish an average rating.",
            "default": false
          },
          "dashPassOnly": {
            "title": "DashPass only",
            "type": "boolean",
            "description": "Keep only stores marked as DashPass partners. Store details are fetched automatically when this is on.",
            "default": false
          },
          "openNowOnly": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Keep only stores DoorDash currently shows as open/available.",
            "default": false
          },
          "includeRetail": {
            "title": "Include grocery & retail",
            "type": "boolean",
            "description": "Include convenience, grocery and retail stores in discover/cityDirectory results. Off by default so the actor stays a restaurant finder.",
            "default": false
          },
          "reviewsSince": {
            "title": "Reviews since",
            "type": "string",
            "description": "Optional date (YYYY-MM-DD). Only reviews written on or after this date are kept. Reviews are returned in DoorDash's own display order, which is roughly newest first."
          },
          "enrichStores": {
            "title": "Fetch full store details",
            "type": "boolean",
            "description": "For discover and cityDirectory: also read each store's detail page to fill exact rating counts, rating distribution, address, geo, DashPass flag and delivery/pickup ETAs. Turn off for faster, leaner lead lists with search-card fields only.",
            "default": true
          },
          "includeReviews": {
            "title": "Include review previews",
            "type": "boolean",
            "description": "For discover, cityDirectory and stores: attach the public review preview and review summary to each store record. Reviews mode always returns review records.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}