{
  "openapi": "3.0.1",
  "info": {
    "title": "Just Eat Scraper: Restaurants, Ratings, Cuisines, No Login",
    "description": "Just Eat restaurants for any UK postcode: name, address, coordinates, cuisines, rating, delivery fee, minimum order, delivery time, hygiene list. No login. $1 per 1,000 results, platform usage included.",
    "version": "0.1",
    "x-build-id": "aqscCeRNwk0YqbD4o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~just-eat-restaurants-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-just-eat-restaurants-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/one_dollar_store~just-eat-restaurants-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-just-eat-restaurants-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/one_dollar_store~just-eat-restaurants-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-just-eat-restaurants-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": [
          "postcodes"
        ],
        "properties": {
          "postcodes": {
            "title": "UK postcodes",
            "type": "array",
            "description": "UK postcodes to search, one per line, for example \"EC4M 7RF\" or \"M1 1AE\". The first part alone (\"EC4M\", \"G1\") also works. Each postcode returns the restaurants Just Eat lists for it, usually 500 to 2,000 in a city. A restaurant listed under several postcodes is returned once.",
            "items": {
              "type": "string"
            }
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Only restaurants that list one of these cuisines, for example \"Pizza\", \"Indian\" or \"Fish & Chips\". Leave empty for all cuisines.",
            "items": {
              "type": "string"
            }
          },
          "serviceType": {
            "title": "Service",
            "enum": [
              "any",
              "delivery",
              "collection"
            ],
            "type": "string",
            "description": "Keep restaurants that offer delivery, collection, or either.",
            "default": "any"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only restaurants with at least this star rating (0 to 5). Restaurants without ratings are dropped when you set this."
          },
          "minRatingCount": {
            "title": "Minimum number of ratings",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Only restaurants with at least this many ratings."
          },
          "openNowOnly": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Only restaurants that accept orders at the moment of the run (for the service chosen above).",
            "default": false
          },
          "freeDeliveryOnly": {
            "title": "Free delivery only",
            "type": "boolean",
            "description": "Only restaurants with a delivery fee of zero.",
            "default": false
          },
          "hygienePassOnly": {
            "title": "Hygiene rating 3+ or Pass only",
            "type": "boolean",
            "description": "Only restaurants that Just Eat lists under its \"Hygiene Rating 3+ / Pass\" filter.",
            "default": false
          },
          "newOnly": {
            "title": "New restaurants only",
            "type": "boolean",
            "description": "Only restaurants Just Eat marks as new.",
            "default": false
          },
          "onlyWithDeals": {
            "title": "Only restaurants with offers",
            "type": "boolean",
            "description": "Only restaurants that show a deal or sit in one of Just Eat's offer lists.",
            "default": false
          },
          "maxDeliveryFee": {
            "title": "Maximum delivery fee (GBP)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only restaurants whose delivery fee is at or below this amount."
          },
          "maxMinimumOrder": {
            "title": "Maximum minimum order (GBP)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Only restaurants whose minimum order for delivery is at or below this amount."
          },
          "maxDistanceKm": {
            "title": "Maximum distance (km)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only restaurants within this driving distance of the postcode."
          },
          "nameContains": {
            "title": "Name contains",
            "maxLength": 100,
            "type": "string",
            "description": "Only restaurants whose name contains this text, for example \"kebab\" or \"mcdonald\"."
          },
          "sortBy": {
            "title": "Order of results",
            "enum": [
              "default",
              "rating",
              "reviews",
              "distance",
              "deliveryFee",
              "deliveryTime"
            ],
            "type": "string",
            "description": "Order the matching restaurants of each postcode before the limit is applied. Default is Just Eat's own order.",
            "default": "default"
          },
          "maxItemsPerPostcode": {
            "title": "Maximum results per postcode",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Take at most this many restaurants from each postcode (0 means no limit). Useful to spread a small total over many postcodes.",
            "default": 0
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 10,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many restaurants in total. Minimum 10.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}