Overview
Nager.Date is a completely free, open-source REST API providing public holidays for over 90 countries with no API key required. It supports querying holidays by year and country, checking whether a specific date is a public holiday, and listing all supported countries. The project is actively maintained and widely used in production applications.
Beginner Tip
This is an ideal first API: no sign-up, no key, and clean JSON output. Fetch all US public holidays for 2024 with a single call to https://date.nager.at/api/v3/PublicHolidays/2024/US.
Measurement Record
What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.
- Request
- GET https://date.nager.at/api/v3/PublicHolidays/2024/US
- Result
- HTTP 200 · application/json · 3,700 bytes · compressed
- Response time
- 44 ms (median of 3) · fastest 43 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
- Browser CORS
- Allowed — Access-Control-Allow-Origin: *
- Served by
- cloudflare
- Recorded
- 2026-08-10
Fields Returned
Top-level fields present in the response we captured, with the type and value we actually received.
| Field | Type | Value received |
|---|---|---|
| date | string (date) | 2024-01-01 |
| localName | string | New Year's Day |
| name | string | New Year's Day |
| countryCode | string | US |
| fixed | boolean | false |
| global | boolean | true |
| counties | null | null |
| launchYear | null | null |
| types | array | [1 item] |
Captured Response
Captured from a real request to https://date.nager.at/api/v3/PublicHolidays/2024/US on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.
[
{
"date": "2024-01-01",
"localName": "New Year's Day",
"name": "New Year's Day",
"countryCode": "US",
"fixed": false,
"global": true,
"counties": null,
"launchYear": null,
"types": [
"Public"
]
}
] Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://date.nager.at/api/v3/PublicHolidays/2024/US";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
How This API Fails
We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.
Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Church Calendar
⭐ Beginner's PickChurch Calendar (calapi.inadiutorium.cz) is a free, no-auth REST API that returns the Roman Catholic liturgical calendar for any date or month.
Czech Namedays Calendar
⭐ Beginner's PickThe Czech Namedays Calendar API lets you look up the Czech or Slovak nameday (svátek) associated with a given first name, or find whose nameday falls on a specific date.
Hebrew Calendar
⭐ Beginner's PickThe Hebcal API provides free Jewish calendar data including Hebrew date conversions, Shabbat candle-lighting times, Jewish holidays, and weekly Torah portion readings.
LectServe
⭐ Beginner's PickLectServe is a free REST API that returns Revised Common Lectionary readings — Scripture passages assigned to each Sunday and feast day used by many Protestant denominations.
Namedays Calendar
⭐ Beginner's PickNamedays Calendar provides name day traditions for dozens of countries, letting you look up which names are celebrated on any given date.