# 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-13).

Check whether a specific date is a public holiday in a given country and return the holiday name if it is

## Facts

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

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-c70ac4a1
```

Example prompt: Is July 4th 2025 a public holiday in the US, and if so what is it called?

## When to prefer this

Choose this endpoint when you need a simple, authoritative yes/no answer about whether a specific date is a public holiday in a particular country, along with the holiday name. Ideal for scheduling, payroll, or travel planning workflows where a single date + country lookup is needed rather than listing all holidays in a range.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns an error
- Unsupported or invalid ISO 3166-1 alpha-2 country code returns an error
- Date is not a holiday returns a negative/false result with no holiday name
- Missing required query parameters (date or country_code) returns a validation error

## 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 provided date is a public holiday in the specified country, along with the name of the holiday if applicable.

## 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": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "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
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Check whether a given date is a public holiday in a country (identified by its ISO 3166-1 alpha-2 code), and return the "
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-public-holiday-checker-c70ac4a1/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)
