# Public Holidays (`holidays.public`)

Public holidays of a country for a year (100+ countries), with local names, regional scope and the next upcoming holiday.

- **Route:** `POST /v1/run/holidays.public`
- **Price:** $0.0005 per request ($0.50 per 1,000) · `cost_usd` on every response
- **Source:** Nager.Date (`nager`) · failover: no
- **Measured latency:** p50 61 ms · p95 61 ms · p99 61 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `country` | string | yes |  | Two-letter country code |
| `year` | integer | no | 0 | Year (0 = current year) |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `holidays` | date, name, local_name, nationwide, regions, types, weekday. |
| `next` | Next holiday on or after today. |
| `count` | Holidays returned. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/holidays.public \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"FR","year":2026}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('holidays.public', {'country': 'FR', 'year': 2026})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run holidays.public '{"country":"FR","year":2026}'
```

Quote first (free, validates input): `POST /v1/quote/holidays.public` with the same body.
