# Public Holidays by Country and Year

> Public Holidays by Country and Year is a paid API for AI agents from biosfera.46-62-215-147.sslip.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-28).

Returns official public holidays for a given country and year, including dates, local and English names, nationwide vs regional scope, and whether today is a holiday.

## Facts

- Endpoint: GET https://biosfera.46-62-215-147.sslip.io/o/public-holidays?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-by-country-and-year-8697efa2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_li5JbrdQ42FPqB_rJSlr2

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 public-holidays-by-country-and-year-8697efa2
```

Example prompt: What are all the official public holidays in Brazil (BR) for 2025, including whether they're nationwide or only in certain regions?

## When to prefer this

Use this endpoint when you need structured, machine-readable public holiday data for a specific country and year, especially when you also need regional vs. nationwide distinction or a real-time check for whether today is a holiday. Prefer it over scraping government websites or using general-purpose search when you need reliable, consistent data across many countries.

## Known failure modes

- Invalid or unsupported ISO 3166-1 alpha-2 country code returns an error
- Year outside the supported range (1975–2075) is rejected
- Missing required 'country' query parameter returns a validation error
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Use when you need the official public holidays of a country (ISO 3166-1 alpha-2 code, e.g. BR, US, DE) for a given year: date, local and English names, whether nationwide, and which regions if not. Also says whether today is a holiday there.

## Output

A list of public holidays for the requested country and year, each with the date, local-language name, English name, a flag indicating whether it is nationwide, and the list of regions if it is not nationwide. Also includes a boolean indicating whether today is a holiday in that country.

## 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"
     ],
     "properties": {
      "year": {
       "type": "integer",
       "maximum": 2075,
       "minimum": 1975
      },
      "country": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-by-country-and-year-8697efa2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from biosfera.46-62-215-147.sslip.io](https://www.zero.xyz/host/biosfera.46-62-215-147.sslip.io/llms.txt)
