Just Eat restaurants delivering to a postcode
Every restaurant and shop Just Eat lists for a UK or Irish postcode: id, slug, name, link, address, coordinates, star rating and count, cuisines, drive distance, delivery and collection flags, open-now flags for delivery and collection, pre-order, next opening times, delivery and collection ETA, delivery fee, minimum order, fee bands by basket size, deals, tags, new and premier flags, logo and whether it holds a hygiene rating of 3+ / Pass (UK). Filters: cuisine, the site's refine filters (deals, free delivery, 4+ stars, open now, collection, new, hygiene rating, halal, meal deal), name search and service; sorts: recommended, rating, reviews, distance, delivery fee, minimum order, delivery time. The response lists the area's cuisines and filters with counts. limit sets the page size; pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
postcoderequired | string | A full UK postcode (e.g. EC4M 7RF) or Irish Eircode. Example: EC4M 7RF |
country | string | uk (default) or ie. |
cuisine | string | Cuisine values, comma-separated (any of them matches), e.g. pizza, indian, burgers, sushi; see available_filters. Example: pizza |
filter | string | Refine filters, comma-separated (all must match): with_discounts, free_delivery, four_star, open_now, collection, new, fsa, halal, meal_deal. |
q | string | Only restaurants whose name or cuisine contains this. |
service | string | delivery or collection. |
sort | string | recommended (default), rating, reviews, distance, delivery_fee, min_order or delivery_time. Example: rating |
limit | integer | Restaurants per page, 1-200 (default 50). Example: 50 |
page | integer | Page number (default 1). Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/justeat/v1/restaurants?postcode=EC4M+7RF" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/justeat/v1/restaurants",
params={"postcode": "EC4M 7RF"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/justeat/v1/restaurants");
url.searchParams.set("postcode", "EC4M 7RF");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).