All public holidays for a country and year

Lists the public holidays of a country (and optionally a state/province) for a year.

Request

GEThttps://public-holidays.p.apihiver.com/v1/holidays?country=IN&subdivision=MH
*
String. ISO code, e.g. IN, US, GB.
Number. Default: this year (1950–2100).
String. State/region code, e.g. MH (Maharashtra), KA, CA.
Language
Client
1curl --request GET \
2  --url 'https://public-holidays.p.apihiver.com/v1/holidays?country=IN&year=%7Byear%7D&subdivision=MH' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

All public holidays for a country and year: Public Holidays API reference

Lists the public holidays of a country (and optionally a state/province) for a year. This endpoint is part of the Public Holidays API: Public holidays for 150+ countries — including Indian states — plus 'is it a holiday?', upcoming holidays and working-day counts.

Example response (200, application/json)

Success.

1{
2  "year": 2026,
3  "count": 20,
4  "country": "IN",
5  "holidays": [
6    {
7      "date": "2026-01-14",
8      "name": "Makar Sankranti / Pongal",
9      "weekday": "Wednesday"
10    },
11    {
12      "date": "2026-01-26",
13      "name": "Republic Day",
14      "weekday": "Monday"
15    },
16    {
17      "date": "2026-03-04",
18      "name": "Holi",
19      "weekday": "Wednesday"
20    }
21  ],
22  "subdivision": "MH"
23}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "country: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.