Skip to content
ClockCrest

Free Time, Date & Holiday API for Developers

ClockCrest’s time, date and holiday calculations are open to your code: a read-only JSON API, a Model Context Protocol server for AI assistants, embeddable widgets and an OpenAPI file. Free, with no key and no account.

Quick start

No sign-up and no key. Ask for the current time in a zone:

curl 'https://clockcrest.com/api/v1/time/now?tz=Europe/Paris'

It answers with JSON like this (captured on 2026-12-01; the live values will be yours):

{
  "timeZone": "Europe/Paris",
  "local": "2026-12-01T14:46:26",
  "iso": "2026-12-01T14:46:26+01:00",
  "utcOffset": "+01:00",
  "utcOffsetMinutes": 60,
  "abbreviation": "CET",
  "isDst": false,
  "utc": "2026-12-01T13:46:26Z",
  "unixMs": 1796132786067,
  "nextTransition": {
    "at": "2027-03-28T01:00:00Z",
    "utcOffsetBefore": "+01:00",
    "utcOffsetAfter": "+02:00"
  },
  "source": "IANA tz database (runtime Intl)"
}

Explore

Guides

What you get

  • 26 read-only operations in 9 groups, all plain GET requests that return JSON.
  • An OpenAPI 3.1 description generated from the same code that serves the requests.
  • 16 of those operations as MCP tools, for AI assistants and agents.
  • CORS open to every origin, so a browser can call the API directly.
  • Explicit answers: a date outside the data is refused with an error, never guessed, and every response names its source.

Data sources and their limits

Each data set is listed with where it comes from, when it was last generated or checked, and what it does not cover.

DataSourceLast updatedCoverage and limits
Time-zone rules and daylight savingIANA time zone database, as shipped in the platform’s Intl implementationFollows the runtime; its tz release is not exposedEvery zone the runtime knows. Rules for future years are today’s rules: governments change them, sometimes at short notice.
Cities and countriesGeoNames, licensed CC BY 4.02026-11-30241 countries and territories and about 34,000 cities of 15,000+ people. Smaller places are not in the index.
Public holidaysNager.Date2026-11-30204 countries, years 2025–2028. Dates fixed by decree or by moon sighting can change after the data was generated. Other years and countries answer 404.
Stock-exchange hoursEach exchange’s own published trading hours2026-11-3023 exchanges, regular weekly sessions only. Exchange holidays, early closes and halts are not modelled.
Sun, Moon and prayer timesCalculated: NOAA solar position algorithm and Jean Meeus, “Astronomical Algorithms” (chapters 48–49 for the Moon); prayer angles from the published parameters of each method (mwl, umm-al-qura, egyptian, karachi, isna)No data set: computed from the requestDates 1900–2100. Sunrise and prayer times are typically within a minute or two; local authorities may publish different times.
Countries and territories without public-holiday data (38)

Nager.Date has no data for these, so holiday and business-day requests for them answer 404 (country_not_found):

Afghanistan (AF), American Samoa (AS), Azerbaijan (AZ), Bhutan (BT), Brunei (BN), Fiji (FJ), French Southern Territories (TF), Guam (GU), India (IN), Iran (IR), Jordan (JO), Kosovo (XK), Kuwait (KW), Kyrgyzstan (KG), Laos (LA), Lebanon (LB), Macao SAR China (MO), Malaysia (MY), Maldives (MV), Mauritius (MU), Mayotte (YT), Myanmar (Burma) (MM), Nepal (NP), North Korea (KP), Oman (OM), Pakistan (PK), Qatar (QA), Réunion (RE), Saudi Arabia (SA), South Georgia & South Sandwich Islands (GS), Sri Lanka (LK), Taiwan (TW), Tajikistan (TJ), Thailand (TH), Timor-Leste (TL), Turkmenistan (TM), United Arab Emirates (AE), Uzbekistan (UZ)

Source page of each exchange (23)

Fair use

  • The API is free and works without a key, offered on a best-effort basis: there is no uptime guarantee and no SLA. A free API key from the dashboard raises your limits.
  • Limits: without a key, 60 requests a minute and 1,000 a day per IP address; with a free key, 120 a minute and 10,000 a day. Over a limit the answer is 429 with Retry-After, and every answer carries RateLimit-* headers. Counting happens per server location, so treat the limits as approximate. Cloudflare’s DDoS protection, caching and strict input limits (GET only, query strings up to 512 characters, bounded ranges) also apply.
  • Please cache. Every successful response says how long it may be reused in Cache-Control; do not poll faster than the data changes, and do not drive a ticking clock from the time endpoint.
  • All callers share the hosting plan’s daily request allowance (Cloudflare Workers free plan, reset at midnight UTC). If it runs out, the API stops answering until the reset.
  • Heavy or abusive traffic may be limited without notice.

What is not offered

There is no paid tier yet: a Pro plan is announced but cannot be bought. Accounts are optional and only for API keys; no IP address or request content is ever stored.

Looking for a ready-made page instead? Try the time zone converter or the public holidays calendar.