Public Holidays Scraper avatar

Public Holidays Scraper

Pricing

from $19.00 / 1,000 result items

Go to Apify Store
Public Holidays Scraper

Public Holidays Scraper

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.

Pricing

from $19.00 / 1,000 result items

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

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 itWhat they scrape Nager.Date for
HR and payroll teamsBuild accurate leave and payroll calendars for every office location
Travel and booking platformsForecast demand spikes around national holidays in destination countries
Market researchersCompare how many public holidays each country grants its workforce
Event plannersAvoid scheduling launches or conferences on a local public holiday
Data analystsEnrich 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 keyReads the public Nager.Date feeds directly, no registration or rate-limit headaches
Global coverageSupports 100+ countries and territories with ISO 3166-1 alpha-2 codes
County detailOptional ISO 3166-2 filter returns only holidays observed in a specific state or province
Long-weekend modeFinds bridges between public holidays and weekends for leave planning
Upcoming modePulls 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 ScraperBuild it in-houseBy hand
SetupRun it now, zero configDays of engineeringNone, but hours per pull
When Nager.Date changesMaintained for youYou fix itYou re-learn the page
Proxies, retries, anti-botBuilt inYour problemBrowser only
OutputFixed JSON schema, CSV/Excel exportWhatever you buildCopy-paste
CostPay per resultEngineering timeAnalyst 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 collectedApproximate 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

QuestionAnswer
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.

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.