Node API to monitor 2019 holidays in the United States
-
Get a paginated list of holidays ordered by ascending date.
Optional
-
name
: search against holiday name. Example:/holidays?name=christmas
. -
type
: search against holiday type. Example:/holidays?type=federal
. -
date
: search holidays on a date, formatted likeYYYY-MM-DD
. Takes precedence overmonth
,after
,before
,peek
query params. Example:/holidays?date=2019-01-01
. -
month
: search holidays in a month, formatted likeM
orMM
. Takes precedence overafter
,before
,peek
query params. Example:/holidays?month=09
. -
after
: search holidays after a date formatted likeYYYY-MM-DD
. Can be used together withbefore
. Takes precedence overpeek
. Example:/holidays?after=2019-10-31
. -
before
: search holidays before a date formatted likeYYYY-MM-DD
. Can be used together withafter
. Takes precedence overpeek
. Example:/holidays?before=2019-11-01
. -
peek
: search holidays within a number of days of the current day, forwards or backwards. Days must be represented as integers. Example:holidays?peek=-3
. -
sort
: sort holidays by [name, type, or date]. Can set ordering by concatenating:asc
or:desc
, but is ascending by default. Example:/holidays?sort=type:desc
. -
page
: get a specific page in paginated results. Example/holidays?page=2
.
-
- Get detailed info for a single holiday.
- Get a list of holiday types.
-
Get holiday counts categorized
- by type,
- by type per month
and holiday count for remaining of the year.