API documentation
Ask for a location's opening hours by its code. No API key is needed. A code is 32 characters, lowercase letters and digits, generated when the location is created. Its owner can copy it from the location's page.
GET https://isopen.co.uk/api/v1/locations/{code}/hours
Using a language model? A plain-text version of these docs is at /llms-full.txt, with a short index at /llms.txt.
Parameters
date=YYYY-MM-DD— a single day.from=YYYY-MM-DD&to=YYYY-MM-DD— an inclusive range of at most 366 days.- No parameters — today, in the location's own timezone.
set=kitchen— the hours of one of the location's other sets (kitchen, bar, delivery) instead of its main hours. The reply then includes"set". Works on the status and batch calls too; a set that doesn't exist is a404(set_not_foundin a batch).
Example
GET /api/v1/locations/k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj/hours?from=2026-12-25&to=2026-12-26
{
"code": "k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj",
"timezone": "Europe/London",
"updated_at": "2026-11-20T09:14:02Z",
"confirmed_at": "2026-11-20T09:14:02Z",
"days": [
{"date": "2026-12-25", "open": false, "label": "Christmas Day", "note": null, "intervals": []},
{"date": "2026-12-26", "open": true, "label": null, "note": null, "intervals": [{"from": "10:00", "to": "16:00"}]}
]
}
Code examples
curl
curl "https://isopen.co.uk/api/v1/locations/k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj/hours?date=2026-12-25"
JavaScript
const res = await fetch("https://isopen.co.uk/api/v1/locations/k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj/hours?date=2026-12-25");
const { days } = await res.json();
console.log(days[0].open, days[0].intervals);PHP
$hours = json_decode(file_get_contents("https://isopen.co.uk/api/v1/locations/k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj/hours?date=2026-12-25"), true);
var_dump($hours['days'][0]['intervals']);Python
import requests
hours = requests.get("https://isopen.co.uk/api/v1/locations/k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj/hours?date=2026-12-25").json()
print(hours["days"][0]["intervals"])Try it
OpenAPI description
A machine-readable description of every endpoint, for generating clients or importing into tools such as Postman: https://isopen.co.uk/api/v1/openapi.json.
Several locations at once
Ask for up to 25 locations in one request, which counts as one request for rate limiting. It takes the same date, or from and to (at most 31 days), as the single-location call. Codes and readable names can be mixed.
GET /api/v1/hours?locations=code1,code2&date=2026-12-25
{
"results": [
{"location": "code1", "code": "…", "timezone": "Europe/London", "updated_at": "…", "days": [ … ]},
{"location": "code2", "error": "not_found"}
]
}
Results come back in the order you asked. A location that does not exist is marked not_found and does not fail the rest.
Open now
To ask whether a place is open right now, and when that next changes:
GET /api/v1/locations/k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj/status
{
"code": "k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj",
"timezone": "Europe/London",
"open": true,
"next_change": {"at": "2026-12-26T16:00:00+00:00", "to": "closed"}
}
next_change.to is closed while the place is open and open while it is closed. next_change is null when nothing changes within a year: a place with no hours, or one that is open round the clock.
Authentication
You don't need a key. Anonymous requests are limited to 60 requests per minute per IP address. Signed-in owners can create API keys on the API keys page; a request that sends a key is limited to 600 requests per minute for that key.
curl -H "Authorization: Bearer isk_your_key_here" \ "https://isopen.co.uk/api/v1/locations/k7m2x9q4d8w3n5v6b1c0z8r4t2y7u9aj/hours?date=2026-12-25"
Keys can be given an expiry when they are created, and can be rotated from the API keys page: the replacement works at once and the old key for another 24 hours. An expired key gets 401 with {"message":"API key expired."}. The key's owner is emailed once a day when it is close to its per-minute limit.
A key that is mistyped or revoked gets 401 with {"message":"Invalid API key."}; it is never silently treated as anonymous.
Notes
updated_atis when the location's hours last changed (UTC).confirmed_atis when the owner last changed them or said they are still right, ornullif they never have.- Hours responses carry an
ETagand may be cached for 60 seconds. Send it back asIf-None-Matchand an unchanged answer is a304with no body, which still counts toward your rate limit. - Times are local to the location's
timezone, in 24-hourHH:MM. - An interval is listed on the date it starts. If
tois earlier thanfromit runs past midnight; if they are equal the place is open 24 hours. labelis set when an exception such as a holiday applies to that date, andnoteis the owner's reason for it, such as "Closed for staff training". Both arenullotherwise.- Errors:
401invalid API key,404unknown code,422invalid parameters,429too many requests (see theRetry-Afterheader). - An owner can also give a location a readable name such as
my-shop, which works anywhere a code does. It is optional and can be guessed, so most locations don't have one. - An owner can make a location private. Then only a request with an API key belonging to the owner, their team or an admin can read it; everyone else gets
404, as if it did not exist. - There is no way to list or search locations: you need a location's code. Locations are not indexed by search engines.
- Browsers on any site may call the API (CORS is open).