{
  "openapi": "3.0.1",
  "info": {
    "title": "Just Eat & Lieferando Scraper – Restaurants, Menus, Prices,Fees",
    "description": "Restaurants, menus, prices and delivery fees from Just Eat, Lieferando, Thuisbezorgd, Takeaway.com, Pyszne.pl and Bistro.sk in 12 countries. Any address or whole city, full menus, supermarket catalogues with barcodes, monitoring mode, and a live API.",
    "version": "0.0",
    "x-build-id": "Edayw3HkJPvre76hT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lukass~just-eat-takeaway-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lukass-just-eat-takeaway-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/lukass~just-eat-takeaway-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lukass-just-eat-takeaway-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/lukass~just-eat-takeaway-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lukass-just-eat-takeaway-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",
        "required": [
          "proxy"
        ],
        "properties": {
          "country": {
            "title": "Country",
            "enum": [
              "uk",
              "ie",
              "de",
              "at",
              "nl",
              "be",
              "lu",
              "ch",
              "pl",
              "sk",
              "es",
              "it"
            ],
            "type": "string",
            "description": "Market to scrape. Addresses and cities are looked up in this country, and prices come in its currency.",
            "default": "uk"
          },
          "locations": {
            "title": "Delivery addresses",
            "type": "array",
            "description": "Addresses, postcodes or coordinates (\"51.5072,-0.1276\") to deliver to, one per line. Each returns every restaurant that delivers there.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Whole cities",
            "type": "array",
            "description": "City names. The city is covered with a grid of delivery points and every restaurant that delivers anywhere in it is returned once.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Restaurant URLs",
            "type": "array",
            "description": "Restaurant pages to scrape directly, from any supported country, e.g. https://www.just-eat.co.uk/restaurants-name/menu or https://www.lieferando.de/speisekarte/name. Details and menu are always fetched.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "gridSpacingKm": {
            "title": "City grid spacing (km)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Distance between delivery points when scraping a whole city. Smaller finds more restaurants at the edges of delivery zones, at the cost of more requests.",
            "default": 3
          },
          "maxPointsPerCity": {
            "title": "Max delivery points per city",
            "minimum": 1,
            "type": "integer",
            "description": "Caps the grid for very large cities. The points kept are spread evenly over the city.",
            "default": 150
          },
          "searchQueries": {
            "title": "Search",
            "type": "array",
            "description": "Search terms, as typed into the app: a brand (\"McDonald's\"), a dish (\"pad thai\") or a cuisine. Each runs at every address and city point. Leave empty to list everything that delivers.",
            "items": {
              "type": "string"
            }
          },
          "onlyNameMatches": {
            "title": "Only restaurants named like the search",
            "type": "boolean",
            "description": "Keep only results whose name contains the search term - to find one brand's branches, since search also returns restaurants that merely serve the dish.",
            "default": false
          },
          "nameFilter": {
            "title": "Restaurant name contains",
            "type": "array",
            "description": "Keep only restaurants whose name contains one of these (case and punctuation ignored). Applies to every source.",
            "items": {
              "type": "string"
            }
          },
          "vertical": {
            "title": "Category",
            "enum": [
              "all",
              "restaurants",
              "groceries",
              "gifts"
            ],
            "type": "string",
            "description": "Which tab of the app to list.",
            "default": "all"
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Only restaurants with one of these cuisines, matched loosely against the app's cuisine tags: \"pizza\" also matches \"Italian style pizza\", \"sushi\", \"indian\", \"burger\". Use the local word where the app does (\"hamburguesas\" in Spain, \"cinese\" in Italy); the run log lists the cuisines of an area when nothing matches.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "bestMatch",
              "reviewRating",
              "distance",
              "deliveryTime",
              "minimumOrderValue",
              "deliveryFee"
            ],
            "type": "string",
            "description": "Order of the restaurant list - and so which restaurants are kept when Max restaurants cuts it.",
            "default": "bestMatch"
          },
          "onlyOpen": {
            "title": "Only open now",
            "type": "boolean",
            "description": "Skip restaurants that are closed for delivery right now. Off by default: closed restaurants are listed too, with their next opening time.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Only restaurants rated at least this many stars (out of 5), e.g. 4.5."
          },
          "freeDeliveryOnly": {
            "title": "Only free delivery",
            "type": "boolean",
            "description": "Only restaurants that deliver for free at their minimum order.",
            "default": false
          },
          "includeSponsored": {
            "title": "Include sponsored listings",
            "type": "boolean",
            "description": "Restaurants that pay for their place in the list. They are also listed normally, so turning this off removes them altogether.",
            "default": true
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "restaurants",
              "menuItems"
            ],
            "type": "string",
            "description": "One record per restaurant (with its menu nested), or one record per menu item - easier for spreadsheets and price comparison.",
            "default": "restaurants"
          },
          "fetchMenu": {
            "title": "Fetch restaurant details and menu",
            "type": "boolean",
            "description": "A few extra small requests per restaurant for its full address, legal details, opening hours, live delivery fee, service and bag fees, star breakdown and menu. Turn off for a cheaper list of names, ratings, fees and delivery times only.",
            "default": true
          },
          "includeMenuItems": {
            "title": "Include menu items",
            "type": "boolean",
            "description": "Add every menu item (name, description, price, sizes, discounted price, category, calories, photo, sold out) to each restaurant record.",
            "default": true
          },
          "includeModifiers": {
            "title": "Include item options",
            "type": "boolean",
            "description": "Add each item's option groups (sauces, sides, extras) with their prices. Makes records much larger.",
            "default": false
          },
          "includeGroceryCatalog": {
            "title": "Full grocery catalogue",
            "type": "boolean",
            "description": "For supermarkets and convenience stores (Co-op, Sainsbury's, Budgens, REWE, Spar...), return every product - often 2,000-5,000 - with price, member price, offer, barcode (GTIN), pack size, unit price and stock. Billed once per store on top of the menu.",
            "default": false
          },
          "menuLanguage": {
            "title": "Menu language",
            "enum": [
              "local",
              "en"
            ],
            "type": "string",
            "description": "Restaurants write their menu in the local language; many also offer an English translation.",
            "default": "local"
          },
          "maxItems": {
            "title": "Max restaurants",
            "type": "integer",
            "description": "Stop after this many restaurants. Split evenly between sources (each address, city and search term); a source that runs out early hands its remainder to the others. Leave empty for no limit."
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new restaurants)",
            "type": "boolean",
            "description": "Return only restaurants that earlier runs of this same search did not list - new openings and places that started delivering to the area. The first run is the baseline: it remembers every restaurant it listed, also those beyond Max restaurants. Changing the addresses, cities, search or filters starts a fresh list.",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy uses residential IPs from the selected country by default. Proxy costs are included in the price.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}