API reference
Public Holidays & Working Days API
Public holidays of 250 countries and 651 regions, working days, due dates and long weekends.
- Host
public-holidays-working-days-200-countries.p.rapidapi.com- Base path
/v1/holidays- Auth
X-RapidAPI-Key,X-RapidAPI-Host- For agents
openapi.json·holidays.md
Overview and pricing · Tutorial: Public Holidays API · RapidAPI playground (opens in a new tab) ↗ · Apify actor (opens in a new tab) ↗
Holidays
Public holidays of a year, or whether one date is a holiday.
List Public Holidays
GET /v1/holidays/list
Public holidays of a country for a year. Every public holiday of a country (and of a region when given) for one year, with its date, name and weekday. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
country required |
query | string |
ISO 3166-1 alpha-2 country code (see Get Supported Countries). |
year required |
query | integer |
Year, 1950-2100. |
subdivision |
query | string |
State, region or province code for local holidays (e.g. BY for Bavaria, CA for California). Leave empty for national holidays. |
language |
query | string |
Language of the holiday names (default English when available, e.g. fr, de, es). Listed per country in Get Supported Countries. |
categories |
query | string |
Extra holiday categories, comma-separated, on top of public holidays: bank, government, optional, school, unofficial (observances)... Listed per country in Get Supported Countries. Bank, government and religious ones also count as days off for working days. |
curl -G "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/list" \
--data-urlencode "country=FR" \
--data-urlencode "year=2026" \
--data-urlencode "subdivision=57" \
--data-urlencode "language=fr" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
import requests
url = "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/list"
params = {
"country": "FR",
"year": 2026,
"subdivision": "57",
"language": "fr"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/list?country=FR&year=2026&subdivision=57&language=fr", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
},
});
console.log(await res.json());
Get Next Holidays
GET /v1/holidays/next
The next public holidays from a date. The next holidays on or after a date, with the days left until each: "next day off" widgets, reminders, countdowns. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
country required |
query | string |
ISO 3166-1 alpha-2 country code (see Get Supported Countries). |
date |
query | string |
Start date, YYYY-MM-DD (included). Default: today (UTC). |
count |
query | integer |
How many holidays, 1-20. Default 5. |
subdivision |
query | string |
State, region or province code for local holidays (e.g. BY for Bavaria, CA for California). Leave empty for national holidays. |
language |
query | string |
Language of the holiday names (default English when available, e.g. fr, de, es). Listed per country in Get Supported Countries. |
categories |
query | string |
Extra holiday categories, comma-separated, on top of public holidays: bank, government, optional, school, unofficial (observances)... Listed per country in Get Supported Countries. Bank, government and religious ones also count as days off for working days. |
curl -G "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/next" \
--data-urlencode "country=US" \
--data-urlencode "date=2026-11-25" \
--data-urlencode "count=5" \
--data-urlencode "subdivision=CA" \
--data-urlencode "language=en_US" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
import requests
url = "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/next"
params = {
"country": "US",
"date": "2026-11-25",
"count": 5,
"subdivision": "CA",
"language": "en_US"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/next?country=US&date=2026-11-25&count=5&subdivision=CA&language=en_US", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
},
});
console.log(await res.json());
Get Long Weekends
GET /v1/holidays/long-weekends
Long weekends and bridge days of a year. Every stretch of 3 or more days off around a holiday in a year, plus the longer ones a single bridge day (one working day taken off) would give, with that day in bridge_days. For travel, leave planning and staffing. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
country required |
query | string |
ISO 3166-1 alpha-2 country code (see Get Supported Countries). |
year required |
query | integer |
Year, 1950-2100. |
subdivision |
query | string |
State, region or province code for local holidays (e.g. BY for Bavaria, CA for California). Leave empty for national holidays. |
language |
query | string |
Language of the holiday names (default English when available, e.g. fr, de, es). Listed per country in Get Supported Countries. |
categories |
query | string |
Extra holiday categories, comma-separated, on top of public holidays: bank, government, optional, school, unofficial (observances)... Listed per country in Get Supported Countries. Bank, government and religious ones also count as days off for working days. |
curl -G "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/long-weekends" \
--data-urlencode "country=FR" \
--data-urlencode "year=2026" \
--data-urlencode "subdivision=57" \
--data-urlencode "language=fr" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
import requests
url = "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/long-weekends"
params = {
"country": "FR",
"year": 2026,
"subdivision": "57",
"language": "fr"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/long-weekends?country=FR&year=2026&subdivision=57&language=fr", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
},
});
console.log(await res.json());
Check Date
GET /v1/holidays/check
Is a date a public holiday or a working day?. Whether a date is a public holiday (with its names), a weekend day for that country, and a working day. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
country required |
query | string |
ISO 3166-1 alpha-2 country code (see Get Supported Countries). |
date required |
query | string |
Date, YYYY-MM-DD. |
subdivision |
query | string |
State, region or province code for local holidays (e.g. BY for Bavaria, CA for California). Leave empty for national holidays. |
language |
query | string |
Language of the holiday names (default English when available, e.g. fr, de, es). Listed per country in Get Supported Countries. |
categories |
query | string |
Extra holiday categories, comma-separated, on top of public holidays: bank, government, optional, school, unofficial (observances)... Listed per country in Get Supported Countries. Bank, government and religious ones also count as days off for working days. |
curl -G "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/check" \
--data-urlencode "country=FR" \
--data-urlencode "date=2026-07-14" \
--data-urlencode "subdivision=57" \
--data-urlencode "language=fr" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
import requests
url = "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/check"
params = {
"country": "FR",
"date": "2026-07-14",
"subdivision": "57",
"language": "fr"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/check?country=FR&date=2026-07-14&subdivision=57&language=fr", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
},
});
console.log(await res.json());
Working Days
Count working days, or add them to a date.
Count Working Days
GET /v1/holidays/working-days
Working days between two dates. Working days, weekend days and the public holidays between two dates, both included, up to 10 years. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
country required |
query | string |
ISO 3166-1 alpha-2 country code (see Get Supported Countries). |
start required |
query | string |
First day, YYYY-MM-DD (included). |
end required |
query | string |
Last day, YYYY-MM-DD (included). |
subdivision |
query | string |
State, region or province code for local holidays (e.g. BY for Bavaria, CA for California). Leave empty for national holidays. |
language |
query | string |
Language of the holiday names (default English when available, e.g. fr, de, es). Listed per country in Get Supported Countries. |
categories |
query | string |
Extra holiday categories, comma-separated, on top of public holidays: bank, government, optional, school, unofficial (observances)... Listed per country in Get Supported Countries. Bank, government and religious ones also count as days off for working days. |
curl -G "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/working-days" \
--data-urlencode "country=DE" \
--data-urlencode "subdivision=BY" \
--data-urlencode "start=2026-12-01" \
--data-urlencode "end=2026-12-31" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
import requests
url = "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/working-days"
params = {
"country": "DE",
"subdivision": "BY",
"start": "2026-12-01",
"end": "2026-12-31"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/working-days?country=DE&subdivision=BY&start=2026-12-01&end=2026-12-31", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
},
});
console.log(await res.json());
Add Working Days
GET /v1/holidays/add-working-days
The date N working days after (or before) a date. Due dates and delivery estimates: the date that many working days later (or earlier), skipping weekends and public holidays, with the holidays skipped. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
country required |
query | string |
ISO 3166-1 alpha-2 country code (see Get Supported Countries). |
date required |
query | string |
Start date, YYYY-MM-DD. |
days required |
query | integer |
Working days to add (negative to go back), -1000 to 1000. |
subdivision |
query | string |
State, region or province code for local holidays (e.g. BY for Bavaria, CA for California). Leave empty for national holidays. |
language |
query | string |
Language of the holiday names (default English when available, e.g. fr, de, es). Listed per country in Get Supported Countries. |
categories |
query | string |
Extra holiday categories, comma-separated, on top of public holidays: bank, government, optional, school, unofficial (observances)... Listed per country in Get Supported Countries. Bank, government and religious ones also count as days off for working days. |
curl -G "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/add-working-days" \
--data-urlencode "country=DE" \
--data-urlencode "date=2026-12-23" \
--data-urlencode "days=3" \
--data-urlencode "subdivision=BY" \
--data-urlencode "language=de" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
import requests
url = "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/add-working-days"
params = {
"country": "DE",
"date": "2026-12-23",
"days": 3,
"subdivision": "BY",
"language": "de"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/add-working-days?country=DE&date=2026-12-23&days=3&subdivision=BY&language=de", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
},
});
console.log(await res.json());
Countries
Supported countries, regions, weekends and languages.
Get Supported Countries
GET /v1/holidays/countries
Countries, their regions, weekends and languages. Every supported country with its code, name, weekend days, the languages of its holiday names, its holiday categories and its subdivisions. 1 credit.
curl -G "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/countries" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
import requests
url = "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/countries"
params = {}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/countries", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "public-holidays-working-days-200-countries.p.rapidapi.com",
},
});
console.log(await res.json());
Response
{
"country": "FR",
"date": "2026-07-14",
"weekday": "Tuesday",
"is_holiday": true,
"holiday_names": [
"National Day"
],
"holidays": [
{
"date": "2026-07-14",
"name": "National Day",
"weekday": "Tuesday",
"category": "public"
}
],
"is_weekend": false,
"is_working_day": false
}
From a real response.
Why developers pick this API
- 🧠 One API for the whole calendar: holidays, working days, due dates, next holidays, long weekends. No second provider, no date maths in your code.
- 🎯 Exact where it matters: observed days (US Independence Day moved to Friday), Easter, Islamic, Hebrew, Chinese and Hindu calendars, Chinese make-up working days, Alsace-Moselle, Scotland's own bank holidays.
- ⚡ Instant and always up: the calendars are computed inside the API from a maintained open-source library: no third-party outage, no rate-limited upstream.
- 💸 Priced to forget: 100,000 calls for $1.99 a month, and failed calls (4xx, 5xx) use 0 credits.
Working days
curl "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/working-days?country=DE&subdivision=BY&start=2026-12-01&end=2026-12-31" \
-H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
{
"country": "DE",
"subdivision": "BY",
"start": "2026-12-01",
"end": "2026-12-31",
"calendar_days": 31,
"working_days": 22,
"weekend_days": 8,
"holidays": [
{ "date": "2026-12-25", "name": "Christmas Day", "weekday": "Friday", "category": "public" },
{ "date": "2026-12-26", "name": "Second Day of Christmas", "weekday": "Saturday", "category": "public" }
]
}
Add working days instead (/add-working-days?country=DE&subdivision=BY&date=2026-12-23&days=3) and you get "result": "2026-12-29", with Christmas and Boxing Day in skipped_holidays. A negative days goes back in time. Add categories=bank to count banking days.
Long weekends and bridge days
curl "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/long-weekends?country=FR&year=2026" \
-H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
{
"country": "FR",
"year": 2026,
"count": 8,
"long_weekends": [
{
"start": "2026-05-14",
"end": "2026-05-17",
"days": 4,
"bridge_days": ["2026-05-15"],
"holidays": [{ "date": "2026-05-14", "name": "Ascension Day", "weekday": "Thursday", "category": "public" }]
},
{ "...": "..." }
]
}
An empty bridge_days means the stretch is off already; otherwise take that one day off to get it. Perfect for travel apps, leave planners and staffing.
Next holidays
/next?country=US&count=3 lists the next holidays from today (or from date), each with days_until: Thanksgiving Day in 1 day, Christmas Day in 30, New Year's Day in 37 (asked on 2026-11-25).
Holiday calendar
curl "https://public-holidays-working-days-200-countries.p.rapidapi.com/v1/holidays/list?country=BE&year=2026&categories=bank" \
-H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: public-holidays-working-days-200-countries.p.rapidapi.com"
{
"country": "BE",
"country_name": "Belgium",
"year": 2026,
"language": "en_US",
"count": 15,
"holidays": [
{ "date": "2026-01-01", "name": "New Year's Day", "weekday": "Thursday", "category": "public" },
{ "date": "2026-04-03", "name": "Good Friday", "weekday": "Friday", "category": "bank" },
{ "...": "..." }
]
}
/countries lists every supported country with its code, name, weekend days, the languages of its holiday names, its categories, and its subdivision codes and names.
Tip: countries with regional holidays answer with national ones only unless you pass subdivision, and say so in note. For England, use country=GB&subdivision=ENG to get Easter Monday and the Summer Bank Holiday.
Errors
| Status | code |
Meaning |
|---|---|---|
| 400 | invalid_country |
Unknown country code (see /countries). |
| 400 | invalid_subdivision |
Unknown state or region for that country. |
| 400 | invalid_language |
Holiday names are not available in that language for that country. |
| 400 | invalid_category |
That category does not exist for that country (see /countries). |
| 400 | invalid_range |
end before start, a range over 10 years, or a result outside 1950-2100. |
| 400 | invalid_year |
A date outside 1950-2100. |
| 400 | invalid_request |
Missing parameter, malformed date, days outside -1000 to 1000, count outside 1-20. |
| 429 | daily_limit_reached |
Daily safety limit of your plan; resets at 00:00 UTC. |
Use it from an AI agent
Add this MCP server and the Public Holidays Calendar - 250 Countries, Regions & Any Year actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.
https://mcp.apify.com?tools=helenisapi/public-holidays-calendar
Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.