---
title: Public Holidays API
slug: public-holidays
url: https://apyhub.com/apyhub/service/public-holidays
provider: ApyHub
categories: [Verification Kit]
tags: [public-holidays, holiday-calendar, country-data, business-days, reference-data]
auth: api_key
version: 1.0
service_type: sync
endpoints: 2
atoms: 10
mcp: true
---

# Public Holidays API

Get the public holidays for a country and year as clean JSON with dates and names. Built for business-day math, scheduling, payroll and leave calendars.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/apyhub/public-holidays/holidays` | What it does Returns the public holidays for a specified country, optionally filtered by year. Quer… | 10 |
| GET | `https://api.eu.apyhub.com/apyhub/public-holidays` | What it does Returns a JSON object containing a data array of strings listing the countries support… | 10 |

## Endpoint reference

### List public holidays for a country and year

`GET https://api.eu.apyhub.com/apyhub/public-holidays/holidays` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `year` | query | integer | no | Example: `2025`. |
| `country` | query | string | yes | Example: `DE`. |

#### Quickstart

Fetch public holidays for a country, optionally filtered by year.

```bash
curl -X GET "https://api.eu.apyhub.com/apyhub/public-holidays/holidays?country=DE&year=2025" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with a `data` array. Each item in the array is an object with `date` and `name` fields for a holiday.

```json
{
  "data": [
    {
      "date": "2025-01-01",
      "name": "Neujahrstag"
    }
  ]
}
```

### List countries supported by the holidays endpoint

`GET https://api.eu.apyhub.com/apyhub/public-holidays` · 10 atoms · accepts `application/json` · returns `application/json`

#### Quickstart

Fetch the list of public holidays for the selected country.

```bash
curl -X GET "https://api.eu.apyhub.com/apyhub/public-holidays" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with a `data` array of strings, where each string is a public holiday entry.

```json
{
  "data": ["New Year's Day", "Independence Day", "Christmas Day"]
}
```

## About

## What it does

The Public Holidays API returns the official public holidays for a country and year. Send a country code, add a year if you need one, and get back every holiday as a date and a name in clean JSON, ready to drop into your scheduling or calendar logic.

There are two endpoints. The `/holidays` endpoint takes a required `country` code, such as `DE`, and an optional `year`, and returns a `data` array where each holiday has a `date` in `YYYY-MM-DD` format and a `name`. Holiday names come in the country's primary language, so Germany's New Year's Day is returned as `Neujahrstag`. The second endpoint lists every supported country, so you can build a country selector or check a code before you look it up.

Common uses include skipping public holidays when calculating delivery dates, SLAs and payment deadlines, blocking out non-working days in booking and scheduling tools, pre-filling leave and payroll calendars for teams in different countries, and showing region-aware holiday calendars in your product. Pulling the dates from an API keeps them current, so you are not maintaining a hard-coded list of bank holidays every year.

If you need to count the working days between two dates, use the [Working Day Calculator](https://apyhub.com/apyhub/service/count-working-days) or the [Business Days Calculator](https://apyhub.com/creightonnick0/service/business-day-math). For time zone data to go with your country calendars, use the [Timezones Dictionary](https://apyhub.com/apyhub/service/list-timezones).

You can try it right here in the playground. Start for free with 5 API calls a day, no card required, and look up the holidays for your own countries before you commit.

The API is also available through [ApyHub MCP](https://apyhub.com/mcp), so AI agents can check public holidays directly when they plan or schedule work.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/public-holidays
