# Foodhub Scraper — UK Takeaways, Menus & Prices (`teodor_banea/foodhub-restaurant-menu-scraper`) Actor

Scrape Foodhub (foodhub.co.uk), the UK takeaway app with 15,000+ takeaways: takeaways by town or postcode with ratings, reviews, delivery and collection times, offers, fees and hours, plus full menus with GBP prices and option groups. No proxy setup.

- **URL**: https://apify.com/teodor_banea/foodhub-restaurant-menu-scraper.md
- **Developed by:** [Banea Teodor](https://apify.com/teodor_banea) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Foodhub Takeaway & Menu Scraper (UK)

### What does Foodhub Takeaway & Menu Scraper do?

This Actor collects data from **Foodhub** (foodhub.co.uk), the UK takeaway-ordering app with more than 15,000 takeaways. Enter UK towns, postcodes or Foodhub takeaway URLs, and it returns either:

- **Takeaways** — one row per takeaway Foodhub lists for the town or postcode: rating and number of reviews, cuisines, delivery and collection times, open now (delivery / collection), offers such as "20% off orders over £30.00", today's hours, postcode, coordinates, logo and banner, and the public page URL. Optional takeaway details add the street address, business phone, minimum order, delivery fee, service fee, payment methods and the weekly opening hours.
- **Full menus** — one row per menu item with category and sub-category, price in GBP (and the "from" price of deal items priced by their first choice), item offer ("Buy 1 Get 1 FREE"), description, availability for delivery and collection today, diet labels and declared allergens, image, and the item's **option groups** (sizes, toppings, sauces, meal-deal choices) with every option price.

Takeaways and restaurants, grocery and convenience shops are all supported.

### Why use this Actor?

- **UK takeaway menu and price monitoring** — schedule it and follow item prices, deals and option prices for any takeaway or town.
- **Competitor menus by town or postcode** — compare categories, prices and add-on pricing across every pizza, kebab or curry house of a town.
- **Lead lists for food suppliers and POS vendors** — every takeaway of a town with cuisine, rating, review count, postcode and (with details) address and business phone.
- **Full option groups** — not just item names: every size, topping and meal-deal choice with its price, in menu order.
- **No setup** — no login, no cookies, no proxy configuration. Prices in GBP as numbers.

### How much does it cost?

You pay per result row (see the Pricing tab) plus a small start fee. Option groups cost **nothing extra per row** — one menu item is one row whether or not it has options.

| Run | Rows |
|---|---|
| Takeaways of one town (e.g. Stoke-on-Trent, about 240 takeaways) | ≈ 240 rows |
| 10 takeaways, full menus | ≈ 2,000–4,000 rows (a typical takeaway has 150–450 items) |
| One convenience shop, full range | ≈ 1,000–3,000 rows |

Keep **Maximum takeaways per location** and **Maximum items per takeaway** low for a first look; the prefilled input (2 takeaways in Reading, 25 items each) returns 50 rows and costs a few cents.

### Input

| Field | What it does | Example |
|---|---|---|
| What to scrape | Takeaways (one row per takeaway) or Full menus (one row per menu item) | Full menus |
| Towns or postcodes | UK towns, full postcodes, postcode districts or "latitude,longitude" points | `Reading`, `RG2 0ER`, `ST6` |
| Takeaway URLs | Foodhub takeaway pages, scraped in addition to the towns | `https://foodhub.co.uk/reading/example-tandoori/610/ordernow` |
| Business type | Takeaways & restaurants, Grocery & convenience, or both | Takeaways & restaurants |
| Search takeaways | Keep takeaways whose name or brand contains this text | `pizza` |
| Cuisines | Keep takeaways with one of these cuisines | `Pizza`, `Indian` |
| Only takeaways open now | Keep takeaways taking orders right now | off |
| Minimum rating | 3.5, 4.0 or 4.5 and up | 4.5 |
| Sort takeaways by | Foodhub order, rating, number of reviews or name | Foodhub order |
| Maximum takeaways per location | Takeaways per town / postcode (your URLs form one more group) | 50 |
| Maximum items per takeaway | First N menu items of each takeaway (0 = whole menu) | 0 |
| Maximum results | Ceiling on rows for the whole run (0 = up to 50,000) | 0 |
| Include option groups | Option groups per menu item | on |
| Include takeaway details | Address, phone, fees, payment methods and weekly hours in takeaways mode | off |

**Towns** return every takeaway Foodhub lists for that town (the same list as the town page on Foodhub; spaces and capitals do not matter, so "stoke on trent" works). **Postcodes** return the takeaways near that address. A **postcode district** such as "ST6" is searched through one full postcode of that district. Unknown towns and postcodes are reported in the log and under ERRORS; the run goes on with the others.

### Output

Every row has every key; missing values are `null` (or `[]` for lists). Prices are numbers in GBP with `currency: "GBP"`.

#### Takeaway row (with details)

```json
{
    "rowType": "restaurant",
    "storeId": "9876",
    "name": "Example Tandoori",
    "slug": "example-tandoori",
    "url": "https://foodhub.co.uk/reading/example-tandoori/49380/ordernow",
    "town": "Reading",
    "postcode": "RG1 1AA",
    "latitude": 51.4543,
    "longitude": -0.9781,
    "countryCode": "GB",
    "currency": "GBP",
    "businessType": "restaurant",
    "brandName": null,
    "cuisine": ["Indian", "Curry", "Tandoori"],
    "rating": 4.7,
    "ratingCount": 1234,
    "isOpen": true,
    "isDeliveryOpen": true,
    "isCollectionOpen": true,
    "offersDelivery": true,
    "offersCollection": true,
    "deliveryTimeMinutes": 45,
    "collectionTimeMinutes": 20,
    "acceptsPreorder": true,
    "minimumOrder": 12,
    "offers": ["20% off orders over £30.00"],
    "isNew": false,
    "todayHoursText": "Delivery 16:30-22:30; Collection 16:30-22:30",
    "logoUrl": "https://assets.foodhub.com/static/example/img/logo.png",
    "imageUrl": "https://assets.foodhub.com/images/thumbnails/example_1280.jpg",
    "searchLocation": "Reading",
    "listPosition": 3,
    "hasDetails": true,
    "description": "Example Tandoori is an Indian takeaway in Reading.",
    "address": "1 Example Street",
    "city": "Reading",
    "phone": "+441180000000",
    "deliveryFee": 2,
    "serviceCharge": 0.5,
    "paymentMethods": ["card", "apple_pay", "foodhub_wallet"],
    "openingHours": [{ "service": "delivery", "day": "monday", "opens": "16:30", "closes": "22:30" }],
    "openingHoursText": "Delivery: Mon 16:30-22:30, Tue 16:30-22:30, …; Collection: Mon 16:30-22:30, …",
    "scrapedAt": "2026-11-12T19:30:00.000Z",
    "runId": "aBcD1234EfGh5678"
}
```

Without details (the default in takeaways mode) the fields from `description` to `openingHoursText` are `null` / `[]` and `hasDetails` is `false`. In menus mode these takeaway records (with details) are saved under **RESTAURANTS** in the run's key-value store.

#### Menu item row

```json
{
    "rowType": "menuItem",
    "storeId": "9876",
    "storeName": "Example Tandoori",
    "storeSlug": "example-tandoori",
    "storeUrl": "https://foodhub.co.uk/reading/example-tandoori/49380/ordernow",
    "storeTown": "Reading",
    "storePostcode": "RG1 1AA",
    "storeCuisine": ["Indian", "Curry"],
    "storeRating": 4.7,
    "storeIsOpen": true,
    "searchLocation": "Reading",
    "currency": "GBP",
    "categoryId": "1000001",
    "categoryName": "Traditional Curries",
    "categoryPosition": 6,
    "subcategoryId": "2000001",
    "subcategoryName": "Korma",
    "productId": "30000001",
    "name": "Chicken Korma",
    "description": "Cooked in a mild gravy with almonds and cream",
    "price": 10.3,
    "priceText": "£10.30",
    "isPriceFrom": false,
    "offer": null,
    "isAvailable": true,
    "availableForDelivery": true,
    "availableForCollection": true,
    "dietLabels": [],
    "allergens": [],
    "nutrition": null,
    "hasOptions": true,
    "modifierGroups": [
        {
            "id": "50000001",
            "name": "Curry Option",
            "description": "Please select one of the following",
            "type": "radio",
            "minSelection": 1,
            "maxSelection": 1,
            "freeOptions": 0,
            "options": [
                { "id": "60000001", "name": "Mild", "price": 0, "isDefault": false, "nextGroupId": null },
                { "id": "60000002", "name": "Medium", "price": 0, "isDefault": false, "nextGroupId": null },
                { "id": "60000003", "name": "Hot", "price": 0, "isDefault": false, "nextGroupId": null }
            ]
        }
    ],
    "imageUrl": "https://assets.foodhub.com/images/thumbnails/example_500.jpg",
    "position": 87,
    "scrapedAt": "2026-11-12T19:30:00.000Z",
    "runId": "aBcD1234EfGh5678"
}
```

How the menu maps to rows:

- One row per item as the takeaway page shows it. Sizes that the takeaway lists as separate items ("Regular Saag Aloo", "Large Saag Aloo") are separate rows; `subcategoryName` carries the sub-heading they sit under ("Saag Aloo") whenever it differs from the category name.
- Deal items that Foodhub shows as "from £7.40" (priced by their first choice) have `price: 7.4`, `priceText: "from £7.40"` and `isPriceFrom: true`. With option groups switched off, their price is `null`.
- `modifierGroups` lists the groups in the order the order screen walks through them. When a choice leads to its own follow-up group (a pizza size → that size's toppings), the option's `nextGroupId` names that group. `[]` = the item has no options; `null` = option groups were switched off or could not be read (see ERRORS).
- Free-gift items that Foodhub offers in the basket (not on the menu) are left out.
- The menu is the one shown today (UK time); `isAvailable` is false for items the takeaway does not sell online today.

#### ERRORS and RESTAURANTS

Problems (unknown towns or postcodes, invalid URLs, takeaways that could not be read) are stored under **ERRORS** in the run's key-value store, with a plain-English reason. The run never fails because of one bad takeaway.

### Tips and tricks

- **Images**: image links open from UK connections; from other countries the image host may refuse them.
- **List position**: `listPosition` is the takeaway's place in Foodhub's full list for the location, before your filters, so gaps are normal.
- **Narrow filters over many locations**: after 15 locations in a row without a matching takeaway the run stops reading further locations.
- **Whole town, cheaply**: takeaways mode without details reads one list per town — a few seconds for hundreds of takeaways.
- **Menus at scale**: set Maximum items per takeaway to 0 and Maximum takeaways per location to the number you need. A full menu run reads about 15–40 takeaways per minute.
- **Lighter menu runs**: some takeaways have very large option lists (hundreds of toppings across meal deals). Switch off *Include option groups* when you only need item prices — runs get faster and rows smaller.
- **Large rows**: items with big meal-deal option trees can carry 1,000+ options in `modifierGroups`; use JSON (not CSV) for those, or switch option groups off.
- **Scheduling**: run on a schedule and compare by `storeId` + `productId`; downstream tools can de-duplicate on those ids.
- **Lead lists**: takeaways mode with *Include takeaway details* gives address and business phone. Mobile numbers are never returned (many takeaways are sole traders).

### Integrations

Send results to Google Sheets, Airtable, Slack or your own database with Apify integrations, Zapier or Make, or read them through the Apify API (`/datasets/{id}/items?format=json|csv|xlsx`). The dataset has three table views: Overview, Takeaways and Menu items.

# Changelog

This Actor's version history is a separate document: https://apify.com/teodor_banea/foodhub-restaurant-menu-scraper/changelog.md

# Actor input Schema

## `mode` (type: `string`):

Choose "Takeaways" for one row per takeaway (rating, reviews, delivery and collection times, open now, offers). Choose "Full menus" for one row per menu item with its price in GBP and option groups; a typical takeaway has 150–450 items, so menus multiply the result count.

## `locations` (type: `array`):

Enter UK towns ("Reading", "Stoke-on-Trent", "Newcastle upon Tyne"), full postcodes ("RG2 0ER"), postcode districts ("ST6") or "latitude,longitude" points. A town returns every takeaway Foodhub lists for it; a postcode returns the takeaways near that address.

## `restaurantUrls` (type: `array`):

Enter Foodhub takeaway pages, e.g. https://foodhub.co.uk/reading/example-tandoori/610/ordernow. They are scraped in addition to the towns and postcodes.

## `businessType` (type: `string`):

Choose takeaways and restaurants, grocery and convenience shops, or both.

## `searchQuery` (type: `string`):

Keep only takeaways whose name or brand contains this text (case ignored).

## `cuisines` (type: `array`):

Keep only takeaways with one of these cuisines, written as Foodhub shows them (e.g. "Pizza", "Indian", "Kebab", "Chinese"). Case is ignored. Unknown names are listed in the log with the cuisines available there.

## `onlyOpen` (type: `boolean`):

Keep only takeaways taking delivery or collection orders right now.

## `minRating` (type: `string`):

Keep only takeaways rated at least this much. Takeaways without reviews are dropped when this is set.

## `sortBy` (type: `string`):

Order in which takeaways are taken before the limits apply. "Foodhub order" keeps the order of Foodhub's own list.

## `maxRestaurants` (type: `integer`):

Limit the takeaways returned (takeaways mode) or the takeaways whose menus are read (menus mode) for each town or postcode; your takeaway URLs form one more group with the same limit. 0 = no cap per location (menus mode: still capped at 2,000 takeaways per location). Takeaways with an empty menu are skipped without counting. Use Maximum results for a ceiling on the whole run.

## `maxItemsPerRestaurant` (type: `integer`):

In menus mode, keep only the first N menu items of each takeaway (in menu order). 0 = the whole menu.

## `maxItemsTotal` (type: `integer`):

Set a hard ceiling on returned rows for the whole run, across all locations. 0 = no ceiling (still capped at 50,000 rows). The run stops at once when it is reached; locations not reached are listed in the log and the final status.

## `includeModifiers` (type: `boolean`):

In menus mode, add each item's option groups (sizes, toppings, sauces, meal-deal choices) with option prices. Some takeaways have very large option lists; switching this off makes runs lighter and faster.

## `includeDetails` (type: `boolean`):

In takeaways mode, also read each takeaway's page facts: street address, business phone, minimum order, delivery fee, service fee, payment methods and weekly opening hours. Takeaway URLs always get these details.

## Actor input object example

```json
{
  "mode": "menus",
  "locations": [
    "Reading",
    "RG2 0ER",
    "ST6"
  ],
  "restaurantUrls": [
    {
      "url": "https://foodhub.co.uk/reading/example-tandoori/610/ordernow"
    }
  ],
  "businessType": "takeaways",
  "searchQuery": "pizza",
  "cuisines": [
    "Pizza",
    "Indian"
  ],
  "onlyOpen": false,
  "sortBy": "platform",
  "maxRestaurants": 2,
  "maxItemsPerRestaurant": 25,
  "maxItemsTotal": 0,
  "includeModifiers": true,
  "includeDetails": false
}
```

# Actor output Schema

## `results` (type: `string`):

Every row of the run as JSON.

## `restaurants` (type: `string`):

Takeaway rows.

## `menuItems` (type: `string`):

Menu item rows.

## `resultsCsv` (type: `string`):

The same rows as a CSV download.

## `restaurantRecords` (type: `string`):

In menus mode, one record per takeaway whose menu was read (same fields as a takeaway row, with details).

## `errors` (type: `string`):

Locations, takeaways or URLs that could not be read. Only present when something went wrong.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "menus",
    "locations": [
        "Reading"
    ],
    "maxRestaurants": 2,
    "maxItemsPerRestaurant": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("teodor_banea/foodhub-restaurant-menu-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "menus",
    "locations": ["Reading"],
    "maxRestaurants": 2,
    "maxItemsPerRestaurant": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("teodor_banea/foodhub-restaurant-menu-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "menus",
  "locations": [
    "Reading"
  ],
  "maxRestaurants": 2,
  "maxItemsPerRestaurant": 25
}' |
apify call teodor_banea/foodhub-restaurant-menu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,teodor_banea/foodhub-restaurant-menu-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/uWuVmAEawahxYY6fS/builds/tIgT0btPqZxQqulga/openapi.json
