Working Days API
The Working Days API provides information about working days and non-working days (weekends and public holidays) for countries around the world.
Available endpoints:
- /v1/workingdays - Get a list of working days and non-working days for a given country and year/month
- /v1/isworkingday - Check if a specific date is a working day
From 8,050 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 269ms | 289ms | 314ms | 515ms | 1062ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/workingdays GET
https://api.api-ninjas.com/v1/workingdays
Returns a list of working days and non-working days for a given country and year/month.
To check if a specific date is a working day, use the /v1/isworkingday endpoint instead.
Parameters
countryrequired2-letter ISO country code.
yearoptional premium onlyCalendar year between 1980 and 2050 (inclusive). By default, the current year is used.
monthoptionalMonth number (1-12). If provided, returns data for just that month.
weekendoptionalComma-separated list of weekend days (
mon,tue,wed,thu,fri,sat,sun). This parameter is optional: if not provided, the default weekend days will be determined based on the country. If specified, your values will override the country defaults.public_holidaysoptionalWhether to include public holidays as non-working days (true/false). Defaults to true.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
The response will be a JSON object with the following fields:
num_working_daysTotal number of working days in the period.
num_non_working_daysTotal number of non-working days in the period.
working_daysList of dates that are working days.
non_working_daysList of dates that are non-working days, with reasons and holiday names if applicable.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/workingdays?country=USHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/workingdays?country=US&year=2025" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
/v1/isworkingday GET
https://api.api-ninjas.com/v1/workingdays
Returns whether a given date is a working day for a given country.
Parameters
countryrequired2-letter ISO country code.
daterequiredDate in
YYYY-MM-DDformat. Must be between 1980-01-01 and 2050-12-31 (inclusive).weekendoptionalComma-separated list of weekend days (
mon,tue,wed,thu,fri,sat,sun). This parameter is optional: if not provided, the default weekend days will be determined based on the country. If specified, your values will override the country defaults.public_holidaysoptionalWhether to include public holidays as non-working days (
true/false). Defaults totrue.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
The response will be a JSON object with the following fields:
dateThe queried date.
country2-letter ISO country code.
day_of_weekDay of the week (Monday through Sunday).
is_workdayWhether the date is a working day.
non_working_reasonList of reasons why the date is not a working day (if applicable).
public_holiday_nameName of the public holiday (if applicable).
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/isworkingday?country=US&date=2025-01-01Headers
X-Api-KeyLog in or sign up to get your API Key