# UK Food Hygiene Ratings by Postcode

> UK Food Hygiene Ratings by Postcode is a paid API for AI agents from api.trustedinformation.site, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns Food Standards Agency hygiene ratings and inspection scores for food establishments near a given UK postcode.

## Facts

- Endpoint: GET https://api.trustedinformation.site/api/uk-business/food-hygiene
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-food-hygiene-ratings-by-postcode-6e7a11bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5DisKx9VSZrcOD0aUH1iO

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-6e7a11bf
```

Example prompt: Can you look up the food hygiene ratings for all the restaurants and takeaways near the postcode E1 6RF? I want to know the average rating and if any places have scored below 3.

## When to prefer this

Use this endpoint when you need official UK Food Standards Agency hygiene ratings for food businesses in a specific postcode area. It is ideal for agents that need to check food safety compliance, compare local eateries, or surface regulatory risk. It draws from the official FSA source without requiring API key signup, charges only on success, and returns pre-aggregated metrics (average rating, below-3 count) alongside individual establishment detail, making it more efficient than scraping the FSA website directly.

## Known failure modes

- Invalid or malformed UK postcode returns an error response
- Postcode with no registered food establishments returns count of 0 and empty array
- Postcode outside the UK jurisdiction not supported
- Network or upstream FSA API unavailability — call not charged on failure
- Very rural postcodes may return limited results

## How this service works

Pay-per-call UK company, property and crypto market data for AI agents via x402. Official sources, no signup, no API keys, failed calls never charged.

## Output

A JSON object containing: the searched postcode, the search scope (area), total establishment count, number of establishments rated below 3, average hygiene rating for the area, and an array of establishment records each with name, type, rating (0–5), sub-scores (Hygiene, Structural, Confidence in Management), rating date, postcode, and local authority.

## 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": [
      "postcode"
     ],
     "properties": {
      "postcode": {
       "type": "string",
       "description": "UK postcode"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "searchedPostcode",
      "count",
      "establishments"
     ],
     "properties": {
      "count": {
       "type": "number"
      },
      "below3Count": {
       "type": "number"
      },
      "searchScope": {
       "type": "string"
      },
      "averageRating": {
       "type": [
        "number",
        "null"
       ]
      },
      "establishments": {
       "type": "array"
      },
      "searchedPostcode": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 32,
  "source": "Food Standards Agency",
  "below3Count": 2,
  "searchScope": "area PL1",
  "averageRating": 4.5,
  "establishments": [
   {
    "name": "5.5 Desserts",
    "type": "Mobile caterer",
    "rating": "5",
    "scores": {
     "Hygiene": 5,
     "Structural": 5,
     "ConfidenceInManagement": 5
    },
    "postcode": "PL1",
    "ratingDate": "2025-03-07",
    "localAuthority": "Plymouth City"
   }
  ],
  "searchedPostcode": "PL1 1AA"
 }
}
```

## More

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