Free time zone API (static JSON)
Read-only JSON files with zone offsets, abbreviations and DST transitions for 2026–2027. Free to use with a link back to HourBridge; CORS is open.
Endpoints
/api/zones.json- All 38 named zones: abbreviation, IANA id, standard/DST offsets and transitions.
/api/cities.json- 107 cities with country, region and IANA zone.
/api/cities/<slug>.json- One city: zone, offsets and every clock change in 2026–2027.
/api/dst.json- All upcoming transitions, sorted by date.
Offsets are in minutes east of UTC. Transition times are ISO 8601 in UTC. Files are regenerated whenever the site is rebuilt (generated 2026-11-25).
Example
fetch('https://hourbridge.pages.dev/api/cities/karachi.json')
.then(r => r.json())
.then(c => console.log(c.tz, c.offset_now));
Need the current time? Compute it in the browser: new Date().toLocaleString('en-GB', {timeZone: 'Asia/Karachi'}) – no API call needed.