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
- API referenceEvery endpoint with its parameters, response fields, real examples, errors and caching.
- PlaygroundFill in a form, send a real request and copy the code in nine languages.
- MCP serverConnect an AI assistant to the same operations as tools.
- StatusLive checks run from your browser, with the deployed version and data dates.
- DashboardOptional: sign in for API keys, higher limits and your usage per key and endpoint.
- WidgetsA live clock or a countdown for your page, with no code to write.
- OpenAPI fileThe machine-readable description, for client generators and API tools.
- llms.txtA plain-text summary of the API and the MCP server for AI assistants.
Guides
- Time zone APICurrent time, conversion and daylight-saving changes.
- Public holidays APIHolidays by country and year, regional ones included.
- Business days APICount working days, add them to a date, find the next one.
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.
| Data | Source | Last updated | Coverage and limits |
|---|---|---|---|
| Time-zone rules and daylight saving | IANA time zone database, as shipped in the platform’s Intl implementation | Follows the runtime; its tz release is not exposed | Every zone the runtime knows. Rules for future years are today’s rules: governments change them, sometimes at short notice. |
| Cities and countries | GeoNames, licensed CC BY 4.0 | 2026-11-30 | 241 countries and territories and about 34,000 cities of 15,000+ people. Smaller places are not in the index. |
| Public holidays | Nager.Date | 2026-11-30 | 204 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 hours | Each exchange’s own published trading hours | 2026-11-30 | 23 exchanges, regular weekly sessions only. Exchange holidays, early closes and halts are not modelled. |
| Sun, Moon and prayer times | Calculated: 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 request | Dates 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)
- NYSE (
nyse): www.nyse.com - Nasdaq (
nasdaq): nasdaqtrader.com - TSX (
tsx): www.tsx.com - LSE (
lse): www.londonstockexchange.com - Euronext Paris (
euronext-paris): live.euronext.com - Xetra (
xetra): cashmarket.deutsche-boerse.com - SIX (
six): www.six-group.com - Borsa Istanbul (
bist): tg.efghermes.com - Tadawul (
tadawul): www.saudiexchange.sa - DFM (
dfm): www.mediaoffice.ae - ADX (
adx): tg.efghermes.com - EGX (
egx): tg.efghermes.com - JSE (
jse): www.jse.co.za - NSE (
nse): www.chittorgarh.com - BSE (
bse): www.chittorgarh.com - SGX (
sgx): rulebook.sgx.com - HKEX (
hkex): www.hkex.com.hk - SSE (
sse): english.sse.com.cn - SZSE (
szse): www.szse.cn - TSE (
tse): www.jpx.co.jp - KRX (
krx): global.krx.co.kr - ASX (
asx): www.asx.com.au - NZX (
nzx): www.nzx.com
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.