The script only looks for elements with the bhc-holiday-widget class, so one script tag renders every widget on the page, including several different countries.
Attributes
Attribute
Required
Description
data-country
Yes
A 2-letter ISO country code (US, GB, DE...) or a BankHolidayCheck country slug (united-states)
data-lang
No
One of en (default), es, fr, de, pt, it, nl, pl
data-endpoint
No
Override the data source URL. Leave this out; it defaults to BankHolidayCheck's own feed
How it works
The widget renders inside a Shadow DOM with inline, namespaced styles, so it cannot clash with your site's CSS and your CSS cannot leak into it.
Data comes from a small JSON feed, /api/widget-data, cached for six hours and open to any origin (Access-Control-Allow-Origin: *).
No cookies, no tracking script beyond the fetch itself, nothing stored in the visitor's browser.
Prefer raw JSON instead of a rendered widget? See the free Holiday API, which powers this feed.
Terms
The widget is free to embed on any site, with no usage cap beyond ordinary fair use. The one condition is keeping the "Data by BankHolidayCheck" attribution link visible and linked; nothing else is required. Data is provided as-is, refreshed annually, and should not be relied on for contractual or legal deadlines without checking an official source.
Frequently Asked Questions
Embedding the widget, in short
Is the holiday widget really free?
Yes. No API key, no registration, no account. Copy the snippet, set your country, and it works. The only requirement is keeping the BankHolidayCheck attribution link visible.
Will it clash with my site's CSS?
No. The widget renders inside its own Shadow DOM with fully self-contained styles, so it never reads or leaks CSS from the host page.
Which countries and languages does it support?
Any of the 150+ countries covered on BankHolidayCheck, addressed by ISO country code or by the site's own country slug. Labels can be shown in English, Spanish, French, German, Portuguese, Italian, Dutch or Polish with the data-lang attribute.
Prefer the full calendar?
Pick a country to see the next holidays, or add a date to check if banks are closed that day
100% Free 150+ Countries Updated Yearly
Checking holidays...
Result
Need this in your code?The same answer, as JSON, from one request.
curl https://bankholidaycheck.com
One free key, twelve APIs, 5,000 lookups a month, no card. Read the reference.
Cookies, the honest version. We would like to use Google Analytics to see which pages help people. Nothing is set until you say yes, and every tool works exactly the same either way. Privacy Policy