The food hygiene rating data published at ratings.food.gov.uk are available via an application programming interface (API) in XML and JSON formats. This is a free service and there is no need to register to use it. Terms and conditions apply (see link below), and guidance for developers is available.
XDB EXCHANGES
The API allows developers access to the underlying food hygiene rating data published at ratings.food.gov.uk. Developers can query XML files to return the geocoded data (longitude and latitude data are provided for food businesses).
The API can also be used to query the live system (the data are automatically updated as local authorities upload and publish data) and return data in XML and JSON formats.
The guidance on how to use the API v1 is below:
FSA also offers API v2. For further details please see:
- API V2 guidance for developers [external link]