{"uid":"cap_Uzm3YgZst9QI6eILrSodu","slug":"public-holidays-by-country-and-year-f189b7bc","name":"Public Holidays by Country and Year","description":"Public holidays for a country and year via Nager.Date (keyless, 100+ countries): date, local name, English name, nationwide flag, and holiday types. Pairs with /api/business-days and /api/country-info. ?country=US&year=2026","url":"https://agent402.tools/api/public-holidays","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","year"],"properties":{"year":{"type":"integer","description":"calendar year (1975-2099)"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code, e.g. US, DE, JP"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["country","year","count","holidays"],"properties":{"year":{"type":"integer"},"count":{"type":"integer"},"country":{"type":"string"},"holidays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"name":{"type":"string"},"types":{"type":"array","items":{"type":"string"}},"global":{"type":"boolean"},"counties":{},"localName":{"type":"string"}}}}}}}}}},"responseSchema":{"type":"json","example":{"year":2026,"count":17,"country":"US","holidays":[{"date":"2026-01-01","name":"New Year's Day","types":["Public","Bank"],"global":true,"counties":null,"localName":"New Year's Day"}]}},"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_Y6CzOX2KvpbFDgatihg1D","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 date, local name, English name, nationwide flag, and holiday types.","exampleAgentPrompt":"What are all the public holidays in the US for 2026? I need the official English names, dates, and whether each is a nationwide holiday.","exampleUseCases":null,"resultDescription":"A list of public holiday objects for the specified country and year, each containing the date (ISO 8601), local name, English name, a boolean indicating if it's a nationwide holiday, and an array of holiday type strings (e.g. Public, Bank, Optional).","failureModes":["Invalid or unsupported country code returns an error or empty array","Year outside supported range (1975–2099) returns an error","Missing required query parameters (country or year) returns a 400-level error","Country with no holiday data in Nager.Date returns an empty list"],"whenToPreferThis":"Use this endpoint when you need structured, authoritative public holiday data for 100+ countries without requiring an API key. Ideal for scheduling, business-day calculations, calendar enrichment, or compliance checks. Pairs naturally with /api/business-days for workday computation. Prefer this over generic web searches when you need machine-readable holiday data with local and English names.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:05:40.008Z","isFirstParty":false}