# UK Food Hygiene Ratings Lookup

> UK Food Hygiene Ratings Lookup is a paid API for AI agents from uk-data.agent-fee-check.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Looks up FSA food hygiene ratings for UK businesses by name, postcode, or location, returning scores and inspection details for each establishment.

## Facts

- Endpoint: GET https://uk-data.agent-fee-check.workers.dev/food?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-food-hygiene-ratings-lookup-78157d21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O2NYbqyMYV2Gg1pBnD8oj

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-lookup-78157d21
```

Example prompt: Can you check the FSA food hygiene rating for takeaways on Langdale Road, Dunstable, postcode LU6 3BS — I want to see the hygiene and structural scores for each one?

## When to prefer this

Use this endpoint when you need official UK Food Standards Agency hygiene ratings for one or more food businesses, searchable by postcode, business name, or area. Prefer it over generic web scraping when you need structured scores (hygiene, structural, confidence-in-management), official attribution, and reliable per-establishment detail in a single call. Ideal for consumer safety checks, supplier vetting, or area overviews of food safety compliance.

## Known failure modes

- No businesses found for the given postcode or name — returns empty establishments array
- Invalid or malformed postcode — may return 0 results or an error
- Business name too short (under 2 chars) or too long (over 100 chars) — validation error
- Ambiguous name without location may return too many unrelated results
- FSA upstream service unavailable — upstream error propagated
- Payment not made — 402 response with free preview data included

## How this service works

UK public data for AI agents, one origin, pay per call: a one-call postcode report, street crime, live flood warnings, property sales and the House Price Index, food hygiene ratings, MP lookup, NHS GPs, pharmacies and dentists, Companies House checks and search, UK working days and bank holidays, and the cheapest card machine provider. Official sources, attribution in every answer, free preview in every 402, failed requests never charged.

## Output

Returns a JSON object with a count of matched establishments, a plain-English summary (e.g. '3 businesses, average rating 5/5'), the lowest-rated business, and a full list of establishments each with: name, FSA ID, hygiene rating (0–5 or Exempt/Awaiting), scheme (FHRS/FHIS), sub-scores for hygiene/structural/confidence-in-management, full address, postcode, rating date, business type, local authority, and 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"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "name": {
       "type": "string",
       "description": "Business name, 2 to 100 characters"
      },
      "location": {
       "type": "string",
       "description": "Optional town or area, with name"
      },
      "postcode": {
       "type": "string",
       "description": "Full UK postcode (or give name)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "query": {
   "postcode": "LU6 3BS"
  },
  "summary": "3 food businesses for LU6 3BS, average rating 5 out of 5.",
  "lowest_rated": {
   "name": "Lucky Corner",
   "rating": "5",
   "rating_date": "2025-02-20"
  },
  "retrieved_at": "2026-10-11T18:16:44.590Z",
  "total_matches": 3,
  "average_rating": 5,
  "establishments": [
   {
    "name": "Lucky Corner",
    "fsa_id": 958300,
    "rating": "5",
    "scheme": "FHRS",
    "scores": {
     "hygiene": 5,
     "structural": 5,
     "confidence_in_management": 0
    },
    "address": "54 Langdale Road, Dunstable, Beds",
    "postcode": "LU6 3BS",
    "rating_date": "2025-02-20",
    "business_type": "Takeaway/sandwich shop",
    "rating_numeric": 5,
    "local_authority": "Central Bedfordshire",
    "new_rating_pending": false
   },
   {
    "name": "Ocean Breeze",
    "fsa_id": 576950,
    "rating": "5",
    "scheme": "FHRS",
    "scores": {
     "hygiene": 0,
     "structural": 5,
     "confidence_in_management": 5
    },
    "address": "58 Langdale Road, Dunstable, Bedfordshire",
    "postcode": "LU6 3BS",
    "rating_date": "2025-02-11",
    "business_type": "Takeaway/sandwich shop",
    "rating_numeric": 5,
    "local_authority": "Central Bedfordshire",
    "new_rating_pending": false
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-food-hygiene-ratings-lookup-78157d21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uk-data.agent-fee-check.workers.dev](https://www.zero.xyz/host/uk-data.agent-fee-check.workers.dev/llms.txt)
