ParseForge Scrapers

Public Holidays Scraper

parseforge/nager-public-holidays-scraper

AutomationTravelOther

Scrapes public holidays by country and year, available countries, upcoming holidays, or long weekends. Returns each holiday as a flat row with date, local name, English name, and county codes.

Run this scraper See the API call
Total users
2
Monthly active
1
Total runs
158
Bookmarked
0
Rating
Not rated yet
Last modified
9 days ago

Overview

ParseForge

Public Holidays Scraper

Scrape public holidays for any country and year, or the next 365 days, from Nager.Date. Each holiday comes with its date, local name, English name, and county-level detail. No API key. Export to CSV, JSON, Excel, or XML.

Nager.Date's public API is rate-limited and needs a key for heavy use. This reads the public holiday feeds directly, filtered by country, year, and sub-country region, and returns each match in one fixed schema.

Who uses it What they scrape Nager.Date for
HR and payroll teams Build accurate leave and payroll calendars for every office location
Travel and booking platforms Forecast demand spikes around national holidays in destination countries
Market researchers Compare how many public holidays each country grants its workforce
Event planners Avoid scheduling launches or conferences on a local public holiday
Data analysts Enrich dashboards with holiday flags for time-series forecasting

What it does

This Actor collects public holidays from Nager.Date by country, year, or upcoming 365-day window, and returns each holiday as a flat row.

  • 🌍 Four export modes: public holidays by year and country, the full country list, the next 365 days, and long-weekend bridges.
  • πŸ—“οΈ Year range 1975 to 2100: query historical holidays or plan decades ahead.
  • πŸ“ County-level filtering: pass ISO 3166-2 codes like US-CA or CA-ON to keep only regional holidays.
  • πŸ” Multi-country runs: feed up to 100 country codes in one run and get one combined dataset.
  • πŸ“¦ Flat row output: every holiday is one record with date, names, and county scope, ready for CSV or JSON.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Nager.Date data

πŸ“… Build a global HR calendar.

An HR team runs the Actor for all office countries and the current year, then imports the CSV into their payroll system to block leave on public holidays.

✈️ Forecast travel demand.

A booking platform pulls the next 365 days of holidays for top destinations and feeds the dates into a pricing model to raise rates on peak days.

πŸ“Š Compare holiday counts by country.

A researcher runs the countries mode to get the full list, then queries holidays mode for each country and year to build a comparison table.

πŸ–οΈ Plan long weekends.

An employee uses the longWeekends mode for their country and year to find all bridge days and plan vacation with minimal leave days.

πŸ“ˆ Enrich time-series data.

A data analyst adds holiday flags to daily sales data by running the Actor for the relevant country and years, then joining on date.

Why choose this scraper

What you get
No API key Reads the public Nager.Date feeds directly, no registration or rate-limit headaches
Global coverage Supports 100+ countries and territories with ISO 3166-1 alpha-2 codes
County detail Optional ISO 3166-2 filter returns only holidays observed in a specific state or province
Long-weekend mode Finds bridges between public holidays and weekends for leave planning
Upcoming mode Pulls the next 365 days of holidays for any country in one run

How it compares

No other Store actor targets Nager.Date the same way, so the honest comparison is with the alternatives teams actually weigh.

Public Holidays Scraper Build it in-house By hand
Setup Run it now, zero config Days of engineering None, but hours per pull
When Nager.Date changes Maintained for you You fix it You re-learn the page
Proxies, retries, anti-bot Built in Your problem Browser only
Output Fixed JSON schema, CSV/Excel export Whatever you build Copy-paste
Cost Pay per result Engineering time Analyst hours

Configure the run

Drive the Actor from country codes, years, and optional sub-country codes, and filters run as each holiday is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
 "maxItems": 10,
 "mode": "holidays",
 "countries": [
 "US"
 ],
 "years": [
 "2025"
 ]
}

A larger pull:

{
 "maxItems": 200,
 "mode": "holidays",
 "countries": [
 "US"
 ],
 "years": [
 "2025"
 ]
}

Pricing

Pay-per-result: $0.021 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $2.10
1,000 results $21.00
10,000 results $210.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Public Holidays Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Nager.Date through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/nager-public-holidays-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check that you selected the correct mode and provided the required inputs. For holidays, upcoming, and longWeekends modes you must pass at least one country code. For holidays and longWeekends, also pass a year or leave it empty for the current year.

Why are county filters not working?

Make sure you are using valid ISO 3166-2 codes like US-CA or CA-ON. The filter matches against the holiday's counties field, so if a holiday is nationwide it may not appear when you filter by a specific county.

Why did I get holidays for the wrong year?

If you leave the years field empty, the Actor defaults to the current year. Pass an explicit year like 2025 to avoid confusion.

Why does countries mode ignore my country codes?

Countries mode returns the full list of available countries and ignores the countries input. Use holidays, upcoming, or longWeekends modes to query specific countries.

Why is my run slow with many countries?

The Actor processes each country sequentially. Reduce the number of countries or increase maxItems to speed up the run.

FAQ

Question Answer
Do I need an API key for Nager.Date? No. This Actor reads the public holiday feeds directly, so no key or registration is required.
Which countries are supported? The Actor supports over 100 countries and territories. Use the countries mode to get the full list with ISO 3166-1 alpha-2 codes.
Can I get holidays for multiple countries in one run? Yes. Pass an array of country codes in the countries input field and the Actor returns one combined dataset.
What is the difference between holidays and upcoming modes? Holidays mode returns public holidays for a specific year and country. Upcoming mode returns the next 365 days of holidays from today for the given country.
How do I filter by state or province? Use the counties input with ISO 3166-2 codes like US-CA or CA-ON. The Actor keeps only holidays whose county field contains at least one of those codes.
What years can I query? The supported range is 1975 to 2100. If you leave years empty, the Actor defaults to the current year.
What does longWeekends mode return? It returns public holidays that create a long weekend, typically a Friday or Monday adjacent to a weekend, for the given country and year.
What output formats are available? The Actor exports to CSV, JSON, Excel, and XML. You can choose the format when you run it on Apify.
Is there a limit on how many holidays I can scrape? You can set maxItems up to 1,000,000 per run. The default is 10.
Does the Actor include local holiday names? Yes. Each holiday row includes the local name and the English name, plus the date and county scope.

Related actors

Browse the full ParseForge collection for more scrapers.

πŸ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Nager.Date. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
maxItems integer How many holidays to collect per run. 10
mode string (4 options) What to export. Public holidays for a year, the list of available countries, the next 365 days of holidays for a country, or long-weekend bridges. holidays
countries array ISO 3166-1 alpha-2 country codes. Required for holidays, upcoming, and longWeekends modes. Ignored for countries mode. ["US"]
years array Years to query for holidays / longWeekends modes. Range supported: 1975 - 2100. Defaults to the current year if empty. ["2025"]
counties array Optional ISO 3166-2 sub-country codes (e.g. US-CA, US-NY, CA-ON). When set, holidays are filtered to those whose 'counties' field contains at least one of these. Leave empty for nationwide-only. not set

Pricing

from $19.00 per 1,000 results

Charged forWhat it isPrice each
Result Item Charged once per result collected. $0.019 to $0.021

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST Β· run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~nager-public-holidays-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run Public Holidays Scraper on Apify All scrapers