# UK Food Hygiene Rating Changes: Openings, Closures, Takeovers (`willobyte/uk-food-business-changes`) Actor

Daily change feed of UK food businesses: new openings, takeovers, closures and hygiene rating changes, with history since 1 November 2026. Filter by council, postcode, event type or rating direction.

- **URL**: https://apify.com/willobyte/uk-food-business-changes.md
- **Developed by:** [Willo Byte](https://apify.com/willobyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 change events

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

## UK Food Business Changes: openings, takeovers, closures and hygiene ratings

**Not another snapshot of today's data.** Every UK food business that opened, changed hands, closed or changed hygiene
rating, day by day, since 1 November 2026.

The official food hygiene data only shows each business as it is today: no history, no dates of change, and no trace
of businesses that have gone. [WhatMoved](https://whatmoved.co.uk) collects it for every council in England, Wales,
Northern Ireland and Scotland every morning, keeps the history, and turns the differences into events.

### Snapshot or change feed?

| | A snapshot of today's register | This actor |
|---|---|---|
| Businesses that opened this week | Only if you saved last week's copy and compare it yourself | Yes, labelled the day they appear |
| Genuine opening or new owner? | Can't tell | `opening`, `takeover` (with the business it replaced) or `reregistration` |
| Closures | Gone from the data, so invisible | Yes |
| Rating drops and rises | Today's rating only | Old and new rating, with direction |
| Re-inspections that kept the same rating | No | Yes |
| History | None | Every change since 1 November 2026. It can't be recreated for earlier dates. |

For sales leads that means the businesses that are **new this week**, and the ones whose rating **just dropped**,
instead of a list of 615,000 you've already seen.

### What you get

| Event | Meaning |
|---|---|
| `NEW` | A food business registered for the first time |
| `CLASSIFIED` | Three days later, the new business is labelled: `opening` (genuinely new), `takeover` (new operator at premises where a business just closed, with the ID it replaced), `reregistration` (same business, new ID) or `unknown` |
| `REMOVED` | A business left the register |
| `RATING_CHANGED` | The hygiene rating changed, with direction `UP` / `DOWN` (also `RATED` for a first rating) |
| `REINSPECTED` | Inspected again, same rating |
| `REAPPEARED`, `COUNCIL_CHANGED`, `CHANGED` | Back on the register; moved to another council; other details changed |

A typical week across the UK: about 1,300 openings, 190 takeovers, 1,800 closures and 1,250 rating changes, out of
about 615,000 businesses tracked.

### Who uses it

- **Suppliers, wholesalers and coffee roasters**: new cafés, restaurants and takeaways in your area in their first weeks,
  and new owners taking over existing premises.
- **Hygiene training and pest control**: businesses whose rating just dropped (`direction = DOWN`), by postcode or council.
- **Insurers and lenders**: rating changes and changes of operator.
- **Data and CRM teams**: keep a list of food businesses current without re-downloading everything.

### How to use it

**Date range** (default): returns every event between *From date* and *To date* (default: the last 7 days).

**Follow**: returns only events you haven't had yet. **Schedule it** (daily or weekly) and each run continues exactly
where the previous one stopped: no gaps, no repeats. The position is saved in your account, one per combination of
filters, so you can follow several areas separately.

Filters: postcode (outcode like `M1`, partial or full), council ID (e.g. 180 Manchester, 374 Birmingham), event type,
rating direction and new-business label. **Maximum events** caps the size, and the cost, of each run.

Example input: rating drops in Manchester city centre, followed weekly:

```json
{ "mode": "follow", "postcode": "M1", "direction": "DOWN" }
```

### Output

One row per business per day:

```json
{
  "detected_on": "2026-11-06",
  "fhrsid": 1234567,
  "event_types": ["RATING_CHANGED", "CHANGED"],
  "rating_old": "5", "rating_new": "2", "rating_direction": "DOWN",
  "label": null, "replaces_fhrsid": null,
  "name": "Example Café", "business_type": "Restaurant/Cafe/Canteen",
  "address": "1 Example Street, Manchester", "postcode": "M1 1AA", "address_withheld": false,
  "authority_id": 180, "authority_name": "Manchester",
  "rating_value": "2", "rating_date": "2026-10-02", "new_rating_pending": false,
  "latitude": 53.48, "longitude": -2.24, "active": true, "first_seen": "2026-11-01",
  "changes": { "rating_value": { "old": "5", "new": "2" } },
  "attribution": "Contains public sector information licensed under the Open Government Licence v3.0. ..."
}
```

Export as JSON, CSV, Excel, or send it to Google Sheets, Make, Zapier or your own webhook with Apify integrations.

### Good to know

- History starts on **1 November 2026**, the first day of collection. It can't be recreated for earlier dates.
- `detected_on` is the day a change first appeared in the published data. Inspections can be several weeks earlier:
  see `rating_date`. A day's events appear once that morning's collection has finished.
- Weekend runs are naturally quiet: councils publish on working days.
- Takeover and opening labels are automated estimates from addresses and dates. Check anything important against the
  official ratings.
- Some businesses (often home-based) have no published address (`address_withheld: true`). Many are sole traders:
  their name can be personal data. Check your obligations under UK GDPR and PECR before using the data for marketing.

### Need more?

Following the whole UK every day (about 50,000 events a month)? The direct API's Pro plan is cheaper at that volume:
see [whatmoved.co.uk](https://whatmoved.co.uk). Questions:
hello@whatmoved.co.uk.

### Terms and data

Use is subject to the [WhatMoved terms](https://whatmoved.co.uk/terms.html) (including: no unsolicited marketing to
sole traders, no re-identifying withheld addresses, no bulk resale) as well as Apify's terms.

Contains public sector information licensed under the Open Government Licence v3.0. WhatMoved is independent and is
not affiliated with or endorsed by the Food Standards Agency or Food Standards Scotland. WhatMoved is a trading name of
Willobyte Technologies Ltd (company no. 17576755).

# Actor input Schema

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

'Date range' returns events between the dates below. 'Follow' returns only events you haven't had yet: schedule it daily or weekly and each run continues where the last one stopped (one position is kept per combination of filters).

## `since` (type: `string`):

First day to include (YYYY-MM-DD). Default: 7 days ago. History starts on 2026-11-01. In follow mode this is only used for the very first run.

## `until` (type: `string`):

Last day to include (YYYY-MM-DD). Default: the latest collection run. Ignored in follow mode.

## `postcode` (type: `string`):

Outcode (e.g. M1), partial (M1 1) or full postcode.

## `authority` (type: `integer`):

Local authority ID, as used by the official food hygiene data (e.g. 180 for Manchester, 374 for Birmingham). Leave empty for the whole UK.

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

Only events of this type. NEW = first registration; CLASSIFIED = a new business labelled as an opening, takeover or re-registration three days after it appeared; REMOVED = left the register; RATING_CHANGED = hygiene rating changed; REINSPECTED = inspected again with the same rating.

## `direction` (type: `string`):

Only rating changes in this direction. DOWN = rating drops (leads for hygiene training and pest control).

## `label` (type: `string`):

Only new businesses with this label: opening (genuinely new), takeover (new operator at premises that just closed), reregistration (same business, new ID), unknown.

## `maxItems` (type: `integer`):

Stop after this many events. Each event is charged, so this caps the cost of a run.

## Actor input object example

```json
{
  "mode": "range",
  "type": "any",
  "direction": "any",
  "label": "any",
  "maxItems": 1000
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `all` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("willobyte/uk-food-business-changes").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("willobyte/uk-food-business-changes").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 '{}' |
apify call willobyte/uk-food-business-changes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,willobyte/uk-food-business-changes"
        }
    }
}
```

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/zkKnU9C7wscVtlvxf/builds/pgLzRYmbnF5CT9VbG/openapi.json
