# UK New Food Business Leads (FSA hygiene ratings) (`datakit/uk-new-food-business-leads`) Actor

Weekly feed of newly registered UK food businesses (restaurants, takeaways, cafes, caterers) from the official Food Standards Agency register. Diff mode emits only businesses new since your last run.

- **URL**: https://apify.com/datakit/uk-new-food-business-leads.md
- **Developed by:** [datakit](https://apify.com/datakit) (community)
- **Categories:** Lead generation, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 New Food Business Leads

**A weekly list of UK food businesses that just opened, straight from the official Food Standards Agency register.** Schedule it once and get only the businesses that are new since your last run, ready to drop into your CRM, spreadsheet or Slack.

### Who it's for

- EPOS/POS, payments and booking software sellers
- Food wholesalers, packaging, uniforms, cleaning and pest-control suppliers
- Insurance brokers, accountants, business-bank and delivery-platform onboarding teams
- Anyone who wants to reach a restaurant, cafe or takeaway **before** their competitors do

### How the alert works

1. First run builds your baseline (businesses awaiting first inspection, or rated in the last N days).
2. Every later run (same `stateKey`) outputs **only businesses not seen before**.
3. Each row has a `leadSignal`:
   - `awaiting_first_inspection`: just registered, no rating yet. The strongest "just opening" signal.
   - `recently_rated`: got its first rating within your window.
   - `new_on_register`: newly appeared in the register.

**Schedule tip:** create a Schedule with cron `0 7 * * 1` (Mondays 07:00) and connect the dataset to Google Sheets, Slack, email or a webhook via an Apify Integration. Use a different `stateKey` for each differently filtered feed (e.g. one per sales territory).

### Input

| Field | Meaning |
|---|---|
| `regions` | Council/local authority names, e.g. `["Manchester","Leeds"]`. Empty = all UK |
| `postcodePrefixes` | e.g. `["M1","LS1"]` |
| `businessTypes` | Default: restaurants/cafes and takeaways |
| `recentDays` | Window for "recently rated" (default 60) |
| `stateKey` | Name of your feed's memory |

### Example output

```json
{
  "BusinessName": "Airport Cafe",
  "BusinessType": "Restaurant/Cafe/Canteen",
  "address": "Terminal Building, St Mary's Airport, High Cross Lane, Old Town",
  "PostCode": "TR21 0NG",
  "LocalAuthorityName": "Isles of Scilly",
  "leadSignal": "recently_rated",
  "RatingValue": "5",
  "RatingDate": "2026-09-29",
  "firstSeen": "2026-11-08",
  "sourceUrl": "https://ratings.food.gov.uk/business/830352"
}
```

### Call it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/datakit~uk-new-food-business-leads/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"regions":["Manchester","Leeds"],"stateKey":"north-west-sales"}'
```

Returns the new businesses as JSON. Run it again next week with the same `stateKey` and you get only the ones added since.

### FAQ

**Does the first run return everything?** It returns the baseline (businesses awaiting first inspection or rated within `recentDays`), not the whole register. Later runs return only unseen ones.

**How fresh is the data?** The FSA updates the register continuously; councils add new businesses as they register them, usually before the first inspection.

**Does it include owner names, emails or phone numbers?** No. The register has business name, type, address, postcode and rating only. Use it to find who to approach, not who to call.

**Can I cover only my sales territory?** Yes: use `regions` (council names) or `postcodePrefixes`, and one `stateKey` per territory.

**Covers Scotland?** The FSA register includes Scottish (FHIS) businesses; ratings there use Pass/Improvement labels instead of 0-5.

### Data and compliance

Source: Food Standards Agency FHRS/FHIS open data (api.ratings.food.gov.uk), Open Government Licence v3.0. Business-level data only: no personal data, no scraping of private pages. Covers England, Wales, Northern Ireland and Scotland.

Questions or a field you need? Open an issue on the Actor page.

# Actor input Schema

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

newSinceLastRun: emit only businesses not seen in your previous runs (first run builds the baseline and emits the recent/awaiting-inspection businesses). recent: businesses first rated in the last N days or still awaiting first inspection. all: every matching record.

## `regions` (type: `array`):

Council names, e.g. 'Manchester', 'Leeds', 'Camden'. Partial, case-insensitive match. Leave empty for all ~360 UK authorities.

## `postcodePrefixes` (type: `array`):

Only keep businesses whose postcode starts with one of these, e.g. 'M1', 'SW1', 'EH'.

## `businessTypes` (type: `array`):

Keep only these types. Empty = all.

## `recentDays` (type: `integer`):

For 'recent' mode and first baseline run: include businesses whose first rating is within this many days.

## `includeAwaitingInspection` (type: `boolean`):

Registered but not yet inspected: usually the newest businesses and the best lead signal.

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

Separate name per feed, so several differently-filtered feeds keep independent 'already seen' lists.

## Actor input object example

```json
{
  "mode": "newSinceLastRun",
  "regions": [
    "Manchester"
  ],
  "postcodePrefixes": [],
  "businessTypes": [
    "Restaurant/Cafe/Canteen",
    "Takeaway/sandwich shop"
  ],
  "recentDays": 60,
  "includeAwaitingInspection": true,
  "stateKey": "default"
}
```

# Actor output Schema

## `results` (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 = {
    "regions": [
        "Manchester"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datakit/uk-new-food-business-leads").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 = { "regions": ["Manchester"] }

# Run the Actor and wait for it to finish
run = client.actor("datakit/uk-new-food-business-leads").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 '{
  "regions": [
    "Manchester"
  ]
}' |
apify call datakit/uk-new-food-business-leads --silent --output-dataset

```

## MCP server setup

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

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/t4PrOUdntykSRCdDh/builds/HXXdBVntNevdKuTAT/openapi.json
