{"uid":"cap_li5JbrdQ42FPqB_rJSlr2","slug":"public-holidays-by-country-and-year-8697efa2","name":"Public Holidays by Country and Year","description":"Use when you need the official public holidays of a country (ISO 3166-1 alpha-2 code, e.g. BR, US, DE) for a given year: date, local and English names, whether nationwide, and which regions if not. Also says whether today is a holiday there.","url":"https://biosfera.46-62-215-147.sslip.io/o/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":"integer","maximum":2075,"minimum":1975},"country":{"type":"string","pattern":"^[A-Za-z]{2}$"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZSAR-9MbVK-avGddLC9tC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns official public holidays for a given country and year, including dates, local and English names, nationwide vs regional scope, and whether today is a holiday.","exampleAgentPrompt":"What are all the official public holidays in Brazil (BR) for 2025, including whether they're nationwide or only in certain regions?","exampleUseCases":[{"title":"HR payroll calendar for remote team","prompt":"Can you list all public holidays in Germany for 2025 so I can set up our payroll calendar and know which days our Berlin team won't be working?"},{"title":"Travel planning around holidays","prompt":"I'm planning a trip to Japan in 2024 — what are all the national holidays there so I can avoid or plan around crowded festival periods?"},{"title":"Check if today is a holiday","prompt":"Is today a public holiday in Mexico? I want to know before scheduling a call with our team in Mexico City."}],"resultDescription":"A list of public holidays for the requested country and year, each with the date, local-language name, English name, a flag indicating whether it is nationwide, and the list of regions if it is not nationwide. Also includes a boolean indicating whether today is a holiday in that country.","failureModes":["Invalid or unsupported ISO 3166-1 alpha-2 country code returns an error","Year outside the supported range (1975–2075) is rejected","Missing required 'country' query parameter returns a validation error","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need structured, machine-readable public holiday data for a specific country and year, especially when you also need regional vs. nationwide distinction or a real-time check for whether today is a holiday. Prefer it over scraping government websites or using general-purpose search when you need reliable, consistent data across many countries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:51:45.989Z","isFirstParty":false,"canonicalSlug":"public-holidays-by-country-and-year-8697efa2"}