{"uid":"cap_zjhETJn9hcYCaGX68-zyY","slug":"public-holidays-api-247-countries-4b66e1af","name":"Public Holidays API (247 Countries)","description":"Use when an agent needs all public holidays of a country for a year (planning deliveries, payments, deadlines, staffing). 247 countries, 2026-2028, optional state/province (region=) for regional holidays. English and local names, weekend days of the country, moon-dependent dates flagged as estimated. Bad input: HTTP 400 before payment, no charge.","url":"https://handelskalender-api.pages.dev/v1/public-holidays?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","required":["country"],"properties":{"year":{"type":"string","description":"Year, e.g. 2027. Optional, default: current year. Covered: 2026-2028."},"region":{"type":"string","description":"Optional state/province for regional holidays, e.g. BY or DE-BY (Bavaria), CA (California), 9 (Vienna). Listed per country in GET /v1/holiday-countries."},"country":{"type":"string","description":"2-letter ISO country code, e.g. AT, DE, US, GB, FR, JP, IN, BR, AE. 247 countries; free list: GET /v1/holiday-countries."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"note":"Statutory public holidays. Dates marked estimated depend on moon sighting or a later official decision and can shift by a day. Regional holidays only with region=.","year":2027,"count":13,"region":null,"source":"Public holidays from statutory rules as encoded in python-holidays (MIT licence, github.com/vacanza/holidays), data built 2026-11-02.","country":{"code":"AT","name":"Austria","weekend":["Sat","Sun"]},"regions":[],"holidays":[{"date":"2027-01-01","name":"New Year's Day","scope":"national","weekday":"Friday","estimated":false,"localName":"Neujahr"},{"date":"2027-10-26","name":"National Day","scope":"national","weekday":"Tuesday","estimated":false,"localName":"Nationalfeiertag"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_buae6IwmHEMTn4jWrhA3o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns statutory public holidays for a given country and year, with optional regional filtering, including holiday names, dates, and estimated flags.","exampleAgentPrompt":"What are the statutory public holidays in Germany for 2027, including regional ones for Bavaria (BY)?","exampleUseCases":[{"title":"Payroll scheduling around public holidays","prompt":"List all public holidays in France for 2027 so I can flag non-working days in my payroll calendar."},{"title":"Travel planning for international trip","prompt":"What are the public holidays in Japan in 2027? I want to know which days businesses might be closed during my trip."},{"title":"Software release window planning","prompt":"Can you check the statutory public holidays in the United States for 2027, specifically for California, so we can avoid scheduling our product launch on a holiday?"}],"resultDescription":"A JSON object containing the country name and code, year, weekend days, total holiday count, and an array of holidays each with date, English name, local name, national/regional scope, weekday name, and an estimated flag for moon-sighting-dependent holidays. Also includes a source attribution and a note about estimated dates.","failureModes":["Missing required 'country' query parameter — returns error","Invalid or unsupported ISO country code — no matching country found","Requested year outside supported range (2026–2028) — may return empty or error","Invalid region code for country — may return empty regional holidays or error","Network or payment (x402) failure — no data returned"],"whenToPreferThis":"Use this endpoint when you need an authoritative, structured list of statutory public holidays for any of 247 countries, optionally filtered by region/state/province, covering years 2026–2028. Ideal for payroll systems, scheduling tools, travel planners, and financial calendars. Prefer it over scraping government websites or using generic date libraries, especially when regional granularity (e.g. individual US states, German Bundesländer, Canadian provinces) is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:32:51.414Z","isFirstParty":false,"canonicalSlug":"public-holidays-api-247-countries-4b66e1af"}