Supported countries and their state/region codes

Lists supported countries and their subdivision (state) codes.

Request

GEThttps://public-holidays.p.apihiver.com/v1/countries
Loading…

Sent as X-API-Key. Every key on your account works across any API you're subscribed to.

Language
Client
1curl --request GET \
2  --url https://public-holidays.p.apihiver.com/v1/countries \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Supported countries and their state/region codes: Public Holidays API reference

Lists supported countries and their subdivision (state) codes. 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  "count": 155,
3  "countries": [
4    {
5      "code": "AD",
6      "subdivisions": [
7        "02",
8        "03",
9        "04"
10      ]
11    },
12    {
13      "code": "AE",
14      "subdivisions": []
15    },
16    {
17      "code": "AL",
18      "subdivisions": []
19    }
20  ]
21}