Reference data
Public holiday calendar for a country, paid per call over x402 (same data is free at /v1/{country}/public-holidays)
The same cited payload as GET /v1/{country}/public-holidays, sold per call so x402 agents and indexes (Coinbase Bazaar) can discover and pay for it like any other resource. Optional ?year=YYYY filters to one calendar year. Website visitors and anyone happy with the free route should use /v1/{country}/public-holidays, which stays free.
get/v1/holidays/{country}
Request
- Base URL: https://afriref.dev
- URL: https://afriref.dev/v1/holidays/{country}
- Auth: one of:
- API key in header PAYMENT-SIGNATURE
- API key in header X-PAYMENT
- API key in header X-API-Key
Path parameters
country'ao' | 'bf' | 'bj' | 'bw' | 'cd' | 'cf' | 'cg' | 'ci' | 'cm' | 'dz' | 'eg' | 'et' | 'ga' | 'gh' | 'gq' | 'ke' | 'ls' | 'ma' | 'ml' | 'mu' | 'mz' | 'na' | 'ne' | 'ng' | 'rw' | 'sn' | 'sz' | 'td' | 'tg' | 'tn' | 'tz' | 'ug' | 'za' | 'zm' required
Example:ao
Query parameters
yearstring
Response
Holiday calendar, plus subdivisions where the country has regions
Changes
No recorded changes to this operation across all 3 revisions of this API.