UK Hygiene Ratings — a free public utility for looking up published food hygiene scores.

API documentation

All API responses include the attribution Contains public sector information licensed under the Open Government Licence v3.0. and a notice that this service is independent of the FSA.

MethodEndpointAccessNotes
GET/api/v1/establishments/searchFree — 100/dayname, postcode, authority_id, page, pageSize (max 10)
GET/api/v1/establishments/{fhrsId}Free — 200/dayOne normalized venue record
GET/api/v1/badge/{fhrsId}.svgFree — cached 12hStandard attributed SVG badge
GET/api/v1/badge/{fhrsId}/custom.svgProtheme=dark|glass, layout=compact|pill, fg/bg/accent hex
POST/api/v1/establishments/bulkFranchiseUp to 100 fhrsIds or postcodes
GET/api/v1/monitorsFranchiseList your monitors
POST/api/v1/monitorsFranchiseRegister a venue + signed webhook
DELETE/api/v1/monitorsFranchiseRemove a monitor by fhrsId

Webhook signing

Outbound events send x-timestamp (epoch milliseconds) and x-signature (lowercase hex HMAC-SHA256 of timestamp + rawBody, with no separator). Verify the signature before parsing the JSON.

OpenAPI 3.1 specification · Plans