Calendar public holidays API

Use the Calendar public holidays API to retrieve model identification, holiday dates, geographic references and record identities and titles as structured JSON from Calendar. Supply country in the query; optionally select year, category and calendar period to set the requested scope. Use these results to organize public-holiday dates and account for local calendar rules when preparing a schedule. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Country: ISO code or English name. See /calendar/v1/holiday-countries.
Optional parameters (12)
Year (default this year). For several years use `years`, or `from`/`to` for a date range.
State, province or region code (e.g. `TX`, `BY`, `ENG`) to add its own holidays to the national ones.
Holiday category: `public` (default) or the country's others, e.g. `bank`, `government`, `optional`, `school`, `unofficial`; comma-separated or `all`.
Only this month (1-12).
Several years instead of `year`: comma-separated and/or ranges, e.g. `2025,2026` or `2025-2027` (up to 11 years).
Start of a date range (YYYY-MM-DD), instead of `year`; without `to`, up to the end of that year.
End of a date range (YYYY-MM-DD), inclusive; without `from`, from the start of that year.
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

{
  "attribution": "Holidays: the open-source holidays project (github.com/vacanza/holidays, MIT)",
  "cached": false,
  "categories": [
    "public"
  ],
  "count": 12,
  "country": "United States",
  "country_code": "US",
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:20:12.488Z",
  "holidays": [
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-01-01",
      "day_of_week": "Thursday",
      "local_name": "New Year's Day",
      "name": "New Year's Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "public"
      ],
      "country_code": "US",
      "date": "2026-01-19",
      "day_of_week": "Monday",
      "local_name": "Martin Luther King Jr. Day",
      "name": "Martin Luther King Jr. Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-02-16",
      "day_of_week": "Monday",
      "local_name": "Washington's Birthday",
      "name": "Washington's Birthday",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-05-25",
      "day_of_week": "Monday",
      "local_name": "Memorial Day",
      "name": "Memorial Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-06-19",
      "day_of_week": "Friday",
      "local_name": "Juneteenth National Independence Day",
      "name": "Juneteenth National Independence Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-07-03",
      "day_of_week": "Friday",
      "local_name": "Independence Day (observed)",
      "name": "Independence Day (observed)",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-07-04",
      "day_of_week": "Saturday",
      "local_name": "Independence Day",
      "name": "Independence Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-09-07",
      "day_of_week": "Monday",
      "local_name": "Labor Day",
      "name": "Labor Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-10-12",
      "day_of_week": "Monday",
      "local_name": "Columbus Day",
      "name": "Columbus Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-11-11",
      "day_of_week": "Wednesday",
      "local_name": "Veterans Day",
      "name": "Veterans Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-11-26",
      "day_of_week": "Thursday",
      "local_name": "Thanksgiving Day",
      "name": "Thanksgiving Day",
      "national": true,
      "subdivisions": null
    },
    {
      "categories": [
        "government",
        "public"
      ],
      "country_code": "US",
      "date": "2026-12-25",
      "day_of_week": "Friday",
      "local_name": "Christmas Day",
      "name": "Christmas Day",
      "national": true,
      "subdivisions": null
    }
  ],
  "month": null,
  "subdivision": null,
  "year": 2026
}

Response result

Response structure

Inferred from examples
  • attributionstring
  • cachedboolean
  • categoriesstring[]
  • countinteger
  • countrystring
  • country_codestring
  • credits_usedinteger
  • fetched_atstring
  • holidaysobject[]
    • categoriesstring[]
    • country_codestring
    • datestring
    • day_of_weekstring
    • local_namestring
    • namestring
    • nationalboolean
    • subdivisionsnull
  • monthnull
  • subdivisionnull
  • yearinteger

Loading related APIs…

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Calendar public holidays API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.