# Market and Holiday Calendar – Public Holidays by Country and Year

> Market and Holiday Calendar – Public Holidays by Country and Year is a paid API for AI agents from market-calendar.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Returns all public holidays for a given country and year, including holiday names, dates, weekdays, regional scope, and holiday types.

## Facts

- Endpoint: GET https://market-calendar.x402tookit.com/public-holidays?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-and-holiday-calendar-public-holidays-by-country-and-year-e112f4bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GZQHhovK-UKH6ufDKAOjt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability market-and-holiday-calendar-public-holidays-by-country-and-year-e112f4bd
```

Example prompt: Can you pull the full list of public holidays in Germany for 2025, including which ones are regional-only and what day of the week they fall on?

## When to prefer this

Use this endpoint when you need a comprehensive, structured list of all public holidays for a country in a given year — especially when you need regional vs. nationwide distinction and weekday information. Prefer this over a single-date holiday lookup when you need the full annual calendar for scheduling, compliance, or planning workflows. Covers ~100 countries from 1990 to 2100.

## Known failure modes

- Invalid or unsupported 2-letter country code returns an error or empty holiday list
- Year outside the 1990–2100 range may return an error or no results
- Some countries may have incomplete regional holiday data, flagged via the degraded boolean
- Missing required query parameters (country or year) will result in a 400-level error
- Data may reflect the source provider's last update and not real-time legislative changes

## How this service works

Public holidays for a country and year (about 100 countries), flagging regional-only holidays and weekday of each.

## Output

A JSON object containing: a list of holiday entries each with date (YYYY-MM-DD), English name, local name, weekday name, array of holiday types, array of applicable regions, and a boolean indicating if it is nationwide. Also includes a count of holidays, the country code, year, data source name and URL, optional summary/verdict fields, and a degraded-mode flag if data quality is reduced.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country",
      "year"
     ],
     "properties": {
      "year": {
       "type": "integer",
       "description": "Year, 1990 to 2100"
      },
      "country": {
       "type": "string",
       "description": "2-letter country code, e.g. US, GB, DE"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "year": {
       "type": [
        "null",
        "number"
       ]
      },
      "count": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "holidays": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": [
           "null",
           "string"
          ]
         },
         "name": {
          "type": [
           "null",
           "string"
          ]
         },
         "types": {
          "type": [
           "array",
           "null"
          ],
          "items": {
           "type": "string"
          }
         },
         "regions": {
          "type": [
           "array",
           "null"
          ],
          "items": {
           "type": "string"
          }
         },
         "weekday": {
          "type"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-and-holiday-calendar-public-holidays-by-country-and-year-e112f4bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market-calendar.x402tookit.com](https://www.zero.xyz/host/market-calendar.x402tookit.com/llms.txt)
