Overview
World Holidays works by querying a large database of world holidays to retrieve the holidays for each day of the year. The holidays are updated regularly to ensure accurate and up-to-date information.
Endpoint
One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.
curl "https://api.apiverve.com/v1/worldholidays?country=US&year=2026" \
-H "x-api-key: your_api_key_here"const res = await fetch('https://api.apiverve.com/v1/worldholidays?country=US&year=2026', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/worldholidays?country=US&year=2026",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/worldholidays?country=US&year=2026", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.
Authentication
Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.
A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.
Parameters
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.
| Parameter | Type | Description |
|---|---|---|
countryRequired | string | The 2-letter country code for which you want to get the holidays length 2–2 |
yearOptionalPremium | integer | The year for which you want to get the holidays default 2026 · range 2000–2050 |
Response
Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.
{
"status": "ok",
"error": null,
"data": {
"country": "US",
"year": "2025",
"holidays": [
{
"date": "2025-01-01 00:00:00",
"start": "2025-01-01T05:00:00Z",
"end": "2025-01-02T05:00:00Z",
"name": "New Year's Day",
"type": "public"
},
{
"date": "2025-01-20 00:00:00",
"start": "2025-01-20T05:00:00Z",
"end": "2025-01-21T05:00:00Z",
"name": "Martin Luther King Jr. Day",
"type": "public"
},
{
"date": "2025-02-14 00:00:00",
"start": "2025-02-14T05:00:00Z",
"end": "2025-02-15T05:00:00Z",
"name": "Valentine's Day",
"type": "observance"
},
{
"date": "2025-02-17 00:00:00",
"start": "2025-02-17T05:00:00Z",
"end": "2025-02-18T05:00:00Z",
"name": "Washington's Birthday",
"type": "public"
},
{
"date": "2025-03-17 00:00:00",
"start": "2025-03-17T04:00:00Z",
"end": "2025-03-18T04:00:00Z",
"name": "St. Patrick's Day",
"type": "observance"
},
{
"date": "2025-04-15 00:00:00",
"start": "2025-04-15T04:00:00Z",
"end": "2025-04-16T04:00:00Z",
"name": "Tax Day",
"type": "observance"
},
{
"date": "2025-04-20 00:00:00",
"start": "2025-04-20T04:00:00Z",
"end": "2025-04-21T04:00:00Z",
"name": "Easter Sunday",
"type": "observance"
},
{
"date": "2025-04-23 00:00:00",
"start": "2025-04-23T04:00:00Z",
"end": "2025-04-24T04:00:00Z",
"name": "Administrative Professionals Day",
"type": "observance"
},
{
"date": "2025-05-11 00:00:00",
"start": "2025-05-11T04:00:00Z",
"end": "2025-05-12T04:00:00Z",
"name": "Mother's Day",
"type": "observance"
},
{
"date": "2025-05-26 00:00:00",
"start": "2025-05-26T04:00:00Z",
"end": "2025-05-27T04:00:00Z",
"name": "Memorial Day",
"type": "public"
},
{
"date": "2025-06-15 00:00:00",
"start": "2025-06-15T04:00:00Z",
"end": "2025-06-16T04:00:00Z",
"name": "Father's Day",
"type": "observance"
},
{
"date": "2025-06-19 00:00:00",
"start": "2025-06-19T04:00:00Z",
"end": "2025-06-20T04:00:00Z",
"name": "Juneteenth",
"type": "public"
},
{
"date": "2025-07-04 00:00:00",
"start": "2025-07-04T04:00:00Z",
"end": "2025-07-05T04:00:00Z",
"name": "Independence Day",
"type": "public"
},
{
"date": "2025-09-01 00:00:00",
"start": "2025-09-01T04:00:00Z",
"end": "2025-09-02T04:00:00Z",
"name": "Labor Day",
"type": "public"
},
{
"date": "2025-10-13 00:00:00",
"start": "2025-10-13T04:00:00Z",
"end": "2025-10-14T04:00:00Z",
"name": "Columbus Day",
"type": "public"
},
{
"date": "2025-10-31 18:00:00",
"start": "2025-10-31T22:00:00Z",
"end": "2025-11-01T04:00:00Z",
"name": "Halloween",
"type": "observance"
},
{
"date": "2025-11-11 00:00:00",
"start": "2025-11-11T05:00:00Z",
"end": "2025-11-12T05:00:00Z",
"name": "Veterans Day",
"type": "public"
},
{
"date": "2025-11-27 00:00:00",
"start": "2025-11-27T05:00:00Z",
"end": "2025-11-28T05:00:00Z",
"name": "Thanksgiving Day",
"type": "public"
},
{
"date": "2025-11-28 00:00:00",
"start": "2025-11-28T05:00:00Z",
"end": "2025-11-29T05:00:00Z",
"name": "Day after Thanksgiving Day",
"type": "observance"
},
{
"date": "2025-12-24 00:00:00",
"start": "2025-12-24T05:00:00Z",
"end": "2025-12-25T05:00:00Z",
"name": "Christmas Eve",
"type": "optional"
},
{
"date": "2025-12-25 00:00:00",
"start": "2025-12-25T05:00:00Z",
"end": "2025-12-26T05:00:00Z",
"name": "Christmas Day",
"type": "public"
},
{
"date": "2025-12-31 00:00:00",
"start": "2025-12-31T05:00:00Z",
"end": "2026-01-01T05:00:00Z",
"name": "New Year's Eve",
"type": "observance"
}
]
}
}Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
country | string | "US" | 2-letter country code for the queried holidays |
year | string | "2025" | Year for which holidays were retrieved |
holidays | array[22] | Array of holiday objects with date and details | |
date | string | "2025-01-01 00:00:00" | Holiday date in local timezone |
startPremium | string | "2025-01-01T05:00:00Z" | Holiday start time in ISO 8601 UTC format |
endPremium | string | "2025-01-02T05:00:00Z" | Holiday end time in ISO 8601 UTC format |
name | string | "New Year's Day" | Official name of the holiday or observance |
type | string | "public" | Holiday type (public, observance, optional, etc.) |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read error to tell them apart; see rate limits. |
Use cases
- Travel App
- Use the World Holidays API to get world holidays for a travel app. Use the data to plan trips, schedule events, and optimize experiences
- Calendar App
- Get world holidays by using the World Holidays API for a calendar app. Use the data to display holidays, mark special occasions, and organize events
- Holiday Planning
- Use the World Holidays API to get world holidays for holiday planning. Use the data to schedule vacations, celebrate festivals, and plan events
- Cultural Events
- Get world holidays by using the World Holidays API for cultural events. Use the data to organize celebrations, promote traditions, and engage communities
Other ways to use World Holidays
Set up World Holidays on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.
Related
More in Calendar: