Calendar long weekends API

Use the Calendar long weekends API to retrieve model identification, weekend definitions, holiday dates and geographic references as structured JSON from Calendar. Supply country in the query; optionally select year and category 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.
Optional parameters (10)
Year (default this year).
State or region code, to include its holidays.
Holiday categories (default public).
Shortest break to list (default 3).
0 = leave out breaks that need a bridge day (default 1).
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,
  "count": 6,
  "country_code": "DE",
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:20:12.591Z",
  "include_bridges": true,
  "long_weekends": [
    {
      "bridge_days": [
        "2026-01-02"
      ],
      "day_count": 4,
      "end_date": "2026-01-04",
      "end_day_of_week": "Sunday",
      "holidays": [
        {
          "date": "2026-01-01",
          "name": "New Year's Day"
        }
      ],
      "needs_bridge_day": true,
      "start_date": "2026-01-01",
      "start_day_of_week": "Thursday"
    },
    {
      "bridge_days": [],
      "day_count": 4,
      "end_date": "2026-04-06",
      "end_day_of_week": "Monday",
      "holidays": [
        {
          "date": "2026-04-03",
          "name": "Good Friday"
        },
        {
          "date": "2026-04-06",
          "name": "Easter Monday"
        }
      ],
      "needs_bridge_day": false,
      "start_date": "2026-04-03",
      "start_day_of_week": "Friday"
    },
    {
      "bridge_days": [],
      "day_count": 3,
      "end_date": "2026-05-03",
      "end_day_of_week": "Sunday",
      "holidays": [
        {
          "date": "2026-05-01",
          "name": "Labor Day"
        }
      ],
      "needs_bridge_day": false,
      "start_date": "2026-05-01",
      "start_day_of_week": "Friday"
    },
    {
      "bridge_days": [
        "2026-05-15"
      ],
      "day_count": 4,
      "end_date": "2026-05-17",
      "end_day_of_week": "Sunday",
      "holidays": [
        {
          "date": "2026-05-14",
          "name": "Ascension Day"
        }
      ],
      "needs_bridge_day": true,
      "start_date": "2026-05-14",
      "start_day_of_week": "Thursday"
    },
    {
      "bridge_days": [],
      "day_count": 3,
      "end_date": "2026-05-25",
      "end_day_of_week": "Monday",
      "holidays": [
        {
          "date": "2026-05-25",
          "name": "Whit Monday"
        }
      ],
      "needs_bridge_day": false,
      "start_date": "2026-05-23",
      "start_day_of_week": "Saturday"
    },
    {
      "bridge_days": [],
      "day_count": 3,
      "end_date": "2026-12-27",
      "end_day_of_week": "Sunday",
      "holidays": [
        {
          "date": "2026-12-25",
          "name": "Christmas Day"
        },
        {
          "date": "2026-12-26",
          "name": "Second Day of Christmas"
        }
      ],
      "needs_bridge_day": false,
      "start_date": "2026-12-25",
      "start_day_of_week": "Friday"
    }
  ],
  "min_days": 3,
  "subdivision": null,
  "weekend": [
    "Saturday",
    "Sunday"
  ],
  "year": 2026
}

Response result

Response structure

Inferred from examples
  • attributionstring
  • cachedboolean
  • countinteger
  • country_codestring
  • credits_usedinteger
  • fetched_atstring
  • include_bridgesboolean
  • long_weekendsobject[]
    • bridge_daysstring[]
    • day_countinteger
    • end_datestring
    • end_day_of_weekstring
    • holidaysobject[]
      • datestring
      • namestring
    • needs_bridge_dayboolean
    • start_datestring
    • start_day_of_weekstring
  • min_daysinteger
  • subdivisionnull
  • weekendstring[]
  • yearinteger

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 long weekends API with your agent

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