# AGISHub Public Holiday Checker

> AGISHub Public Holiday Checker is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Check whether a given date is a public holiday in a specified country and return the holiday name if applicable.

## Facts

- Endpoint: POST https://api.agishub.com/paid/time-holiday
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-public-holiday-checker-df0a6eae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ke7J5ozUnJSc9BlOinssQ

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 agishub-public-holiday-checker-df0a6eae -d '<json body>'
```

Example prompt: Is July 4th 2025 a public holiday in the US? If so, what's it called?

## When to prefer this

Choose this endpoint when you need a quick, authoritative check on whether a specific date is a nationally recognized public holiday in a given country, especially in automated scheduling, payroll, compliance, or travel-planning workflows. Prefer it over manual calendar lookups or general-purpose date libraries when you need consistent, up-to-date, multi-country coverage via a simple API call.

## Known failure modes

- Invalid date format returns an error (must be YYYY-MM-DD)
- Unsupported or unrecognized country code returns an error or empty result
- Date far in the future may not be covered by the dataset
- Missing required parameters (date or country_code) returns a validation error
- Non-public-holiday observances or regional/state holidays may not be included

## How this service works

Check whether a given date is a public holiday in a country (identified by its ISO 3166-1 alpha-2 code), and return the holiday name if so. Backed by an authoritative public-holiday dataset.

## Output

A JSON response indicating whether the queried date is a public holiday in the given country, along with the name of the holiday if it is one. Typically includes fields such as is_holiday (boolean), holiday_name (string or null), date, and country_code.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "date",
      "country_code"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Date \"YYYY-MM-DD\"."
      },
      "country_code": {
       "type": "string",
       "description": "ISO country code, e.g. \"US\", \"ES\", \"IN\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-public-holiday-checker-df0a6eae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
