Public Holidays API docs

Official public holidays for 100+ countries — all holidays for a given year, the next upcoming holidays, and the full list of supported countries.

Authentication

All Public Holidays API requests authenticate via two headers. Get your API key from your RapidAPI dashboard after subscribing on the Basic (free) tier or higher.

X-RapidAPI-Key: YOUR_API_KEY
X-RapidAPI-Host: public-holidays-by-helix-api.p.rapidapi.com

Base URL

https://public-holidays-by-helix-api.p.rapidapi.com

Endpoints

GET
/holidays

All public holidays for a country and year

GET
/next

Upcoming holidays for a country (next 365 days)

GET
/countries

List all supported countries

Code Examples

Python

import requests

url = "https://public-holidays-by-helix-api.p.rapidapi.com/holidays"
headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "public-holidays-by-helix-api.p.rapidapi.com",
}

response = requests.get(url, headers=headers)
print(response.json())

JavaScript

const response = await fetch(
  "https://public-holidays-by-helix-api.p.rapidapi.com/holidays",
  {
    method: "GET",
    headers: {
      "X-RapidAPI-Key": "YOUR_API_KEY",
      "X-RapidAPI-Host": "public-holidays-by-helix-api.p.rapidapi.com"
    }
  }
);
const data = await response.json();

cURL

curl -X GET "https://public-holidays-by-helix-api.p.rapidapi.com/holidays" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: public-holidays-by-helix-api.p.rapidapi.com"

Response Format

All endpoints return JSON in this consistent envelope:

{
  "status": "ok",
  "data": { /* endpoint-specific payload */ },
  "meta": {
    "cached": false,
    "latency_ms": 142,
    "request_id": "req_abc123"
  },
  "timestamp": "2026-05-21T12:00:00Z"
}

Error Codes

HTTPCodeMeaning
400BAD_REQUESTMissing or invalid parameter
401UNAUTHORIZEDInvalid or missing API key
403FORBIDDENYour plan doesn't include this endpoint
429RATE_LIMIT_EXCEEDEDToo many requests — back off and retry
500INTERNAL_ERRORSomething went wrong on our side
503UPSTREAM_UNAVAILABLEA third-party data source is down

Common Use Cases

HR & payroll systems
Scheduling apps
Trading platforms
Travel booking
Calendar integrations

Related APIs

Ready to build with Public Holidays API?

Get API Key on RapidAPI
✉️ The Helix-API Newsletter

New APIs, tutorials & developer tips

Join developers getting our best content: new API launches, integration guides, and code examples. One email a week. No spam, unsubscribe anytime.

One email a week · We respect your inbox · Unsubscribe anytime