Every example is real output, captured on 2026-12-01 from a local run of the same code. Live values differ.
Basics
Base URL: https://clockcrest.com
- Every endpoint is a GET request that returns JSON in UTF-8. HEAD is answered like GET; OPTIONS answers the CORS preflight; any other method gets 405.
- There is no key, no account and no cookie, and nothing you send is stored.
- Time zones are IANA names (Europe/Paris), countries are ISO 3166-1 alpha-2 codes (FR), dates are YYYY-MM-DD and instants are UTC in ISO 8601.
- Each parameter may appear once, and the whole query string is limited to 512 characters. Parameters an endpoint does not declare are ignored by the REST API, except on
/api/v1/status, which refuses them. - Every response names its “source”; where relevant it also carries “sourceUrl”, “dataYears”, “lastUpdated” and a “notes” list with its caveats.
Errors
An error is an HTTP 4xx or 5xx status with one JSON shape. “code” is stable and meant for programs; “message” is English, meant for people, and never repeats the value that was rejected. Error responses are sent with Cache-Control: no-store.
{
"error": {
"code": "invalid_timezone",
"message": "Unknown time zone in \"tz\". Use an IANA name such as Europe/Paris."
}
}A request with the wrong method, for example:
curl -X POST 'https://clockcrest.com/api/v1/time/now?tz=UTC'
{"error":{"code":"method_not_allowed","message":"Only GET is supported."}}Caching
Successful responses carry a Cache-Control header chosen per endpoint, from one second for the current time to one day for data that only changes when the site is rebuilt. The value each endpoint sends is shown in its block below, as declared in the code and as captured from a real response. Please honour it: it is the main thing keeping the service free.
CORS
The API can be called from a browser on any site. These headers are sent:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization, X-API-Key
Access-Control-Max-Age: 86400
The first one is on every response, errors included; the others answer the OPTIONS preflight. No credentials are involved, so there is nothing to allow.
Versioning and compatibility
- The API version is 1.1.0 (info.version in the OpenAPI file). It rises when operations, parameters or response fields are added.
- Paths under
/api/v1/ are kept: changes are additive, so write clients that ignore fields they do not know. - When an endpoint moved, its original path stayed and returns the same response:
/api/v1/time → /api/v1/time/now, /api/v1/convert → /api/v1/time/convert. - MCP tools that were renamed still answer to their earlier names:
convert_time → convert_timezone, get_public_holidays → get_country_holidays, count_business_days → calculate_business_days.
Time zones and daylight saving
Offsets and daylight-saving rules come from the IANA time zone database built into the serving runtime. A zone name is accepted in any capitalisation and reported under its current IANA name.
A wall-clock time has no UTC offset, so around a clock change it can be ambiguous or not exist at all. The conversion endpoint never resolves that silently: “resolution” says what was done and “note” explains it.
A time that does not exist
At 02:00 on 14 March 2027 clocks in New York jump to 03:00, so 02:30 never happens. The offset in force before the jump is applied and the result lands after it (“gap_shifted_forward”):
curl 'https://clockcrest.com/api/v1/convert?from=America/New_York&to=UTC&time=2027-03-14T02:30'
Example response
{
"input": {
"from": "America/New_York",
"to": "UTC",
"time": "2027-03-14T02:30:00"
},
"from": {
"timeZone": "America/New_York",
"local": "2027-03-14T03:30:00",
"iso": "2027-03-14T03:30:00-04:00",
"utcOffset": "-04:00",
"utcOffsetMinutes": -240,
"abbreviation": "EDT",
"isDst": true
},
"to": {
"timeZone": "UTC",
"local": "2027-03-14T07:30:00",
"iso": "2027-03-14T07:30:00+00:00",
"utcOffset": "+00:00",
"utcOffsetMinutes": 0,
"abbreviation": "UTC",
"isDst": false
},
"utc": "2027-03-14T07:30:00Z",
"resolution": "gap_shifted_forward",
"note": "The source time does not exist: clocks in the source zone jumped forward over it. The offset in force before the jump was applied, so the time was read as the equivalent moment after the jump.",
"source": "IANA tz database (runtime Intl)"
}A time that happens twice
At 02:00 on 1 November 2026 clocks in New York go back to 01:00, so 01:30 happens twice. The earlier occurrence is used and both are listed in “occurrences” (“overlap_earlier”):
curl 'https://clockcrest.com/api/v1/time/convert?from=America/New_York&to=UTC&time=2026-11-01T01:30'
Example response
{
"input": {
"from": "America/New_York",
"to": "UTC",
"time": "2026-11-01T01:30:00"
},
"from": {
"timeZone": "America/New_York",
"local": "2026-11-01T01:30:00",
"iso": "2026-11-01T01:30:00-04:00",
"utcOffset": "-04:00",
"utcOffsetMinutes": -240,
"abbreviation": "EDT",
"isDst": true
},
"to": {
"timeZone": "UTC",
"local": "2026-11-01T05:30:00",
"iso": "2026-11-01T05:30:00+00:00",
"utcOffset": "+00:00",
"utcOffsetMinutes": 0,
"abbreviation": "UTC",
"isDst": false
},
"utc": "2026-11-01T05:30:00Z",
"resolution": "overlap_earlier",
"note": "The source time occurs twice because clocks in the source zone were set back. The earlier occurrence was used; pass overlap=later for the second one.",
"occurrences": ["2026-11-01T01:30:00-04:00", "2026-11-01T01:30:00-05:00"],
"source": "IANA tz database (runtime Intl)"
}Pass overlap=later for the second one (“overlap_later”):
curl 'https://clockcrest.com/api/v1/time/convert?from=America/New_York&to=UTC&time=2026-11-01T01:30&overlap=later'
Data set dates
The date each data set was last generated or checked. The same dates are returned as “lastUpdated” in the responses that use them.
| Data set | Last updated |
|---|
| Public holidays (Nager.Date) | 2026-11-30 |
|---|
| Cities and countries (GeoNames, CC BY 4.0) | 2026-11-30 |
|---|
| Stock-exchange hours (each exchange’s page) | 2026-11-30 |
|---|
| Time-zone rules (IANA tz database) | follows the runtime |
|---|
Where each data set comes from and what it does not cover is on the developer overview. The same reference in machine-readable form: /openapi.json
No endpoint matches. Try a path, a parameter name or a word such as “holiday”.
Time
Current time, conversion, time zones, UTC offsets and daylight-saving transitions (IANA tz database).
GET /api/v1/time/now
Current time in a time zone. The current date and time in an IANA time zone, with its UTC offset, abbreviation, whether daylight saving time is in effect and the next offset change. /api/v1/time is the original path and stays available.
Original path, still served: /api/v1/time · MCP tool: get_current_time
Parameters
Caching
Cache-Control: public, max-age=1 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/time/now?tz=Europe/Paris'
{
"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)"
}Response fields (14)
Schema: #/components/schemas/CurrentTime
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/time/now?tz=Mars/Olympus'
400 {"error":{"code":"invalid_timezone","message":"Unknown time zone in \"tz\". Use an IANA name such as Europe/Paris."}}Try it in the playground
GET /api/v1/time/convert
Convert a wall-clock time between zones. Converts a wall-clock time from one IANA zone to another. A time skipped by a daylight-saving jump or repeated when clocks go back is resolved explicitly ("resolution", "note", "occurrences"). /api/v1/convert is the original path and stays available.
Original path, still served: /api/v1/convert · MCP tool: convert_timezone
Parameters
Caching
Cache-Control: public, max-age=3600 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/time/convert?from=America/New_York&to=Asia/Tokyo&time=2026-12-25T09:00'
{
"input": {
"from": "America/New_York",
"to": "Asia/Tokyo",
"time": "2026-12-25T09:00:00"
},
"from": {
"timeZone": "America/New_York",
"local": "2026-12-25T09:00:00",
"iso": "2026-12-25T09:00:00-05:00",
"utcOffset": "-05:00",
"utcOffsetMinutes": -300,
"abbreviation": "EST",
"isDst": false
},
"to": {
"timeZone": "Asia/Tokyo",
"local": "2026-12-25T23:00:00",
"iso": "2026-12-25T23:00:00+09:00",
"utcOffset": "+09:00",
"utcOffsetMinutes": 540,
"abbreviation": "GMT+9",
"isDst": false
},
"utc": "2026-12-25T14:00:00Z",
"resolution": "exact",
"note": "The source time exists exactly once in the source zone.",
"source": "IANA tz database (runtime Intl)"
}Response fields (25)
Schema: #/components/schemas/Conversion
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/time/convert?from=America/New_York&to=Asia/Tokyo&time=tomorrow'
400 {"error":{"code":"invalid_time","message":"Parameter \"time\" must look like 2026-12-25T09:00 (optionally with :SS), without a UTC offset."}}Try it in the playground
GET /api/v1/time/zones
IANA time zones with their current offset. Every IANA time zone the serving runtime supports, with its current UTC offset and whether daylight saving time is in effect. With "country", only the zones used in that country.
Parameters
Caching
Cache-Control: public, max-age=300 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/time/zones?country=AU'
{
"at": "2026-12-01T13:46:26Z",
"country": "AU",
"count": 8,
"timeZones": [
{
"timeZone": "Australia/Adelaide",
"utcOffset": "+10:30",
"utcOffsetMinutes": 630,
"isDst": true,
"countries": ["AU"]
},
// … 7 more
],
"notes": [
"The list is what the serving runtime reports through Intl.supportedValuesOf('timeZone'), plus UTC, and follows the runtime's tz database version. Zones are given under their current IANA name where the site's GeoNames data knows it (Asia/Kolkata, not Asia/Calcutta); a few renamed zones without a sizeable city may still appear under the older name the runtime uses.",
// … 1 more
],
"source": "IANA tz database (runtime Intl)",
"countrySource": "GeoNames",
"countrySourceUrl": "https://www.geonames.org"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (13)
Schema: #/components/schemas/ZoneList
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/time/zones?country=Australia'
400 {"error":{"code":"invalid_parameter","message":"Parameter \"country\" is too long (max 2 characters)."}}curl 'https://clockcrest.com/api/v1/time/zones?country=ZZ'
404 {"error":{"code":"country_not_found","message":"No time-zone data for country \"ZZ\"."}}404: The country is not in the data set.
Try it in the playground
GET /api/v1/time/offsets
Time zones grouped by current UTC offset. The UTC offsets in use right now, each with the IANA zones currently on it. With "minutes", only that offset.
Parameters
Caching
Cache-Control: public, max-age=300 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/time/offsets?minutes=345'
{
"at": "2026-12-01T13:46:26Z",
"count": 1,
"offsets": [
{
"utcOffset": "+05:45",
"utcOffsetMinutes": 345,
"count": 1,
"timeZones": ["Asia/Kathmandu"]
}
],
"notes": [
"The list is what the serving runtime reports through Intl.supportedValuesOf('timeZone'), plus UTC, and follows the runtime's tz database version. Zones are given under their current IANA name where the site's GeoNames data knows it (Asia/Kolkata, not Asia/Calcutta); a few renamed zones without a sizeable city may still appear under the older name the runtime uses.",
// … 1 more
],
"source": "IANA tz database (runtime Intl)"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (9)
Schema: #/components/schemas/OffsetList
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/time/offsets?minutes=9000'
400 {"error":{"code":"out_of_range","message":"Parameter \"minutes\" must be between -720 and 840."}}Try it in the playground
GET /api/v1/time/dst
UTC-offset changes of a zone in a year. Every change of UTC offset in a zone during a year (daylight saving time starting and ending, or a permanent change), found by searching the runtime's tz data and exact to the second.
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/time/dst?tz=America/New_York&year=2027'
{
"timeZone": "America/New_York",
"year": 2027,
"observesDst": true,
"count": 2,
"transitions": [
{
"at": "2027-03-14T07:00:00Z",
"localBefore": "2027-03-14T01:59:59",
"localAfter": "2027-03-14T03:00:00",
"utcOffsetBefore": "-05:00",
"utcOffsetAfter": "-04:00",
"changeMinutes": 60,
"direction": "forward",
"isDstAfter": true
},
// … 1 more
],
"notes": [
"Every change of UTC offset during the UTC calendar year is listed, whatever its cause (daylight saving time or a permanent change of standard time).",
// … 2 more
],
"source": "IANA tz database (runtime Intl)"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (15)
Schema: #/components/schemas/DstTransitions
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/time/dst?tz=America/New_York&year=1800'
400 {"error":{"code":"out_of_range","message":"Parameter \"year\" must be between 1970 and 2100."}}Try it in the playground
GET /api/v1/time/find
Find the time zone of a city or country by name. Looks a name up among countries (name or ISO code) and the ~34,000 cities of the GeoNames index, and returns the matching IANA zones with their current local time.
MCP tool: find_timezone
Parameters
Caching
Cache-Control: public, max-age=60 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/time/find?q=Kathmandu&limit=2'
{
"query": "Kathmandu",
"at": "2026-12-01T13:46:26Z",
"countries": [],
"cities": [
{
"name": "Kathmandu",
"nameAr": "كاتماندو",
"alternateNames": ["كاتماندو", "काठमाडौं", "Katmandou", "Katmandú", "Катманду", "加德滿都"],
"country": "NP",
"countryName": "Nepal",
"timeZone": "Asia/Kathmandu",
"lat": 27.7,
"lon": 85.32,
"population": 1442271,
"slug": "kathmandu",
"url": "https://clockcrest.com/time/kathmandu/",
"utcOffset": "+05:45",
"local": "2026-12-01T19:31:26"
}
],
"notes": [
"A country can span several time zones: each one is listed with its largest cities. City matches are ordered by relevance, then population.",
"The index holds GeoNames populated places of 15,000+ people (about 34,000 cities). Smaller places are not in it.",
// … 1 more
],
"source": "GeoNames",
"sourceUrl": "https://www.geonames.org",
"license": "CC BY 4.0",
"lastUpdated": "2026-11-30",
"timeZoneSource": "IANA tz database (runtime Intl)"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (37)
Schema: #/components/schemas/TimezoneSearch
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/time/find'
400 {"error":{"code":"missing_parameter","message":"Missing required parameter \"q\"."}}Try it in the playground
Places
Cities and countries (GeoNames, CC BY 4.0).
GET /api/v1/cities/search
Search cities by name. Searches about 34,000 cities (GeoNames, 15,000+ people) by name. Matching ignores case, Latin accents and the usual Arabic spelling variants, and also looks at alternate names (Arabic, local language).
MCP tool: search_city
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/cities/search?q=cairo&limit=3'
{
"query": "cairo",
"country": null,
"count": 2,
"results": [
{
"name": "Cairo",
"nameAr": "القاهرة",
"alternateNames": ["القاهرة", "Le Caire", "El Cairo", "Kairo", "Каир", "カイロ"],
"country": "EG",
"countryName": "Egypt",
"timeZone": "Africa/Cairo",
"lat": 30.06,
"lon": 31.25,
"population": 9606916,
"slug": "cairo",
"url": "https://clockcrest.com/time/cairo/"
},
// … 1 more
],
"notes": [
"The index holds GeoNames populated places of 15,000+ people (about 34,000 cities). Smaller places are not in it.",
// … 1 more
],
"source": "GeoNames",
"sourceUrl": "https://www.geonames.org",
"license": "CC BY 4.0",
"lastUpdated": "2026-11-30"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (21)
Schema: #/components/schemas/CitySearch
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/cities/search?q=cairo&limit=500'
400 {"error":{"code":"out_of_range","message":"Parameter \"limit\" must be between 1 and 25."}}Try it in the playground
GET /api/v1/cities
Largest cities of a country. The cities of a country in the GeoNames index, most populous first.
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/cities?country=NP&limit=3'
{
"country": "NP",
"countryName": "Nepal",
"total": 46,
"count": 3,
"cities": [
{
"name": "Kathmandu",
"nameAr": "كاتماندو",
"alternateNames": ["كاتماندو", "काठमाडौं", "Katmandou", "Katmandú", "Катманду", "加德滿都"],
"country": "NP",
"countryName": "Nepal",
"timeZone": "Asia/Kathmandu",
"lat": 27.7,
"lon": 85.32,
"population": 1442271,
"slug": "kathmandu",
"url": "https://clockcrest.com/time/kathmandu/"
},
// … 2 more
],
"notes": [
"Cities are ordered by population, largest first.",
"The index holds GeoNames populated places of 15,000+ people (about 34,000 cities). Smaller places are not in it.",
// … 1 more
],
"source": "GeoNames",
"sourceUrl": "https://www.geonames.org",
"license": "CC BY 4.0",
"lastUpdated": "2026-11-30"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (22)
Schema: #/components/schemas/CityList
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/cities?country=Nepal'
400 {"error":{"code":"invalid_parameter","message":"Parameter \"country\" is too long (max 2 characters)."}}curl 'https://clockcrest.com/api/v1/cities?country=ZZ'
404 {"error":{"code":"country_not_found","message":"No city data for country \"ZZ\"."}}404: The country has no city in the index.
Try it in the playground
GET /api/v1/countries
Countries with their time zones. Countries known to the site, with capital, IANA time zones and the years of public-holiday data available.
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/countries?continent=an'
{
"continent": "AN",
"count": 2,
"countries": [
{
"code": "TF",
"name": "French Southern Territories",
"continent": "AN",
"capital": "Port-aux-Francais",
"timeZones": ["Indian/Kerguelen"],
"publicHolidayYears": []
},
// … 1 more
],
"notes": [
"Countries are those with at least one city page on clockcrest.com (GeoNames data); \"publicHolidayYears\" lists the years with Nager.Date holiday data and is empty when there is none.",
// … 2 more
],
"source": "GeoNames",
"sourceUrl": "https://www.geonames.org",
"license": "CC BY 4.0",
"lastUpdated": "2026-11-30"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (14)
Schema: #/components/schemas/CountryList
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/countries?continent=atlantis'
400 {"error":{"code":"invalid_parameter","message":"Parameter \"continent\" must be one of: af, as, eu, na, sa, oc, an."}}Try it in the playground
GET /api/v1/countries/{cc}
One country in detail. Capital, population, area, calling code, currency, weekend days, public-holiday coverage and every time zone of the country with its current offset and largest cities.
Parameters
Caching
Cache-Control: public, max-age=300 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/countries/EG'
{
"code": "EG",
"name": "Egypt",
"continent": "AF",
"continentName": "Africa",
"capital": {
"name": "Cairo",
"slug": "cairo",
"url": "https://clockcrest.com/time/cairo/"
},
"population": 118365995,
"areaKm2": 1001450,
"callingCode": "+20",
"currency": "EGP",
"tld": ".eg",
"cityCount": 242,
"timeZones": [
{
"timeZone": "Africa/Cairo",
"utcOffset": "+02:00",
"utcOffsetMinutes": 120,
"isDst": false,
"cityCount": 242,
"largestCities": [
{
"name": "Cairo",
"slug": "cairo",
"url": "https://clockcrest.com/time/cairo/"
},
// … 2 more
]
}
],
"weekend": ["Friday", "Saturday"],
"weekendBasis": "listed",
"publicHolidayYears": [2025, 2026, 2027, 2028],
"at": "2026-12-01T13:46:26Z",
"notes": [
"Countries are those with at least one city page on clockcrest.com (GeoNames data); \"publicHolidayYears\" lists the years with Nager.Date holiday data and is empty when there is none.",
// … 3 more
],
"source": "GeoNames",
"sourceUrl": "https://www.geonames.org",
"license": "CC BY 4.0",
"lastUpdated": "2026-11-30",
"timeZoneSource": "IANA tz database (runtime Intl)"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (34)
Schema: #/components/schemas/Country
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/countries/E1'
400 {"error":{"code":"invalid_country","message":"Parameter \"cc\" must be a two-letter ISO 3166-1 code such as FR."}}curl 'https://clockcrest.com/api/v1/countries/ZZ'
404 {"error":{"code":"country_not_found","message":"No data for country \"ZZ\"."}}404: The country is not in the data set.
Try it in the playground
Holidays and business days
Public holidays (Nager.Date, 2025–2028) and business-day arithmetic.
GET /api/v1/holidays
Public holidays of a country for one year. Public holidays from the site's static Nager.Date files (2025–2028). Regional holidays are included and flagged with their subdivisions.
MCP tool: get_country_holidays
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/holidays?country=FR&year=2026'
{
"country": "FR",
"countryName": "France",
"year": 2026,
"count": 11,
"holidays": [
{
"date": "2026-01-01",
"name": "New Year's Day",
"localName": "Jour de l'an",
"nationwide": true,
"types": ["Public"]
},
// … 10 more
],
"source": "Nager.Date",
"sourceUrl": "https://date.nager.at",
"dataYears": [2025, 2026, 2027, 2028],
"lastUpdated": "2026-11-30"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (15)
Schema: #/components/schemas/Holidays
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/holidays?country=..&year=2026'
400 {"error":{"code":"invalid_country","message":"Parameter \"country\" must be a two-letter ISO 3166-1 code such as FR."}}curl 'https://clockcrest.com/api/v1/holidays?country=FR&year=2031'
404 {"error":{"code":"year_not_found","message":"No data for 2031. Available years for FR: 2025, 2026, 2027, 2028."}}404: No data for that country or year.
Try it in the playground
GET /api/v1/business-days
Count business days between two dates. Business days between two dates, both inclusive, excluding the country's weekend days and nationwide public holidays. The whole range must lie inside the years the holiday data covers.
MCP tool: calculate_business_days
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/business-days?country=FR&start=2026-12-01&end=2026-12-31'
{
"country": "FR",
"countryName": "France",
"start": "2026-12-01",
"end": "2026-12-31",
"endInclusive": true,
"calendarDays": 31,
"businessDays": 22,
"weekend": ["Sunday", "Saturday"],
"holidaysExcluded": [
{
"date": "2026-12-25",
"name": "Christmas Day",
"localName": "Noël"
}
],
"holidaysOnWeekend": [],
"rules": "Weekend days and nationwide public holidays are excluded; regional holidays are not.",
"source": "Nager.Date",
"sourceUrl": "https://date.nager.at",
"dataYears": [2025, 2026, 2027, 2028],
"lastUpdated": "2026-11-30"
}Response fields (21)
Schema: #/components/schemas/BusinessDays
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/business-days?country=FR&start=2026-12-31&end=2026-12-01'
400 {"error":{"code":"invalid_range","message":"Parameter \"end\" must not be before \"start\"."}}curl 'https://clockcrest.com/api/v1/business-days?country=ZZ&start=2026-12-01&end=2026-12-31'
404 {"error":{"code":"country_not_found","message":"No public-holiday data for country \"ZZ\"."}}404: No holiday data for that country.
Try it in the playground
GET /api/v1/business-days/add
Add or subtract business days. The date reached by stepping a number of business days forward (or backward, with a negative number) from a start date, skipping the country's weekend days and nationwide public holidays. The start date itself is not counted.
MCP tool: add_business_days
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/business-days/add?country=EG&start=2026-12-30&days=5'
{
"country": "EG",
"countryName": "Egypt",
"start": "2026-12-30",
"startWeekday": "Wednesday",
"startIsBusinessDay": true,
"days": 5,
"result": "2027-01-06",
"resultWeekday": "Wednesday",
"calendarDays": 7,
"weekend": ["Friday", "Saturday"],
"holidaysSkipped": [],
"rules": "Weekend days and nationwide public holidays are not business days; regional holidays are treated as business days. The start date itself is not counted: the result is the 5 business days after it.",
"notes": ["The weekend used for EG is the one documented for that country."],
"source": "Nager.Date",
"sourceUrl": "https://date.nager.at",
"lastUpdated": "2026-11-30",
"dataYears": [2025, 2026, 2027, 2028]
}Response fields (20)
Schema: #/components/schemas/BusinessDaysAdd
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/business-days/add?country=FR&start=2028-12-20&days=20'
400 {"error":{"code":"range_not_covered","message":"Holiday data for FR covers 2025, 2026, 2027, 2028 only; 2029 is outside it."}}curl 'https://clockcrest.com/api/v1/business-days/add?country=ZZ&start=2026-12-01&days=5'
404 {"error":{"code":"country_not_found","message":"No public-holiday data for country \"ZZ\"."}}404: No holiday data for that country.
Try it in the playground
GET /api/v1/business-days/next
Is a date a business day, and what is the next one. Whether a date is a business day in a country (and if not, why) and the first business day strictly after it.
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/business-days/next?country=FR&date=2026-12-24'
{
"country": "FR",
"countryName": "France",
"date": "2026-12-24",
"weekday": "Thursday",
"isBusinessDay": true,
"reason": null,
"holiday": null,
"nextBusinessDay": "2026-12-28",
"nextBusinessDayWeekday": "Monday",
"daysUntilNext": 4,
"weekend": ["Sunday", "Saturday"],
"rules": "Weekend days and nationwide public holidays are not business days; regional holidays are treated as business days. \"nextBusinessDay\" is strictly after \"date\".",
"notes": [
"No special weekend is documented for FR: Saturday–Sunday is assumed. Countries with a documented different weekend: BD, BH, DZ, EG, IL, IQ, IR, JO, KW, LY, MV, NP, OM, PS, QA, SA, SD, SY, YE."
],
"source": "Nager.Date",
"sourceUrl": "https://date.nager.at",
"lastUpdated": "2026-11-30",
"dataYears": [2025, 2026, 2027, 2028]
}Response fields (20)
Schema: #/components/schemas/NextBusinessDay
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/business-days/next?country=FR&date=2026-02-30'
400 {"error":{"code":"invalid_date","message":"Parameter \"date\" must be a calendar date like 2026-12-01."}}curl 'https://clockcrest.com/api/v1/business-days/next?country=ZZ&date=2026-12-24'
404 {"error":{"code":"country_not_found","message":"No public-holiday data for country \"ZZ\"."}}404: No holiday data for that country.
Try it in the playground
Dates and calendars
Date arithmetic, ISO weeks, month calendars and calendar-system conversion.
GET /api/v1/calendar
Month calendar with ISO weeks, weekend days and holidays. A month laid out in ISO weeks (Monday first) with ISO week numbers. With "country", that country's weekend days and public holidays are marked and its business days counted.
MCP tool: get_calendar
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/calendar?country=FR&year=2026&month=12'
{
"year": 2026,
"month": 12,
"monthName": "December",
"country": "FR",
"countryName": "France",
"weekStart": "Monday",
"weekend": ["Sunday", "Saturday"],
"daysInMonth": 31,
"businessDays": 22,
"weeks": [
{
"isoWeek": 49,
"isoWeekYear": 2026,
"days": [
null,
// … 6 more
]
},
// … 4 more
],
"holidays": [
{
"date": "2026-12-25",
"name": "Christmas Day",
"localName": "Noël",
"nationwide": true,
"types": ["Public"]
}
],
"notes": [
"Rows are ISO 8601 weeks (Monday to Sunday); null cells pad the first and last week. Week 1 is the week that contains the first Thursday of the year.",
// … 2 more
],
"source": "Nager.Date",
"sourceUrl": "https://date.nager.at",
"dataYears": [2025, 2026, 2027, 2028],
"lastUpdated": "2026-11-30"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (33)
Schema: #/components/schemas/MonthCalendar
Loading…
Error examples (2)
curl 'https://clockcrest.com/api/v1/calendar?year=2026&month=13'
400 {"error":{"code":"out_of_range","message":"Parameter \"month\" must be between 1 and 12."}}curl 'https://clockcrest.com/api/v1/calendar?country=FR&year=2031&month=1'
404 {"error":{"code":"year_not_found","message":"No holiday data for 2031. Available years for FR: 2025, 2026, 2027, 2028."}}404: No holiday data for that country or year.
Try it in the playground
GET /api/v1/calendar/convert
Convert a date between calendar systems. Converts a date between the Gregorian, Hijri (Umm al-Qura), Persian (Solar Hijri) and Hebrew calendars. The response notes state the Hijri variant and the moon-sighting caveat.
MCP tool: convert_calendar
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/calendar/convert?date=2026-12-01&from=gregorian&to=islamic-umalqura'
{
"input": {
"calendar": "gregorian",
"year": 2026,
"month": 12,
"day": 1,
"monthName": "December",
"date": "2026-12-01"
},
"result": {
"calendar": "islamic-umalqura",
"year": 1448,
"month": 6,
"day": 21,
"monthName": "Jumada II",
"date": "1448-06-21"
},
"gregorian": "2026-12-01",
"weekday": "Tuesday",
"notes": [
"Months are numbered by their position in the year. A Hebrew leap year has 13 months (Adar I = 6, Adar II = 7); month names are the English names from the runtime's CLDR data.",
// … 3 more
],
"supportedCalendars": ["gregorian", "islamic-umalqura", "persian", "hebrew"],
"source": "ICU / CLDR calendars (runtime Intl)"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (19)
Schema: #/components/schemas/CalendarConversion
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/calendar/convert?date=2026-12-01&from=gregorian&to=islamic-civil'
400 {"error":{"code":"invalid_calendar","message":"Parameter \"to\" must be one of: gregorian, islamic-umalqura, persian, hebrew. Other calendars (including islamic-civil) are not supported."}}Try it in the playground
GET /api/v1/date/difference
Difference between two dates. Days between two calendar dates, also expressed as weeks and days and as years, months and days.
MCP tool: calculate_date_difference
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/date/difference?start=2024-02-29&end=2026-12-01'
{
"start": "2024-02-29",
"startWeekday": "Thursday",
"end": "2026-12-01",
"endWeekday": "Tuesday",
"days": 1006,
"negative": false,
"weeks": {
"weeks": 143,
"days": 5
},
"calendar": {
"years": 2,
"months": 9,
"days": 2
},
"notes": [
"\"days\" is end minus start (the end date is not counted; negative when end is before start). \"weeks\" and \"calendar\" describe the absolute difference.",
"\"calendar\" counts whole years and months first, then the remaining days; a month-end start is clamped (31 January + 1 month = 28 or 29 February)."
],
"source": "Proleptic Gregorian calendar arithmetic"
}Response fields (15)
Schema: #/components/schemas/DateDifference
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/date/difference?start=2026-02-29&end=2026-03-01'
400 {"error":{"code":"invalid_date","message":"Parameter \"start\" must be a calendar date like 2026-12-01."}}Try it in the playground
GET /api/v1/date/add
Add years, months, weeks and days to a date. Adds (or, with negative numbers, subtracts) years, months, weeks and days. Years and months are applied first, clamped to the end of the month; then weeks and days.
MCP tool: add_duration
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/date/add?date=2024-01-31&months=1'
{
"date": "2024-01-31",
"weekday": "Wednesday",
"added": {
"years": 0,
"months": 1,
"weeks": 0,
"days": 0
},
"result": "2024-02-29",
"resultWeekday": "Thursday",
"resultIsoWeek": 9,
"resultIsoWeekYear": 2024,
"daysBetween": 29,
"notes": [
"Years and months are added first, clamping to the last day of the month when needed (31 January + 1 month = 28 or 29 February); weeks and days are added afterwards."
],
"source": "Proleptic Gregorian calendar arithmetic"
}Response fields (14)
Schema: #/components/schemas/DateAdd
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/date/add?date=2026-01-31'
400 {"error":{"code":"missing_parameter","message":"Give at least one of \"years\", \"months\", \"weeks\" or \"days\"."}}Try it in the playground
GET /api/v1/date/week-number
ISO week number of a date. ISO 8601 week number and week-year of a date, with the Monday and Sunday of that week, the day of the year and leap-year information.
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/date/week-number?date=2027-01-01'
{
"date": "2027-01-01",
"weekday": "Friday",
"isoWeekday": 5,
"isoWeek": 53,
"isoWeekYear": 2026,
"isoWeekDate": "2026-W53-5",
"weeksInIsoYear": 53,
"weekStart": "2026-12-28",
"weekEnd": "2027-01-03",
"dayOfYear": 1,
"daysInYear": 365,
"isLeapYear": false,
"notes": [
"ISO 8601 week numbering: weeks start on Monday and week 1 is the week with the year's first Thursday, so the first and last days of a year can belong to a week of the neighbouring year (\"isoWeekYear\")."
],
"source": "ISO 8601 week date (proleptic Gregorian calendar)"
}Response fields (14)
Schema: #/components/schemas/WeekNumber
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/date/week-number?date=01/01/2027'
400 {"error":{"code":"invalid_date","message":"Parameter \"date\" must be a calendar date like 2026-12-01."}}Try it in the playground
Astronomy
Sunrise and sunset, moon phases and Islamic prayer times (calculated).
GET /api/v1/astronomy/sun
Sunrise, sunset, solar noon and twilight. Sunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight for a place and date. Polar day and polar night are reported explicitly.
MCP tool: get_sunrise_sunset
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/astronomy/sun?lat=30.06&lon=31.25&date=2026-12-01&tz=Africa/Cairo'
{
"date": "2026-12-01",
"lat": 30.06,
"lon": 31.25,
"timeZone": "Africa/Cairo",
"sunrise": {
"utc": "2026-12-01T04:33:21Z",
"local": "2026-12-01T06:33:21+02:00"
},
"sunset": {
"utc": "2026-12-01T14:54:38Z",
"local": "2026-12-01T16:54:38+02:00"
},
"solarNoon": {
"utc": "2026-12-01T09:43:59Z",
"local": "2026-12-01T11:43:59+02:00"
},
"dayLengthSeconds": 37277,
"dayLength": "10:21:17",
"polar": null,
"polarNote": null,
"twilight": {
"civil": {
"dawn": {
"utc": "2026-12-01T04:07:21Z",
"local": "2026-12-01T06:07:21+02:00"
},
"dusk": {
"utc": "2026-12-01T15:20:38Z",
"local": "2026-12-01T17:20:38+02:00"
}
},
"nautical": {
"dawn": {
"utc": "2026-12-01T03:37:49Z",
"local": "2026-12-01T05:37:49+02:00"
},
"dusk": {
"utc": "2026-12-01T15:50:10Z",
"local": "2026-12-01T17:50:10+02:00"
}
},
"astronomical": {
"dawn": {
"utc": "2026-12-01T03:08:50Z",
"local": "2026-12-01T05:08:50+02:00"
},
"dusk": {
"utc": "2026-12-01T16:19:09Z",
"local": "2026-12-01T18:19:09+02:00"
}
}
},
"notes": [
"Sunrise and sunset are the moments the Sun's upper limb is on a sea-level horizon with standard refraction (centre 0.833° below it). Typical accuracy is 1–2 minutes below 72° latitude; terrain, elevation and unusual refraction are not modelled.",
// … 2 more
],
"source": "NOAA solar position algorithm (Jean Meeus, Astronomical Algorithms)",
"sourceUrl": "https://gml.noaa.gov/grad/solcalc/calcdetails.html"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (42)
Schema: #/components/schemas/Sun
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/astronomy/sun?lat=95&lon=31.25&date=2026-12-01&tz=Africa/Cairo'
400 {"error":{"code":"out_of_range","message":"Parameter \"lat\" must be between -90 and 90."}}Try it in the playground
GET /api/v1/astronomy/moon
Moon phase, illumination and next phases. Phase name, illuminated fraction and age of the Moon, and the next new moon, first quarter, full moon and last quarter. Without "date" the phase is for the current moment.
MCP tool: get_moon_phase
Parameters
Caching
Cache-Control: public, max-age=86400 (when the request names a date) · public, max-age=300 (otherwise) · public, max-age=86400 (sent in the captured response)
Example request and response
curl 'https://clockcrest.com/api/v1/astronomy/moon?date=2026-12-01'
{
"date": "2026-12-01",
"at": "2026-12-01T12:00:00Z",
"phase": "last-quarter",
"phaseName": "Last Quarter",
"illumination": 0.4747,
"illuminationPercent": 47.5,
"ageDays": 22.21,
"cycleAngle": 272.8,
"waxing": false,
"nextNewMoon": "2026-12-09T00:51:46Z",
"nextFirstQuarter": "2026-12-17T05:42:35Z",
"nextFullMoon": "2026-12-24T01:28:08Z",
"nextLastQuarter": "2026-12-30T18:59:29Z",
"notes": [
"A date without a time is evaluated at 12:00:00 UTC.",
"The phase is geocentric: it is the same everywhere on Earth at a given instant. Principal phases (new, quarters, full) are reported for about half a day either side of their exact moment.",
// … 1 more
],
"source": "Jean Meeus, Astronomical Algorithms (2nd ed.), chapters 48–49"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (15)
Schema: #/components/schemas/Moon
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/astronomy/moon?date=1600-01-01'
400 {"error":{"code":"out_of_range","message":"Parameter \"date\" must be between 1900-01-01 and 2100-12-31."}}Try it in the playground
GET /api/v1/prayer-times
Islamic prayer times. Fajr, sunrise, Dhuhr, Asr, Maghrib and Isha for a place and date, with the parameters of the calculation method used. Local authorities may publish times that differ by a few minutes.
MCP tool: get_prayer_times
Parameters
Caching
Cache-Control: public, max-age=86400 ✓ sent in the captured response
Example request and response
curl 'https://clockcrest.com/api/v1/prayer-times?lat=30.06&lon=31.25&date=2026-12-01&tz=Africa/Cairo&method=egyptian'
{
"date": "2026-12-01",
"lat": 30.06,
"lon": 31.25,
"timeZone": "Africa/Cairo",
"times": {
"fajr": {
"utc": "2026-12-01T03:01:40Z",
"local": "2026-12-01T05:01:40+02:00"
},
"sunrise": {
"utc": "2026-12-01T04:33:21Z",
"local": "2026-12-01T06:33:21+02:00"
},
"dhuhr": {
"utc": "2026-12-01T09:43:59Z",
"local": "2026-12-01T11:43:59+02:00"
},
"asr": {
"utc": "2026-12-01T12:35:32Z",
"local": "2026-12-01T14:35:32+02:00"
},
"maghrib": {
"utc": "2026-12-01T14:54:38Z",
"local": "2026-12-01T16:54:38+02:00"
},
"isha": {
"utc": "2026-12-01T16:16:45Z",
"local": "2026-12-01T18:16:45+02:00"
}
},
"method": {
"id": "egyptian",
"name": "Egyptian General Authority of Survey",
"fajrAngle": 19.5,
"ishaAngle": 17.5,
"ishaMinutesAfterMaghrib": null,
"ramadan": null
},
"asr": {
"school": "standard",
"shadowFactor": 1
},
"highLatitudeApproximation": false,
"polar": false,
"notes": [
"Calculated times. Mosques and local religious authorities may publish times that differ by a few minutes (rounding, safety margins, a different method or local practice); follow the local timetable where one exists.",
// … 3 more
],
"methods": ["mwl", "umm-al-qura", "egyptian", "karachi", "isna"],
"source": "Solar position: NOAA algorithm (Jean Meeus); angles: the published parameters of each method"
}Shortened: long lists show their first item and a “// … N more” line.
Response fields (38)
Schema: #/components/schemas/PrayerTimes
Loading…
Error examples (1)
curl 'https://clockcrest.com/api/v1/prayer-times?lat=30.06&lon=31.25&date=2026-12-01&tz=Africa/Cairo&method=custom'
400 {"error":{"code":"invalid_parameter","message":"Parameter \"method\" must be one of: mwl, umm-al-qura, egyptian, karachi, isna."}}Try it in the playground