Welcome to the Calendarific Global Holidays API. We cover over 230 countries and 3,300 states and regions around the world, and we are constantly adding more. This document covers how to use the API — email us if your country is not included, or if you have any questions.
The API is built on REST principles: authenticated GET requests over HTTPS, JSON responses. Every endpoint lives under the same base URL and takes your API key as a query parameter.
Version 2 of the API supports all countries, states, and regions with more data points per holiday. Version 1 has been deprecated — please update your calls to v2. Contact info@calendarific.com with any questions.
API Base URL
All requests are sent to this base URL, followed by the endpoint path.
An API key is required for every request. It authenticates you with the API and is passed as the api_key query parameter. Requests without a valid key return HTTP 401 with error_type: "auth failed".
Your key is shown on your account dashboard. If you do not have one yet, sign up for a free account. Keep the key private: anyone who has it can spend your quota, and you can rotate it from the dashboard at any time.
Query parameter
?api_key=YOUR_API_KEY
The api_key is appended to the request URL like in the example below.
Returns the holidays and observances that match the parameters passed. country and year are required; every other parameter narrows the result. See the parameters below.
Returns every supported country with its ISO 3166-1 alpha-2 code, holiday counts by category, and the number of supported languages — useful for building a country picker or validating codes before you call /holidays. Only api_key is required.
Returns the ISO 639-1 languages accepted by the language parameter, with each code, English name, and native name. Only api_key is required. Which languages a request may use depends on your plan — see plan features.
Holidays Endpoint Parameters
Queries are made with URL parameters. api_key, country, and year are required on every /holidays request; requests missing any of them are rejected. The optional parameters filter the result and can be combined freely.
Required parameters
Parameter
Description
api_key
Required
Authenticates every request. Available on your account dashboard once you sign up. This is the only required parameter for the /countries and /languages endpoints.
A shortened successful response. Every holiday carries its name and description, the country, the date as an ISO string and as year / month / day, the list of types it belongs to, its primary type, a canonical URL, and the locations it applies to (All, or the regions it is limited to).
JSON200 OK
{
"meta": { "code": 200 },
"response": {
"holidays": [
{
"name": "Labor Day",
"description": "Labor Day is a federal holiday in the United States. It gives workers a day of rest and celebrates their contribution to the American economy.",
"country": { "id": "us", "name": "United States" },
"date": {
"iso": "2026-09-07",
"datetime": { "year": 2026, "month": 9, "day": 7 }
},
"type": [ "National holiday" ],
"primary_type": "Federal Holiday",
"canonical_url": "https://calendarific.com/holiday/us/labor-day",
"urlid": "us/labor-day",
"locations": "All",
"states": "All"
}
]
}
}
On the Business and Enterprise plans each holiday also carries an id and a stable uuid, so you can store and de-duplicate holidays across years and languages.
Optional Parameters
Optional parameters filter the results that come back. They can be combined — for example month=12&type=national returns the national holidays of December.
Parameter
Plans
Description
day
All plans
Limits the holidays to a single day of the month: a number from 1 to 31.
month
All plans
Limits the holidays to a single month: a number from 1 to 12.
location
All plans
Limits the holidays to one state, province, or region, as an ISO 3166-2 code — New York is us-ny, Bavaria is de-by. Every code is listed under its country on the supported countries page.
type
All plans
Returns only certain kinds of holidays. By default every type is returned. Several types can be comma-separated, e.g. type=national,local.
national — public, federal, and bank holidays
local — local, regional, and state holidays and observances
religious — Christian, Orthodox, Muslim, Hindu, Buddhist, and Hebrew observances
observance — worldwide and United Nations observances, sporting events, seasons, and clock changes
language
Starter and above
Returns holiday names and descriptions in another language, as a two-letter ISO 639-1 code, e.g. language=fr. Which languages are honoured depends on your plan — see plan features. When a translation is not available the API falls back to English.
Plan Features
All plans use the same endpoints and parameters. Two things scale with the plan: how language is honoured, and the identifiers included in each holiday. The pricing page lists the monthly request limits.
Plan
Languages
Holiday identifiers
Free
English only — language is ignored.
—
Starter
English plus the official languages of the requested country, e.g. language=fr for France or Canada.
—
Business
Any language from /languages; names and descriptions are translated on request.
id and uuid on every holiday
Enterprise
Any language from /languages.
id and uuid on every holiday
HTTP Response Codes
Every request returns an HTTP status code and a JSON body. Successful requests return 200; every error response carries a machine-readable error_type — see error responses.
Code
Meaning
Description
200
OK
The request succeeded. The data is under response.
401
Unauthorized
The API key is missing or invalid. A /holidays request that omits country or year is currently also answered with 401; check error_detail for the reason.
403
Forbidden
The key is valid but the subscription has expired. Renew it from your account to restore access.
429
Too Many Requests
Your plan's monthly request limit has been reached — see rate limits.
500
Internal Server Error
Something went wrong on our side while processing the request. We are notified automatically and investigate.
503
Service Unavailable
Returned during planned maintenance, with the same JSON error body.
Error Responses
Error bodies keep the same shape as successful ones: meta carries the code, an error_type you can branch on, and a human-readable error_detail; response is empty.
JSON429 Too Many Requests
{
"meta": {
"code": 429,
"error_type": "rate_limit_exceeded",
"error_detail": "Request limits exceeded. See https://calendarific.com/api-documentation for details or email the support team at info@calendarific.com"
},
"response": []
}
error_type
HTTP status
What to do
auth failed
401
Check that api_key is present and matches the key on your dashboard, and that country and year are included.
subscription_expired
403
Renew the subscription from your account page, or contact support.
rate_limit_exceeded
429
Wait for the monthly reset or upgrade your plan. Cache responses — holiday data for a given country and year rarely changes.
Response Format
Every endpoint returns JSON with a Content-Type of application/json, whether the request comes from a browser, a script, or the command line. Successful responses have meta.code200 and the payload under response; error responses are described above. Dates are ISO 8601 (YYYY-MM-DD) and country and region codes are lower-case ISO 3166.
Rate Limits
The Free plan includes 500 requests per month; paid plans come with higher monthly limits — see plans and pricing. Every request to any endpoint counts, including requests that return an error. Once a limit is reached the API returns HTTP 429 with error_type: "rate_limit_exceeded" until the quota resets. Your current usage is shown on the account dashboard.
CORS
CORS is enabled on every endpoint (Access-Control-Allow-Origin: *), so the API can be called directly from browser code. Remember that anything in front-end code is public: if you call the API from a page anyone can visit, your API key — and your quota — are visible to them. For public sites, call the API from your server and cache the results. JSONP is not supported; use CORS.