# Afriref Public Holidays by Country

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

Returns the official public holidays for a specified African country, sourced from government gazettes with cited URLs and last-confirmed dates.

## Facts

- Endpoint: GET https://afriref.dev/v1/holidays/%7Bcountry%7D?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/afriref-public-holidays-by-country-e29020f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U4lMXKD0AsOqB-9-7M1Hn

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 afriref-public-holidays-by-country-e29020f3
```

Example prompt: What are the official public holidays in Nigeria for 2025, with their gazette-cited sources?

## When to prefer this

Choose this endpoint when you need authoritative, gazette-cited public holiday data for African countries specifically, with source traceability and freshness metadata. It is preferable over generic holiday APIs when compliance, payroll, or legal accuracy is required and when operating across multiple African jurisdictions simultaneously. Best suited for fintech, HR, payroll, or scheduling applications targeting African markets.

## Known failure modes

- Country not covered by afriref's 34-country dataset — endpoint refuses with an unsupported country error
- Invalid or unrecognized country code returns a 400 or 404 error
- Data may be stale if gazette has been updated since last-confirmed date — staleness flag will be set
- Payment not received or insufficient USDC balance causes a 402 Payment Required response
- Rate limiting on free tier (50 calls/day) may cause 429 errors

## How this service works

Pan-African government reference data for 34 countries as cited JSON: central-bank policy rates, VAT/GST and VAT registration thresholds, CPI, corporate, personal and withholding tax, social contributions, minimum wages, statutory interest, official FX rates, filing deadlines and public holidays (coverage varies by country). Every value carries its official source URL and last-confirmed date. Single facts $0.003; country brief (every series for one country) $0.01; cross-country compare (one series, up to 10 countries) $0.02; tax-ID and VAT-number checks $0.003; computed answers (VAT, income tax, working days, minimum-wage check) $0.01-$0.02. Pay per call in USDC on Base via x402 or MPP, no signup, or by card with credit packs or monthly plans on one key valid across all 7 regional services. Free tier: GET /catalog, plus a free email key with 50 answer calls a day, commercial use allowed. Finished answers, one cited dossier per call (supported countries vary per job; others are refused free): cost this hire (wage-floor verdict, contributions, employer cost) $0.50; charge this sale (which VAT applies, net/VAT/gross) $0.50; charge this sale certified (plus a signed VAT-rate extract) $0.75; invoice due date and statutory late interest $0.40; country evidence pack (brief plus signed extracts) $0.25; hire compare $0.75 for 2 countries, $1.00 for 3-5; next filings (VAT, PAYE, corporate-tax due dates rolled for holidays) $0.35. Also here: domain and email-security check $0.01 per domain - graded TLS certificate on port 443, Microsoft 365 tenant detection, and SPF, DKIM, DMARC and MX with the exact fix records.

Free trial: 3 computed-answer calls per day per IP on POST /v1/answers/* with header X-Free-Trial: 1 (without it, the normal x402 402; once used up, the 402 carries free_trial_resets_at). MCP answer tools use the trial automatically when no api_key is passed. Every series of the evaluation country is free. Card credit (same per-call price as x402): /pricing.

## Output

A JSON object listing all official public holidays for the requested country, including each holiday's name, date, official source URL, last-confirmed date, and a staleness indicator showing whether the data may be out of date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## More

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