Just Eat API endpoint
Returns one Just Eat restaurant by `unique_name`, the slug found in a search result. The response has the restaurant id, name, address, city, postal code, country, image, primary cuisine, rating and rating count, and `is_active`, which says whether it currently accepts orders. `rating` can read `0` even when the site shows one. An unknown `unique_name` returns `404`.
/justeat/restaurantReturns one Just Eat restaurant's detail by unique_name.
Query parameters:
unique_name (required) — restaurant slug, from /justeat/search's unique_name field, e.g. mcdonalds-victorialondon.Response fields: restaurant_id, name, unique_name, address, city, postal_code, country, image_url, primary_cuisine, rating, rating_count, and is_active (whether the restaurant currently accepts orders). rating/rating_count are read from the same page state that serves /justeat/restaurant/menu, and were observed to sometimes read 0 even for a restaurant the site's own rendered page shows a real rating for -- treated as best-effort, not guaranteed present.
| Field | In the sample | Value in the sample |
|---|---|---|
| restaurant_id | Has a value | |
| name | Has a value | “McDonald's® - Victoria” |
| unique_name | Has a value | “mcdonalds-victorialondon” |
| address | Has a value | |
| city | Has a value | “London” |
| postal_code | Has a value | |
| country | Has a value | “United Kingdom” |
| image_url | Has a value | d30v2pzvrfyzpo.cloudfront.net |
| primary_cuisine | Has a value | “burgers” |
| is_active | Has a value | true |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| unique_name | string | Yes | Restaurant slug, from a search response's unique_name field | mcdonalds-victorialondon | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/justeat/restaurant?unique_name=mcdonalds-victorialondon" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"restaurant_id": "120913",
"name": "McDonald's® - Victoria",
"unique_name": "mcdonalds-victorialondon",
"address": "155 Victoria Street, London, SW1E 5NA",
"city": "London",
"postal_code": "SW1E 5NA",
"country": "United Kingdom",
"image_url": "https://d30v2pzvrfyzpo.cloudfront.net/uk/images/restaurants/120913.gif",
"primary_cuisine": "burgers",
"rating": 4.5,
"rating_count": 4647,
"is_active": true
}
}Request schema
No body schema
Response schema
#/definitions/justeat.restaurantResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | justeat.RestaurantResponse | No | ||||
| data.address | string | No | ||||
| data.city | string | No | ||||
| data.country | string | No | ||||
| data.image_url | string | No | ||||
| data.is_active | boolean | No | ||||
| data.name | string | No | ||||
| data.postal_code | string | No | ||||
| data.primary_cuisine | string | No | ||||
| data.rating | number | No | ||||
| data.rating_count | integer | No | ||||
| data.restaurant_id | string | No | ||||
| data.unique_name | string | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/justeat/restaurant?unique_name=mcdonalds-victorialondon" \
-H "x-api-key: $CRAWLORA_API_KEY"