{
  "openapi": "3.0.1",
  "info": {
    "title": "Grubhub + DoorDash + Uber Eats AIO Scraper (Menus/Diffs/Alerts)",
    "description": "Monitor restaurant menus on DoorDash, Uber Eats, and Grubhub. Extract complete menu data with prices, detect changes, and get alerts when items are added/removed or prices change. Simple pricing: $0.01 per menu item. No per-URL fees, no complicated tiers.",
    "version": "0.0",
    "x-build-id": "KqaRzgKHt9yBwNppf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quantitative_litre~food-delivery-listing-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quantitative_litre-food-delivery-listing-monitor",
        "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/quantitative_litre~food-delivery-listing-monitor/runs": {
      "post": {
        "operationId": "runs-sync-quantitative_litre-food-delivery-listing-monitor",
        "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/quantitative_litre~food-delivery-listing-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-quantitative_litre-food-delivery-listing-monitor",
        "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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Restaurant URLs",
            "type": "array",
            "description": "One or more restaurant URLs from DoorDash, Uber Eats, or Grubhub. The actor will automatically detect which platform each URL belongs to.",
            "items": {
              "type": "string",
              "pattern": "^https?://.*"
            }
          },
          "locationZipCode": {
            "title": "Delivery ZIP Code",
            "pattern": "^[0-9]{5}$",
            "type": "string",
            "description": "Required for most restaurants. The delivery location ZIP code. Some platforms won't show menu prices without a valid delivery location.",
            "default": "90210"
          },
          "locationLatitude": {
            "title": "Latitude (optional)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "GPS latitude coordinate for more precise location matching. Use with longitude for best results."
          },
          "locationLongitude": {
            "title": "Longitude (optional)",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "GPS longitude coordinate for more precise location matching. Use with latitude for best results."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "pattern": "^https?://.*",
            "type": "string",
            "description": "Get notified when menus change. Sends a POST request with change details. Supports Slack, Discord, or any HTTP endpoint."
          },
          "webhookSeverityThreshold": {
            "title": "Alert Threshold",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Only send webhook notifications when change severity is at or above this level. Low = any change, Medium = 3+ items or price changes, High = 10+ items.",
            "default": "medium"
          },
          "diffEnabled": {
            "title": "Track Changes",
            "type": "boolean",
            "description": "When enabled, compares current menu with previous run and outputs diff records showing what changed (added/removed items, price changes).",
            "default": true
          },
          "useApifyProxy": {
            "title": "Use Residential Proxy",
            "type": "boolean",
            "description": "Highly recommended for reliability. Uses residential IP addresses to avoid blocks. Slightly higher cost but much better success rate.",
            "default": true
          },
          "maxAttempts": {
            "title": "Max Retry Attempts",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of retry attempts if a scrape fails. Higher values improve reliability but increase run time and cost.",
            "default": 2
          },
          "maxConcurrency": {
            "title": "Parallel Processing",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many restaurants to process simultaneously. Lower values are more reliable but slower. Increase for speed if monitoring many restaurants.",
            "default": 2
          },
          "enablePpeCharging": {
            "title": "Enable Pricing",
            "type": "boolean",
            "description": "Enable pay-per-item pricing ($0.01 per menu item). Simple pricing - you only pay for what you use. Disable only if you have a custom pricing agreement.",
            "default": true
          },
          "doordashMaxWallMs": {
            "title": "DoorDash Timeout (ms)",
            "minimum": 30000,
            "maximum": 300000,
            "type": "integer",
            "description": "Maximum time to spend on each DoorDash URL. Lower values reduce costs but may fail on challenging pages. Increase if DoorDash consistently fails.",
            "default": 90000
          },
          "webhookSendRunSummary": {
            "title": "Send Daily Summary",
            "type": "boolean",
            "description": "Send a summary webhook at the end of each run with total counts of restaurants checked, changes found, and any errors.",
            "default": false
          },
          "debugSaveBlockedPages": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Save debug information (HTML, screenshots) when pages fail to load. Useful for troubleshooting. Increases storage usage.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}