{
  "openapi": "3.0.1",
  "info": {
    "title": "Lieferando Menu Scraper - Restaurant Menus, Prices & Delivery",
    "description": "Scrape restaurant menus & dish prices from Lieferando.de, Germany's largest food delivery platform. Menu, price, delivery fees & minimum order per German postcode, with change detection across runs. Food delivery menu data as JSON rows. Unofficial, independent tool.",
    "version": "1.0",
    "x-build-id": "gRf25zsfcjdd3TY1R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kamerozkan~german-delivery-menu-price-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kamerozkan-german-delivery-menu-price-intelligence",
        "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/kamerozkan~german-delivery-menu-price-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-kamerozkan-german-delivery-menu-price-intelligence",
        "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/kamerozkan~german-delivery-menu-price-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-kamerozkan-german-delivery-menu-price-intelligence",
        "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": [
          "postalCodes",
          "maxRestaurantsPerPostalCode",
          "includeMenus",
          "trackPriceHistory",
          "generateAnalytics",
          "maxConcurrency",
          "maxRequestRetries",
          "qualityThresholds",
          "customProductAliases",
          "failOnQualityIssues",
          "sendSuccessWebhook"
        ],
        "properties": {
          "postalCodes": {
            "title": "German postal codes",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Five-digit German postal codes. Each location is opened through Lieferando's own postcode-routed result page. Cost scales with delivered rows: $0.001 per result row (menu items, matrices, summaries), so postcode count times restaurants times menu size drives the total.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]{5}$"
            },
            "default": [
              "10115"
            ]
          },
          "maxRestaurantsPerPostalCode": {
            "title": "Restaurants per postal code",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of unique restaurant branches collected for each postal code.",
            "default": 2
          },
          "includeMenus": {
            "title": "Collect full menus",
            "type": "boolean",
            "description": "When enabled, outputs one dataset row per menu item. Disable for a faster restaurant-list-only run.",
            "default": true
          },
          "trackPriceHistory": {
            "title": "Track 90-day price history",
            "type": "boolean",
            "description": "Persists item price observations in a named key-value store and adds change metrics to each menu row. Keep the same store across scheduled runs so inflation summaries and change fields build real history.",
            "default": true
          },
          "generateAnalytics": {
            "title": "Generate intelligence reports",
            "type": "boolean",
            "description": "Builds postcode price matrices, menu inflation summaries, CSV/JSON exports, and a visual HTML report.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of browser pages processed in parallel.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum retry count for blocked or temporarily failing Lieferando pages.",
            "default": 3
          },
          "qualityThresholds": {
            "title": "Quality monitoring thresholds",
            "type": "object",
            "description": "Thresholds used to mark the run healthy, degraded, or failed.",
            "properties": {
              "maxFailedRequestRate": {
                "title": "Maximum failed request rate",
                "description": "Warning threshold expressed as a value from 0 to 1.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "maxRetryRate": {
                "title": "Maximum recovered-retry rate",
                "description": "Warning threshold for requests that succeeded only after retrying, expressed as a value from 0 to 1.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "maxNullPriceRate": {
                "title": "Maximum null-price rate",
                "description": "Warning threshold expressed as a value from 0 to 1.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "minCuisineCoverage": {
                "title": "Minimum cuisine coverage",
                "description": "Required share of restaurants with a published or inferred cuisine.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "minMenuItemsPerRestaurant": {
                "title": "Minimum menu size",
                "description": "Warning threshold for extracted items in each restaurant/postcode menu observation and for the overall average.",
                "type": "integer",
                "minimum": 0,
                "maximum": 1000
              }
            },
            "default": {
              "maxFailedRequestRate": 0.2,
              "maxRetryRate": 0.5,
              "maxNullPriceRate": 0.05,
              "minCuisineCoverage": 0.8,
              "minMenuItemsPerRestaurant": 5
            },
            "additionalProperties": false
          },
          "customProductAliases": {
            "title": "Custom product aliases",
            "maxProperties": 500,
            "type": "object",
            "description": "Optional exact phrase mappings for market-specific names, for example {\"Hausrolle\":\"Signature Wrap\"}. Built-in German normalization still applies.",
            "default": {},
            "additionalProperties": true
          },
          "failOnQualityIssues": {
            "title": "Fail degraded runs",
            "type": "boolean",
            "description": "When enabled, marks the Actor run as failed if any quality warning or error is found.",
            "default": false
          },
          "alertWebhookUrl": {
            "title": "Alert webhook URL",
            "type": "string",
            "description": "Optional HTTPS endpoint that receives the run-quality summary for degraded or failed runs."
          },
          "sendSuccessWebhook": {
            "title": "Send healthy-run webhooks",
            "type": "boolean",
            "description": "Also sends the monitoring webhook when the run is healthy.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Defaults to a German residential Apify Proxy because Lieferando blocks data-center IPs. Residential traffic is billed separately by Apify.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "DE"
            }
          },
          "restaurantUrls": {
            "title": "Optional restaurant menu URLs",
            "maxItems": 500,
            "type": "array",
            "description": "Optional direct Lieferando menu URLs. Useful for testing or tracking a fixed competitor set.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "title": "Lieferando menu URL",
                  "description": "Direct URL of one Lieferando restaurant menu.",
                  "type": "string",
                  "pattern": "^https:\\/\\/www\\.lieferando\\.de\\/(?:[a-z]{2}\\/)?menu\\/.+"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}