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.
| Method | Endpoint | Access | Notes |
|---|---|---|---|
| GET | /api/v1/establishments/search | Free — 100/day | name, postcode, authority_id, page, pageSize (max 10) |
| GET | /api/v1/establishments/{fhrsId} | Free — 200/day | One normalized venue record |
| GET | /api/v1/badge/{fhrsId}.svg | Free — cached 12h | Standard attributed SVG badge |
| GET | /api/v1/badge/{fhrsId}/custom.svg | Pro | theme=dark|glass, layout=compact|pill, fg/bg/accent hex |
| POST | /api/v1/establishments/bulk | Franchise | Up to 100 fhrsIds or postcodes |
| GET | /api/v1/monitors | Franchise | List your monitors |
| POST | /api/v1/monitors | Franchise | Register a venue + signed webhook |
| DELETE | /api/v1/monitors | Franchise | Remove 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.