UK bank holidays API
GET /v1/holidays?country=GB&year=2026 returns UK bank holidays as JSON from the official GOV.UK list, with the nation each one applies to. APIFor holds 121 rows for 2021 to 2029, last updated 2026-12-01. Each request costs 1 credit. New accounts get 1,000 free credits once, after email verification.
GET /v1/holidaysGB1 creditUpdated 2026-12-01Request
curl 'https://api.apifor.dev/v1/holidays?country=GB&year=2026' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": "GB-2026-01-01-1",
"country_code": "GB",
"date": "2026-01-01",
"year": 2026,
"local_name": "New Year's Day",
"name": "New Year's Day",
"is_global": 1,
"is_fixed": 0,
"counties": null,
"types": "Public",
"launch_year": null
},
{
"id": "GB-2026-01-02-1",
"country_code": "GB",
"date": "2026-01-02",
"year": 2026,
"local_name": "2nd January",
"name": "2nd January",
"is_global": 0,
"is_fixed": 0,
"counties": "GB-SCT",
"types": "Public",
"launch_year": null
}
],
"meta": {
"total": 2,
"page": 1,
"per_page": 2,
"total_pages": 1,
"attribution": {
"source": "https://www.gov.uk/bank-holidays",
"licence": "Open Government Licence v3.0",
"license": "Open Government Licence v3.0",
"license_url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
"source_url": "https://www.gov.uk/bank-holidays",
"attribution_page": "https://apifor.dev/sources",
"notice": "Contains public sector information licensed under the Open Government Licence v3.0 (GOV.UK bank holidays)."
},
"sources": [
{
"country": "GB",
"name": "GOV.UK bank holidays (England and Wales, Scotland, Northern Ireland)",
"url": "https://www.gov.uk/bank-holidays",
"licence": "Open Government Licence v3.0",
"licence_url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
"notice": "Contains public sector information licensed under the Open Government Licence v3.0 (GOV.UK bank holidays)."
}
]
}
}The response recorded in our OpenAPI file for GB in 2026. That request asked for two rows. Long lists and strings are shortened.
What you get
Bank holidays differ by nation. The counties field holds GB-ENG, GB-WLS, GB-SCT or GB-NIR, and null means all four. To get Scotland only, add subdivision=GB-SCT.
In the recorded example, 2 January 2026 is a Scottish bank holiday only, while New Year's Day applies to all four nations.
For 2021 to 2029 the GOV.UK rows replace the generic Nager.Date rows.
Questions
How do I get bank holidays for Scotland only?
Add subdivision=GB-SCT. Use GB-ENG, GB-WLS or GB-NIR for the other nations.
Which years are covered?
2021 to 2029 from GOV.UK (121 rows). Other years come from Nager.Date.
What licence applies?
Open Government Licence v3.0. Contains public sector information licensed under the Open Government Licence v3.0.