# UK Food Hygiene Ratings by Postcode

> UK Food Hygiene Ratings by Postcode is a paid API for AI agents from pennydatahq.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns food hygiene ratings for all food businesses at a given UK postcode from the Food Standards Agency (FSA).

## Facts

- Endpoint: GET https://pennydatahq.com/api/food-hygiene/%7Bpostcode%7D?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-food-hygiene-ratings-by-postcode-0873e63a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L4yWBkJtfA2btSclcSFe9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability uk-food-hygiene-ratings-by-postcode-0873e63a
```

Example prompt: What are the food hygiene ratings for restaurants and cafes at the postcode M1 1AE in Manchester?

## When to prefer this

Choose this endpoint when you need structured FSA food hygiene data for all businesses at a specific UK postcode, without requiring an API key or account — paying only per call in USDC on Base via x402. Prefer this over scraping the FSA website directly, or over general search, when you need machine-readable JSON output suitable for automated agent workflows or data enrichment pipelines.

## Known failure modes

- Invalid or malformed UK postcode returns an empty result or error
- Postcode with no registered food businesses returns count 0 and empty establishments array
- Network or payment failure (x402 USDC payment not completed) blocks the response
- Postcode outside England, Wales, or Northern Ireland may not be covered by FHRS scheme
- FSA upstream data may lag real-world inspection changes by days or weeks

## How this service works

Penny Data: pay-per-call data for AI agents. UK company, LEI, postcode, carbon intensity, FX reference rate and food hygiene data as JSON, paid per call in USDC on Base with x402. No API key or account.

## Output

A JSON object containing the queried postcode, a count of matching establishments, and an array of food business records each with: business name, business type, address, local authority, FSA hygiene rating (e.g. 1–5 or Exempt), rating scheme (e.g. FHRS), rating date, FHRS ID, FSA ratings page URL, and whether a new rating is pending.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "postcode": "M1 1AE",
  "establishments": [
   {
    "rating": "5",
    "scheme": "FHRS",
    "address": "16 Newton Street, Manchester, M1 1AE",
    "fhrs_id": 1894640,
    "fsa_url": "https://ratings.food.gov.uk/business/1894640",
    "rating_date": "2026-04-24",
    "business_name": "The Head of Steam Manchester - Northern Quarter",
    "business_type": "Pub/bar/nightclub",
    "local_authority": "Manchester",
    "new_rating_pending": false
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-food-hygiene-ratings-by-postcode-0873e63a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennydatahq.com](https://www.zero.xyz/host/pennydatahq.com/llms.txt)
