# Latamref Public Holidays by Country

> Latamref Public Holidays by Country is a paid API for AI agents from latamref.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-23).

Returns official public holidays for a Latin American country, cited to government/gazette sources, with optional year filtering.

## Facts

- Endpoint: GET https://latamref.dev/v1/holidays/:country?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/latamref-public-holidays-by-country-750397bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0XRbSwAAiLzC-ahxcPloS

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 latamref-public-holidays-by-country-750397bb
```

Example prompt: What are all the official public holidays in Brazil for 2025, with their government gazette sources?

## When to prefer this

Use this endpoint when you need authoritative, gazette-cited public holiday data for Latin American countries, particularly for compliance-sensitive use cases such as payroll, labor law, or working-day calculations where source provenance and last_confirmed freshness matter. Prefer this over generic global holiday APIs when LatAm accuracy and official citations are required.

## Known failure modes

- Invalid or unsupported country code returns an error or empty result
- Country not yet covered by the service returns no data
- Stale data if last_confirmed is old and gazette has been updated since
- Malformed year query parameter may be ignored or return full dataset
- Network or upstream errors returning 4xx/5xx HTTP responses

## How this service works

Latin American public holidays by country, cited to the official gazette or government source: date, name, source URL, last_confirmed. ?year=YYYY to filter. GET /v1/holidays/{country}, e.g. /v1/holidays/br.

## Output

Returns a list of public holiday objects for the requested country (and optionally year), each containing the date, official holiday name, source URL pointing to the government gazette or official source, and a last_confirmed timestamp indicating data freshness.

## 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",
     "properties": {},
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latamref-public-holidays-by-country-750397bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from latamref.dev](https://www.zero.xyz/host/latamref.dev/llms.txt)
