# 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 Standards Agency hygiene ratings for all food businesses at a given UK postcode, including business name, type, address, rating score, and inspection date.

## Facts

- Endpoint: GET https://pennydatahq.com/api/food-hygiene/:postcode?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-fdbe4634
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vQEg_YKCXTKCNZNWWMZTF

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-fdbe4634
```

Example prompt: What are the food hygiene ratings for all the food businesses at postcode EC1A 1BB? I want to see their names, types, ratings, and when they were last inspected.

## When to prefer this

Use this endpoint when you need authoritative, FSA-sourced food hygiene data for UK food businesses filtered by postcode. Prefer this over web scraping or general search when you need structured, machine-readable ratings data including inspection dates and business types. Ideal for food safety checks, local area surveys, or helping users make informed dining decisions in the UK.

## Known failure modes

- Invalid or malformed postcode returns an error or empty results
- Postcode with no registered food businesses returns count of 0 and empty establishments array
- Address withheld by FSA for some premises (e.g. private homes) — address field will be null
- Some businesses may have null rating if awaiting inspection
- Rating scheme differs by country (FHRS vs FHIS) which affects interpretation of rating values

## How this service works

Food hygiene ratings for food businesses at a UK postcode from the Food Standards Agency: business name and type, address, rating and the date of the inspection it is based on, as JSON.

## Output

A JSON object containing the postcode queried, a count of matching establishments, and an array of establishment records. Each record includes business name, business type, address (if not withheld), the rating (0–5, Exempt, AwaitingInspection, Pass, etc.), rating scheme (FHRS or FHIS), inspection date (YYYY-MM-DD), local authority, FSA URL, and a flag indicating whether a new rating is pending.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "postcode"
     ],
     "properties": {
      "postcode": {
       "type": "string",
       "description": "Full UK postcode, with or without the space, any case."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "postcode",
      "count",
      "establishments"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "postcode": {
       "type": "string"
      },
      "establishments": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "rating": {
          "type": [
           "string",
           "null"
          ],
          "description": "0 to 5, Exempt, AwaitingInspection, Pass, Improvement Required, and others"
         },
         "scheme": {
          "type": [
           "string",
           "null"
          ],
          "description": "FHRS (England, Wales, Northern Ireland) or FHIS (Scotland)"
         },
         "address": {
          "type": [
           "string",
           "null"
          ],
          "description": "Withheld by the FSA for some premises, such as private homes"
         },
         "fhrs_id": {
          "type": "integer"
         },
         "fsa_url": {
          "type": "string"
         },
         "rating_date": {
          "type": [
           "string",
           "null"
          ],
          "description": "YYYY-MM-DD, the inspection the rating is based on"
         },
         "business_name": {
          "type": [
           "string",
           "null"
          ]
         },
         "business_type": {
          "type": [
           "string",
           "null"
          ]
         },
         "local_authority": {
          "type": [
           "string",
           "null"
          ]
         },
         "new_rating_pe
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-food-hygiene-ratings-by-postcode-fdbe4634/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)
