# BRAINIAC Food Safety Ratings API

> BRAINIAC Food Safety Ratings API is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-17).

Returns food safety inspection ratings and scheme data for a specified rating scheme type

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/food-safety/ratings?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-food-safety-ratings-api-e005e1e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__uT4Vl6mB8UKXXppKJ3gd

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 brainiac-food-safety-ratings-api-e005e1e7 -d '<json body>'
```

Example prompt: Can you look up the food safety ratings for the FSA scheme type so I can verify this restaurant's hygiene compliance?

## When to prefer this

Choose this endpoint when you need pay-per-call, no-account access to food safety ratings data and are willing to pay micro-transactions in USDC on Base via x402. Ideal for agents that need occasional, on-demand food safety lookups without committing to a subscription or API key management.

## Known failure modes

- Invalid or unsupported schemeType returns an error or empty result
- Payment not received or insufficient USDC causes 402 response
- Scheme data unavailable for the requested type returns empty JSON
- Malformed request body returns validation error
- Network timeout or service unavailability returns 5xx error

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON response containing food safety inspection ratings and scheme-specific details, such as hygiene scores, inspection outcomes, and rating classifications corresponding to the requested scheme type.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schemeType": {
   "type": "string",
   "maxLength": 50
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": {
   "url": "https://api.ratings.food.gov.uk/Ratings",
   "status": "OK",
   "retrievedAt": "2026-11-07T12:08:54.493Z"
  },
  "ratings": [
   {
    "fsaUrl": "https://api.ratings.food.gov.uk/ratings/12",
    "ratingId": 12,
    "ratingKey": "fhrs_5_en-gb",
    "ratingName": "5",
    "schemeTypeId": 1,
    "ratingKeyName": "5"
   },
   {
    "fsaUrl": "https://api.ratings.food.gov.uk/ratings/11",
    "ratingId": 11,
    "ratingKey": "fhrs_4_en-gb",
    "ratingName": "4",
    "schemeTypeId": 1,
    "ratingKeyName": "4"
   },
   "…"
  ],
  "limitations": [
   "Rating information is retrieved from the UK Food Standards Agency Food Hygiene Rating Scheme API.",
   "FHRS (Food Hygiene Rating Scheme) ratings range from 0 to 5.",
   "…"
  ],
  "retrievedAt": "2026-11-07T12:08:54.493Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-food-safety-ratings-api-e005e1e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
