Skip to content

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

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