OpenAny
Get API keyAPI Key
APIData

calendar logo
Calendar Holidays API

Get Calendar Holidays data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as country, output, raw, and retrieve structured data including resolved country code, holiday date, holiday name, local holiday label, and holiday category labels for calendar context, and follow-up calculations, ready for production pipelines and AI agent automation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Calendar Holidays API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Calendar Holidays API

Calendar Holidays API

country is required. year defaults to this year; years accepts comma-separated years or ranges for up to 11 years. Alternatively use inclusive from/to date bounds, with an omitted bound extending to that year’s start or end. subdivision adds regional holidays and category defaults to public; month narrows 1–12.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required: country. Optional: year, subdivision, category, month, years, from, to. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · Calendar public holidays API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Calendar context: Retain the requested date range and returned source context when displaying calendar information.
  • Follow-up calculations: Use explicit source conventions and the returned identifiers or dates when planning a follow-up calculation.

Returned Data

Field Meaning
country_code Resolved country code
holidays[].date Holiday date
holidays[].name Holiday name
holidays[].local_name Local holiday label
holidays[].categories Holiday category labels
holidays[].national National-scope flag

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/calendar/v1/holidays \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode country=US \
  --data-urlencode output=json \
  --data-urlencode raw=0 \
  --data-urlencode year=2026

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published Calendar Holidays API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

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

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
Calendar public holidays API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/calendar/v1/holidays
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
countryURL query parametersquerystringYes

Country: ISO code or English name. See /calendar/v1/holiday-countries.

yearURL query parametersqueryintegerNo

Year (default this year). For several years use `years`, or `from`/`to` for a date range.

subdivisionURL query parametersquerystringNo

State, province or region code (e.g. `TX`, `BY`, `ENG`) to add its own holidays to the national ones.

categoryURL query parametersquerystringNo

Holiday category: `public` (default) or the country's others, e.g. `bank`, `government`, `optional`, `school`, `unofficial`; comma-separated or `all`.

monthURL query parametersqueryintegerNo

Only this month (1-12).

yearsURL query parametersquerystringNo

Several years instead of `year`: comma-separated and/or ranges, e.g. `2025,2026` or `2025-2027` (up to 11 years).

fromURL query parametersquerystringNo

Start of a date range (YYYY-MM-DD), instead of `year`; without `to`, up to the end of that year.

toURL query parametersquerystringNo

End of a date range (YYYY-MM-DD), inclusive; without `from`, from the start of that year.

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

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

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits used$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 13

    Review these request fields before running. Keep the published provider and request method unchanged.

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

    Sample response · Documented HTTP 200

    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
    }

Common questions

Can I request several years?

Use years with comma-separated years or ranges, covering up to 11 years.

Are from and to inclusive?

to is inclusive; with one bound omitted, the range extends to that year’s start or end as documented.

How do I include regional holidays?

Set subdivision using the country’s supported code.

Does every returned category mean a mandatory day off?

Categories identify source holiday types; retain category and regional context rather than treating every entry as the same closure rule.

How do I bypass cached results?

Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or set output=json.

Use Calendar Holidays API with your agent

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