# UK Food Hygiene Ratings Scraper - FSA Official Data (`cardinal_radiance_bce/uk-food-hygiene-ratings`) Actor

Extract food hygiene ratings, business details and local authority scores from the UK Food Standards Agency’s open API. Filter by postcode, rating, authority or distance radius. Perfect for lead generation, market research and compliance monitoring.

- **URL**: https://apify.com/cardinal_radiance_bce/uk-food-hygiene-ratings.md
- **Developed by:** [Tristan Evans](https://apify.com/cardinal_radiance_bce) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 per hygiene record extracteds

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 Hygiene Ratings brand icon](https://uk-sole-trader-toolkit.pages.dev/actors/uk-food-hygiene-ratings/icon.png)

![Live output preview — real rows from the latest cloud run](https://uk-sole-trader-toolkit.pages.dev/actors/uk-food-hygiene-ratings/preview.png)

## FSA UK Food Hygiene Ratings Scraper: Restaurants & Takeaways

Get UK food hygiene ratings and business details from the official Food Standards Agency (FSA) open API — current ratings 0–5, inspection dates, scores, full addresses with postcodes, geocodes and local authority contact details for any UK postcode, local authority, rating range or recently inspected business. Find restaurants, takeaways, pubs, hotels and shops in your target areas.

### What you get

UK food hygiene ratings and business details for any UK food premises, from the official Food Standards Agency (FSA) open API: business name, business type, current rating (0–5), inspection date, hygiene/structural/confidence scores, full address with postcode, geocode and local-authority contact details. Search by postcode, rating range, local authority or recent inspections. Delivered as structured rows you can export to JSON, CSV or Excel.

### Who it is for

- **Lead-generation agencies** targeting restaurants, takeaways, pubs and shops in specific areas
- **Compliance and risk teams** monitoring food-safety scores by region
- **Market researchers** mapping the food business landscape
- **Data journalists** investigating food-safety stories
- **Acquirers** doing due diligence on food businesses

### Features

- **Multiple search modes**: by postcode, rating range, local authority, or recent inspections
- **Rich data**: Business details, ratings, scores, addresses, geocodes, local authority contacts
- **Open data**: Uses the official FSA API under the Open Government Licence v3.0
- **No API key required**: Free public API with reasonable rate limits

### Data Fields

Each result includes:

- FHRS ID and business name
- Business type (restaurant, takeaway, retailer, etc.)
- Current hygiene rating (0-5 scale)
- Inspection date and scheme
- Detailed scores (hygiene, structural, confidence in management)
- Full address with postcode and geocode
- Local authority details and contact info
- Right to reply and inspection history

### Use Cases

- **Lead generation**: Find restaurants and food businesses in target areas
- **Market research**: Analyze food safety compliance by region
- **Due diligence**: Check hygiene ratings for business acquisitions
- **Compliance monitoring**: Track businesses with poor ratings
- **Data journalism**: Support food safety investigations

### Pricing

**Pay-per-event**: $0.003 per business record (after first 50 free per run)

Example costs:

- 100 businesses: $0.15 (50 free + 50 × $0.003)
- 500 businesses: $1.35 (50 free + 450 × $0.003)
- 1000 businesses: $2.85 (50 free + 950 × $0.003)

### Input

```json
{
  "searchMode": "postcode",
  "postcode": "SW1A 1AA",
  "maxDistance": 5,
  "maxResults": 500,
  "includeAddress": true,
  "includeScores": true
}
```

#### Search Modes

**Postcode search**:

```json
{
  "searchMode": "postcode",
  "postcode": "SW1A 1AA",
  "maxDistance": 10,
  "maxResults": 1000
}
```

**Rating filter**:

```json
{
  "searchMode": "rating",
  "minRating": 0,
  "maxRating": 2,
  "maxResults": 500
}
```

(Find poorly rated businesses for compliance work)

**Local authority**:

```json
{
  "searchMode": "authority",
  "localAuthority": "Westminster",
  "maxResults": 1000
}
```

**Recent inspections**:

```json
{
  "searchMode": "recent",
  "maxResults": 500
}
```

(Returns recently inspected high-rated businesses)

### Output

Results are saved to the default dataset with structured fields:

| Field | Type | Description |
|---|---|---|
| `fhrs_id` | integer | Unique Food Hygiene Rating Scheme ID |
| `business_name` | string | Name of the food business |
| `business_type` | string | Type (e.g. "Restaurant/Cafe/Canteen", "Takeaway/sandwich shop") |
| `rating.value` | integer | 0–5 rating (0 = urgent improvement needed, 5 = very good) |
| `rating.date` | string | Date of inspection (ISO 8601) |
| `address.line1`–`line4` | string | Full street address |
| `address.postcode` | string | UK postcode |
| `scores.hygiene` | integer/null | Hygiene score (0=good, 20=major improvement needed) |
| `scores.structural` | integer/null | Structural score |
| `scores.confidence_management` | integer/null | Confidence in management score |
| `local_authority.name` | string | Local council name |
| `local_authority.code` | string | Local authority code |
| `local_authority.email` | string | Food safety contact email |
| `e_number` | string/null | E-number (food business registration) |
| `right_to_reply` | string | Business response text |

#### Example output (postcode SW1A 1AA, max 3 results)

| business_name | business_type | rating | postcode | local_authority |
|---|---|---|---|---|
| (T/A) Maroush | Takeaway/sandwich shop | 5 / 5 | SW11 5BA | Wandsworth |
| 63 Degrees | Takeaway/sandwich shop | 5 / 5 | N1 8DU | Islington |
| 88 Beans | Takeaway/sandwich shop | 5 / 5 | EC2V 7DA | City of London Corporation |

*Data sourced from a build 0.1.13 run on 2026-11-19 via the FSA open API.*

### Notes

- Data is updated regularly by local authorities
- Ratings range from 0 (urgent improvement needed) to 5 (very good)
- Some businesses may have "AwaitingInspection", "AwaitingPublication", or "Exempt" status
- The API covers England, Wales, and Northern Ireland (Scotland has a separate scheme)
- Open Government Licence v3.0 permits commercial use with attribution

### FAQ

**Q: Why does my run return 0 results?**\
A: Check the search mode and filters. A postcode search needs a real UK postcode (e.g. `SW1A 1AA`); a `maxDistance` too small may exclude nearby businesses. If a rating or business-type filter returns nothing, remove it to confirm data exists. Scotland uses a separate scheme and is not in this API (see Notes).

**Q: What does the rating 0–5 mean?**\
A: 0 = urgent improvement needed, 1 = major improvement needed, 2 = improvement necessary, 3 = generally satisfactory, 4 = good, 5 = very good. Some businesses may show `AwaitingInspection`, `AwaitingPublication` or `Exempt`.

**Q: How are charges calculated?**\
A: Pay-per-event: the first 50 business records per run are free, then **$0.003 per record** saved to the dataset, plus a tiny per-run start fee. Dry runs (if available) cost nothing.

**Q: Is the data legal to use commercially?**\
A: Yes. The data comes from the official Food Standards Agency open API and is licensed under the Open Government Licence v3.0, which permits commercial use with attribution. Attribution is included at the bottom of this page.

**Q: Where does the data come from?**\
A: Directly from the UK Food Standards Agency's official API (`https://api.ratings.food.gov.uk/`) — the same data shown on the FSA's public food hygiene rating site.

#### Price comparison

| Actor | Per record | Per 1,000 records | Notes |
|---|---|---|---|
| **UK Food Hygiene Ratings** | ~$0.003 | **$3.00** | First 50 free/run, official FSA open API |
| UK Food Hygiene Rating Monitor (FSA) | ~$0.001 | $1.00 | Unofficial scraper, no FSA filters |
| Generic web-scraping actors | $0.002–$0.004 | $2–4 | No structured FSA fields, no rating/authority filters |

### Attribution

Contains public sector information licensed under the Open Government Licence v3.0.

Source: Food Standards Agency (FSA) - https://www.food.gov.uk/

### Support

For issues or questions:

- API documentation: https://api.ratings.food.gov.uk/
- FSA contact: https://www.food.gov.uk/contact

### Also see

- [UK Public Sector Tender Tracker](../apify-uk-tender-tracker/README.md) — UK public tenders from Find a Tender + Contracts Finder ($0.003/tender)
- [OpenStreetMap POI Extractor](../apify-openstreetmap-poi-extractor/README.md) — points of interest from OpenStreetMap ($0.005/POI)
- [UK Asbestos Register](../apify-uk-asbestos-register/README.md) — HSE-licensed asbestos contractors ($0.005/contractor)
- [Career Site Jobs API](../career-jobs/README.md) — Greenhouse, Lever, Ashby, Workable, SmartRecruiters, Recruitee jobs ($3/1k jobs)
- [Workday Jobs API](../workday-jobs/README.md) — every job from any Workday career site ($1/1k jobs)
- [Website Contact Extractor](../contact-extractor/README.md) — business emails, phones and socials per domain ($1.50/1k sites)
- [Article Scraper](../web-scraper/README.md) — article titles, authors, dates, tags and CTA links from any site ($2/1k articles)
- [Bulk Domain Check](../domain-check/README.md) — domain availability, RDAP, DNS and SPF/DMARC in bulk ($1/1k domains)

### License

This actor uses public sector data under the Open Government Licence v3.0.
You may use, modify, and distribute the data commercially with attribution.

# Actor input Schema

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

How to find businesses: by postcode, by rating, by authority, or all recent

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

UK postcode to search around (required for postcode mode)

## `maxDistance` (type: `integer`):

Maximum distance from postcode in kilometres (1-50)

## `minRating` (type: `integer`):

Minimum hygiene rating (0-5). 5 is excellent, 0 is urgent improvement needed

## `maxRating` (type: `integer`):

Maximum hygiene rating (0-5). Use to find failing businesses

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

Local authority name or code (for authority mode)

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

Filter by business type (e.g., Restaurants, Takeaways, Retailers)

## `maxResults` (type: `integer`):

Maximum number of businesses to extract (1-10000)

## `includeAddress` (type: `boolean`):

Include full address details and geocoded coordinates

## `includeScores` (type: `boolean`):

Include hygiene, structural and management scores (where available)

## Actor input object example

```json
{
  "searchMode": "postcode",
  "postcode": "SW1A 1AA",
  "maxDistance": 10,
  "minRating": 0,
  "maxRating": 5,
  "maxResults": 20,
  "includeAddress": true,
  "includeScores": true
}
```

# Actor output Schema

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

Total businesses matching the search criteria

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

Number of businesses extracted

# 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 = {
    "postcode": "SW1A 1AA",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("cardinal_radiance_bce/uk-food-hygiene-ratings").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 = {
    "postcode": "SW1A 1AA",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("cardinal_radiance_bce/uk-food-hygiene-ratings").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 '{
  "postcode": "SW1A 1AA",
  "maxResults": 20
}' |
apify call cardinal_radiance_bce/uk-food-hygiene-ratings --silent --output-dataset

```

## MCP server setup

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

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/tYRAeW2oI7DnSOgCi/builds/p5RB2kHZTFfOp9ygK/openapi.json
