{"openapi":"3.1.0","info":{"title":"UK Hygiene Ratings API","version":"1.0.0","description":"Contains public sector information licensed under the Open Government Licence v3.0. This service is independent of the Food Standards Agency."},"servers":[{"url":"https://ukhygiene.co.uk"}],"paths":{"/api/v1/establishments/search":{"get":{"summary":"Search published ratings","parameters":[{"name":"name","in":"query","schema":{"type":"string"}},{"name":"postcode","in":"query","schema":{"type":"string"}},{"name":"authority_id","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"pageSize","in":"query","schema":{"type":"integer","maximum":10}}],"responses":{"200":{"description":"Normalized, attributed results"},"400":{"description":"Bad request"}}}},"/api/v1/establishments/{fhrsId}":{"get":{"summary":"One normalized venue","parameters":[{"name":"fhrsId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Venue record"},"404":{"description":"Not found"}}}},"/api/v1/badge/{fhrsId}.svg":{"get":{"summary":"Standard attributed badge","responses":{"200":{"description":"SVG badge"},"404":{"description":"Not found"}}}},"/api/v1/badge/{fhrsId}/custom.svg":{"get":{"summary":"PRO custom badge with verified metadata JSON","responses":{"200":{"description":"Custom SVG"},"403":{"description":"Upgrade required"}}}},"/api/v1/establishments/bulk":{"post":{"summary":"Bulk lookup (max 100 items)","responses":{"200":{"description":"Bulk results"},"400":{"description":"Cap breach"},"403":{"description":"Upgrade required"}}}},"/api/v1/monitors":{"get":{"summary":"List monitors","responses":{"200":{"description":"Monitors and deliveries"},"403":{"description":"Upgrade required"}}},"post":{"summary":"Register a monitor and signed webhook","responses":{"201":{"description":"Created"},"403":{"description":"Upgrade required"}}},"delete":{"summary":"Remove a monitor","responses":{"200":{"description":"Deleted"},"403":{"description":"Upgrade required"}}}}}}