Catalog npm
PACKAGE EXPLORERView in registry

11holidays

npm

Global holidays API for public holidays, bank holidays and observances from 230+ countries

bank-holidayscalendarholidayholidaysholidays-apiholidaysapinational-holidaysobservances
Versions collected2
Direct dependencies9From release 1.0.1
Last observed20 Oct, 18:05 UTC

README

Current package documentation

11holidays

Global holidays API for public holidays, bank holidays and observances from 230+ countries.

Installation

npm i 11holidays

Api Key

You can use the SDK without API key to access past holidays(Free plan) or for testing.

  • Signup to get your api key for full access to fetch holidays by country, year etc.

Holidays API

To retrieve the complete holidays list by specific country code and year

const instance = new HolidaysApi(API_KEY);
const holidays = await instance.holidays.list({country: 'US', year: '2023'});

console.log(holidays);

[
  {
    "holiday_id": 6093,
    "name": "New Year's Day",
    "date": "2023-01-01",
    "description": "...",
    "occasion_id": 6220,
    "country": "US",
    "type": "State Holiday",
    "created_at": "2023-10-28 15:10:10",
    "updated_at": null
  },
  {
    "holiday_id": 6094,
    "name": "New Year's Day",
    "date": "2023-01-01",
    "description": "...",
    "occasion_id": 6220,
    "country": "US",
    "type": "Federal Holiday",
    "created_at": "2023-10-28 15:10:10",
    "updated_at": null
  },
  ...
]

Parameters

country (2 char) - Required. 2 character ISO country code. year (integer) - Required. Year in 4 digit format.

Countries API

To retrieve the complete list of countries

const instance = new HolidaysApi(API_KEY);
const countries = await instance.countries.list();

console.log(countries);

[
   {"country":"US","name":"United States"},
   {"country":"IN","name":"India"}
]

Support

  • If you have any question related to API key, access etc. contact support.
  • Open an issue on Github for question related to SDK

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.1Registry latest5 Nov 20239
1.0.05 Nov 20239

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
dayschedule/11holidays

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d410d6121b312e88f0648d055ed3c97b45603d25085ff4036c0368c405d63d58