Layer reference

Food Standards Agency

Food Standards Agency

fsa

Food hygiene ratings, approved food establishments and food alerts from the Food Standards Agency, under one API layer.

Licence: Open Government Licence v3.0. Attribution travels in every answer: Contains Food Standards Agency data.

The API answers this reference with a JSON Schema and an example per field, to a key holder: GET https://api.atlas.oromiq.com/v1/layers/fsa/schema

Facts on the entity

One current value each, in the entity's facts list under its key. The name, address, postcode, status and identifiers reach you through the entity itself. Each field's full description comes with the layer's schema from the API (GET /v1/layers/{layer}/schema), for key holders.

Client keyLabelTypeSearchNotes
fsa.approvedActivitiesApproved activitiesa list of valuesyes; can carry a search alonehistory kept
fsa.speciesSpeciesa list of valuesno
fsa.feedBanRegistrationsTSE feed ban registrationstextno
fsa.competentAuthorityCompetent authoritytextno
fsa.addressWithheldAddress withheld by the FSAtextno
fsa.businessTypeBusiness typetextyes, with a narrowing condition
fsa.ratingHygiene ratingone of a list0, 1, 2, 3, 4, 5, Exempt, AwaitingInspection, AwaitingPublication, Pass, Improvement Required, Pass and Eat Safe, Awaiting Inspection, Awaiting Publicationyes; can carry a search alonehistory kept
fsa.ratedFood hygiene ratings: rateddatenoa dated event; history kept
fsa.scoreHygieneHygiene scorenumbernohistory kept
fsa.scoreStructuralStructural scorenumbernohistory kept
fsa.scoreManagementConfidence in management scorenumbernohistory kept
fsa.schemeSchemeone of a listFHRS, FHISyes; can carry a search alone
fsa.newRatingPendingNew rating pendingyes or nono

How a change reaches you

Within a major version a layer only ever gains: a new key, a new option, a new list. A key, a type or an option is never taken away without a deprecation first: the catalogue and the layer schema mark it with the day it may go, the changelog records it, and every answer carries the surface version in x-atlas-surface so you know when your picture of the API is out of date.

Reading this layer
GET /v1/entities/{entityId}?layers=fsa
Authorization: Bearer ck_…

{
  "data": {
    "facts": [
      { "layer": "fsa", "key": "fsa.approvedActivities", "value": "…" },
      { "layer": "fsa", "key": "fsa.species", "value": "…" },
      { "layer": "fsa", "key": "fsa.feedBanRegistrations", "value": "…" }
    ]
  }
}