21trust / 100

Uk Food Hygiene

by Aayat AI in Weather & location

x402 APIFailing, checked 3 h ago

UK food hygiene ratings (Food Standards Agency) for restaurants, takeaways, shops and other food businesses: rating (0-5 or Pass/Improvement Required in Scotland), inspection date, hygiene/structural/management scores, address and location. Search by ?name=...&postcode=... or address. Official FSA data.

GET https://aayatai.com/uk/food-hygiene

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
6.7%
Response time
927 ms typical, 927 ms slowest 5%
Last check
3 h ago: Expected HTTP 402, got 410
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://aayatai.com/uk/food-hygiene?name=Pret&postcode=SW1A"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Faayatai.com%2Fuk%2Ffood-hygiene
const res = await pay("https://aayatai.com/uk/food-hygiene?name=Pret&postcode=SW1A");
console.log(await res.json());

Example input

{
  "name": "Pret",
  "postcode": "SW1A"
}

Example output

{
  "licence": "Contains public sector information licensed under the Open Government Licence v3.0.",
  "results": [
    {
      "address": "1 Example St, London",
      "authority": "Westminster",
      "id": 123456,
      "latitude": 51.5,
      "longitude": -0.13,
      "name": "Pret A Manger",
      "newRatingPending": false,
      "postcode": "SW1A 2AA",
      "rating": "5",
      "ratingDate": "2025-11-04",
      "scheme": "FHRS",
      "scores": {
        "hygiene": 0,
        "management": 0,
        "structural": 5
      },
      "type": "Restaurant/Cafe/Canteen",
      "url": "https://ratings.food.gov.uk/business/123456"
    }
  ],
  "total": 1
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoExpected HTTP 402, got 410410116 ms-
8 h agoExpected HTTP 402, got 410410132 ms-
12 h agoExpected HTTP 402, got 41041042 ms-
16 h agoExpected HTTP 402, got 410410111 ms-
20 h agoExpected HTTP 402, got 41041036 ms-
24 h agoExpected HTTP 402, got 41041036 ms-
28 h agoExpected HTTP 402, got 41041037 ms-
33 h agoExpected HTTP 402, got 41041038 ms-
36 h agoExpected HTTP 402, got 410410195 ms-
41 h agoExpected HTTP 402, got 41041038 ms-
45 h agoExpected HTTP 402, got 410410238 ms-
2 days agoExpected HTTP 402, got 41041035 ms-
2 days agoExpected HTTP 402, got 41041038 ms-
2 days agoExpected HTTP 402, got 41041057 ms-
3 days agoPassed402927 ms$0.005