# Nager.Date API

> Returns public holidays, upcoming holidays, long weekends and country info for many countries.

Category: Utilities. Region: global. 8 endpoints at `https://api.hoshime.com/v1/nagerdate/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/nagerdate
## GET /v1/nagerdate/countries

The countries that Nager.Date has holidays for.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `countryCode` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/nagerdate/countries" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nagerdate/countryInfo

A country's names, region and the countries it borders, by two-letter code.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | yes | Two-letter country code, such as ID for Indonesia. (e.g. ID) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `borders` (Country[]), `borders[].countryCode` (string), `borders[].name` (string), `commonName` (string), `countryCode` (string), `officialName` (string), `region` (string)

```bash
curl "https://api.hoshime.com/v1/nagerdate/countryInfo?country=ID" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nagerdate/publicHolidays

The public holidays of one country in one year.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `year` | integer | yes | Year, from 1900 to 2100, such as 2026. (e.g. 2026) |
| `country` | string | yes | Two-letter country code, such as ID for Indonesia. (e.g. ID) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `counties` (Label[]), `counties[].name` (string), `countryCode` (string), `date` (string), `global` (boolean), `localName` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/nagerdate/publicHolidays?year=2026&country=ID" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nagerdate/nextHolidays

The next upcoming public holidays of one country.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | yes | Two-letter country code, such as ID for Indonesia. (e.g. ID) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `counties` (Label[]), `counties[].name` (string), `countryCode` (string), `date` (string), `global` (boolean), `localName` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/nagerdate/nextHolidays?country=ID" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nagerdate/longWeekend

The long weekends of one country in one year, with the bridge days that make them.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `year` | integer | yes | Year, from 1900 to 2100, such as 2026. (e.g. 2026) |
| `country` | string | yes | Two-letter country code, such as ID for Indonesia. (e.g. ID) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `bridgeDays` (Label[]), `bridgeDays[].name` (string), `dayCount` (integer (int64)), `endDate` (string), `needBridgeDay` (boolean), `startDate` (string)

```bash
curl "https://api.hoshime.com/v1/nagerdate/longWeekend?year=2026&country=ID" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nagerdate/isTodayHoliday

Whether today is a public holiday in one country.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | yes | Two-letter country code, such as ID for Indonesia. (e.g. ID) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `countryCode` (string), `isHoliday` (boolean)

```bash
curl "https://api.hoshime.com/v1/nagerdate/isTodayHoliday?country=ID" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nagerdate/nextHolidaysWorldwide

The next upcoming public holidays in every country Nager.Date covers, each with its country code, soonest first.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `counties` (Label[]), `counties[].name` (string), `countryCode` (string), `date` (string), `global` (boolean), `localName` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/nagerdate/nextHolidaysWorldwide" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nagerdate/workingDays

The working days of one country between two dates, both included: weekdays that are not nationwide public holidays. Covers up to four years.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `country` | string | yes | Two-letter country code, such as ID for Indonesia. (e.g. ID) |
| `from` | string | yes | First day, YYYY-MM-DD. (e.g. 2026-01-01) |
| `to` | string | yes | Last day, YYYY-MM-DD, on or after from. (e.g. 2026-12-31) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `country` (string), `days` (integer (int64)), `from` (string), `holidaysOnWeekdays` (integer (int64)), `to` (string), `workingDays` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/nagerdate/workingDays?country=ID&from=2026-01-01&to=2026-12-31" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
