Food Hygiene Rating API (FSA)
by api.ratings.food.gov.uk
Health
Added on November 7th, 2026
Checked and working on November 7th, 2026
Visit api.ratings.food.gov.uk →
What it does
The Food Hygiene Rating API from the UK Food Standards Agency gives the hygiene ratings of restaurants, cafés, shops and other food businesses in the UK, with their address and inspection date, for example to show a restaurant's rating next to its reviews. Send the header x-api-version: 2 and get JSON or XML. Free, no key needed.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed.
- From the browser
- Yes (CORS)
- Formats
- JSON, XML
- Interface
- REST, HTTP-GET
- Provider
- api.ratings.food.gov.uk
- Last checked
- Working on November 7th, 2026
More information: https://api.ratings.food.gov.uk/help
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.ratings.food.gov.uk/Establishments?name=pret&pageSize=1' \
-H 'x-api-version: 2'
JavaScript
const response = await fetch("https://api.ratings.food.gov.uk/Establishments?name=pret&pageSize=1", {
headers: {
"x-api-version": "2",
},
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.ratings.food.gov.uk/Establishments?name=pret&pageSize=1",
headers={
"x-api-version": "2",
},
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.