{
  "openapi": "3.0.1",
  "info": {
    "title": "Just Eat Scraper - Restaurants, Menus, Prices & Offers",
    "description": "Scrape Just Eat UK restaurants by postcode: ratings, cuisines, delivery fees, minimum order, ETA, deals, address & geo — plus full menus with item prices, variations, dietary labels, calories and modifiers. Monitoring mode for only-new/changed data. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "UL28NFBIULQWOLSLx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~just-eat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-just-eat-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~just-eat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-just-eat-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~just-eat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-just-eat-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": {
          "postcodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "UK postcodes to scrape. Just Eat lists restaurants by delivery area, so a postcode is the way in — e.g. `EC1A 1BB`, `M1 1AE`, `B1 1AA`, `LS1 1UR`, `EH1 1BB`. Each postcode returns every restaurant that delivers/collects there. Spaces are optional.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Just Eat area URLs to scrape instead of / alongside postcodes, e.g. `https://www.just-eat.co.uk/area/ec1a/london`. The outward postcode is taken from the URL. (Single restaurant URLs are not supported here — use the restaurant's postcode in `postcodes`.)",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "uk"
            ],
            "type": "string",
            "description": "Just Eat marketplace to scrape. Currently the United Kingdom (the largest Just Eat market) is supported.",
            "default": "uk"
          },
          "maxRestaurants": {
            "title": "Max restaurants per postcode",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on restaurants collected per postcode (a busy postcode can list 2,000+). The default keeps runs fast and cheap.",
            "default": 100
          },
          "includeMenu": {
            "title": "Include full menu (items + prices)",
            "type": "boolean",
            "description": "For each restaurant, also fetch its complete menu from Just Eat's public menu CDN: every item with description, price per size/variation, dietary labels, calories and image. This is the headline feature for price monitoring and menu analysis. Turn off for a faster, listing-only run.",
            "default": true
          },
          "includeModifiers": {
            "title": "Include menu modifiers & deals",
            "type": "boolean",
            "description": "When menus are included, also fetch the item modifiers/add-on groups (e.g. toppings, sides, choices) and deal groups. One extra request per restaurant.",
            "default": true
          },
          "includeLiveData": {
            "title": "Include live data (fees, badges, live rating)",
            "type": "boolean",
            "description": "Fetch each restaurant's live state: granular delivery/service fees by basket value, current rating, temporary-offline/throttled status and badges. Adds one request per restaurant. Most users don't need this — the listing already has delivery cost, ETA, rating and deals.",
            "default": false
          },
          "cuisineFilter": {
            "title": "Cuisine filter (optional)",
            "type": "string",
            "description": "Only keep restaurants whose cuisines/tags contain this text, e.g. `pizza`, `indian`, `chinese`, `burgers`, `sushi`, `vegan`, `breakfast`. Leave blank for all."
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep restaurants with a star rating at or above this value (0 = keep all).",
            "default": 0
          },
          "openNowOnly": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Only keep restaurants currently open for delivery or collection.",
            "default": false
          },
          "deliveryOnly": {
            "title": "Delivery only",
            "type": "boolean",
            "description": "Only keep restaurants that offer delivery (drop collection-only venues).",
            "default": false
          },
          "monitorMode": {
            "title": "Monitoring mode — only new / changed restaurants",
            "type": "boolean",
            "description": "Remember restaurants seen in previous runs (in a named key-value store) and emit only NEW restaurants and ones whose rating, delivery fee, minimum order, offer count, offline status or menu price range changed (tagged with `changeType`). Perfect for tracking a postcode on a schedule without re-paying for unchanged rows. Works alongside Apify Schedules — schedule the run, this controls what's emitted.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store holding the 'already seen' restaurant ids/fingerprints for monitoring mode. Use a different name per tracked postcode/feed to keep histories separate. Lowercase letters, digits and hyphens only.",
            "default": "just-eat-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of restaurant menu/detail requests fetched in parallel.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify Proxy is recommended. The default datacenter proxy works well; switch to RESIDENTIAL only if you see rate-limiting on very large runs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "urlsFromFile": {
            "title": "Import URLs from a file",
            "type": "string",
            "description": "Paste a list of URLs (one per line), OR one link to a .txt/.csv file, Google Sheet or Google Drive file containing them. Lets you import many Start URLs at once instead of typing each. Google Sheet/Drive share links are handled automatically."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}