# quartermaster.surewhynot.app/v1/holiday

> quartermaster.surewhynot.app/v1/holiday is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks whether a given date is a public holiday in a specified country and returns the holiday name, types, and next upcoming holiday that year.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/holiday
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quartermaster-surewhynot-app-v1-holiday-92259582
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bJl0XDaU3gBDbRL1yRzvg

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 quartermaster-surewhynot-app-v1-holiday-92259582
```

Example prompt: Is July 4th 2025 a public holiday in the US? If so, what's the holiday name and type, and what's the next holiday coming up that year?

## When to prefer this

Use this endpoint when you need a quick, low-latency point-in-time check on whether a specific date is a public holiday in a particular country, and want the holiday name and type alongside the next upcoming holiday. Prefer this over calendar scraping or general-purpose web search when you need structured, programmatic holiday data for scheduling, compliance, or workflow automation.

## Known failure modes

- Invalid or unsupported country code returns an error or empty result
- Date format not matching YYYY-MM-DD pattern causes a validation error
- Date outside supported range may return no data
- Network or upstream data source unavailability causes a 5xx error
- Payment failure (x402) prevents the request from being processed

## How this service works

Is a date a public holiday in a country (2-letter ISO code)? Returns the holiday name, its types, and the next upcoming holiday that year.

## Output

Returns whether the queried date is a public holiday in the given country, including the holiday's name and category types (e.g. national, bank, observance), plus the next upcoming public holiday in that country for the same year.

## 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": {
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "YYYY-MM-DD (defaults to today, UTC)"
      },
      "country": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$",
       "description": "2-letter ISO 3166 country code"
      }
     }
    }
   },
   "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/quartermaster-surewhynot-app-v1-holiday-92259582/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
