# CoCo Holidays API

> CoCo Holidays API is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Returns a list of public holidays for a given country (and optionally year/subdivision) as structured JSON.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/holidays?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-holidays-api-76590b35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KBhiLIrLBNrzKI2rXWMkO

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 coco-holidays-api-76590b35
```

Example prompt: Can you pull up all the public holidays for the US in 2026 so I can plan around them?

## When to prefer this

Use this endpoint when you need a structured, machine-readable list of official public holidays for a specific country and year, especially for scheduling, payroll, compliance, or calendar automation tasks. It is ideal for lightweight lookup needs at low cost ($0.001 per call) without requiring a heavyweight calendar or HR platform integration.

## Known failure modes

- Unsupported or invalid country code returns an error or empty holiday list
- Invalid year format may cause a bad request response
- No subdivision filtering if the subdivision field is not supported for the requested country
- Response may not include regional/state-level holidays unless subdivision is specified

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the country code, year, optional subdivision, and an array of holiday objects each with a date (YYYY-MM-DD), holiday name, and day of the week.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "country": "US",
  "holidays": [
   {
    "date": "2026-01-01",
    "name": "New Year's Day",
    "weekday": "Thursday"
   },
   {
    "date": "2026-01-19",
    "name": "Martin Luther King Jr. Day",
    "weekday": "Monday"
   },
   {
    "date": "2026-02-16",
    "name": "Washington's Birthday",
    "weekday": "Monday"
   },
   {
    "date": "2026-05-25",
    "name": "Memorial Day",
    "weekday": "Monday"
   },
   {
    "date": "2026-06-19",
    "name": "Juneteenth National Independence Day",
    "weekday": "Friday"
   },
   {
    "date": "2026-07-03",
    "name": "Independence Day (observed)",
    "weekday": "Friday"
   },
   {
    "date": "2026-07-04",
    "name": "Independence Day",
    "weekday": "Saturday"
   },
   {
    "date": "2026-09-07",
    "name": "Labor Day",
    "weekday": "Monday"
   },
   {
    "date": "2026-10-12",
    "name": "Columbus Day",
    "weekday": "Monday"
   },
   {
    "date": "2026-11-11",
    "name": "Veterans Day",
    "weekday": "Wednesday"
   },
   {
    "date": "2026-11-26",
    "name": "Thanksgiving Day",
    "weekday": "Thursday"
   },
   {
    "date": "2026-12-25",
    "name": "Christmas Day",
    "weekday": "Friday"
   }
  ],
  "subdivision": null
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-holidays-api-76590b35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
