{
 "openapi": "3.1.0",
 "info": {
  "title": "ClockCrest public API",
  "version": "1.1.0",
  "summary": "Free, read-only API for time zones, dates, calendars, public holidays, astronomy, weather and market hours.",
  "description": "Free, and usable without a key. All endpoints are GET only and return JSON; errors use {\"error\":{\"code\",\"message\"}} and never echo the rejected value. CORS is open (Access-Control-Allow-Origin: *).\n\nAuthentication: Optional. Every endpoint and the MCP server work without credentials. A free API key (created after signing in at https://clockcrest.com/developers/dashboard/) raises the limits; send it as \"Authorization: Bearer cc_live_…\" or \"X-API-Key: cc_live_…\". A malformed, unknown or revoked key is refused with 401 invalid_api_key — it never silently falls back to keyless access. No cookies are set by the API. The weather endpoint additionally keeps short-lived per-IP counters (at most 2 minutes, keyed by an HMAC-SHA-256 of the address, never the address itself).\n\nRate limiting: Per-client limits in fixed windows of one minute and one UTC day: without a key 60 requests per minute and 1,000 per day per IP address; with a free key 120 per minute and 10,000 per day per key (a Pro plan of 600 and 200,000 is defined but not yet offered). Over a limit the answer is HTTP 429 with a JSON error (code rate_limited) and Retry-After; every answer carries RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset and RateLimit-Policy. The API is offered on a best-effort basis with no SLA. In place today: Limits are counted in the memory of the Cloudflare location that answers a request. A client whose requests reach several locations can exceed a limit by a multiple, and a restarted server forgets its counts, so the limits are approximate; daily key quotas resume from the stored daily totals. Keyless requests are counted per IP address in memory only; addresses are never written to storage. Keyed usage is stored as daily totals per key and endpoint, written in batches. Cloudflare's network-level DDoS protection, which applies to every site on the platform, including the free plan. Cache-Control headers on every successful response (from 1 second for the current time to 24 hours for holidays, calendars and astronomy), so browsers and well-behaved clients repeat fewer requests. Small, bounded computations: every endpoint is a pure calculation or a read of a static file shipped with the site, except the weather endpoint, which calls MET Norway's Locationforecast API with the coordinates rounded to 0.1° (about 11 km; the caller's IP address is not sent) and caches each forecast in Workers KV until MET's expiry time. Weather endpoint limits: forecasts that are not cached yet are limited to 20 per minute per IP address and calls to MET Norway to 60 per minute in total, counted in memory and in Workers KV; over a limit a cached copy is served when there is one, otherwise 429 rate_limited or 503 data_unavailable with Retry-After. The per-IP counters are kept for at most 2 minutes and keyed by an HMAC-SHA-256 of the address under a secret key (RL_SALT), so the address cannot be read back from them. Strict input limits: GET only, query strings up to 512 characters, each parameter given once, bounded lengths and numeric ranges (for example business-day ranges up to 1500 days and city searches up to 25 results), MCP request bodies up to 16 KB, no JSON-RPC batches. Not in place: No globally consistent counter: Cloudflare Pages Functions cannot use the Workers Rate Limiting binding or Durable Objects, and counting every request in Workers KV or D1 would exceed their free daily write allowances. No paid plan: nothing can be bought yet. A hard, network-wide ceiling needs a Cloudflare WAF rate-limiting rule on the clockcrest.com zone (for example: requests to /api/v1/* or /mcp from one IP above a chosen number per 10 seconds are blocked). That is an account setting which only the site owner can approve and enable; nothing in this code turns it on.\n\nPlease cache responses for as long as their Cache-Control header allows and do not poll faster than the data changes. Requests to the API and to the MCP endpoint count toward the hosting plan's daily request allowance (Cloudflare Workers free plan, reset at midnight UTC), which is shared by all callers.\n\nEvery response names its \"source\" and, where relevant, \"sourceUrl\", \"dataYears\" and \"lastUpdated\", and lists its caveats in \"notes\". Time-zone rules: IANA tz database through the platform Intl implementation. Public holidays: Nager.Date (2025–2028). Cities and countries: GeoNames (CC BY 4.0). Weather: MET Norway Locationforecast 2.0 (CC BY 4.0; credit \"Weather data from MET Norway\"). A request outside the range a data set covers is answered with an explicit error, never with a guess.\n\nThe same operations are available to AI agents as MCP tools at POST https://clockcrest.com/mcp (operations with an \"x-mcp-tool\" extension).\n\nExamples in this document are real responses captured from a local run of the same code; values that depend on the moment of capture (current time, market status) will differ.",
  "contact": {
   "name": "ClockCrest",
   "url": "https://clockcrest.com/developers/"
  }
 },
 "servers": [
  {
   "url": "https://clockcrest.com",
   "description": "Production"
  }
 ],
 "externalDocs": {
  "description": "Developer documentation",
  "url": "https://clockcrest.com/developers/"
 },
 "tags": [
  {
   "name": "Service",
   "description": "Version, build and data-set information about the API itself."
  },
  {
   "name": "Time",
   "description": "Current time, conversion, time zones, UTC offsets and daylight-saving transitions (IANA tz database)."
  },
  {
   "name": "Places",
   "description": "Cities and countries (GeoNames, CC BY 4.0)."
  },
  {
   "name": "Holidays and business days",
   "description": "Public holidays (Nager.Date, 2025–2028) and business-day arithmetic."
  },
  {
   "name": "Dates and calendars",
   "description": "Date arithmetic, ISO weeks, month calendars and calendar-system conversion."
  },
  {
   "name": "Astronomy",
   "description": "Sunrise and sunset, moon phases and Islamic prayer times (calculated)."
  },
  {
   "name": "Weather",
   "description": "Weather forecasts from MET Norway (Locationforecast 2.0, CC BY 4.0), cached."
  },
  {
   "name": "Markets",
   "description": "Regular trading hours of major stock exchanges."
  },
  {
   "name": "Widgets",
   "description": "Embeddable clock templates and the parameters of the embed pages."
  }
 ],
 "paths": {
  "/api/v1/status": {
   "get": {
    "tags": [
     "Service"
    ],
    "operationId": "getStatus",
    "summary": "API version, build and data-set dates",
    "description": "What is running: the API version, the number of operations, the commit and build time of the deployment, and the source, date and size of every data set. Takes no parameters. It is a liveness answer, not an uptime measurement: no history is kept.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ServiceStatus"
        },
        "example": {
         "status": "ok",
         "at": "2026-12-01T13:46:26Z",
         "unixMs": 1796132786019,
         "api": {
          "version": "1.1.0",
          "operations": 26,
          "paths": 28,
          "mcpTools": 16,
          "openapi": "https://clockcrest.com/openapi.json",
          "documentation": "https://clockcrest.com/developers/docs/"
         },
         "build": {
          "commit": "759afb9",
          "builtAt": "2026-12-01T09:45:24Z"
         },
         "datasets": [
          {
           "id": "time-zones",
           "name": "Time-zone rules",
           "source": "IANA tz database (runtime Intl)",
           "sourceUrl": "https://www.iana.org/time-zones",
           "license": null,
           "lastUpdated": null,
           "records": 419,
           "unit": "time zones",
           "coverage": "Every zone the serving runtime knows. The tz release is the one built into the runtime; Intl does not expose its version."
          },
          {
           "id": "holidays",
           "name": "Public holidays",
           "source": "Nager.Date",
           "sourceUrl": "https://date.nager.at",
           "license": null,
           "lastUpdated": "2026-11-30",
           "records": 204,
           "unit": "countries",
           "coverage": "Years 2025–2028. A country or year without data is answered with 404, never with a guess."
          },
          {
           "id": "places",
           "name": "Cities and countries",
           "source": "GeoNames",
           "sourceUrl": "https://www.geonames.org",
           "license": "CC BY 4.0",
           "lastUpdated": "2026-11-30",
           "records": 241,
           "unit": "countries",
           "coverage": "Countries and territories with at least one city of 15,000+ people, and those cities."
          },
          {
           "id": "exchanges",
           "name": "Stock-exchange trading hours",
           "source": "Each exchange's published trading hours",
           "sourceUrl": null,
           "license": null,
           "lastUpdated": "2026-11-30",
           "records": 23,
           "unit": "exchanges",
           "coverage": "Regular weekly sessions only; exchange holidays and early closes are not modelled."
          },
          {
           "id": "astronomy",
           "name": "Sun, Moon and prayer times",
           "source": "Calculated: NOAA solar position algorithm and Jean Meeus, Astronomical Algorithms",
           "sourceUrl": "https://gml.noaa.gov/grad/solcalc/calcdetails.html",
           "license": null,
           "lastUpdated": null,
           "records": null,
           "unit": null,
           "coverage": "Dates from 1900 to 2100. No data set: every value is computed from the request."
          }
         ],
         "notes": [
          "This response means the API code answered this request; it is not an uptime measurement and no history is kept.",
          "\"build\" is null on both fields when the deployment was not produced by the normal build (for example a local development run)."
         ],
         "source": "ClockCrest (clockcrest.com)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "unknown_parameter",
          "message": "This endpoint takes no parameters."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/time/now": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "getCurrentTime",
    "summary": "Current time in a time zone",
    "description": "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.",
    "x-mcp-tool": "get_current_time",
    "parameters": [
     {
      "name": "tz",
      "in": "query",
      "required": true,
      "description": "IANA time zone name, e.g. Europe/Paris",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "IANA time zone name, e.g. Europe/Paris"
      },
      "example": "Europe/Paris"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=1"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CurrentTime"
        },
        "example": {
         "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)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_timezone",
          "message": "Unknown time zone in \"tz\". Use an IANA name such as Europe/Paris."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "method_not_allowed",
          "message": "Only GET is supported."
         }
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/time": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "getCurrentTimeAlias",
    "summary": "Current time in a time zone (original path)",
    "description": "Same operation and same response as /api/v1/time/now; kept so existing clients keep working.",
    "x-mcp-tool": "get_current_time",
    "parameters": [
     {
      "name": "tz",
      "in": "query",
      "required": true,
      "description": "IANA time zone name, e.g. Europe/Paris",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "IANA time zone name, e.g. Europe/Paris"
      },
      "example": "Europe/Paris"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=1"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CurrentTime"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/time/convert": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "convertTime",
    "summary": "Convert a wall-clock time between zones",
    "description": "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.",
    "x-mcp-tool": "convert_timezone",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Source IANA time zone, e.g. America/New_York",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "Source IANA time zone, e.g. America/New_York"
      },
      "example": "America/New_York"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Target IANA time zone, e.g. Asia/Tokyo",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "Target IANA time zone, e.g. Asia/Tokyo"
      },
      "example": "Asia/Tokyo"
     },
     {
      "name": "time",
      "in": "query",
      "required": true,
      "description": "Wall-clock time in the source zone, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, without a UTC offset (1970–2100)",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?$",
       "description": "Wall-clock time in the source zone, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, without a UTC offset (1970–2100)"
      },
      "example": "2026-12-25T09:00"
     },
     {
      "name": "overlap",
      "in": "query",
      "required": false,
      "description": "Which occurrence to use when the time happens twice. Default: earlier.",
      "schema": {
       "type": "string",
       "enum": [
        "earlier",
        "later"
       ],
       "default": "earlier",
       "description": "Which occurrence to use when the time happens twice. Default: earlier."
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=3600"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Conversion"
        },
        "example": {
         "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)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_time",
          "message": "Parameter \"time\" must look like 2026-12-25T09:00 (optionally with :SS), without a UTC offset."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/convert": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "convertTimeAlias",
    "summary": "Convert a wall-clock time between zones (original path)",
    "description": "Same operation and same response as /api/v1/time/convert; kept so existing clients keep working.",
    "x-mcp-tool": "convert_timezone",
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Source IANA time zone, e.g. America/New_York",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "Source IANA time zone, e.g. America/New_York"
      },
      "example": "America/New_York"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Target IANA time zone, e.g. Asia/Tokyo",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "Target IANA time zone, e.g. Asia/Tokyo"
      },
      "example": "Asia/Tokyo"
     },
     {
      "name": "time",
      "in": "query",
      "required": true,
      "description": "Wall-clock time in the source zone, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, without a UTC offset (1970–2100)",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?$",
       "description": "Wall-clock time in the source zone, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, without a UTC offset (1970–2100)"
      },
      "example": "2026-12-25T09:00"
     },
     {
      "name": "overlap",
      "in": "query",
      "required": false,
      "description": "Which occurrence to use when the time happens twice. Default: earlier.",
      "schema": {
       "type": "string",
       "enum": [
        "earlier",
        "later"
       ],
       "default": "earlier",
       "description": "Which occurrence to use when the time happens twice. Default: earlier."
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=3600"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Conversion"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/time/zones": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "listTimeZones",
    "summary": "IANA time zones with their current offset",
    "description": "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": [
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "Only the zones of this country (ISO 3166-1 alpha-2), e.g. AU",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "Only the zones of this country (ISO 3166-1 alpha-2), e.g. AU"
      },
      "example": "AU"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=300"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ZoneList"
        },
        "example": {
         "at": "2026-12-01T13:46:26Z",
         "country": "AU",
         "count": 8,
         "timeZones": [
          {
           "timeZone": "Australia/Adelaide",
           "utcOffset": "+10:30",
           "utcOffsetMinutes": 630,
           "isDst": true,
           "countries": [
            "AU"
           ]
          },
          {
           "timeZone": "Australia/Brisbane",
           "utcOffset": "+10:00",
           "utcOffsetMinutes": 600,
           "isDst": false,
           "countries": [
            "AU"
           ]
          },
          {
           "timeZone": "Australia/Broken_Hill",
           "utcOffset": "+10:30",
           "utcOffsetMinutes": 630,
           "isDst": true,
           "countries": [
            "AU"
           ]
          },
          {
           "timeZone": "Australia/Darwin",
           "utcOffset": "+09:30",
           "utcOffsetMinutes": 570,
           "isDst": false,
           "countries": [
            "AU"
           ]
          },
          {
           "timeZone": "Australia/Hobart",
           "utcOffset": "+11:00",
           "utcOffsetMinutes": 660,
           "isDst": true,
           "countries": [
            "AU"
           ]
          },
          {
           "timeZone": "Australia/Melbourne",
           "utcOffset": "+11:00",
           "utcOffsetMinutes": 660,
           "isDst": true,
           "countries": [
            "AU"
           ]
          },
          {
           "timeZone": "Australia/Perth",
           "utcOffset": "+08:00",
           "utcOffsetMinutes": 480,
           "isDst": false,
           "countries": [
            "AU"
           ]
          },
          {
           "timeZone": "Australia/Sydney",
           "utcOffset": "+11:00",
           "utcOffsetMinutes": 660,
           "isDst": true,
           "countries": [
            "AU"
           ]
          }
         ],
         "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.",
          "The \"countries\" of a zone are derived from GeoNames cities of 15,000+ people; a zone without such a city has an empty list."
         ],
         "source": "IANA tz database (runtime Intl)",
         "countrySource": "GeoNames",
         "countrySourceUrl": "https://www.geonames.org"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_parameter",
          "message": "Parameter \"country\" is too long (max 2 characters)."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "The country is not in the data set.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "country_not_found",
          "message": "No time-zone data for country \"ZZ\"."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/time/offsets": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "listUtcOffsets",
    "summary": "Time zones grouped by current UTC offset",
    "description": "The UTC offsets in use right now, each with the IANA zones currently on it. With \"minutes\", only that offset.",
    "parameters": [
     {
      "name": "minutes",
      "in": "query",
      "required": false,
      "description": "Only this offset, in minutes east of UTC (e.g. 345 for +05:45)",
      "schema": {
       "type": "integer",
       "minimum": -720,
       "maximum": 840,
       "description": "Only this offset, in minutes east of UTC (e.g. 345 for +05:45)"
      },
      "example": 345
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=300"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OffsetList"
        },
        "example": {
         "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.",
          "Zones are grouped by the offset in force at \"at\"; groups change when a zone enters or leaves daylight saving time."
         ],
         "source": "IANA tz database (runtime Intl)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "out_of_range",
          "message": "Parameter \"minutes\" must be between -720 and 840."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/time/dst": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "getDstTransitions",
    "summary": "UTC-offset changes of a zone in a year",
    "description": "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": [
     {
      "name": "tz",
      "in": "query",
      "required": true,
      "description": "IANA time zone name, e.g. America/New_York",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "IANA time zone name, e.g. America/New_York"
      },
      "example": "America/New_York"
     },
     {
      "name": "year",
      "in": "query",
      "required": true,
      "description": "Four-digit year, 1970–2100",
      "schema": {
       "type": "integer",
       "minimum": 1970,
       "maximum": 2100,
       "description": "Four-digit year, 1970–2100"
      },
      "example": 2027
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DstTransitions"
        },
        "example": {
         "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
          },
          {
           "at": "2027-11-07T06:00:00Z",
           "localBefore": "2027-11-07T01:59:59",
           "localAfter": "2027-11-07T01:00:00",
           "utcOffsetBefore": "-04:00",
           "utcOffsetAfter": "-05:00",
           "changeMinutes": -60,
           "direction": "backward",
           "isDstAfter": false
          }
         ],
         "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).",
          "\"at\" is the first second on which the new offset applies; \"localBefore\" is the clock reading one second earlier and \"localAfter\" the reading at \"at\". Offsets are reported to the minute.",
          "Future years reflect the rules in the runtime's tz database today; governments change them, sometimes at short notice."
         ],
         "source": "IANA tz database (runtime Intl)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "out_of_range",
          "message": "Parameter \"year\" must be between 1970 and 2100."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/time/find": {
   "get": {
    "tags": [
     "Time"
    ],
    "operationId": "findTimeZone",
    "summary": "Find the time zone of a city or country by name",
    "description": "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.",
    "x-mcp-tool": "find_timezone",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "City or country name (any language the index knows, e.g. Cairo, القاهرة, Le Caire) or an ISO country code",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "description": "City or country name (any language the index knows, e.g. Cairo, القاهرة, Le Caire) or an ISO country code"
      },
      "example": "Kathmandu"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Maximum number of city matches (1–10). Default 5.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 10,
       "description": "Maximum number of city matches (1–10). Default 5.",
       "default": 5
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=60"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TimezoneSearch"
        },
        "example": {
         "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.",
          "\"alternateNames\" are the alternate names kept in the index (Arabic first when GeoNames has one, then the local-language name); \"slug\" and \"url\" are set only for cities that have their own page on clockcrest.com."
         ],
         "source": "GeoNames",
         "sourceUrl": "https://www.geonames.org",
         "license": "CC BY 4.0",
         "lastUpdated": "2026-11-30",
         "timeZoneSource": "IANA tz database (runtime Intl)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "missing_parameter",
          "message": "Missing required parameter \"q\"."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/cities/search": {
   "get": {
    "tags": [
     "Places"
    ],
    "operationId": "searchCities",
    "summary": "Search cities by name",
    "description": "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).",
    "x-mcp-tool": "search_city",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "City name or the beginning of one, e.g. cairo, münchen, القاهرة",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "description": "City name or the beginning of one, e.g. cairo, münchen, القاهرة"
      },
      "example": "cairo"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Maximum number of results (1–25). Default 8.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 25,
       "description": "Maximum number of results (1–25). Default 8.",
       "default": 8
      }
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "Only cities of this country (ISO 3166-1 alpha-2), e.g. EG",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "Only cities of this country (ISO 3166-1 alpha-2), e.g. EG"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CitySearch"
        },
        "example": {
         "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/"
          },
          {
           "name": "New Cairo",
           "nameAr": "القاهرة الجديدة",
           "alternateNames": [
            "القاهرة الجديدة",
            "Новый Каир"
           ],
           "country": "EG",
           "countryName": "Egypt",
           "timeZone": "Africa/Cairo",
           "lat": 30.03,
           "lon": 31.47,
           "population": 313139,
           "slug": null,
           "url": null
          }
         ],
         "notes": [
          "The index holds GeoNames populated places of 15,000+ people (about 34,000 cities). Smaller places are not in it.",
          "\"alternateNames\" are the alternate names kept in the index (Arabic first when GeoNames has one, then the local-language name); \"slug\" and \"url\" are set only for cities that have their own page on clockcrest.com."
         ],
         "source": "GeoNames",
         "sourceUrl": "https://www.geonames.org",
         "license": "CC BY 4.0",
         "lastUpdated": "2026-11-30"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "out_of_range",
          "message": "Parameter \"limit\" must be between 1 and 25."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/cities": {
   "get": {
    "tags": [
     "Places"
    ],
    "operationId": "listCities",
    "summary": "Largest cities of a country",
    "description": "The cities of a country in the GeoNames index, most populous first.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
      },
      "example": "NP"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Maximum number of cities (1–200). Default 50.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200,
       "description": "Maximum number of cities (1–200). Default 50.",
       "default": 50
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CityList"
        },
        "example": {
         "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/"
          },
          {
           "name": "Pokhara",
           "nameAr": "بوخارا",
           "alternateNames": [
            "بوخارا",
            "पोखरा",
            "Покхара",
            "博克拉",
            "ポカラ"
           ],
           "country": "NP",
           "countryName": "Nepal",
           "timeZone": "Asia/Kathmandu",
           "lat": 28.27,
           "lon": 83.97,
           "population": 600051,
           "slug": null,
           "url": null
          },
          {
           "name": "Bharatpur",
           "nameAr": null,
           "alternateNames": [
            "भरतपुर",
            "Бхаратпур",
            "婆羅多布爾",
            "バラトプル"
           ],
           "country": "NP",
           "countryName": "Nepal",
           "timeZone": "Asia/Kathmandu",
           "lat": 27.68,
           "lon": 84.44,
           "population": 369377,
           "slug": null,
           "url": null
          }
         ],
         "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.",
          "\"alternateNames\" are the alternate names kept in the index (Arabic first when GeoNames has one, then the local-language name); \"slug\" and \"url\" are set only for cities that have their own page on clockcrest.com."
         ],
         "source": "GeoNames",
         "sourceUrl": "https://www.geonames.org",
         "license": "CC BY 4.0",
         "lastUpdated": "2026-11-30"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_parameter",
          "message": "Parameter \"country\" is too long (max 2 characters)."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "The country has no city in the index.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "country_not_found",
          "message": "No city data for country \"ZZ\"."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/countries": {
   "get": {
    "tags": [
     "Places"
    ],
    "operationId": "listCountries",
    "summary": "Countries with their time zones",
    "description": "Countries known to the site, with capital, IANA time zones and the years of public-holiday data available.",
    "parameters": [
     {
      "name": "continent",
      "in": "query",
      "required": false,
      "description": "Only this continent: af, as, eu, na, sa, oc or an (case-insensitive)",
      "schema": {
       "type": "string",
       "enum": [
        "af",
        "as",
        "eu",
        "na",
        "sa",
        "oc",
        "an"
       ],
       "description": "Only this continent: af, as, eu, na, sa, oc or an (case-insensitive)"
      },
      "example": "oc"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CountryList"
        },
        "example": {
         "continent": "AN",
         "count": 2,
         "countries": [
          {
           "code": "TF",
           "name": "French Southern Territories",
           "continent": "AN",
           "capital": "Port-aux-Francais",
           "timeZones": [
            "Indian/Kerguelen"
           ],
           "publicHolidayYears": []
          },
          {
           "code": "GS",
           "name": "South Georgia and the South Sandwich Islands",
           "continent": "AN",
           "capital": "Grytviken",
           "timeZones": [
            "Atlantic/South_Georgia"
           ],
           "publicHolidayYears": []
          }
         ],
         "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.",
          "\"weekendBasis\" is \"listed\" for the 19 countries with a documented weekend other than Saturday–Sunday (BD, BH, DZ, EG, IL, IQ, IR, JO, KW, LY, MV, NP, OM, PS, QA, SA, SD, SY, YE) and \"default\" (Saturday–Sunday assumed) for every other country.",
          "The business-day and holiday endpoints only work for countries with holiday data (\"publicHolidayYears\" not empty). Of the listed-weekend countries, these have none and are answered with 404 country_not_found there: IL, IR, JO, KW, MV, NP, OM, PS, QA, SA."
         ],
         "source": "GeoNames",
         "sourceUrl": "https://www.geonames.org",
         "license": "CC BY 4.0",
         "lastUpdated": "2026-11-30"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_parameter",
          "message": "Parameter \"continent\" must be one of: af, as, eu, na, sa, oc, an."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/countries/{cc}": {
   "get": {
    "tags": [
     "Places"
    ],
    "operationId": "getCountry",
    "summary": "One country in detail",
    "description": "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": [
     {
      "name": "cc",
      "in": "path",
      "required": true,
      "description": "ISO 3166-1 alpha-2 country code, e.g. EG",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
      },
      "example": "EG"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=300"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Country"
        },
        "example": {
         "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/"
            },
            {
             "name": "Alexandria",
             "slug": "alexandria",
             "url": "https://clockcrest.com/time/alexandria/"
            },
            {
             "name": "Giza",
             "slug": "giza",
             "url": "https://clockcrest.com/time/giza/"
            }
           ]
          }
         ],
         "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.",
          "\"weekendBasis\" is \"listed\" for the 19 countries with a documented weekend other than Saturday–Sunday (BD, BH, DZ, EG, IL, IQ, IR, JO, KW, LY, MV, NP, OM, PS, QA, SA, SD, SY, YE) and \"default\" (Saturday–Sunday assumed) for every other country.",
          "The business-day and holiday endpoints only work for countries with holiday data (\"publicHolidayYears\" not empty). Of the listed-weekend countries, these have none and are answered with 404 country_not_found there: IL, IR, JO, KW, MV, NP, OM, PS, QA, SA.",
          "\"cityCount\" counts GeoNames cities of 15,000+ people; \"largestCities\" entries have a \"slug\" and \"url\" when the city has a page, otherwise only a name."
         ],
         "source": "GeoNames",
         "sourceUrl": "https://www.geonames.org",
         "license": "CC BY 4.0",
         "lastUpdated": "2026-11-30",
         "timeZoneSource": "IANA tz database (runtime Intl)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_country",
          "message": "Parameter \"cc\" must be a two-letter ISO 3166-1 code such as FR."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "The country is not in the data set.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "country_not_found",
          "message": "No data for country \"ZZ\"."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/holidays": {
   "get": {
    "tags": [
     "Holidays and business days"
    ],
    "operationId": "getPublicHolidays",
    "summary": "Public holidays of a country for one year",
    "description": "Public holidays from the site's static Nager.Date files (2025–2028). Regional holidays are included and flagged with their subdivisions.",
    "x-mcp-tool": "get_country_holidays",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
      },
      "example": "FR"
     },
     {
      "name": "year",
      "in": "query",
      "required": true,
      "description": "Four-digit year with data (2025–2028)",
      "schema": {
       "type": "integer",
       "minimum": 2025,
       "maximum": 2028,
       "description": "Four-digit year with data (2025–2028)"
      },
      "example": 2026
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Holidays"
        },
        "example": {
         "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"
           ]
          },
          {
           "date": "2026-04-06",
           "name": "Easter Monday",
           "localName": "Lundi de Pâques",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-05-01",
           "name": "Labour Day",
           "localName": "Fête du Travail",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-05-08",
           "name": "Victory in Europe Day",
           "localName": "Victoire 1945",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-05-14",
           "name": "Ascension Day",
           "localName": "Ascension",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-05-25",
           "name": "Whit Monday",
           "localName": "Lundi de Pentecôte",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-07-14",
           "name": "Bastille Day",
           "localName": "Fête nationale",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-08-15",
           "name": "Assumption Day",
           "localName": "Assomption",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-11-01",
           "name": "All Saints' Day",
           "localName": "Toussaint",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-11-11",
           "name": "Armistice Day",
           "localName": "Armistice 1918",
           "nationwide": true,
           "types": [
            "Public"
           ]
          },
          {
           "date": "2026-12-25",
           "name": "Christmas Day",
           "localName": "Noël",
           "nationwide": true,
           "types": [
            "Public"
           ]
          }
         ],
         "source": "Nager.Date",
         "sourceUrl": "https://date.nager.at",
         "dataYears": [
          2025,
          2026,
          2027,
          2028
         ],
         "lastUpdated": "2026-11-30"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_country",
          "message": "Parameter \"country\" must be a two-letter ISO 3166-1 code such as FR."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No data for that country or year.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "year_not_found",
          "message": "No data for 2031. Available years for FR: 2025, 2026, 2027, 2028."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/business-days": {
   "get": {
    "tags": [
     "Holidays and business days"
    ],
    "operationId": "countBusinessDays",
    "summary": "Count business days between two dates",
    "description": "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.",
    "x-mcp-tool": "calculate_business_days",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
      },
      "example": "FR"
     },
     {
      "name": "start",
      "in": "query",
      "required": true,
      "description": "First day, YYYY-MM-DD",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "First day, YYYY-MM-DD"
      },
      "example": "2026-12-01"
     },
     {
      "name": "end",
      "in": "query",
      "required": true,
      "description": "Last day (inclusive), YYYY-MM-DD; at most 1500 days after start",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Last day (inclusive), YYYY-MM-DD; at most 1500 days after start"
      },
      "example": "2026-12-31"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BusinessDays"
        },
        "example": {
         "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"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_range",
          "message": "Parameter \"end\" must not be before \"start\"."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No holiday data for that country.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "country_not_found",
          "message": "No public-holiday data for country \"ZZ\"."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/business-days/add": {
   "get": {
    "tags": [
     "Holidays and business days"
    ],
    "operationId": "addBusinessDays",
    "summary": "Add or subtract business days",
    "description": "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.",
    "x-mcp-tool": "add_business_days",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
      },
      "example": "EG"
     },
     {
      "name": "start",
      "in": "query",
      "required": true,
      "description": "Start date, YYYY-MM-DD",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Start date, YYYY-MM-DD"
      },
      "example": "2026-12-30"
     },
     {
      "name": "days",
      "in": "query",
      "required": true,
      "description": "Business days to add; negative to go back (−1000 to 1000)",
      "schema": {
       "type": "integer",
       "minimum": -1000,
       "maximum": 1000,
       "description": "Business days to add; negative to go back (−1000 to 1000)"
      },
      "example": 5
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BusinessDaysAdd"
        },
        "example": {
         "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
         ]
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "range_not_covered",
          "message": "Holiday data for FR covers 2025, 2026, 2027, 2028 only; 2029 is outside it."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No holiday data for that country.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "country_not_found",
          "message": "No public-holiday data for country \"ZZ\"."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/business-days/next": {
   "get": {
    "tags": [
     "Holidays and business days"
    ],
    "operationId": "getNextBusinessDay",
    "summary": "Is a date a business day, and what is the next one",
    "description": "Whether a date is a business day in a country (and if not, why) and the first business day strictly after it.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": true,
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
      },
      "example": "FR"
     },
     {
      "name": "date",
      "in": "query",
      "required": true,
      "description": "Date to check, YYYY-MM-DD",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Date to check, YYYY-MM-DD"
      },
      "example": "2026-12-24"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NextBusinessDay"
        },
        "example": {
         "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
         ]
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_date",
          "message": "Parameter \"date\" must be a calendar date like 2026-12-01."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No holiday data for that country.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "country_not_found",
          "message": "No public-holiday data for country \"ZZ\"."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/calendar": {
   "get": {
    "tags": [
     "Dates and calendars"
    ],
    "operationId": "getMonthCalendar",
    "summary": "Month calendar with ISO weeks, weekend days and holidays",
    "description": "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.",
    "x-mcp-tool": "get_calendar",
    "parameters": [
     {
      "name": "year",
      "in": "query",
      "required": true,
      "description": "Four-digit year (1900–2100; with a country, a year that has holiday data)",
      "schema": {
       "type": "integer",
       "minimum": 1900,
       "maximum": 2100,
       "description": "Four-digit year (1900–2100; with a country, a year that has holiday data)"
      },
      "example": 2026
     },
     {
      "name": "month",
      "in": "query",
      "required": true,
      "description": "Month number, 1–12",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 12,
       "description": "Month number, 1–12"
      },
      "example": 12
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "description": "Mark this country's weekend and public holidays (ISO 3166-1 alpha-2)",
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 2,
       "pattern": "^[A-Za-z]{2}$",
       "description": "Mark this country's weekend and public holidays (ISO 3166-1 alpha-2)"
      },
      "example": "FR"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MonthCalendar"
        },
        "example": {
         "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,
            {
             "date": "2026-12-01",
             "day": 1,
             "weekday": "Tuesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-02",
             "day": 2,
             "weekday": "Wednesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-03",
             "day": 3,
             "weekday": "Thursday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-04",
             "day": 4,
             "weekday": "Friday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-05",
             "day": 5,
             "weekday": "Saturday",
             "isWeekend": true,
             "holidays": []
            },
            {
             "date": "2026-12-06",
             "day": 6,
             "weekday": "Sunday",
             "isWeekend": true,
             "holidays": []
            }
           ]
          },
          {
           "isoWeek": 50,
           "isoWeekYear": 2026,
           "days": [
            {
             "date": "2026-12-07",
             "day": 7,
             "weekday": "Monday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-08",
             "day": 8,
             "weekday": "Tuesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-09",
             "day": 9,
             "weekday": "Wednesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-10",
             "day": 10,
             "weekday": "Thursday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-11",
             "day": 11,
             "weekday": "Friday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-12",
             "day": 12,
             "weekday": "Saturday",
             "isWeekend": true,
             "holidays": []
            },
            {
             "date": "2026-12-13",
             "day": 13,
             "weekday": "Sunday",
             "isWeekend": true,
             "holidays": []
            }
           ]
          },
          {
           "isoWeek": 51,
           "isoWeekYear": 2026,
           "days": [
            {
             "date": "2026-12-14",
             "day": 14,
             "weekday": "Monday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-15",
             "day": 15,
             "weekday": "Tuesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-16",
             "day": 16,
             "weekday": "Wednesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-17",
             "day": 17,
             "weekday": "Thursday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-18",
             "day": 18,
             "weekday": "Friday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-19",
             "day": 19,
             "weekday": "Saturday",
             "isWeekend": true,
             "holidays": []
            },
            {
             "date": "2026-12-20",
             "day": 20,
             "weekday": "Sunday",
             "isWeekend": true,
             "holidays": []
            }
           ]
          },
          {
           "isoWeek": 52,
           "isoWeekYear": 2026,
           "days": [
            {
             "date": "2026-12-21",
             "day": 21,
             "weekday": "Monday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-22",
             "day": 22,
             "weekday": "Tuesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-23",
             "day": 23,
             "weekday": "Wednesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-24",
             "day": 24,
             "weekday": "Thursday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-25",
             "day": 25,
             "weekday": "Friday",
             "isWeekend": false,
             "holidays": [
              {
               "name": "Christmas Day",
               "localName": "Noël",
               "nationwide": true
              }
             ]
            },
            {
             "date": "2026-12-26",
             "day": 26,
             "weekday": "Saturday",
             "isWeekend": true,
             "holidays": []
            },
            {
             "date": "2026-12-27",
             "day": 27,
             "weekday": "Sunday",
             "isWeekend": true,
             "holidays": []
            }
           ]
          },
          {
           "isoWeek": 53,
           "isoWeekYear": 2026,
           "days": [
            {
             "date": "2026-12-28",
             "day": 28,
             "weekday": "Monday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-29",
             "day": 29,
             "weekday": "Tuesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-30",
             "day": 30,
             "weekday": "Wednesday",
             "isWeekend": false,
             "holidays": []
            },
            {
             "date": "2026-12-31",
             "day": 31,
             "weekday": "Thursday",
             "isWeekend": false,
             "holidays": []
            },
            null,
            null,
            null
           ]
          }
         ],
         "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.",
          "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.",
          "\"businessDays\" counts the days of the month that are neither a weekend day nor a nationwide public holiday."
         ],
         "source": "Nager.Date",
         "sourceUrl": "https://date.nager.at",
         "dataYears": [
          2025,
          2026,
          2027,
          2028
         ],
         "lastUpdated": "2026-11-30"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "out_of_range",
          "message": "Parameter \"month\" must be between 1 and 12."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No holiday data for that country or year.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "year_not_found",
          "message": "No holiday data for 2031. Available years for FR: 2025, 2026, 2027, 2028."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/calendar/convert": {
   "get": {
    "tags": [
     "Dates and calendars"
    ],
    "operationId": "convertCalendar",
    "summary": "Convert a date between calendar systems",
    "description": "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.",
    "x-mcp-tool": "convert_calendar",
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "required": true,
      "description": "Date in the source calendar as year-month-day with a four-digit year, e.g. 2026-12-01 or 1448-09-01",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Date in the source calendar as year-month-day with a four-digit year, e.g. 2026-12-01 or 1448-09-01"
      },
      "example": "2026-12-01"
     },
     {
      "name": "from",
      "in": "query",
      "required": true,
      "description": "Source calendar",
      "schema": {
       "type": "string",
       "enum": [
        "gregorian",
        "islamic-umalqura",
        "persian",
        "hebrew"
       ],
       "description": "Source calendar"
      },
      "example": "gregorian"
     },
     {
      "name": "to",
      "in": "query",
      "required": true,
      "description": "Target calendar",
      "schema": {
       "type": "string",
       "enum": [
        "gregorian",
        "islamic-umalqura",
        "persian",
        "hebrew"
       ],
       "description": "Target calendar"
      },
      "example": "islamic-umalqura"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalendarConversion"
        },
        "example": {
         "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.",
          "Hijri dates use the Umm al-Qura calendar (calendar id islamic-umalqura) as implemented in the runtime's ICU data. It is a calculated civil calendar: the day religious months actually begin depends on local moon sighting and can differ by a day or two, and by country.",
          "The tabular (islamic-civil) and sighting-based variants are not offered.",
          "A calendar day is treated as a whole civil day; days that begin at sunset (Hijri, Hebrew) are mapped to the Gregorian day on which their daylight falls."
         ],
         "supportedCalendars": [
          "gregorian",
          "islamic-umalqura",
          "persian",
          "hebrew"
         ],
         "source": "ICU / CLDR calendars (runtime Intl)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_calendar",
          "message": "Parameter \"to\" must be one of: gregorian, islamic-umalqura, persian, hebrew. Other calendars (including islamic-civil) are not supported."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/date/difference": {
   "get": {
    "tags": [
     "Dates and calendars"
    ],
    "operationId": "getDateDifference",
    "summary": "Difference between two dates",
    "description": "Days between two calendar dates, also expressed as weeks and days and as years, months and days.",
    "x-mcp-tool": "calculate_date_difference",
    "parameters": [
     {
      "name": "start",
      "in": "query",
      "required": true,
      "description": "First date, YYYY-MM-DD",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "First date, YYYY-MM-DD"
      },
      "example": "2024-02-29"
     },
     {
      "name": "end",
      "in": "query",
      "required": true,
      "description": "Second date, YYYY-MM-DD",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Second date, YYYY-MM-DD"
      },
      "example": "2026-12-01"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DateDifference"
        },
        "example": {
         "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"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_date",
          "message": "Parameter \"start\" must be a calendar date like 2026-12-01."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/date/add": {
   "get": {
    "tags": [
     "Dates and calendars"
    ],
    "operationId": "addToDate",
    "summary": "Add years, months, weeks and days to a date",
    "description": "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.",
    "x-mcp-tool": "add_duration",
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "required": true,
      "description": "Start date, YYYY-MM-DD",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Start date, YYYY-MM-DD"
      },
      "example": "2024-01-31"
     },
     {
      "name": "years",
      "in": "query",
      "required": false,
      "description": "Years to add (may be negative)",
      "schema": {
       "type": "integer",
       "minimum": -9999,
       "maximum": 9999,
       "description": "Years to add (may be negative)"
      }
     },
     {
      "name": "months",
      "in": "query",
      "required": false,
      "description": "Months to add (may be negative)",
      "schema": {
       "type": "integer",
       "minimum": -120000,
       "maximum": 120000,
       "description": "Months to add (may be negative)"
      },
      "example": 1
     },
     {
      "name": "weeks",
      "in": "query",
      "required": false,
      "description": "Weeks to add (may be negative)",
      "schema": {
       "type": "integer",
       "minimum": -520000,
       "maximum": 520000,
       "description": "Weeks to add (may be negative)"
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "description": "Days to add (may be negative)",
      "schema": {
       "type": "integer",
       "minimum": -3650000,
       "maximum": 3650000,
       "description": "Days to add (may be negative)"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DateAdd"
        },
        "example": {
         "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"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "missing_parameter",
          "message": "Give at least one of \"years\", \"months\", \"weeks\" or \"days\"."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/date/week-number": {
   "get": {
    "tags": [
     "Dates and calendars"
    ],
    "operationId": "getWeekNumber",
    "summary": "ISO week number of a date",
    "description": "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": [
     {
      "name": "date",
      "in": "query",
      "required": true,
      "description": "Date, YYYY-MM-DD",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Date, YYYY-MM-DD"
      },
      "example": "2027-01-01"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WeekNumber"
        },
        "example": {
         "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)"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_date",
          "message": "Parameter \"date\" must be a calendar date like 2026-12-01."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/astronomy/sun": {
   "get": {
    "tags": [
     "Astronomy"
    ],
    "operationId": "getSunTimes",
    "summary": "Sunrise, sunset, solar noon and twilight",
    "description": "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.",
    "x-mcp-tool": "get_sunrise_sunset",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude in decimal degrees, north positive",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90,
       "description": "Latitude in decimal degrees, north positive (−90 to 90)"
      },
      "example": 30.06
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude in decimal degrees, east positive",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180,
       "description": "Longitude in decimal degrees, east positive (−180 to 180)"
      },
      "example": 31.25
     },
     {
      "name": "date",
      "in": "query",
      "required": true,
      "description": "Local date at the place, YYYY-MM-DD (1900–2100)",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Local date at the place, YYYY-MM-DD (1900–2100)"
      },
      "example": "2026-12-01"
     },
     {
      "name": "tz",
      "in": "query",
      "required": true,
      "description": "IANA time zone of the place, e.g. Africa/Cairo",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "IANA time zone of the place, e.g. Africa/Cairo"
      },
      "example": "Africa/Cairo"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Sun"
        },
        "example": {
         "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.",
          "Twilight \"dawn\" and \"dusk\" are when the Sun's centre is 6° (civil), 12° (nautical) and 18° (astronomical) below the horizon; a null value means the Sun does not reach that angle on this date.",
          "Times belong to the solar day whose noon falls on \"date\" in \"timeZone\"; pass the zone of the place itself."
         ],
         "source": "NOAA solar position algorithm (Jean Meeus, Astronomical Algorithms)",
         "sourceUrl": "https://gml.noaa.gov/grad/solcalc/calcdetails.html"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "out_of_range",
          "message": "Parameter \"lat\" must be between -90 and 90."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/astronomy/moon": {
   "get": {
    "tags": [
     "Astronomy"
    ],
    "operationId": "getMoonPhase",
    "summary": "Moon phase, illumination and next phases",
    "description": "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.",
    "x-mcp-tool": "get_moon_phase",
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "required": false,
      "description": "Date, YYYY-MM-DD, evaluated at 12:00 UTC (1900–2100). Default: now.",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Date, YYYY-MM-DD, evaluated at 12:00 UTC (1900–2100). Default: now."
      },
      "example": "2026-12-01"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "public, max-age=86400 when the request names a date, otherwise public, max-age=300.",
        "schema": {
         "type": "string"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Moon"
        },
        "example": {
         "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.",
          "Phase times follow Meeus chapter 49 with a ΔT correction; illumination follows chapter 48 and is good to about half a percentage point."
         ],
         "source": "Jean Meeus, Astronomical Algorithms (2nd ed.), chapters 48–49"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "out_of_range",
          "message": "Parameter \"date\" must be between 1900-01-01 and 2100-12-31."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/prayer-times": {
   "get": {
    "tags": [
     "Astronomy"
    ],
    "operationId": "getPrayerTimes",
    "summary": "Islamic prayer times",
    "description": "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.",
    "x-mcp-tool": "get_prayer_times",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": true,
      "description": "Latitude in decimal degrees, north positive",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90,
       "description": "Latitude in decimal degrees, north positive (−90 to 90)"
      },
      "example": 30.06
     },
     {
      "name": "lon",
      "in": "query",
      "required": true,
      "description": "Longitude in decimal degrees, east positive",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180,
       "description": "Longitude in decimal degrees, east positive (−180 to 180)"
      },
      "example": 31.25
     },
     {
      "name": "date",
      "in": "query",
      "required": true,
      "description": "Local date at the place, YYYY-MM-DD (1900–2100)",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Local date at the place, YYYY-MM-DD (1900–2100)"
      },
      "example": "2026-12-01"
     },
     {
      "name": "tz",
      "in": "query",
      "required": true,
      "description": "IANA time zone of the place, e.g. Africa/Cairo",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "IANA time zone of the place, e.g. Africa/Cairo"
      },
      "example": "Africa/Cairo"
     },
     {
      "name": "method",
      "in": "query",
      "required": false,
      "description": "Calculation method: mwl (Muslim World League), umm-al-qura, egyptian, karachi or isna. Default mwl.",
      "schema": {
       "type": "string",
       "enum": [
        "mwl",
        "umm-al-qura",
        "egyptian",
        "karachi",
        "isna"
       ],
       "default": "mwl",
       "description": "Calculation method: mwl (Muslim World League), umm-al-qura, egyptian, karachi or isna. Default mwl."
      },
      "example": "egyptian"
     },
     {
      "name": "asr",
      "in": "query",
      "required": false,
      "description": "Asr rule: standard (Shafi'i, Maliki, Hanbali) or hanafi. Default standard.",
      "schema": {
       "type": "string",
       "enum": [
        "standard",
        "hanafi"
       ],
       "default": "standard",
       "description": "Asr rule: standard (Shafi'i, Maliki, Hanbali) or hanafi. Default standard."
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PrayerTimes"
        },
        "example": {
         "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.",
          "Dhuhr is solar noon with no safety margin; Maghrib is sunset. Asr is when an object's shadow equals its noon shadow plus once (standard: Shafi'i, Maliki, Hanbali) or twice (Hanafi) its height.",
          "Where the Sun never reaches the Fajr or Isha angle (summer at high latitudes) the night is divided in proportion angle/60 and \"highLatitudeApproximation\" is true. During polar day or night (\"polar\": true) only Dhuhr, and Asr when the Sun is high enough, can be given; the other times are null.",
          "For Umm al-Qura, Isha is 90 minutes after Maghrib, or 120 minutes in Ramadan of the Umm al-Qura calendar (\"ramadan\")."
         ],
         "methods": [
          "mwl",
          "umm-al-qura",
          "egyptian",
          "karachi",
          "isna"
         ],
         "source": "Solar position: NOAA algorithm (Jean Meeus); angles: the published parameters of each method"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_parameter",
          "message": "Parameter \"method\" must be one of: mwl, umm-al-qura, egyptian, karachi, isna."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/weather": {
   "get": {
    "tags": [
     "Weather"
    ],
    "operationId": "getWeather",
    "summary": "Weather forecast for a place (MET Norway)",
    "description": "Current conditions, the next 24 hours hour by hour and a 7-day outlook (daily low, high, precipitation and symbol) for coordinates or a city, from MET Norway's Locationforecast 2.0. Give \"lat\" and \"lon\", or \"city\". Coordinates are snapped to a 0.1° grid (about 11 km) and forecasts are cached until MET's own expiry time (at least 10 minutes); forecasts that are not cached yet are limited per client (429 rate_limited) and in total (503 data_unavailable), both with Retry-After. Credit \"Weather data from MET Norway\" (CC BY 4.0) wherever the data is shown.",
    "x-mcp-tool": "get_weather",
    "parameters": [
     {
      "name": "lat",
      "in": "query",
      "required": false,
      "description": "Latitude in decimal degrees, north positive (−90 to 90). Use with lon, instead of city.",
      "schema": {
       "type": "number",
       "minimum": -90,
       "maximum": 90,
       "description": "Latitude in decimal degrees, north positive (−90 to 90). Use with lon, instead of city."
      },
      "example": 59.91
     },
     {
      "name": "lon",
      "in": "query",
      "required": false,
      "description": "Longitude in decimal degrees, east positive (−180 to 180). Use with lat, instead of city.",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180,
       "description": "Longitude in decimal degrees, east positive (−180 to 180). Use with lat, instead of city."
      },
      "example": 10.75
     },
     {
      "name": "city",
      "in": "query",
      "required": false,
      "description": "City instead of coordinates: a city slug of clockcrest.com (e.g. new-york) or a name looked up in the city index (e.g. Oslo, القاهرة)",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "description": "City instead of coordinates: a city slug of clockcrest.com (e.g. new-york) or a name looked up in the city index (e.g. Oslo, القاهرة)"
      }
     },
     {
      "name": "tz",
      "in": "query",
      "required": false,
      "description": "IANA time zone for local times and daily grouping. Default: the city's zone, or UTC with coordinates.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 64,
       "pattern": "^[A-Za-z0-9_+\\-/]+$",
       "description": "IANA time zone for local times and daily grouping. Default: the city's zone, or UTC with coordinates."
      },
      "example": "Europe/Oslo"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=600"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Weather"
        },
        "example": {
         "location": {
          "lat": 59.9,
          "lon": 10.8,
          "elevation": 138,
          "name": null,
          "country": null,
          "timeZone": "Europe/Oslo"
         },
         "updated": "2026-12-01T12:35:33Z",
         "expires": "2026-12-01T13:53:01Z",
         "current": {
          "time": "2026-12-01T13:00:00Z",
          "local": "2026-12-01T14:00:00+01:00",
          "temperature": 7.7,
          "symbol": "lightrain",
          "windSpeed": 5.8,
          "windDirection": 188,
          "humidity": 99.9,
          "cloudCover": 100,
          "pressure": 1014,
          "precipitationNextHour": 0.1
         },
         "hourly": [
          {
           "time": "2026-12-01T13:00:00Z",
           "local": "2026-12-01T14:00:00+01:00",
           "temperature": 7.7,
           "symbol": "lightrain",
           "windSpeed": 5.8,
           "windDirection": 188,
           "precipitation": 0.1,
           "humidity": 99.9
          },
          {
           "time": "2026-12-01T14:00:00Z",
           "local": "2026-12-01T15:00:00+01:00",
           "temperature": 7.6,
           "symbol": "lightrain",
           "windSpeed": 6.2,
           "windDirection": 192,
           "precipitation": 0.1,
           "humidity": 99.9
          },
          {
           "time": "2026-12-01T15:00:00Z",
           "local": "2026-12-01T16:00:00+01:00",
           "temperature": 7.4,
           "symbol": "fog",
           "windSpeed": 6.4,
           "windDirection": 189,
           "precipitation": 0,
           "humidity": 99.8
          },
          {
           "time": "2026-12-01T16:00:00Z",
           "local": "2026-12-01T17:00:00+01:00",
           "temperature": 7.4,
           "symbol": "lightrain",
           "windSpeed": 6.8,
           "windDirection": 184,
           "precipitation": 0,
           "humidity": 99.8
          },
          {
           "time": "2026-12-01T17:00:00Z",
           "local": "2026-12-01T18:00:00+01:00",
           "temperature": 7.3,
           "symbol": "lightrain",
           "windSpeed": 6.6,
           "windDirection": 185,
           "precipitation": 0,
           "humidity": 99.8
          },
          {
           "time": "2026-12-01T18:00:00Z",
           "local": "2026-12-01T19:00:00+01:00",
           "temperature": 7.1,
           "symbol": "lightrain",
           "windSpeed": 7.1,
           "windDirection": 189,
           "precipitation": 0.1,
           "humidity": 99.9
          },
          {
           "time": "2026-12-01T19:00:00Z",
           "local": "2026-12-01T20:00:00+01:00",
           "temperature": 7,
           "symbol": "lightrain",
           "windSpeed": 7.3,
           "windDirection": 194,
           "precipitation": 0.2,
           "humidity": 99.9
          },
          {
           "time": "2026-12-01T20:00:00Z",
           "local": "2026-12-01T21:00:00+01:00",
           "temperature": 6.9,
           "symbol": "rain",
           "windSpeed": 7.5,
           "windDirection": 194,
           "precipitation": 0.4,
           "humidity": 99.9
          },
          {
           "time": "2026-12-01T21:00:00Z",
           "local": "2026-12-01T22:00:00+01:00",
           "temperature": 6.8,
           "symbol": "lightrain",
           "windSpeed": 7.3,
           "windDirection": 191,
           "precipitation": 0.1,
           "humidity": 98.9
          },
          {
           "time": "2026-12-01T22:00:00Z",
           "local": "2026-12-01T23:00:00+01:00",
           "temperature": 6.7,
           "symbol": "lightrain",
           "windSpeed": 7.4,
           "windDirection": 188,
           "precipitation": 0.1,
           "humidity": 99.5
          },
          {
           "time": "2026-12-01T23:00:00Z",
           "local": "2026-12-02T00:00:00+01:00",
           "temperature": 6.6,
           "symbol": "lightrain",
           "windSpeed": 8,
           "windDirection": 190,
           "precipitation": 0.3,
           "humidity": 98.8
          },
          {
           "time": "2026-12-02T00:00:00Z",
           "local": "2026-12-02T01:00:00+01:00",
           "temperature": 6.4,
           "symbol": "rain",
           "windSpeed": 8,
           "windDirection": 190,
           "precipitation": 0.5,
           "humidity": 99.4
          },
          {
           "time": "2026-12-02T01:00:00Z",
           "local": "2026-12-02T02:00:00+01:00",
           "temperature": 6.4,
           "symbol": "rain",
           "windSpeed": 8.8,
           "windDirection": 191,
           "precipitation": 0.7,
           "humidity": 96.9
          },
          {
           "time": "2026-12-02T02:00:00Z",
           "local": "2026-12-02T03:00:00+01:00",
           "temperature": 6.4,
           "symbol": "rain",
           "windSpeed": 8.7,
           "windDirection": 188,
           "precipitation": 0.6,
           "humidity": 95.9
          },
          {
           "time": "2026-12-02T03:00:00Z",
           "local": "2026-12-02T04:00:00+01:00",
           "temperature": 6.4,
           "symbol": "lightrain",
           "windSpeed": 8.6,
           "windDirection": 189,
           "precipitation": 0.3,
           "humidity": 95.7
          },
          {
           "time": "2026-12-02T04:00:00Z",
           "local": "2026-12-02T05:00:00+01:00",
           "temperature": 6.4,
           "symbol": "rain",
           "windSpeed": 8,
           "windDirection": 189,
           "precipitation": 0.6,
           "humidity": 96.9
          },
          {
           "time": "2026-12-02T05:00:00Z",
           "local": "2026-12-02T06:00:00+01:00",
           "temperature": 6.5,
           "symbol": "rain",
           "windSpeed": 7.4,
           "windDirection": 187,
           "precipitation": 0.8,
           "humidity": 97.6
          },
          {
           "time": "2026-12-02T06:00:00Z",
           "local": "2026-12-02T07:00:00+01:00",
           "temperature": 6.7,
           "symbol": "rain",
           "windSpeed": 7,
           "windDirection": 183,
           "precipitation": 0.6,
           "humidity": 97.7
          },
          {
           "time": "2026-12-02T07:00:00Z",
           "local": "2026-12-02T08:00:00+01:00",
           "temperature": 7.1,
           "symbol": "heavyrain",
           "windSpeed": 6.7,
           "windDirection": 183,
           "precipitation": 1.1,
           "humidity": 98.5
          },
          {
           "time": "2026-12-02T08:00:00Z",
           "local": "2026-12-02T09:00:00+01:00",
           "temperature": 7.3,
           "symbol": "heavyrain",
           "windSpeed": 6.2,
           "windDirection": 182,
           "precipitation": 1.1,
           "humidity": 98.5
          },
          {
           "time": "2026-12-02T09:00:00Z",
           "local": "2026-12-02T10:00:00+01:00",
           "temperature": 7.3,
           "symbol": "rain",
           "windSpeed": 5.2,
           "windDirection": 187,
           "precipitation": 0.8,
           "humidity": 98.6
          },
          {
           "time": "2026-12-02T10:00:00Z",
           "local": "2026-12-02T11:00:00+01:00",
           "temperature": 7.3,
           "symbol": "rain",
           "windSpeed": 3.9,
           "windDirection": 193,
           "precipitation": 0.5,
           "humidity": 99.4
          },
          {
           "time": "2026-12-02T11:00:00Z",
           "local": "2026-12-02T12:00:00+01:00",
           "temperature": 6.9,
           "symbol": "fog",
           "windSpeed": 2,
           "windDirection": 212,
           "precipitation": 0,
           "humidity": 99.4
          },
          {
           "time": "2026-12-02T12:00:00Z",
           "local": "2026-12-02T13:00:00+01:00",
           "temperature": 6.7,
           "symbol": "fog",
           "windSpeed": 0.6,
           "windDirection": 230,
           "precipitation": 0,
           "humidity": 99.4
          }
         ],
         "daily": [
          {
           "date": "2026-12-01",
           "min": 6.7,
           "max": 7.7,
           "symbol": "lightrain",
           "precipitation": 1.1
          },
          {
           "date": "2026-12-02",
           "min": 1.3,
           "max": 7.3,
           "symbol": "fog",
           "precipitation": 7.9
          },
          {
           "date": "2026-12-03",
           "min": 0.3,
           "max": 4,
           "symbol": "fair_day",
           "precipitation": 0
          },
          {
           "date": "2026-12-04",
           "min": -0.3,
           "max": 2.4,
           "symbol": "fair_day",
           "precipitation": 0
          },
          {
           "date": "2026-12-05",
           "min": -0.4,
           "max": 0.3,
           "symbol": "cloudy",
           "precipitation": 0
          },
          {
           "date": "2026-12-06",
           "min": -0.9,
           "max": 0.9,
           "symbol": "partlycloudy_day",
           "precipitation": 0
          },
          {
           "date": "2026-12-07",
           "min": -2.1,
           "max": -0.1,
           "symbol": "cloudy",
           "precipitation": 0
          }
         ],
         "units": {
          "temperature": "celsius",
          "windSpeed": "m/s",
          "windDirection": "degrees",
          "precipitation": "mm",
          "humidity": "%",
          "cloudCover": "%",
          "pressure": "hPa"
         },
         "notes": [
          "Forecast for the coordinates snapped to a 0.1° grid (about 11 km); \"location\" gives the point used. \"current\" is the forecast step for the present hour, not a station observation.",
          "\"symbol\" is MET Norway's weather symbol code (e.g. \"partlycloudy_day\", \"lightrain\"); a suffix _day, _night or _polartwilight gives the light. See https://api.met.no/weatherapi/weathericon/2.0/documentation.",
          "\"daily\" groups the forecast by local date in Europe/Oslo: \"min\" and \"max\" cover the hours still ahead (today is partial), \"precipitation\" is the total of the forecast periods starting that day, and \"symbol\" describes the period nearest local noon. Beyond about 2–3 days MET gives 6-hour steps, so daily extremes are less precise.",
          "Licence: CC BY 4.0. Credit the data as \"Weather data from MET Norway\" wherever it is shown."
         ],
         "source": "MET Norway Locationforecast 2.0",
         "sourceUrl": "https://api.met.no/weatherapi/locationforecast/2.0/documentation",
         "attribution": "Weather data from MET Norway",
         "license": "CC BY 4.0",
         "licenseUrl": "https://creativecommons.org/licenses/by/4.0/"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "out_of_range",
          "message": "Parameter \"lat\" must be between -90 and 90."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No city in the index matches \"city\".",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "city_not_found",
          "message": "No city in the index matches the \"city\" parameter."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/markets/hours": {
   "get": {
    "tags": [
     "Markets"
    ],
    "operationId": "getMarketHours",
    "summary": "Stock-exchange regular trading hours and status",
    "description": "Regular trading sessions of major stock exchanges with each exchange's own source page, whether the timetable says it is open now, and the next open and close. Exchange holidays and early closes are not modelled.",
    "x-mcp-tool": "get_market_hours",
    "parameters": [
     {
      "name": "exchange",
      "in": "query",
      "required": false,
      "description": "Only this exchange: nyse, nasdaq, tsx, lse, euronext-paris, xetra, six, bist, tadawul, dfm, adx, egx, jse, nse, bse, sgx, hkex, sse, szse, tse, krx, asx, nzx",
      "schema": {
       "type": "string",
       "enum": [
        "nyse",
        "nasdaq",
        "tsx",
        "lse",
        "euronext-paris",
        "xetra",
        "six",
        "bist",
        "tadawul",
        "dfm",
        "adx",
        "egx",
        "jse",
        "nse",
        "bse",
        "sgx",
        "hkex",
        "sse",
        "szse",
        "tse",
        "krx",
        "asx",
        "nzx"
       ],
       "description": "Only this exchange: nyse, nasdaq, tsx, lse, euronext-paris, xetra, six, bist, tadawul, dfm, adx, egx, jse, nse, bse, sgx, hkex, sse, szse, tse, krx, asx, nzx"
      },
      "example": "nyse"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=30"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MarketHours"
        },
        "example": {
         "at": "2026-12-01T13:46:27Z",
         "exchange": "nyse",
         "count": 1,
         "exchanges": [
          {
           "id": "nyse",
           "name": "NYSE",
           "fullName": "New York Stock Exchange",
           "city": "New York",
           "country": "US",
           "region": "americas",
           "timeZone": "America/New_York",
           "tradingDays": [
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday"
           ],
           "open": "09:30",
           "close": "16:00",
           "lunchBreak": null,
           "closingAuction": null,
           "sourceUrl": "https://www.nyse.com/markets/hours-calendars",
           "status": {
            "state": "closed",
            "isOpen": false,
            "localTime": "2026-12-01T08:46:27-05:00",
            "nextEvent": {
             "kind": "open",
             "at": "2026-12-01T14:30:00Z",
             "local": "2026-12-01T09:30:00-05:00"
            },
            "nextOpen": "2026-12-01T14:30:00Z",
            "nextClose": "2026-12-01T21:00:00Z"
           }
          }
         ],
         "notes": [
          "Exchange holidays, early closes and unscheduled halts are NOT modelled: \"status\" is what the regular weekly timetable says. Check the exchange's own calendar (\"sourceUrl\") before relying on it.",
          "Hours are each exchange's headline regular session for shares, in its own local time; pre-market, after-hours and auction-only phases are not included. \"state\" is one of open, lunch, closed (a trading day, outside the session) or weekend (not a trading day).",
          "Daylight saving time is applied through the exchange's IANA time zone, so the UTC times of \"nextOpen\" and \"nextClose\" move with it."
         ],
         "source": "Each exchange's published trading hours (see \"sourceUrl\" per exchange)",
         "lastUpdated": "2026-11-30"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_parameter",
          "message": "Parameter \"exchange\" must be an exchange id such as nyse."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Unknown exchange id.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "exchange_not_found",
          "message": "Unknown exchange. Available ids: nyse, nasdaq, tsx, lse, euronext-paris, xetra, six, bist, tadawul, dfm, adx, egx, jse, nse, bse, sgx, hkex, sse, szse, tse, krx, asx, nzx."
         }
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/widgets/templates": {
   "get": {
    "tags": [
     "Widgets"
    ],
    "operationId": "listWidgetTemplates",
    "summary": "Embeddable widget templates and their parameters",
    "description": "The thirty clock designs of the embeddable ClockCrest widgets — id, name in four languages, category, natural size and defaults — with an example embed URL each, the designs of the other widgets (calendar, countdown, stopwatch, timer, world clock table, prayer times, public holidays, converter, sunrise and sunset), and every query parameter the embed pages accept. Read-only reference data: the widgets themselves run in the visitor's browser and do not call this API.",
    "parameters": [
     {
      "name": "category",
      "in": "query",
      "required": false,
      "description": "Only the templates of this category: analog, digital, advanced",
      "schema": {
       "type": "string",
       "enum": [
        "analog",
        "digital",
        "advanced"
       ],
       "description": "Only the templates of this category: analog, digital, advanced"
      },
      "example": "digital"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "description": "How long the response may be reused.",
        "schema": {
         "type": "string",
         "const": "public, max-age=86400"
        }
       },
       "X-Robots-Tag": {
        "schema": {
         "type": "string",
         "const": "noindex"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WidgetTemplates"
        },
        "example": {
         "category": "digital",
         "count": 10,
         "templates": [
          {
           "id": "digital-classic",
           "names": {
            "en": "Classic digital",
            "ar": "رقمية كلاسيكية",
            "fr": "Numérique classique",
            "es": "Digital clásico"
           },
           "category": "digital",
           "engine": "text",
           "width": 320,
           "height": 160,
           "defaults": {
            "theme": "auto",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "system",
            "radius": 0,
            "border": 1,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-classic",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-classic"
          },
          {
           "id": "digital-led-red",
           "names": {
            "en": "LED red",
            "ar": "LED أحمر",
            "fr": "LED rouge",
            "es": "LED rojo"
           },
           "category": "digital",
           "engine": "segment",
           "width": 340,
           "height": 170,
           "defaults": {
            "theme": "dark",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "mono",
            "radius": 10,
            "border": 1,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-led-red",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-led-red"
          },
          {
           "id": "digital-led-green",
           "names": {
            "en": "LED green",
            "ar": "LED أخضر",
            "fr": "LED verte",
            "es": "LED verde"
           },
           "category": "digital",
           "engine": "segment",
           "width": 340,
           "height": 170,
           "defaults": {
            "theme": "dark",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "mono",
            "radius": 10,
            "border": 1,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-led-green",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-led-green"
          },
          {
           "id": "digital-led-blue",
           "names": {
            "en": "LED blue",
            "ar": "LED أزرق",
            "fr": "LED bleue",
            "es": "LED azul"
           },
           "category": "digital",
           "engine": "segment",
           "width": 340,
           "height": 170,
           "defaults": {
            "theme": "dark",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "mono",
            "radius": 10,
            "border": 1,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-led-blue",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-led-blue"
          },
          {
           "id": "digital-flip",
           "names": {
            "en": "Retro flip",
            "ar": "قلّابة قديمة",
            "fr": "Rétro à volets",
            "es": "Retro de paletas"
           },
           "category": "digital",
           "engine": "flip",
           "width": 360,
           "height": 180,
           "defaults": {
            "theme": "auto",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "condensed",
            "radius": 12,
            "border": 1,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-flip",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-flip"
          },
          {
           "id": "digital-lcd",
           "names": {
            "en": "LCD",
            "ar": "شاشة LCD",
            "fr": "LCD",
            "es": "LCD"
           },
           "category": "digital",
           "engine": "segment",
           "width": 340,
           "height": 170,
           "defaults": {
            "theme": "auto",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "mono",
            "radius": 8,
            "border": 3,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-lcd",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-lcd"
          },
          {
           "id": "digital-neon",
           "names": {
            "en": "Neon futuristic",
            "ar": "نيون مستقبلية",
            "fr": "Néon futuriste",
            "es": "Neón futurista"
           },
           "category": "digital",
           "engine": "text",
           "width": 340,
           "height": 170,
           "defaults": {
            "theme": "dark",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "rounded",
            "radius": 18,
            "border": 2,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-neon",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-neon"
          },
          {
           "id": "digital-cyberpunk",
           "names": {
            "en": "Cyberpunk",
            "ar": "سايبربانك",
            "fr": "Cyberpunk",
            "es": "Cyberpunk"
           },
           "category": "digital",
           "engine": "text",
           "width": 340,
           "height": 170,
           "defaults": {
            "theme": "dark",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "mono",
            "radius": 0,
            "border": 0,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-cyberpunk",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-cyberpunk"
          },
          {
           "id": "digital-glass",
           "names": {
            "en": "Glassmorphism",
            "ar": "زجاجية",
            "fr": "Effet verre",
            "es": "Efecto cristal"
           },
           "category": "digital",
           "engine": "text",
           "width": 340,
           "height": 190,
           "defaults": {
            "theme": "auto",
            "seconds": true,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": true,
            "flag": false,
            "transparent": false,
            "font": "system",
            "radius": 22,
            "border": 0,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-glass",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-glass"
          },
          {
           "id": "digital-minimal",
           "names": {
            "en": "Minimal typography",
            "ar": "طباعة بسيطة",
            "fr": "Typographie minimale",
            "es": "Tipografía mínima"
           },
           "category": "digital",
           "engine": "text",
           "width": 340,
           "height": 170,
           "defaults": {
            "theme": "auto",
            "seconds": false,
            "date": true,
            "weekday": true,
            "abbr": false,
            "offset": false,
            "flag": false,
            "transparent": false,
            "font": "system",
            "radius": 0,
            "border": 0,
            "shadow": 0,
            "zones": []
           },
           "supports": {
            "seconds": true,
            "extraZones": 0,
            "coordinates": false
           },
           "embedUrl": "https://clockcrest.com/embed/clock/?template=digital-minimal",
           "studioUrl": "https://clockcrest.com/widgets/studio/?template=digital-minimal"
          }
         ],
         "widgets": [
          {
           "type": "countdown",
           "element": "clockcrest-countdown",
           "embedUrl": "https://clockcrest.com/embed/countdown/",
           "defaultTemplate": "cd-classic",
           "templates": [
            {
             "id": "cd-classic",
             "names": {
              "en": "Classic countdown",
              "ar": "عدّ تنازلي كلاسيكي",
              "fr": "Compte à rebours classique",
              "es": "Cuenta regresiva clásica"
             },
             "width": 320,
             "height": 160,
             "embedUrl": "https://clockcrest.com/embed/countdown/?to=2027-01-01T00%3A00",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=countdown&to=2027-01-01T00%3A00"
            },
            {
             "id": "cd-flip",
             "names": {
              "en": "Flip countdown",
              "ar": "عدّ تنازلي قلّاب",
              "fr": "Compte à rebours à volets",
              "es": "Cuenta regresiva de paletas"
             },
             "width": 460,
             "height": 220,
             "embedUrl": "https://clockcrest.com/embed/countdown/?template=cd-flip&to=2027-01-01T00%3A00",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=countdown&template=cd-flip&to=2027-01-01T00%3A00"
            },
            {
             "id": "cd-blocks",
             "names": {
              "en": "Countdown blocks",
              "ar": "عدّ تنازلي بمربّعات",
              "fr": "Compte à rebours en blocs",
              "es": "Cuenta regresiva en bloques"
             },
             "width": 440,
             "height": 200,
             "embedUrl": "https://clockcrest.com/embed/countdown/?template=cd-blocks&to=2027-01-01T00%3A00",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=countdown&template=cd-blocks&to=2027-01-01T00%3A00"
            }
           ]
          },
          {
           "type": "calendar",
           "element": "clockcrest-calendar",
           "embedUrl": "https://clockcrest.com/embed/calendar/",
           "defaultTemplate": "cal-classic",
           "templates": [
            {
             "id": "cal-classic",
             "names": {
              "en": "Classic month",
              "ar": "شهر كلاسيكي",
              "fr": "Mois classique",
              "es": "Mes clásico"
             },
             "width": 320,
             "height": 340,
             "embedUrl": "https://clockcrest.com/embed/calendar/",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar"
            },
            {
             "id": "cal-minimal",
             "names": {
              "en": "Minimal month",
              "ar": "شهر بسيط",
              "fr": "Mois minimaliste",
              "es": "Mes minimalista"
             },
             "width": 300,
             "height": 300,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-minimal",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-minimal"
            },
            {
             "id": "cal-dark",
             "names": {
              "en": "Dark month",
              "ar": "شهر داكن",
              "fr": "Mois sombre",
              "es": "Mes oscuro"
             },
             "width": 320,
             "height": 340,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-dark",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-dark"
            },
            {
             "id": "cal-glass",
             "names": {
              "en": "Glass month",
              "ar": "شهر زجاجي",
              "fr": "Mois effet verre",
              "es": "Mes efecto cristal"
             },
             "width": 340,
             "height": 370,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-glass",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-glass"
            },
            {
             "id": "cal-compact",
             "names": {
              "en": "Compact mini month",
              "ar": "شهر مصغّر",
              "fr": "Mini-mois compact",
              "es": "Mini mes compacto"
             },
             "width": 220,
             "height": 230,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-compact",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-compact"
            },
            {
             "id": "cal-iso-week",
             "names": {
              "en": "Week numbers (ISO)",
              "ar": "أرقام الأسابيع (ISO)",
              "fr": "Numéros de semaine (ISO)",
              "es": "Números de semana (ISO)"
             },
             "width": 360,
             "height": 340,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-iso-week",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-iso-week"
            },
            {
             "id": "cal-quarter",
             "names": {
              "en": "Three months",
              "ar": "ثلاثة أشهر",
              "fr": "Trois mois",
              "es": "Tres meses"
             },
             "width": 640,
             "height": 260,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-quarter",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-quarter"
            },
            {
             "id": "cal-year",
             "names": {
              "en": "Year at a glance",
              "ar": "السنة في لمحة",
              "fr": "Année en un coup d’œil",
              "es": "El año de un vistazo"
             },
             "width": 660,
             "height": 560,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-year",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-year"
            },
            {
             "id": "cal-dual",
             "names": {
              "en": "Gregorian + Hijri month",
              "ar": "شهر ميلادي وهجري",
              "fr": "Mois grégorien + hégirien",
              "es": "Mes gregoriano + hijri"
             },
             "width": 380,
             "height": 410,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-dual&city=riyadh",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-dual&city=riyadh"
            },
            {
             "id": "cal-hijri",
             "names": {
              "en": "Hijri month",
              "ar": "شهر هجري",
              "fr": "Mois hégirien",
              "es": "Mes hijri"
             },
             "width": 340,
             "height": 380,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-hijri&city=riyadh",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-hijri&city=riyadh"
            },
            {
             "id": "cal-holidays",
             "names": {
              "en": "Public holidays month",
              "ar": "شهر العطل الرسمية",
              "fr": "Mois des jours fériés",
              "es": "Mes de días festivos"
             },
             "width": 340,
             "height": 410,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-holidays&city=paris&country=FR",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-holidays&city=paris&country=FR"
            },
            {
             "id": "cal-business",
             "names": {
              "en": "Working days month",
              "ar": "شهر أيام العمل",
              "fr": "Mois des jours ouvrés",
              "es": "Mes de días laborables"
             },
             "width": 340,
             "height": 400,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-business&city=cairo&country=EG&week=sat",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-business&city=cairo&country=EG&week=sat"
            },
            {
             "id": "cal-moon",
             "names": {
              "en": "Moon phase month",
              "ar": "شهر أطوار القمر",
              "fr": "Mois des phases de la Lune",
              "es": "Mes de fases lunares"
             },
             "width": 360,
             "height": 420,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-moon&city=sydney",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-moon&city=sydney"
            },
            {
             "id": "cal-week",
             "names": {
              "en": "Week view",
              "ar": "عرض الأسبوع",
              "fr": "Vue semaine",
              "es": "Vista semanal"
             },
             "width": 440,
             "height": 180,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-week",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-week"
            },
            {
             "id": "cal-strip",
             "names": {
              "en": "Two-week strip",
              "ar": "شريط أسبوعين",
              "fr": "Bandeau deux semaines",
              "es": "Tira de dos semanas"
             },
             "width": 440,
             "height": 200,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-strip",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-strip"
            },
            {
             "id": "cal-agenda",
             "names": {
              "en": "Today card",
              "ar": "بطاقة اليوم",
              "fr": "Carte du jour",
              "es": "Tarjeta de hoy"
             },
             "width": 320,
             "height": 300,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-agenda",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-agenda"
            },
            {
             "id": "cal-tile",
             "names": {
              "en": "Mini date tile",
              "ar": "بلاطة تاريخ صغيرة",
              "fr": "Mini-tuile date",
              "es": "Mini ficha de fecha"
             },
             "width": 180,
             "height": 200,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-tile",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-tile"
            },
            {
             "id": "cal-tearoff",
             "names": {
              "en": "Desk tear-off day",
              "ar": "تقويم مكتبي بورق يُنزع",
              "fr": "Éphéméride de bureau",
              "es": "Taco de escritorio"
             },
             "width": 240,
             "height": 310,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-tearoff",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-tearoff"
            },
            {
             "id": "cal-progress",
             "names": {
              "en": "Year progress dots",
              "ar": "نقاط تقدّم السنة",
              "fr": "Progression de l’année",
              "es": "Progreso del año"
             },
             "width": 420,
             "height": 300,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-progress",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-progress"
            },
            {
             "id": "cal-multi",
             "names": {
              "en": "Today in four calendars",
              "ar": "اليوم في أربعة تقاويم",
              "fr": "Aujourd’hui dans quatre calendriers",
              "es": "Hoy en cuatro calendarios"
             },
             "width": 340,
             "height": 270,
             "embedUrl": "https://clockcrest.com/embed/calendar/?template=cal-multi&city=cairo",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=calendar&template=cal-multi&city=cairo"
            }
           ]
          },
          {
           "type": "stopwatch",
           "element": "clockcrest-stopwatch",
           "embedUrl": "https://clockcrest.com/embed/stopwatch/",
           "defaultTemplate": "sw-classic",
           "templates": [
            {
             "id": "sw-classic",
             "names": {
              "en": "Stopwatch",
              "ar": "ساعة إيقاف",
              "fr": "Chronomètre",
              "es": "Cronómetro"
             },
             "width": 320,
             "height": 260,
             "embedUrl": "https://clockcrest.com/embed/stopwatch/",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=stopwatch"
            }
           ]
          },
          {
           "type": "timer",
           "element": "clockcrest-timer",
           "embedUrl": "https://clockcrest.com/embed/timer/",
           "defaultTemplate": "tm-classic",
           "templates": [
            {
             "id": "tm-classic",
             "names": {
              "en": "Timer",
              "ar": "مؤقّت",
              "fr": "Minuteur",
              "es": "Temporizador"
             },
             "width": 320,
             "height": 240,
             "embedUrl": "https://clockcrest.com/embed/timer/?dur=300",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=timer&dur=300"
            }
           ]
          },
          {
           "type": "worldclock",
           "element": "clockcrest-worldclock",
           "embedUrl": "https://clockcrest.com/embed/worldclock/",
           "defaultTemplate": "wc-table",
           "templates": [
            {
             "id": "wc-table",
             "names": {
              "en": "World clock table",
              "ar": "جدول الساعة العالمية",
              "fr": "Tableau horloge mondiale",
              "es": "Tabla de reloj mundial"
             },
             "width": 520,
             "height": 330,
             "embedUrl": "https://clockcrest.com/embed/worldclock/?city=london",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=worldclock&city=london"
            }
           ]
          },
          {
           "type": "prayer",
           "element": "clockcrest-prayer",
           "embedUrl": "https://clockcrest.com/embed/prayer/",
           "defaultTemplate": "pr-card",
           "templates": [
            {
             "id": "pr-card",
             "names": {
              "en": "Prayer times",
              "ar": "مواقيت الصلاة",
              "fr": "Heures de prière",
              "es": "Horarios de oración"
             },
             "width": 320,
             "height": 430,
             "embedUrl": "https://clockcrest.com/embed/prayer/?city=cairo&method=egyptian",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=prayer&city=cairo&method=egyptian"
            }
           ]
          },
          {
           "type": "holidays",
           "element": "clockcrest-holidays",
           "embedUrl": "https://clockcrest.com/embed/holidays/",
           "defaultTemplate": "hd-list",
           "templates": [
            {
             "id": "hd-list",
             "names": {
              "en": "Public holidays list",
              "ar": "قائمة العطل الرسمية",
              "fr": "Liste des jours fériés",
              "es": "Lista de días festivos"
             },
             "width": 340,
             "height": 360,
             "embedUrl": "https://clockcrest.com/embed/holidays/?city=new-york&country=US",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=holidays&city=new-york&country=US"
            }
           ]
          },
          {
           "type": "converter",
           "element": "clockcrest-converter",
           "embedUrl": "https://clockcrest.com/embed/converter/",
           "defaultTemplate": "cv-mini",
           "templates": [
            {
             "id": "cv-mini",
             "names": {
              "en": "Time zone converter",
              "ar": "محوّل المناطق الزمنية",
              "fr": "Convertisseur de fuseaux",
              "es": "Conversor de zonas horarias"
             },
             "width": 360,
             "height": 250,
             "embedUrl": "https://clockcrest.com/embed/converter/?city=london&zones=tokyo",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=converter&city=london&zones=tokyo"
            }
           ]
          },
          {
           "type": "sun",
           "element": "clockcrest-sun",
           "embedUrl": "https://clockcrest.com/embed/sun/",
           "defaultTemplate": "sun-card",
           "templates": [
            {
             "id": "sun-card",
             "names": {
              "en": "Sunrise & sunset card",
              "ar": "بطاقة الشروق والغروب",
              "fr": "Carte lever et coucher du soleil",
              "es": "Tarjeta de amanecer y atardecer"
             },
             "width": 340,
             "height": 330,
             "embedUrl": "https://clockcrest.com/embed/sun/?city=cairo",
             "studioUrl": "https://clockcrest.com/widgets/studio/?type=sun&city=cairo"
            }
           ]
          }
         ],
         "parameters": [
          {
           "name": "template",
           "type": "enum",
           "description": "Design: for a clock one of the ids listed in \"templates\" (omitted: digital-classic); for another widget one of the ids listed for it in \"widgets\" (omitted: its first design).",
           "values": [
            "analog-classic",
            "analog-minimal",
            "analog-luxury",
            "analog-roman",
            "analog-wood",
            "analog-scandi",
            "analog-transparent",
            "analog-industrial",
            "analog-swiss",
            "analog-kids",
            "digital-classic",
            "digital-led-red",
            "digital-led-green",
            "digital-led-blue",
            "digital-flip",
            "digital-lcd",
            "digital-neon",
            "digital-cyberpunk",
            "digital-glass",
            "digital-minimal",
            "adv-rings",
            "adv-24h",
            "adv-dual",
            "adv-world",
            "adv-utc",
            "adv-scene",
            "adv-daynight",
            "adv-hijri",
            "adv-sun",
            "adv-business",
            "cd-classic",
            "cd-flip",
            "cd-blocks",
            "cal-classic",
            "cal-minimal",
            "cal-dark",
            "cal-glass",
            "cal-compact",
            "cal-iso-week",
            "cal-quarter",
            "cal-year",
            "cal-dual",
            "cal-hijri",
            "cal-holidays",
            "cal-business",
            "cal-moon",
            "cal-week",
            "cal-strip",
            "cal-agenda",
            "cal-tile",
            "cal-tearoff",
            "cal-progress",
            "cal-multi",
            "sw-classic",
            "tm-classic",
            "wc-table",
            "pr-card",
            "hd-list",
            "cv-mini",
            "sun-card"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar"
           ]
          },
          {
           "name": "to",
           "type": "string",
           "description": "Countdown target as a wall-clock time in the widget's zone, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS (required for a countdown).",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "countdown"
           ]
          },
          {
           "name": "tz",
           "type": "string",
           "description": "IANA time zone name, e.g. Europe/Paris. Omitted (and no \"city\"): each visitor's own zone.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "city",
           "type": "string",
           "description": "Slug of one of the curated ClockCrest cities, e.g. tokyo; gives the zone, country and coordinates at once and takes precedence over \"tz\".",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "cc",
           "type": "string",
           "description": "ISO 3166-1 alpha-2 country code shown as the country chip when \"flag\" is on.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "worldclock",
            "prayer",
            "converter",
            "sun"
           ]
          },
          {
           "name": "lat",
           "type": "number",
           "description": "Latitude in decimal degrees for the sunrise/sunset templates, prayer times and the sun card (needs \"lon\").",
           "values": null,
           "minimum": -90,
           "maximum": 90,
           "appliesTo": [
            "clock",
            "calendar",
            "prayer",
            "sun"
           ]
          },
          {
           "name": "lon",
           "type": "number",
           "description": "Longitude in decimal degrees for the sunrise/sunset templates, prayer times and the sun card (needs \"lat\").",
           "values": null,
           "minimum": -180,
           "maximum": 180,
           "appliesTo": [
            "clock",
            "calendar",
            "prayer",
            "sun"
           ]
          },
          {
           "name": "label",
           "type": "string",
           "description": "Text shown with the time, at most 60 characters (a countdown also reads the older \"title\").",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "lang",
           "type": "enum",
           "description": "Language of the widget. Omitted: en.",
           "values": [
            "en",
            "ar",
            "fr",
            "es"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "theme",
           "type": "enum",
           "description": "Light or dark palette; \"auto\" follows the visitor's device.",
           "values": [
            "auto",
            "light",
            "dark"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "format",
           "type": "enum",
           "description": "12-hour or 24-hour time. Omitted: 24.",
           "values": [
            "12",
            "24"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "worldclock",
            "prayer",
            "converter",
            "sun"
           ]
          },
          {
           "name": "seconds",
           "type": "boolean",
           "description": "Show seconds. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "worldclock"
           ]
          },
          {
           "name": "date",
           "type": "boolean",
           "description": "Show the date. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "worldclock"
           ]
          },
          {
           "name": "weekday",
           "type": "boolean",
           "description": "Show the weekday. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "worldclock"
           ]
          },
          {
           "name": "abbr",
           "type": "boolean",
           "description": "Show the time-zone abbreviation, e.g. CET. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock"
           ]
          },
          {
           "name": "offset",
           "type": "boolean",
           "description": "Show the UTC offset, e.g. UTC+01:00. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "worldclock"
           ]
          },
          {
           "name": "flag",
           "type": "boolean",
           "description": "Show the two-letter country code next to the place name. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "worldclock",
            "prayer",
            "converter",
            "sun"
           ]
          },
          {
           "name": "by",
           "type": "boolean",
           "description": "Show the small \"ClockCrest\" link. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "bg",
           "type": "color",
           "description": "Background colour. Six hexadecimal digits without \"#\", e.g. 1f5bff.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "fg",
           "type": "color",
           "description": "Colour of text, digits and hands. Six hexadecimal digits without \"#\", e.g. 1f5bff.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "accent",
           "type": "color",
           "description": "Accent colour (second hand, markers, links). Six hexadecimal digits without \"#\", e.g. 1f5bff.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "transparent",
           "type": "boolean",
           "description": "Transparent background. 1 or 0.",
           "values": [
            "0",
            "1"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "g1",
           "type": "color",
           "description": "Gradient start colour (needs \"g2\"). Six hexadecimal digits without \"#\", e.g. 1f5bff.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "g2",
           "type": "color",
           "description": "Gradient end colour (needs \"g1\"). Six hexadecimal digits without \"#\", e.g. 1f5bff.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "ga",
           "type": "integer",
           "description": "Gradient angle in degrees. Omitted: 135.",
           "values": null,
           "minimum": 0,
           "maximum": 360,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "font",
           "type": "enum",
           "description": "System font stack; no font file is ever downloaded.",
           "values": [
            "system",
            "serif",
            "mono",
            "rounded",
            "condensed",
            "slab"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "scale",
           "type": "number",
           "description": "Text size multiplier.",
           "values": null,
           "minimum": 0.5,
           "maximum": 2,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "radius",
           "type": "integer",
           "description": "Corner radius in CSS pixels.",
           "values": null,
           "minimum": 0,
           "maximum": 64,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "border",
           "type": "integer",
           "description": "Border width in CSS pixels.",
           "values": null,
           "minimum": 0,
           "maximum": 8,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "shadow",
           "type": "integer",
           "description": "Shadow strength, 0 (none) to 3.",
           "values": null,
           "minimum": 0,
           "maximum": 3,
           "appliesTo": [
            "clock",
            "countdown",
            "calendar",
            "stopwatch",
            "timer",
            "worldclock",
            "prayer",
            "holidays",
            "converter",
            "sun"
           ]
          },
          {
           "name": "zones",
           "type": "string",
           "description": "Extra places of the multi-zone templates, the world clock table and the converter: up to 5 (8 in the table, 1 in the converter) comma-separated city slugs or IANA zones, each optionally followed by \"~\" and a label, e.g. tokyo,Europe/Paris~Head office.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "clock",
            "worldclock",
            "converter"
           ]
          },
          {
           "name": "open",
           "type": "integer",
           "description": "Business dashboard: hour the office opens (local time, Monday to Friday).",
           "values": null,
           "minimum": 0,
           "maximum": 23,
           "appliesTo": [
            "clock"
           ]
          },
          {
           "name": "close",
           "type": "integer",
           "description": "Business dashboard: hour the office closes.",
           "values": null,
           "minimum": 1,
           "maximum": 24,
           "appliesTo": [
            "clock"
           ]
          },
          {
           "name": "week",
           "type": "enum",
           "description": "First day of the week in the calendars. Omitted: mon.",
           "values": [
            "mon",
            "sun",
            "sat"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "calendar"
           ]
          },
          {
           "name": "country",
           "type": "string",
           "description": "ISO 3166-1 alpha-2 code of the country whose public holidays are shown (a country that GET /api/v1/holidays has data for). Omitted: the country of the place, else US.",
           "values": null,
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "calendar",
            "holidays"
           ]
          },
          {
           "name": "method",
           "type": "enum",
           "description": "Prayer-time calculation method, as in GET /api/v1/prayer-times. Omitted: mwl.",
           "values": [
            "mwl",
            "umm-al-qura",
            "egyptian",
            "karachi",
            "isna"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "prayer"
           ]
          },
          {
           "name": "asr",
           "type": "enum",
           "description": "Asr school. Omitted: standard.",
           "values": [
            "standard",
            "hanafi"
           ],
           "minimum": null,
           "maximum": null,
           "appliesTo": [
            "prayer"
           ]
          },
          {
           "name": "dur",
           "type": "integer",
           "description": "Length of the timer in seconds. Omitted: 300.",
           "values": null,
           "minimum": 1,
           "maximum": 359999,
           "appliesTo": [
            "timer"
           ]
          },
          {
           "name": "n",
           "type": "integer",
           "description": "How many upcoming holidays the list shows. Omitted: 5.",
           "values": null,
           "minimum": 1,
           "maximum": 12,
           "appliesTo": [
            "holidays"
           ]
          }
         ],
         "notes": [
          "A widget is the page at \"embedUrl\", meant to be placed in an <iframe>. It shows the time of the visitor's device clock converted with the IANA time zone database of their browser; the embed pages make no network request, so they do not use this API.",
          "Every parameter is optional except \"to\" for a countdown. Values that are unknown or malformed are ignored and numbers are clamped to the documented range.",
          "\"defaults\" are the values a template uses when the parameter is absent; \"width\" and \"height\" are its natural iframe size in CSS pixels.",
          "The Hijri template uses the Umm al-Qura calendar as implemented by the browser; a local moon sighting can differ by a day. The city-scene template is a generated illustration, not a photograph.",
          "\"templates\", \"count\" and the \"category\" filter describe the clock designs. \"widgets\" lists the other embeddable widgets (countdown, calendar, stopwatch, timer, world clock table, prayer times, public holidays, time zone converter, sunrise and sunset), each with its page under /embed/, its custom element in /widget.js and its designs.",
          "The holiday widgets use the same Nager.Date data as GET /api/v1/holidays; prayer and sun times are astronomical calculations for the coordinates of the place, as in GET /api/v1/prayer-times and GET /api/v1/astronomy/sun."
         ],
         "source": "ClockCrest widget template registry",
         "lastUpdated": "2026-12-01"
        }
       }
      }
     },
     "400": {
      "description": "A parameter is missing, malformed or out of range.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": {
          "code": "invalid_parameter",
          "message": "Parameter \"category\" must be one of: analog, digital, advanced."
         }
        }
       }
      }
     },
     "401": {
      "description": "An API key was sent but is malformed, unknown or revoked (code invalid_api_key). Send no key for keyless access.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "405": {
      "description": "Only GET (and OPTIONS for CORS preflight) is supported.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Cache-Control": {
        "schema": {
         "type": "string",
         "const": "no-store"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A per-minute or per-day limit is used up (code rate_limited). Retry after the number of seconds in Retry-After.",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: the API can be called from any origin.",
        "schema": {
         "type": "string",
         "const": "*"
        }
       },
       "Retry-After": {
        "description": "Seconds until the exhausted window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Limit": {
        "description": "Requests allowed in the window closest to running out.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in that window.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until that window resets.",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Policy": {
        "description": "Both windows, e.g. 60;w=60, 1000;w=86400.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  }
 },
 "security": [
  {},
  {
   "ApiKeyHeader": []
  },
  {
   "BearerKey": []
  }
 ],
 "components": {
  "schemas": {
   "Error": {
    "type": "object",
    "properties": {
     "error": {
      "type": "object",
      "properties": {
       "code": {
        "type": "string",
        "description": "Stable machine-readable code, e.g. invalid_timezone"
       },
       "message": {
        "type": "string",
        "description": "Human-readable explanation; never echoes the rejected value"
       }
      },
      "required": [
       "code",
       "message"
      ],
      "additionalProperties": false
     }
    },
    "required": [
     "error"
    ],
    "additionalProperties": false
   },
   "ZonedMoment": {
    "type": "object",
    "description": "One instant as it reads on the clocks of a time zone.",
    "properties": {
     "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
     },
     "local": {
      "type": "string",
      "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
     },
     "iso": {
      "type": "string",
      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
     },
     "utcOffset": {
      "type": "string",
      "description": "UTC offset, ±HH:MM",
      "pattern": "^[+-]\\d{2}:\\d{2}$"
     },
     "utcOffsetMinutes": {
      "type": "integer",
      "description": "UTC offset in minutes, east positive"
     },
     "abbreviation": {
      "type": "string",
      "description": "Short zone name from CLDR (\"CET\"), or \"GMT+9\" where none exists"
     },
     "isDst": {
      "type": "boolean",
      "description": "Whether daylight saving time is in effect"
     }
    },
    "required": [
     "timeZone",
     "local",
     "iso",
     "utcOffset",
     "utcOffsetMinutes",
     "abbreviation",
     "isDst"
    ],
    "additionalProperties": false
   },
   "ServiceStatus": {
    "type": "object",
    "properties": {
     "status": {
      "type": "string",
      "description": "Always \"ok\": the API code answered this request",
      "enum": [
       "ok"
      ]
     },
     "at": {
      "type": "string",
      "description": "When the response was produced",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "unixMs": {
      "type": "integer",
      "description": "Milliseconds since 1970-01-01T00:00:00Z"
     },
     "api": {
      "type": "object",
      "properties": {
       "version": {
        "type": "string",
        "description": "Version of the API (info.version of the OpenAPI document)"
       },
       "operations": {
        "type": "integer",
        "description": "Operations declared in the registry"
       },
       "paths": {
        "type": "integer",
        "description": "Documented paths, including the original paths kept as aliases"
       },
       "mcpTools": {
        "type": "integer",
        "description": "Tools listed by the MCP server"
       },
       "openapi": {
        "type": "string",
        "description": "URL of the OpenAPI 3.1 document"
       },
       "documentation": {
        "type": "string",
        "description": "URL of the reference documentation"
       }
      },
      "required": [
       "version",
       "operations",
       "paths",
       "mcpTools",
       "openapi",
       "documentation"
      ],
      "additionalProperties": false
     },
     "build": {
      "type": "object",
      "description": "Both fields are null when the deployment did not come from the normal build.",
      "properties": {
       "commit": {
        "anyOf": [
         {
          "type": "string",
          "description": "Short commit hash of the deployed code",
          "pattern": "^[0-9a-f]{7,40}$"
         },
         {
          "type": "null"
         }
        ]
       },
       "builtAt": {
        "anyOf": [
         {
          "type": "string",
          "description": "When the deployed site was built",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
         },
         {
          "type": "null"
         }
        ]
       }
      },
      "required": [
       "commit",
       "builtAt"
      ],
      "additionalProperties": false
     },
     "datasets": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string",
         "description": "Stable identifier",
         "enum": [
          "time-zones",
          "holidays",
          "places",
          "exchanges",
          "astronomy"
         ]
        },
        "name": {
         "type": "string"
        },
        "source": {
         "type": "string",
         "description": "Where the data or the algorithm comes from."
        },
        "sourceUrl": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        },
        "license": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        },
        "lastUpdated": {
         "anyOf": [
          {
           "type": "string",
           "description": "Date the underlying data set was last generated or checked.",
           "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          {
           "type": "null"
          }
         ]
        },
        "records": {
         "anyOf": [
          {
           "type": "integer",
           "description": "Number of records, counted in \"unit\""
          },
          {
           "type": "null"
          }
         ]
        },
        "unit": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        },
        "coverage": {
         "type": "string",
         "description": "What the data covers and where it stops"
        }
       },
       "required": [
        "id",
        "name",
        "source",
        "sourceUrl",
        "license",
        "lastUpdated",
        "records",
        "unit",
        "coverage"
       ],
       "additionalProperties": false
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "status",
     "at",
     "unixMs",
     "api",
     "build",
     "datasets",
     "notes",
     "source"
    ],
    "additionalProperties": false
   },
   "CurrentTime": {
    "type": "object",
    "properties": {
     "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
     },
     "local": {
      "type": "string",
      "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
     },
     "iso": {
      "type": "string",
      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
     },
     "utcOffset": {
      "type": "string",
      "description": "UTC offset, ±HH:MM",
      "pattern": "^[+-]\\d{2}:\\d{2}$"
     },
     "utcOffsetMinutes": {
      "type": "integer",
      "description": "UTC offset in minutes, east positive"
     },
     "abbreviation": {
      "type": "string",
      "description": "Short zone name from CLDR (\"CET\"), or \"GMT+9\" where none exists"
     },
     "isDst": {
      "type": "boolean",
      "description": "Whether daylight saving time is in effect"
     },
     "utc": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "unixMs": {
      "type": "integer",
      "description": "Milliseconds since 1970-01-01T00:00:00Z"
     },
     "nextTransition": {
      "anyOf": [
       {
        "type": "object",
        "description": "Next change of UTC offset within about 400 days, to the minute",
        "properties": {
         "at": {
          "type": "string",
          "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
         },
         "utcOffsetBefore": {
          "type": "string",
          "description": "UTC offset, ±HH:MM",
          "pattern": "^[+-]\\d{2}:\\d{2}$"
         },
         "utcOffsetAfter": {
          "type": "string",
          "description": "UTC offset, ±HH:MM",
          "pattern": "^[+-]\\d{2}:\\d{2}$"
         }
        },
        "required": [
         "at",
         "utcOffsetBefore",
         "utcOffsetAfter"
        ],
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "timeZone",
     "local",
     "iso",
     "utcOffset",
     "utcOffsetMinutes",
     "abbreviation",
     "isDst",
     "utc",
     "unixMs",
     "nextTransition",
     "source"
    ],
    "additionalProperties": false
   },
   "Conversion": {
    "type": "object",
    "properties": {
     "input": {
      "type": "object",
      "properties": {
       "from": {
        "type": "string",
        "description": "IANA time zone name"
       },
       "to": {
        "type": "string",
        "description": "IANA time zone name"
       },
       "time": {
        "type": "string",
        "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
       }
      },
      "required": [
       "from",
       "to",
       "time"
      ],
      "additionalProperties": false
     },
     "from": {
      "$ref": "#/components/schemas/ZonedMoment"
     },
     "to": {
      "$ref": "#/components/schemas/ZonedMoment"
     },
     "utc": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "resolution": {
      "type": "string",
      "description": "How the source wall-clock time was resolved",
      "enum": [
       "exact",
       "gap_shifted_forward",
       "overlap_earlier",
       "overlap_later"
      ]
     },
     "note": {
      "type": "string"
     },
     "occurrences": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
      },
      "description": "Both occurrences, when the source time happens twice"
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "input",
     "from",
     "to",
     "utc",
     "resolution",
     "note",
     "source"
    ],
    "additionalProperties": false
   },
   "ZoneList": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "description": "ISO 3166-1 alpha-2 country code",
        "pattern": "^[A-Z]{2}$"
       },
       {
        "type": "null"
       }
      ]
     },
     "count": {
      "type": "integer"
     },
     "timeZones": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "timeZone": {
         "type": "string",
         "description": "IANA time zone name"
        },
        "utcOffset": {
         "type": "string",
         "description": "UTC offset, ±HH:MM",
         "pattern": "^[+-]\\d{2}:\\d{2}$"
        },
        "utcOffsetMinutes": {
         "type": "integer"
        },
        "isDst": {
         "type": "boolean"
        },
        "countries": {
         "type": "array",
         "items": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code",
          "pattern": "^[A-Z]{2}$"
         }
        }
       },
       "required": [
        "timeZone",
        "utcOffset",
        "utcOffsetMinutes",
        "isDst",
        "countries"
       ],
       "additionalProperties": false
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "countrySource": {
      "type": "string"
     },
     "countrySourceUrl": {
      "type": "string"
     }
    },
    "required": [
     "at",
     "country",
     "count",
     "timeZones",
     "notes",
     "source",
     "countrySource",
     "countrySourceUrl"
    ],
    "additionalProperties": false
   },
   "OffsetList": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "count": {
      "type": "integer"
     },
     "offsets": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "utcOffset": {
         "type": "string",
         "description": "UTC offset, ±HH:MM",
         "pattern": "^[+-]\\d{2}:\\d{2}$"
        },
        "utcOffsetMinutes": {
         "type": "integer"
        },
        "count": {
         "type": "integer"
        },
        "timeZones": {
         "type": "array",
         "items": {
          "type": "string",
          "description": "IANA time zone name"
         }
        }
       },
       "required": [
        "utcOffset",
        "utcOffsetMinutes",
        "count",
        "timeZones"
       ],
       "additionalProperties": false
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "at",
     "count",
     "offsets",
     "notes",
     "source"
    ],
    "additionalProperties": false
   },
   "DstTransitions": {
    "type": "object",
    "properties": {
     "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
     },
     "year": {
      "type": "integer"
     },
     "observesDst": {
      "type": "boolean",
      "description": "Whether the offsets on 1 January and 1 July differ"
     },
     "count": {
      "type": "integer"
     },
     "transitions": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "at": {
         "type": "string",
         "description": "First second on which the new offset applies",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
        },
        "localBefore": {
         "type": "string",
         "description": "Clock reading one second before the change",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
        },
        "localAfter": {
         "type": "string",
         "description": "Clock reading at the change",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
        },
        "utcOffsetBefore": {
         "type": "string",
         "description": "UTC offset, ±HH:MM",
         "pattern": "^[+-]\\d{2}:\\d{2}$"
        },
        "utcOffsetAfter": {
         "type": "string",
         "description": "UTC offset, ±HH:MM",
         "pattern": "^[+-]\\d{2}:\\d{2}$"
        },
        "changeMinutes": {
         "type": "integer",
         "description": "Positive when clocks go forward"
        },
        "direction": {
         "type": "string",
         "enum": [
          "forward",
          "backward"
         ]
        },
        "isDstAfter": {
         "type": "boolean"
        }
       },
       "required": [
        "at",
        "localBefore",
        "localAfter",
        "utcOffsetBefore",
        "utcOffsetAfter",
        "changeMinutes",
        "direction",
        "isDstAfter"
       ],
       "additionalProperties": false
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "timeZone",
     "year",
     "observesDst",
     "count",
     "transitions",
     "notes",
     "source"
    ],
    "additionalProperties": false
   },
   "City": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "description": "Main (English / international) name"
     },
     "nameAr": {
      "anyOf": [
       {
        "type": "string",
        "description": "Arabic name, when the index has one"
       },
       {
        "type": "null"
       }
      ]
     },
     "alternateNames": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Alternate names kept in the index: Arabic first, then the local-language name and other common spellings"
     },
     "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "countryName": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
     },
     "lat": {
      "type": "number",
      "description": "Latitude, decimal degrees"
     },
     "lon": {
      "type": "number",
      "description": "Longitude, decimal degrees"
     },
     "population": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ]
     },
     "slug": {
      "anyOf": [
       {
        "type": "string",
        "description": "Slug of the city page on clockcrest.com, when it has one"
       },
       {
        "type": "null"
       }
      ]
     },
     "url": {
      "anyOf": [
       {
        "type": "string",
        "description": "URL of that page"
       },
       {
        "type": "null"
       }
      ]
     },
     "matchedName": {
      "type": "string",
      "description": "The alternate name the query matched, when it was not the main name"
     }
    },
    "required": [
     "name",
     "nameAr",
     "alternateNames",
     "country",
     "countryName",
     "timeZone",
     "lat",
     "lon",
     "population",
     "slug",
     "url"
    ],
    "additionalProperties": false
   },
   "CitySearch": {
    "type": "object",
    "properties": {
     "query": {
      "type": "string"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "description": "ISO 3166-1 alpha-2 country code",
        "pattern": "^[A-Z]{2}$"
       },
       {
        "type": "null"
       }
      ]
     },
     "count": {
      "type": "integer"
     },
     "results": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/City"
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "query",
     "country",
     "count",
     "results",
     "notes",
     "source",
     "sourceUrl",
     "license",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "CityList": {
    "type": "object",
    "properties": {
     "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "countryName": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "total": {
      "type": "integer",
      "description": "Cities of this country in the index"
     },
     "count": {
      "type": "integer"
     },
     "cities": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/City"
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "country",
     "countryName",
     "total",
     "count",
     "cities",
     "notes",
     "source",
     "sourceUrl",
     "license",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "CountryList": {
    "type": "object",
    "properties": {
     "continent": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "AF",
         "AS",
         "EU",
         "NA",
         "SA",
         "OC",
         "AN"
        ]
       },
       {
        "type": "null"
       }
      ]
     },
     "count": {
      "type": "integer"
     },
     "countries": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string",
         "description": "ISO 3166-1 alpha-2 country code",
         "pattern": "^[A-Z]{2}$"
        },
        "name": {
         "type": "string"
        },
        "continent": {
         "type": "string"
        },
        "capital": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        },
        "timeZones": {
         "type": "array",
         "items": {
          "type": "string",
          "description": "IANA time zone name"
         }
        },
        "publicHolidayYears": {
         "type": "array",
         "items": {
          "type": "integer"
         }
        }
       },
       "required": [
        "code",
        "name",
        "continent",
        "capital",
        "timeZones",
        "publicHolidayYears"
       ],
       "additionalProperties": false
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "continent",
     "count",
     "countries",
     "notes",
     "source",
     "sourceUrl",
     "license",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "Country": {
    "type": "object",
    "properties": {
     "code": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "name": {
      "type": "string"
     },
     "continent": {
      "type": "string",
      "enum": [
       "AF",
       "AS",
       "EU",
       "NA",
       "SA",
       "OC",
       "AN"
      ]
     },
     "continentName": {
      "type": "string"
     },
     "capital": {
      "anyOf": [
       {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "slug": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "url": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         }
        },
        "required": [
         "name",
         "slug",
         "url"
        ],
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "population": {
      "type": "integer"
     },
     "areaKm2": {
      "type": "number"
     },
     "callingCode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "currency": {
      "anyOf": [
       {
        "type": "string",
        "description": "ISO 4217 code"
       },
       {
        "type": "null"
       }
      ]
     },
     "tld": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "cityCount": {
      "type": "integer",
      "description": "GeoNames cities of 15,000+ people"
     },
     "timeZones": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "timeZone": {
         "type": "string",
         "description": "IANA time zone name"
        },
        "utcOffset": {
         "type": "string",
         "description": "UTC offset, ±HH:MM",
         "pattern": "^[+-]\\d{2}:\\d{2}$"
        },
        "utcOffsetMinutes": {
         "type": "integer"
        },
        "isDst": {
         "type": "boolean"
        },
        "cityCount": {
         "type": "integer",
         "description": "GeoNames cities of 15,000+ people in this zone"
        },
        "largestCities": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "slug": {
            "anyOf": [
             {
              "type": "string"
             },
             {
              "type": "null"
             }
            ]
           },
           "url": {
            "anyOf": [
             {
              "type": "string"
             },
             {
              "type": "null"
             }
            ]
           }
          },
          "required": [
           "name",
           "slug",
           "url"
          ],
          "additionalProperties": false
         }
        }
       },
       "required": [
        "timeZone",
        "utcOffset",
        "utcOffsetMinutes",
        "isDst",
        "cityCount",
        "largestCities"
       ],
       "additionalProperties": false
      }
     },
     "weekend": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "English weekday name",
       "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
       ]
      }
     },
     "weekendBasis": {
      "type": "string",
      "description": "\"listed\": a documented weekend other than Saturday–Sunday; \"default\": Saturday–Sunday assumed",
      "enum": [
       "listed",
       "default"
      ]
     },
     "publicHolidayYears": {
      "type": "array",
      "items": {
       "type": "integer"
      }
     },
     "at": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "timeZoneSource": {
      "type": "string"
     }
    },
    "required": [
     "code",
     "name",
     "continent",
     "continentName",
     "capital",
     "population",
     "areaKm2",
     "callingCode",
     "currency",
     "tld",
     "cityCount",
     "timeZones",
     "weekend",
     "weekendBasis",
     "publicHolidayYears",
     "at",
     "notes",
     "source",
     "sourceUrl",
     "license",
     "lastUpdated",
     "timeZoneSource"
    ],
    "additionalProperties": false
   },
   "TimezoneSearch": {
    "type": "object",
    "properties": {
     "query": {
      "type": "string"
     },
     "at": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "countries": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string",
         "description": "ISO 3166-1 alpha-2 country code",
         "pattern": "^[A-Z]{2}$"
        },
        "name": {
         "type": "string"
        },
        "timeZones": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "timeZone": {
            "type": "string",
            "description": "IANA time zone name"
           },
           "utcOffset": {
            "type": "string",
            "description": "UTC offset, ±HH:MM",
            "pattern": "^[+-]\\d{2}:\\d{2}$"
           },
           "utcOffsetMinutes": {
            "type": "integer"
           },
           "isDst": {
            "type": "boolean"
           },
           "cityCount": {
            "type": "integer",
            "description": "GeoNames cities of 15,000+ people in this zone"
           },
           "largestCities": {
            "type": "array",
            "items": {
             "type": "object",
             "properties": {
              "name": {
               "type": "string"
              },
              "slug": {
               "anyOf": [
                {
                 "type": "string"
                },
                {
                 "type": "null"
                }
               ]
              },
              "url": {
               "anyOf": [
                {
                 "type": "string"
                },
                {
                 "type": "null"
                }
               ]
              }
             },
             "required": [
              "name",
              "slug",
              "url"
             ],
             "additionalProperties": false
            }
           },
           "local": {
            "type": "string",
            "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
           }
          },
          "required": [
           "timeZone",
           "utcOffset",
           "utcOffsetMinutes",
           "isDst",
           "cityCount",
           "largestCities",
           "local"
          ],
          "additionalProperties": false
         }
        }
       },
       "required": [
        "code",
        "name",
        "timeZones"
       ],
       "additionalProperties": false
      }
     },
     "cities": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string",
         "description": "Main (English / international) name"
        },
        "nameAr": {
         "anyOf": [
          {
           "type": "string",
           "description": "Arabic name, when the index has one"
          },
          {
           "type": "null"
          }
         ]
        },
        "alternateNames": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Alternate names kept in the index: Arabic first, then the local-language name and other common spellings"
        },
        "country": {
         "type": "string",
         "description": "ISO 3166-1 alpha-2 country code",
         "pattern": "^[A-Z]{2}$"
        },
        "countryName": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        },
        "timeZone": {
         "type": "string",
         "description": "IANA time zone name"
        },
        "lat": {
         "type": "number",
         "description": "Latitude, decimal degrees"
        },
        "lon": {
         "type": "number",
         "description": "Longitude, decimal degrees"
        },
        "population": {
         "anyOf": [
          {
           "type": "integer"
          },
          {
           "type": "null"
          }
         ]
        },
        "slug": {
         "anyOf": [
          {
           "type": "string",
           "description": "Slug of the city page on clockcrest.com, when it has one"
          },
          {
           "type": "null"
          }
         ]
        },
        "url": {
         "anyOf": [
          {
           "type": "string",
           "description": "URL of that page"
          },
          {
           "type": "null"
          }
         ]
        },
        "matchedName": {
         "type": "string",
         "description": "The alternate name the query matched, when it was not the main name"
        },
        "utcOffset": {
         "anyOf": [
          {
           "type": "string",
           "description": "UTC offset, ±HH:MM",
           "pattern": "^[+-]\\d{2}:\\d{2}$"
          },
          {
           "type": "null"
          }
         ]
        },
        "local": {
         "anyOf": [
          {
           "type": "string",
           "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
           "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "required": [
        "name",
        "nameAr",
        "alternateNames",
        "country",
        "countryName",
        "timeZone",
        "lat",
        "lon",
        "population",
        "slug",
        "url",
        "utcOffset",
        "local"
       ],
       "additionalProperties": false
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "timeZoneSource": {
      "type": "string"
     }
    },
    "required": [
     "query",
     "at",
     "countries",
     "cities",
     "notes",
     "source",
     "sourceUrl",
     "license",
     "lastUpdated",
     "timeZoneSource"
    ],
    "additionalProperties": false
   },
   "Holiday": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "name": {
      "type": "string",
      "description": "English name"
     },
     "localName": {
      "type": "string"
     },
     "nationwide": {
      "type": "boolean",
      "description": "false = observed only in the listed subdivisions"
     },
     "types": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "subdivisions": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "ISO 3166-2 codes, when not nationwide"
     }
    },
    "required": [
     "date",
     "name",
     "localName",
     "nationwide",
     "types"
    ],
    "additionalProperties": false
   },
   "Holidays": {
    "type": "object",
    "properties": {
     "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "countryName": {
      "type": "string"
     },
     "year": {
      "type": "integer"
     },
     "count": {
      "type": "integer"
     },
     "holidays": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Holiday"
      }
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "dataYears": {
      "type": "array",
      "items": {
       "type": "integer"
      },
      "description": "Years the holiday data covers for this country."
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "country",
     "countryName",
     "year",
     "count",
     "holidays",
     "source",
     "sourceUrl",
     "dataYears",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "BusinessDays": {
    "type": "object",
    "properties": {
     "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "countryName": {
      "type": "string"
     },
     "start": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "end": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "endInclusive": {
      "type": "boolean"
     },
     "calendarDays": {
      "type": "integer"
     },
     "businessDays": {
      "type": "integer"
     },
     "weekend": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "English weekday name",
       "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
       ]
      }
     },
     "holidaysExcluded": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "date": {
         "type": "string",
         "description": "Calendar date, YYYY-MM-DD",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "name": {
         "type": "string",
         "description": "English name"
        },
        "localName": {
         "type": "string"
        }
       },
       "required": [
        "date",
        "name",
        "localName"
       ],
       "additionalProperties": false
      },
      "description": "Nationwide holidays that removed a working day"
     },
     "holidaysOnWeekend": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "date": {
         "type": "string",
         "description": "Calendar date, YYYY-MM-DD",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "name": {
         "type": "string",
         "description": "English name"
        },
        "localName": {
         "type": "string"
        }
       },
       "required": [
        "date",
        "name",
        "localName"
       ],
       "additionalProperties": false
      },
      "description": "Nationwide holidays that fall on a weekend day anyway"
     },
     "rules": {
      "type": "string"
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "dataYears": {
      "type": "array",
      "items": {
       "type": "integer"
      },
      "description": "Years the holiday data covers for this country."
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "country",
     "countryName",
     "start",
     "end",
     "endInclusive",
     "calendarDays",
     "businessDays",
     "weekend",
     "holidaysExcluded",
     "holidaysOnWeekend",
     "rules",
     "source",
     "sourceUrl",
     "dataYears",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "BusinessDaysAdd": {
    "type": "object",
    "properties": {
     "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "countryName": {
      "type": "string"
     },
     "start": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "startWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "startIsBusinessDay": {
      "type": "boolean"
     },
     "days": {
      "type": "integer"
     },
     "result": {
      "type": "string",
      "description": "The business day reached",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "resultWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "calendarDays": {
      "type": "integer",
      "description": "Signed calendar days from start to result"
     },
     "weekend": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "English weekday name",
       "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
       ]
      }
     },
     "holidaysSkipped": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "date": {
         "type": "string",
         "description": "Calendar date, YYYY-MM-DD",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "name": {
         "type": "string",
         "description": "English name"
        },
        "localName": {
         "type": "string"
        }
       },
       "required": [
        "date",
        "name",
        "localName"
       ],
       "additionalProperties": false
      },
      "description": "Nationwide holidays on working weekdays that were stepped over"
     },
     "rules": {
      "type": "string"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "dataYears": {
      "type": "array",
      "items": {
       "type": "integer"
      },
      "description": "Years the holiday data covers for this country."
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "country",
     "countryName",
     "start",
     "startWeekday",
     "startIsBusinessDay",
     "days",
     "result",
     "resultWeekday",
     "calendarDays",
     "weekend",
     "holidaysSkipped",
     "rules",
     "notes",
     "source",
     "sourceUrl",
     "dataYears",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "NextBusinessDay": {
    "type": "object",
    "properties": {
     "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "countryName": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "weekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "isBusinessDay": {
      "type": "boolean"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string",
        "description": "Why the date is not a business day",
        "enum": [
         "weekend",
         "holiday"
        ]
       },
       {
        "type": "null"
       }
      ]
     },
     "holiday": {
      "anyOf": [
       {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "Calendar date, YYYY-MM-DD",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "name": {
          "type": "string",
          "description": "English name"
         },
         "localName": {
          "type": "string"
         }
        },
        "required": [
         "date",
         "name",
         "localName"
        ],
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "nextBusinessDay": {
      "type": "string",
      "description": "First business day strictly after \"date\"",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "nextBusinessDayWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "daysUntilNext": {
      "type": "integer"
     },
     "weekend": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "English weekday name",
       "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
       ]
      }
     },
     "rules": {
      "type": "string"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "dataYears": {
      "type": "array",
      "items": {
       "type": "integer"
      },
      "description": "Years the holiday data covers for this country."
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "country",
     "countryName",
     "date",
     "weekday",
     "isBusinessDay",
     "reason",
     "holiday",
     "nextBusinessDay",
     "nextBusinessDayWeekday",
     "daysUntilNext",
     "weekend",
     "rules",
     "notes",
     "source",
     "sourceUrl",
     "dataYears",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "MonthCalendar": {
    "type": "object",
    "properties": {
     "year": {
      "type": "integer"
     },
     "month": {
      "type": "integer",
      "minimum": 1,
      "maximum": 12
     },
     "monthName": {
      "type": "string"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "description": "ISO 3166-1 alpha-2 country code",
        "pattern": "^[A-Z]{2}$"
       },
       {
        "type": "null"
       }
      ]
     },
     "countryName": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "weekStart": {
      "type": "string",
      "const": "Monday"
     },
     "weekend": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "English weekday name",
       "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
       ]
      }
     },
     "daysInMonth": {
      "type": "integer"
     },
     "businessDays": {
      "type": "integer"
     },
     "weeks": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "isoWeek": {
         "type": "integer"
        },
        "isoWeekYear": {
         "type": "integer"
        },
        "days": {
         "type": "array",
         "items": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "date": {
              "type": "string",
              "description": "Calendar date, YYYY-MM-DD",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
             },
             "day": {
              "type": "integer"
             },
             "weekday": {
              "type": "string",
              "description": "English weekday name",
              "enum": [
               "Sunday",
               "Monday",
               "Tuesday",
               "Wednesday",
               "Thursday",
               "Friday",
               "Saturday"
              ]
             },
             "isWeekend": {
              "type": "boolean"
             },
             "holidays": {
              "type": "array",
              "items": {
               "type": "object",
               "properties": {
                "name": {
                 "type": "string"
                },
                "localName": {
                 "type": "string"
                },
                "nationwide": {
                 "type": "boolean"
                }
               },
               "required": [
                "name",
                "localName",
                "nationwide"
               ],
               "additionalProperties": false
              }
             }
            },
            "required": [
             "date",
             "day",
             "weekday",
             "isWeekend",
             "holidays"
            ],
            "additionalProperties": false
           },
           {
            "type": "null"
           }
          ]
         },
         "description": "Seven cells, Monday first; null pads the weeks at either end of the month"
        }
       },
       "required": [
        "isoWeek",
        "isoWeekYear",
        "days"
       ],
       "additionalProperties": false
      }
     },
     "holidays": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Holiday"
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "dataYears": {
      "anyOf": [
       {
        "type": "array",
        "items": {
         "type": "integer"
        },
        "description": "Years the holiday data covers for this country."
       },
       {
        "type": "null"
       }
      ]
     },
     "lastUpdated": {
      "anyOf": [
       {
        "type": "string",
        "description": "Date the underlying data set was last generated or checked.",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "required": [
     "year",
     "month",
     "monthName",
     "country",
     "countryName",
     "weekStart",
     "weekend",
     "daysInMonth",
     "businessDays",
     "weeks",
     "holidays",
     "notes",
     "source",
     "sourceUrl",
     "dataYears",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "CalendarDate": {
    "type": "object",
    "properties": {
     "calendar": {
      "type": "string",
      "enum": [
       "gregorian",
       "islamic-umalqura",
       "persian",
       "hebrew"
      ]
     },
     "year": {
      "type": "integer"
     },
     "month": {
      "type": "integer",
      "description": "Position of the month in the year, 1-based"
     },
     "day": {
      "type": "integer"
     },
     "monthName": {
      "type": "string",
      "description": "English month name from CLDR"
     },
     "date": {
      "type": "string",
      "description": "year-month-day in that calendar, zero-padded",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "calendar",
     "year",
     "month",
     "day",
     "monthName",
     "date"
    ],
    "additionalProperties": false
   },
   "CalendarConversion": {
    "type": "object",
    "properties": {
     "input": {
      "$ref": "#/components/schemas/CalendarDate"
     },
     "result": {
      "$ref": "#/components/schemas/CalendarDate"
     },
     "gregorian": {
      "type": "string",
      "description": "The same day in the Gregorian calendar",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "weekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "supportedCalendars": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "input",
     "result",
     "gregorian",
     "weekday",
     "notes",
     "supportedCalendars",
     "source"
    ],
    "additionalProperties": false
   },
   "DateDifference": {
    "type": "object",
    "properties": {
     "start": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "startWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "end": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "endWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "days": {
      "type": "integer",
      "description": "end − start in days; negative when end is before start"
     },
     "negative": {
      "type": "boolean"
     },
     "weeks": {
      "type": "object",
      "properties": {
       "weeks": {
        "type": "integer"
       },
       "days": {
        "type": "integer"
       }
      },
      "required": [
       "weeks",
       "days"
      ],
      "additionalProperties": false
     },
     "calendar": {
      "type": "object",
      "properties": {
       "years": {
        "type": "integer"
       },
       "months": {
        "type": "integer"
       },
       "days": {
        "type": "integer"
       }
      },
      "required": [
       "years",
       "months",
       "days"
      ],
      "additionalProperties": false
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "start",
     "startWeekday",
     "end",
     "endWeekday",
     "days",
     "negative",
     "weeks",
     "calendar",
     "notes",
     "source"
    ],
    "additionalProperties": false
   },
   "DateAdd": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "weekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "added": {
      "type": "object",
      "properties": {
       "years": {
        "type": "integer"
       },
       "months": {
        "type": "integer"
       },
       "weeks": {
        "type": "integer"
       },
       "days": {
        "type": "integer"
       }
      },
      "required": [
       "years",
       "months",
       "weeks",
       "days"
      ],
      "additionalProperties": false
     },
     "result": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "resultWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "resultIsoWeek": {
      "type": "integer"
     },
     "resultIsoWeekYear": {
      "type": "integer"
     },
     "daysBetween": {
      "type": "integer"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "date",
     "weekday",
     "added",
     "result",
     "resultWeekday",
     "resultIsoWeek",
     "resultIsoWeekYear",
     "daysBetween",
     "notes",
     "source"
    ],
    "additionalProperties": false
   },
   "WeekNumber": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "weekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
      ]
     },
     "isoWeekday": {
      "type": "integer",
      "description": "1 = Monday … 7 = Sunday",
      "minimum": 1,
      "maximum": 7
     },
     "isoWeek": {
      "type": "integer",
      "minimum": 1,
      "maximum": 53
     },
     "isoWeekYear": {
      "type": "integer"
     },
     "isoWeekDate": {
      "type": "string",
      "description": "ISO week date, e.g. 2026-W49-2",
      "pattern": "^\\d{4}-W\\d{2}-[1-7]$"
     },
     "weeksInIsoYear": {
      "type": "integer",
      "minimum": 52,
      "maximum": 53
     },
     "weekStart": {
      "type": "string",
      "description": "Monday of that week",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "weekEnd": {
      "type": "string",
      "description": "Sunday of that week",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "dayOfYear": {
      "type": "integer"
     },
     "daysInYear": {
      "type": "integer"
     },
     "isLeapYear": {
      "type": "boolean"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "date",
     "weekday",
     "isoWeekday",
     "isoWeek",
     "isoWeekYear",
     "isoWeekDate",
     "weeksInIsoYear",
     "weekStart",
     "weekEnd",
     "dayOfYear",
     "daysInYear",
     "isLeapYear",
     "notes",
     "source"
    ],
    "additionalProperties": false
   },
   "Sun": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "lat": {
      "type": "number"
     },
     "lon": {
      "type": "number"
     },
     "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
     },
     "sunrise": {
      "anyOf": [
       {
        "type": "object",
        "properties": {
         "utc": {
          "type": "string",
          "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
         },
         "local": {
          "type": "string",
          "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
         }
        },
        "required": [
         "utc",
         "local"
        ],
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "sunset": {
      "anyOf": [
       {
        "type": "object",
        "properties": {
         "utc": {
          "type": "string",
          "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
         },
         "local": {
          "type": "string",
          "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
         }
        },
        "required": [
         "utc",
         "local"
        ],
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "solarNoon": {
      "anyOf": [
       {
        "type": "object",
        "properties": {
         "utc": {
          "type": "string",
          "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
         },
         "local": {
          "type": "string",
          "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
         }
        },
        "required": [
         "utc",
         "local"
        ],
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "dayLengthSeconds": {
      "type": "integer"
     },
     "dayLength": {
      "type": "string",
      "description": "HH:MM:SS"
     },
     "polar": {
      "anyOf": [
       {
        "type": "string",
        "description": "\"day\": the Sun does not set; \"night\": it does not rise",
        "enum": [
         "day",
         "night"
        ]
       },
       {
        "type": "null"
       }
      ]
     },
     "polarNote": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "twilight": {
      "type": "object",
      "properties": {
       "civil": {
        "type": "object",
        "properties": {
         "dawn": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
             },
             "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
             }
            },
            "required": [
             "utc",
             "local"
            ],
            "additionalProperties": false
           },
           {
            "type": "null"
           }
          ]
         },
         "dusk": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
             },
             "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
             }
            },
            "required": [
             "utc",
             "local"
            ],
            "additionalProperties": false
           },
           {
            "type": "null"
           }
          ]
         }
        },
        "required": [
         "dawn",
         "dusk"
        ],
        "additionalProperties": false
       },
       "nautical": {
        "type": "object",
        "properties": {
         "dawn": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
             },
             "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
             }
            },
            "required": [
             "utc",
             "local"
            ],
            "additionalProperties": false
           },
           {
            "type": "null"
           }
          ]
         },
         "dusk": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
             },
             "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
             }
            },
            "required": [
             "utc",
             "local"
            ],
            "additionalProperties": false
           },
           {
            "type": "null"
           }
          ]
         }
        },
        "required": [
         "dawn",
         "dusk"
        ],
        "additionalProperties": false
       },
       "astronomical": {
        "type": "object",
        "properties": {
         "dawn": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
             },
             "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
             }
            },
            "required": [
             "utc",
             "local"
            ],
            "additionalProperties": false
           },
           {
            "type": "null"
           }
          ]
         },
         "dusk": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
             },
             "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
             }
            },
            "required": [
             "utc",
             "local"
            ],
            "additionalProperties": false
           },
           {
            "type": "null"
           }
          ]
         }
        },
        "required": [
         "dawn",
         "dusk"
        ],
        "additionalProperties": false
       }
      },
      "required": [
       "civil",
       "nautical",
       "astronomical"
      ],
      "additionalProperties": false
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     }
    },
    "required": [
     "date",
     "lat",
     "lon",
     "timeZone",
     "sunrise",
     "sunset",
     "solarNoon",
     "dayLengthSeconds",
     "dayLength",
     "polar",
     "polarNote",
     "twilight",
     "notes",
     "source",
     "sourceUrl"
    ],
    "additionalProperties": false
   },
   "Moon": {
    "type": "object",
    "properties": {
     "date": {
      "anyOf": [
       {
        "type": "string",
        "description": "Calendar date, YYYY-MM-DD",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
       },
       {
        "type": "null"
       }
      ]
     },
     "at": {
      "type": "string",
      "description": "The instant the phase is computed for",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "phase": {
      "type": "string",
      "enum": [
       "new",
       "waxing-crescent",
       "first-quarter",
       "waxing-gibbous",
       "full",
       "waning-gibbous",
       "last-quarter",
       "waning-crescent"
      ]
     },
     "phaseName": {
      "type": "string"
     },
     "illumination": {
      "type": "number",
      "description": "Illuminated fraction of the disc, 0–1",
      "minimum": 0,
      "maximum": 1
     },
     "illuminationPercent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
     },
     "ageDays": {
      "type": "number",
      "description": "Days since the last new moon"
     },
     "cycleAngle": {
      "type": "number",
      "description": "0 new, 90 first quarter, 180 full, 270 last quarter"
     },
     "waxing": {
      "type": "boolean"
     },
     "nextNewMoon": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "nextFirstQuarter": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "nextFullMoon": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "nextLastQuarter": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "date",
     "at",
     "phase",
     "phaseName",
     "illumination",
     "illuminationPercent",
     "ageDays",
     "cycleAngle",
     "waxing",
     "nextNewMoon",
     "nextFirstQuarter",
     "nextFullMoon",
     "nextLastQuarter",
     "notes",
     "source"
    ],
    "additionalProperties": false
   },
   "PrayerTimes": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "lat": {
      "type": "number"
     },
     "lon": {
      "type": "number"
     },
     "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
     },
     "times": {
      "type": "object",
      "properties": {
       "fajr": {
        "anyOf": [
         {
          "type": "object",
          "properties": {
           "utc": {
            "type": "string",
            "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
           },
           "local": {
            "type": "string",
            "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
           }
          },
          "required": [
           "utc",
           "local"
          ],
          "additionalProperties": false
         },
         {
          "type": "null"
         }
        ]
       },
       "sunrise": {
        "anyOf": [
         {
          "type": "object",
          "properties": {
           "utc": {
            "type": "string",
            "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
           },
           "local": {
            "type": "string",
            "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
           }
          },
          "required": [
           "utc",
           "local"
          ],
          "additionalProperties": false
         },
         {
          "type": "null"
         }
        ]
       },
       "dhuhr": {
        "anyOf": [
         {
          "type": "object",
          "properties": {
           "utc": {
            "type": "string",
            "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
           },
           "local": {
            "type": "string",
            "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
           }
          },
          "required": [
           "utc",
           "local"
          ],
          "additionalProperties": false
         },
         {
          "type": "null"
         }
        ]
       },
       "asr": {
        "anyOf": [
         {
          "type": "object",
          "properties": {
           "utc": {
            "type": "string",
            "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
           },
           "local": {
            "type": "string",
            "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
           }
          },
          "required": [
           "utc",
           "local"
          ],
          "additionalProperties": false
         },
         {
          "type": "null"
         }
        ]
       },
       "maghrib": {
        "anyOf": [
         {
          "type": "object",
          "properties": {
           "utc": {
            "type": "string",
            "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
           },
           "local": {
            "type": "string",
            "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
           }
          },
          "required": [
           "utc",
           "local"
          ],
          "additionalProperties": false
         },
         {
          "type": "null"
         }
        ]
       },
       "isha": {
        "anyOf": [
         {
          "type": "object",
          "properties": {
           "utc": {
            "type": "string",
            "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
           },
           "local": {
            "type": "string",
            "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
           }
          },
          "required": [
           "utc",
           "local"
          ],
          "additionalProperties": false
         },
         {
          "type": "null"
         }
        ]
       }
      },
      "required": [
       "fajr",
       "sunrise",
       "dhuhr",
       "asr",
       "maghrib",
       "isha"
      ],
      "additionalProperties": false
     },
     "method": {
      "type": "object",
      "properties": {
       "id": {
        "type": "string",
        "enum": [
         "mwl",
         "umm-al-qura",
         "egyptian",
         "karachi",
         "isna"
        ]
       },
       "name": {
        "type": "string"
       },
       "fajrAngle": {
        "type": "number",
        "description": "Sun's depression angle at Fajr, degrees"
       },
       "ishaAngle": {
        "anyOf": [
         {
          "type": "number",
          "description": "Sun's depression angle at Isha, degrees"
         },
         {
          "type": "null"
         }
        ]
       },
       "ishaMinutesAfterMaghrib": {
        "anyOf": [
         {
          "type": "integer",
          "description": "Used instead of an angle (Umm al-Qura)"
         },
         {
          "type": "null"
         }
        ]
       },
       "ramadan": {
        "anyOf": [
         {
          "type": "boolean",
          "description": "Whether the date is in Ramadan (only relevant to Umm al-Qura)"
         },
         {
          "type": "null"
         }
        ]
       }
      },
      "required": [
       "id",
       "name",
       "fajrAngle",
       "ishaAngle",
       "ishaMinutesAfterMaghrib",
       "ramadan"
      ],
      "additionalProperties": false
     },
     "asr": {
      "type": "object",
      "properties": {
       "school": {
        "type": "string",
        "enum": [
         "standard",
         "hanafi"
        ]
       },
       "shadowFactor": {
        "type": "integer"
       }
      },
      "required": [
       "school",
       "shadowFactor"
      ],
      "additionalProperties": false
     },
     "highLatitudeApproximation": {
      "type": "boolean"
     },
     "polar": {
      "type": "boolean"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "methods": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     }
    },
    "required": [
     "date",
     "lat",
     "lon",
     "timeZone",
     "times",
     "method",
     "asr",
     "highLatitudeApproximation",
     "polar",
     "notes",
     "methods",
     "source"
    ],
    "additionalProperties": false
   },
   "Exchange": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "fullName": {
      "type": "string"
     },
     "city": {
      "type": "string"
     },
     "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
     },
     "region": {
      "type": "string",
      "enum": [
       "americas",
       "europe",
       "mea",
       "apac"
      ]
     },
     "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
     },
     "tradingDays": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "English weekday name",
       "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
       ]
      }
     },
     "open": {
      "type": "string",
      "description": "Regular session open, local time",
      "pattern": "^\\d{2}:\\d{2}$"
     },
     "close": {
      "type": "string",
      "description": "Regular session close, local time",
      "pattern": "^\\d{2}:\\d{2}$"
     },
     "lunchBreak": {
      "anyOf": [
       {
        "type": "object",
        "properties": {
         "start": {
          "type": "string",
          "description": "Local time",
          "pattern": "^\\d{2}:\\d{2}$"
         },
         "end": {
          "type": "string",
          "description": "Local time",
          "pattern": "^\\d{2}:\\d{2}$"
         }
        },
        "required": [
         "start",
         "end"
        ],
        "additionalProperties": false
       },
       {
        "type": "null"
       }
      ]
     },
     "closingAuction": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "sourceUrl": {
      "type": "string",
      "description": "The exchange's own page the hours were checked against"
     },
     "status": {
      "type": "object",
      "properties": {
       "state": {
        "type": "string",
        "description": "What the regular timetable says now",
        "enum": [
         "open",
         "lunch",
         "closed",
         "weekend"
        ]
       },
       "isOpen": {
        "type": "boolean"
       },
       "localTime": {
        "type": "string",
        "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
       },
       "nextEvent": {
        "type": "object",
        "properties": {
         "kind": {
          "type": "string",
          "enum": [
           "open",
           "close",
           "lunch-start",
           "lunch-end"
          ]
         },
         "at": {
          "type": "string",
          "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
         },
         "local": {
          "type": "string",
          "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
         }
        },
        "required": [
         "kind",
         "at",
         "local"
        ],
        "additionalProperties": false
       },
       "nextOpen": {
        "type": "string",
        "description": "Next time trading starts or resumes",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
       },
       "nextClose": {
        "type": "string",
        "description": "Next end-of-day close",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
       }
      },
      "required": [
       "state",
       "isOpen",
       "localTime",
       "nextEvent",
       "nextOpen",
       "nextClose"
      ],
      "additionalProperties": false
     }
    },
    "required": [
     "id",
     "name",
     "fullName",
     "city",
     "country",
     "region",
     "timeZone",
     "tradingDays",
     "open",
     "close",
     "lunchBreak",
     "closingAuction",
     "sourceUrl",
     "status"
    ],
    "additionalProperties": false
   },
   "Weather": {
    "type": "object",
    "properties": {
     "location": {
      "type": "object",
      "properties": {
       "lat": {
        "type": "number",
        "description": "Latitude used, snapped to the 0.1° grid (about 11 km)"
       },
       "lon": {
        "type": "number",
        "description": "Longitude used, snapped to the 0.1° grid (about 11 km)"
       },
       "elevation": {
        "anyOf": [
         {
          "type": "number",
          "description": "Height of the forecast point above sea level in metres (MET Norway's terrain model)"
         },
         {
          "type": "null"
         }
        ]
       },
       "name": {
        "anyOf": [
         {
          "type": "string",
          "description": "City name when the request named a city"
         },
         {
          "type": "null"
         }
        ]
       },
       "country": {
        "anyOf": [
         {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code",
          "pattern": "^[A-Z]{2}$"
         },
         {
          "type": "null"
         }
        ]
       },
       "timeZone": {
        "type": "string",
        "description": "Zone of the \"local\" times and of the daily grouping"
       }
      },
      "required": [
       "lat",
       "lon",
       "elevation",
       "name",
       "country",
       "timeZone"
      ],
      "additionalProperties": false
     },
     "updated": {
      "type": "string",
      "description": "When MET Norway last updated this forecast",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "expires": {
      "type": "string",
      "description": "Until when this forecast is reused (MET Norway's Expires, at least 10 minutes)",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "current": {
      "type": "object",
      "properties": {
       "time": {
        "type": "string",
        "description": "Start of the forecast step describing now",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
       },
       "local": {
        "type": "string",
        "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
       },
       "temperature": {
        "anyOf": [
         {
          "type": "number",
          "description": "Air temperature, °C"
         },
         {
          "type": "null"
         }
        ]
       },
       "symbol": {
        "anyOf": [
         {
          "type": "string",
          "description": "MET Norway weather symbol code for the next hour, e.g. partlycloudy_day"
         },
         {
          "type": "null"
         }
        ]
       },
       "windSpeed": {
        "anyOf": [
         {
          "type": "number",
          "description": "Wind speed, m/s"
         },
         {
          "type": "null"
         }
        ]
       },
       "windDirection": {
        "anyOf": [
         {
          "type": "number",
          "description": "Direction the wind blows from, degrees (0 = north, 90 = east)"
         },
         {
          "type": "null"
         }
        ]
       },
       "humidity": {
        "anyOf": [
         {
          "type": "number",
          "description": "Relative humidity, %"
         },
         {
          "type": "null"
         }
        ]
       },
       "cloudCover": {
        "anyOf": [
         {
          "type": "number",
          "description": "Cloud area fraction, %"
         },
         {
          "type": "null"
         }
        ]
       },
       "pressure": {
        "anyOf": [
         {
          "type": "number",
          "description": "Air pressure at sea level, hPa"
         },
         {
          "type": "null"
         }
        ]
       },
       "precipitationNextHour": {
        "anyOf": [
         {
          "type": "number",
          "description": "Precipitation expected in the next hour, mm"
         },
         {
          "type": "null"
         }
        ]
       }
      },
      "required": [
       "time",
       "local",
       "temperature",
       "symbol",
       "windSpeed",
       "windDirection",
       "humidity",
       "cloudCover",
       "pressure",
       "precipitationNextHour"
      ],
      "additionalProperties": false
     },
     "hourly": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "time": {
         "type": "string",
         "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
        },
        "local": {
         "type": "string",
         "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
        },
        "temperature": {
         "anyOf": [
          {
           "type": "number",
           "description": "°C"
          },
          {
           "type": "null"
          }
         ]
        },
        "symbol": {
         "anyOf": [
          {
           "type": "string",
           "description": "Weather symbol code for that hour"
          },
          {
           "type": "null"
          }
         ]
        },
        "windSpeed": {
         "anyOf": [
          {
           "type": "number",
           "description": "m/s"
          },
          {
           "type": "null"
          }
         ]
        },
        "windDirection": {
         "anyOf": [
          {
           "type": "number",
           "description": "Degrees the wind blows from"
          },
          {
           "type": "null"
          }
         ]
        },
        "precipitation": {
         "anyOf": [
          {
           "type": "number",
           "description": "Precipitation during that hour, mm"
          },
          {
           "type": "null"
          }
         ]
        },
        "humidity": {
         "anyOf": [
          {
           "type": "number",
           "description": "%"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "required": [
        "time",
        "local",
        "temperature",
        "symbol",
        "windSpeed",
        "windDirection",
        "precipitation",
        "humidity"
       ],
       "additionalProperties": false
      },
      "description": "Up to 24 hourly steps from the current hour on"
     },
     "daily": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "date": {
         "type": "string",
         "description": "Local date in location.timeZone",
         "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "min": {
         "type": "number",
         "description": "Lowest forecast temperature of the date still ahead, °C"
        },
        "max": {
         "type": "number",
         "description": "Highest forecast temperature of the date still ahead, °C"
        },
        "symbol": {
         "anyOf": [
          {
           "type": "string",
           "description": "Weather symbol code of the period nearest local noon"
          },
          {
           "type": "null"
          }
         ]
        },
        "precipitation": {
         "anyOf": [
          {
           "type": "number",
           "description": "Total precipitation of the forecast periods starting that date, mm"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "required": [
        "date",
        "min",
        "max",
        "symbol",
        "precipitation"
       ],
       "additionalProperties": false
      },
      "description": "Up to 7 local dates, today first"
     },
     "units": {
      "type": "object",
      "properties": {
       "temperature": {
        "type": "string",
        "const": "celsius"
       },
       "windSpeed": {
        "type": "string",
        "const": "m/s"
       },
       "windDirection": {
        "type": "string",
        "const": "degrees"
       },
       "precipitation": {
        "type": "string",
        "const": "mm"
       },
       "humidity": {
        "type": "string",
        "const": "%"
       },
       "cloudCover": {
        "type": "string",
        "const": "%"
       },
       "pressure": {
        "type": "string",
        "const": "hPa"
       }
      },
      "required": [
       "temperature",
       "windSpeed",
       "windDirection",
       "precipitation",
       "humidity",
       "cloudCover",
       "pressure"
      ],
      "additionalProperties": false
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "sourceUrl": {
      "type": "string"
     },
     "attribution": {
      "type": "string",
      "description": "Credit line to show with the data"
     },
     "license": {
      "type": "string"
     },
     "licenseUrl": {
      "type": "string"
     }
    },
    "required": [
     "location",
     "updated",
     "expires",
     "current",
     "hourly",
     "daily",
     "units",
     "notes",
     "source",
     "sourceUrl",
     "attribution",
     "license",
     "licenseUrl"
    ],
    "additionalProperties": false
   },
   "MarketHours": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "exchange": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "count": {
      "type": "integer"
     },
     "exchanges": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Exchange"
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "at",
     "exchange",
     "count",
     "exchanges",
     "notes",
     "source",
     "lastUpdated"
    ],
    "additionalProperties": false
   },
   "WidgetTemplate": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "Template id: the value of the \"template\" parameter",
      "pattern": "^[a-z0-9-]+$"
     },
     "names": {
      "type": "object",
      "description": "Display name in each language of the site",
      "properties": {
       "en": {
        "type": "string"
       },
       "ar": {
        "type": "string"
       },
       "fr": {
        "type": "string"
       },
       "es": {
        "type": "string"
       }
      },
      "required": [
       "en",
       "ar",
       "fr",
       "es"
      ],
      "additionalProperties": false
     },
     "category": {
      "type": "string",
      "enum": [
       "analog",
       "digital",
       "advanced"
      ]
     },
     "engine": {
      "type": "string",
      "description": "Rendering engine the template uses",
      "enum": [
       "text",
       "segment",
       "flip",
       "analog",
       "rings",
       "zones",
       "sun",
       "hijri"
      ]
     },
     "width": {
      "type": "integer",
      "description": "Natural iframe width in CSS pixels"
     },
     "height": {
      "type": "integer",
      "description": "Natural iframe height in CSS pixels"
     },
     "defaults": {
      "type": "object",
      "description": "Values used when the parameter is absent",
      "properties": {
       "theme": {
        "type": "string",
        "enum": [
         "auto",
         "light",
         "dark"
        ]
       },
       "seconds": {
        "type": "boolean"
       },
       "date": {
        "type": "boolean"
       },
       "weekday": {
        "type": "boolean"
       },
       "abbr": {
        "type": "boolean"
       },
       "offset": {
        "type": "boolean"
       },
       "flag": {
        "type": "boolean"
       },
       "transparent": {
        "type": "boolean"
       },
       "font": {
        "type": "string"
       },
       "radius": {
        "type": "integer"
       },
       "border": {
        "type": "integer"
       },
       "shadow": {
        "type": "integer"
       },
       "zones": {
        "type": "array",
        "items": {
         "type": "string"
        },
        "description": "City slugs of the extra places a multi-zone template starts with"
       }
      },
      "required": [
       "theme",
       "seconds",
       "date",
       "weekday",
       "abbr",
       "offset",
       "flag",
       "transparent",
       "font",
       "radius",
       "border",
       "shadow",
       "zones"
      ],
      "additionalProperties": false
     },
     "supports": {
      "type": "object",
      "properties": {
       "seconds": {
        "type": "boolean",
        "description": "The design can show seconds"
       },
       "extraZones": {
        "type": "integer",
        "description": "How many extra places it can show (0 = single zone)"
       },
       "coordinates": {
        "type": "boolean",
        "description": "Uses latitude/longitude for real sunrise and sunset"
       }
      },
      "required": [
       "seconds",
       "extraZones",
       "coordinates"
      ],
      "additionalProperties": false
     },
     "embedUrl": {
      "type": "string",
      "description": "Example address of the widget, to be placed in an iframe"
     },
     "studioUrl": {
      "type": "string",
      "description": "The same configuration opened in the visual editor"
     }
    },
    "required": [
     "id",
     "names",
     "category",
     "engine",
     "width",
     "height",
     "defaults",
     "supports",
     "embedUrl",
     "studioUrl"
    ],
    "additionalProperties": false
   },
   "WidgetParameter": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "description": "Query parameter name"
     },
     "type": {
      "type": "string",
      "enum": [
       "string",
       "boolean",
       "integer",
       "number",
       "color",
       "enum"
      ]
     },
     "description": {
      "type": "string"
     },
     "values": {
      "anyOf": [
       {
        "type": "array",
        "items": {
         "type": "string"
        },
        "description": "Allowed values, for enum and boolean parameters"
       },
       {
        "type": "null"
       }
      ]
     },
     "minimum": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "maximum": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "appliesTo": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "clock",
        "countdown",
        "calendar",
        "stopwatch",
        "timer",
        "worldclock",
        "prayer",
        "holidays",
        "converter",
        "sun"
       ]
      },
      "description": "Embed pages that read the parameter"
     }
    },
    "required": [
     "name",
     "type",
     "description",
     "values",
     "minimum",
     "maximum",
     "appliesTo"
    ],
    "additionalProperties": false
   },
   "WidgetKind": {
    "type": "object",
    "properties": {
     "type": {
      "type": "string",
      "description": "Widget type: its embed page is /embed/<type>/",
      "enum": [
       "countdown",
       "calendar",
       "stopwatch",
       "timer",
       "worldclock",
       "prayer",
       "holidays",
       "converter",
       "sun"
      ]
     },
     "element": {
      "type": "string",
      "description": "Custom element defined by /widget.js"
     },
     "embedUrl": {
      "type": "string",
      "description": "Address of the widget page with every option at its default"
     },
     "defaultTemplate": {
      "type": "string",
      "description": "Design used when \"template\" is absent"
     },
     "templates": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string",
         "description": "Design id: the value of the \"template\" parameter",
         "pattern": "^[a-z0-9-]+$"
        },
        "names": {
         "type": "object",
         "description": "Display name in each language of the site",
         "properties": {
          "en": {
           "type": "string"
          },
          "ar": {
           "type": "string"
          },
          "fr": {
           "type": "string"
          },
          "es": {
           "type": "string"
          }
         },
         "required": [
          "en",
          "ar",
          "fr",
          "es"
         ],
         "additionalProperties": false
        },
        "width": {
         "type": "integer",
         "description": "Natural iframe width in CSS pixels"
        },
        "height": {
         "type": "integer",
         "description": "Natural iframe height in CSS pixels"
        },
        "embedUrl": {
         "type": "string",
         "description": "Example address of the widget, to be placed in an iframe"
        },
        "studioUrl": {
         "type": "string",
         "description": "The same configuration opened in the visual editor"
        }
       },
       "required": [
        "id",
        "names",
        "width",
        "height",
        "embedUrl",
        "studioUrl"
       ],
       "additionalProperties": false
      }
     }
    },
    "required": [
     "type",
     "element",
     "embedUrl",
     "defaultTemplate",
     "templates"
    ],
    "additionalProperties": false
   },
   "WidgetTemplates": {
    "type": "object",
    "properties": {
     "category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "count": {
      "type": "integer"
     },
     "templates": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WidgetTemplate"
      }
     },
     "widgets": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WidgetKind"
      },
      "description": "The widgets that are not clocks, with their designs"
     },
     "parameters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/WidgetParameter"
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
     },
     "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
     },
     "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     }
    },
    "required": [
     "category",
     "count",
     "templates",
     "widgets",
     "parameters",
     "notes",
     "source",
     "lastUpdated"
    ],
    "additionalProperties": false
   }
  },
  "securitySchemes": {
   "ApiKeyHeader": {
    "type": "apiKey",
    "in": "header",
    "name": "X-API-Key",
    "description": "A ClockCrest API key (cc_live_…) from https://clockcrest.com/developers/dashboard/."
   },
   "BearerKey": {
    "type": "http",
    "scheme": "bearer",
    "description": "The same API key sent as Authorization: Bearer cc_live_…."
   }
  }
 }
}
