US & Puerto Rico Holidays + Business Days API avatar

US & Puerto Rico Holidays + Business Days API

Pricing

from $2.10 / 1,000 api requests

Go to Apify Store
US & Puerto Rico Holidays + Business Days API

US & Puerto Rico Holidays + Business Days API

Official US federal, state (50 + DC) and Puerto Rico holidays with business-day math, Federal Reserve bank days, and Spanish names. Every date cites its legal source. Pay only for successful requests.

Pricing

from $2.10 / 1,000 api requests

Rating

0.0

(0)

Developer

JB Studio

JB Studio

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

18 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

OpenDay API: US & Puerto Rico Holidays + Business Days

A holiday API and business days API for the US and Puerto Rico, with the legal source on every date. OpenDay covers US federal holidays, all 50 states + DC, the Federal Reserve bank calendar and Puerto Rico, and answers "is it a business day?" and "what date is N business days from now?" for payroll, payments, shipping and deadline software.

Why OpenDay

  • Official legal sources on every date: each holiday cites its law or official calendar, with a link and a source type (official or secondary-copy).
  • Every US calendar in one API: US federal, all 50 states + DC (state-employee calendars), the Federal Reserve bank holiday calendar, and Puerto Rico's legal, government and banking calendars.
  • Business-day math built in: add or subtract business days, count business days between dates, and check one date, with each calendar's own weekend (observed-day) rules. date=today uses the right time zone.
  • Bilingual: every holiday has an English and a Spanish name.
  • Monitored sources: the official sources are checked every week, and every data change is verified by a person.
  • Cheap for whole calendars: one request returns a whole year of holidays, charged as one request.
  • Errors are never charged.
  • Fast HTTP API: call it directly through Standby mode, or run up to 1,000 requests in one batch.

What you can do with it

  • Payroll and payment dates: move a payday that falls on a holiday to the right business day, with each state's calendar or Puerto Rico's government calendar. Example: July 4, 2027 is a Sunday; in Puerto Rico it is observed on Monday, July 5, so is-business-day for 2027-07-05 in PR returns false.
  • ACH and wire settlement: bank transfers follow the Federal Reserve calendar, where a Saturday holiday is not moved to Friday (calendar=banking). Example: Friday, July 3, 2026 is a federal day off, but a banking business day.
  • Shipping and SLA due dates: "delivered in 10 business days" from any start date, skipping weekends and holidays. Example: 10 business days after December 10, 2027 is December 27, 2027 on the federal calendar and December 24, 2027 on the banking calendar.
  • HR and leave planning: the official day off for each state's employees, including partial days and holidays that fall on a weekend.
  • Puerto Rico businesses and government deadlines: the government calendar is checked against the yearly OATRH memo, with the Sunday-to-Monday rule.
  • Scheduling apps: skip holidays when booking, reminding or planning.

Quick start

In the Apify Console:

  1. Click Try for free (or Start) on this page.
  2. In Input, keep the example or list the requests you need (see Input).
  3. Click Start. Results appear in the Output tab and can be downloaded as JSON, CSV or Excel.

As an HTTP API (Standby mode). Use your Apify API token (Console → Settings → API & Integrations):

curl -H "Authorization: Bearer $APIFY_TOKEN" \
"https://jbstudio--openday-api.apify.actor/v1/is-business-day?date=today&region=PR"

From the Apify API (one batch run, results returned directly):

curl -X POST -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"requests":[{"endpoint":"holidays","params":{"country":"PR","year":2027}}]}' \
"https://api.apify.com/v2/acts/jbstudio~openday-api/run-sync-get-dataset-items"

Ready-made Tasks

Start from a saved setup and change it as you like:

Endpoints

The same endpoints work over HTTP (Standby, GET /v1/...) and in batch runs (the name in the first column).

Endpoint (batch name)What it returnsKey parameters
holidaysAll holidays of one region and yearcountry (US, PR, US-TX, …), year, optional calendar, dateBasis (actual/observed), include
is-business-dayWhether a date is a business day, and which holidays fall on itdate (YYYY-MM-DD or today), region, optional calendar
business-days/addThe date N business days before or after a start datestart (date or today), days (-3650 to 3650), region, optional calendar
business-days/betweenThe number of business days between two dates (both included)start, end (dates or today), region, optional calendar
regionsEvery region, its calendars, years, sources and verification statusnone
pr/municipiosThe 78 Puerto Rico municipios (code, name with accents, slug)none
pr/municipioOne municipio by code or name (accents and case do not matter)id (HTTP: /v1/pr/municipios/{id})
pr/zipThe municipio(s) of a Puerto Rico ZIP code, with each one's sharezip (HTTP: /v1/pr/zip/{zip})
pr/ivuPuerto Rico sales and use tax (IVU) rates with their law sectionsnone

Calendars: US: federal (default) or banking. PR: government (default), legal or banking. States (US-XX): state (default) or banking. today means the current date in the region's time zone: Eastern time for US, Atlantic time for PR, and the state capital's time zone for each state.

Input

{
"requests": [
{ "endpoint": "holidays", "params": { "country": "PR", "year": 2027 } },
{
"endpoint": "is-business-day",
"params": { "date": "today", "region": "US", "calendar": "banking" }
},
{
"endpoint": "business-days/add",
"params": { "start": "2027-12-20", "days": 10, "region": "US-TX" }
}
]
}
  • requests: up to 1,000 items per run.
  • endpoint: one of the batch names in the table above.
  • params: the same parameters as the HTTP API.
  • An empty input runs the default request (US federal holidays 2027). An invalid item returns an error item and does not stop the run.

Output

Each request becomes one dataset item (trimmed):

{
"endpoint": "holidays",
"params": { "country": "PR", "year": 2027 },
"ok": true,
"summary": "18 holidays (PR, government, official)",
"data": [
{
"id": "three-kings-day",
"date": "2027-01-06",
"observedDate": "2027-01-06",
"nameEn": "Three Kings' Day (Epiphany)",
"nameEs": "Día de Reyes",
"type": "legal",
"source": "Ley 26-2017, Art. 2.05, as amended by Ley 8-2021 and Ley 117-2022; OATRH Memorando Especial 12-2026 (July 17, 2026)",
"sourceUrl": "https://docs.pr.gov/files/OATRH/Contenido%20Nuevo/Memos/ME%2012-2026..pdf",
"sourceType": "official"
}
],
"meta": {
"calendar": "government",
"verificationStatus": "official",
"note": "Confirm official proclamations."
}
}
FieldMeaning
endpointThe endpoint that was called
paramsThe parameters you sent
oktrue when the request succeeded; false when error explains what to fix
summaryA one-line summary, shown in the "Results overview" table
dataThe result: a list of holidays (date, observedDate, nameEn, nameEs, type, source, sourceUrl, sourceType, …), a business-day answer, a date or a count
metaCalendar used, sources and the verification status (official, computed or projected)
errorOnly when ok is false: { code, message, details }, for example VALIDATION_ERROR

How much does it cost?

OpenDay uses pay-per-event pricing: you pay only for successful API requests. Errors are never charged.

Apify planPrice per 1,000 successful requests
Free$3.00
Starter$2.70
Scale$2.40
Business$2.10

There is also a tiny Actor-start fee of $0.00005 per run (one event per GB of memory). Examples on the Free plan:

  • 1,000 requests (for example, 1,000 "is it a business day?" checks): about $3.00.
  • 10,000 requests: about $30.
  • 100,000 requests: about $300 ($210 on the Business plan).

One holidays request returns a whole year for one region, so a full year for all 50 states + DC is 51 requests (about $0.15).

Data sources and accuracy

  • Every holiday includes source (the statute, regulation or official calendar), sourceUrl and sourceType. News sites are never used as a source.
  • official: confirmed on the jurisdiction's own official calendar for that year. computed: calculated from statute or written policy. projected: the list is set each year (for example by a governor) and is projected from recent official lists. Each response says which applies in meta.verificationStatus.
  • Main sources: 5 U.S.C. 6103 and Executive Order 11582 (federal holidays and observed days), the Federal Reserve holiday schedule (banks), each state's statute or state-employee calendar, and for Puerto Rico Ley 26-2017 (Art. 2.05), Ley 111-2014 (Código Político Art. 387, the Sunday-to-Monday rule), Ley 88-1969 and the yearly OATRH memo.
  • 2027 status: US federal and Puerto Rico government dates are official; 16 state calendars are official, 26 computed and 9 projected.
  • The official sources are checked every week by an automatic source watcher. When one changes, a person verifies it before any data changes; data is never changed automatically.
  • Years available: 2000–2100 for US and Puerto Rico, 2026–2100 for states and DC.

Results come from law and published schedules and may differ from a specific year's proclamation or an employer's own schedule. Confirm official proclamations.

Integrations and scheduling

  • Schedules: run a Task every day or every month (for example, "is today a business day?" each morning).
  • Webhooks: call your own URL when a run succeeds or fails.
  • API: start runs and read results from any language, or use the Standby HTTP endpoint directly.
  • Integrations: connect the results to tools available on Apify, such as Make, Zapier, n8n, Google Drive and Airtable.

FAQ

Does it include Puerto Rico holidays? Yes. Puerto Rico has three calendars: government (Executive Branch days off, checked against the yearly OATRH memo), legal (Código Político Art. 387 and Ley 88-1969) and banking (Federal Reserve).

Does it include state holidays? Yes, all 50 states and DC, each with its own state-employee calendar and weekend rule. Use codes like US-TX or US-CA.

How are observed days handled when a holiday falls on a Saturday or Sunday? Each calendar uses its own rule. Federal holidays move to Friday (Saturday) or Monday (Sunday). Puerto Rico moves only Sunday holidays, to Monday. Some states do not move Saturday holidays. Each holiday shows date and observedDate, and a note when it is not moved.

Why are bank holidays different from federal holidays? The Federal Reserve does not move a Saturday holiday to Friday, so banks are open on Fridays when federal offices are closed. Use calendar=banking for ACH and payment dates.

What time zone is "today"? The region's own: Eastern time for US, Atlantic time for PR, and the state capital's time zone for each state.

How far ahead are dates available? 2000–2100 for US and Puerto Rico, and 2026–2100 for states and DC.

How often is the data checked? The official sources are checked every week. Yearly official calendars (for example, the OATRH memo) are added when they are published, and every change is verified by a person.

Are Spanish names included? Yes. Every holiday has nameEn and nameEs.

What happens on errors? You get a clear error ({ code, message, details }) and you are not charged. In batch runs, one bad item does not stop the others.

Can I use it from my own app without the Apify Console? Yes. Call the Standby HTTP endpoint with your API token, or start runs through the Apify API.

En español

¿Es día laborable? La respuesta oficial para Puerto Rico y los 50 estados. OpenDay es un API de días feriados y días laborables de EE. UU. y Puerto Rico, con la ley citada en cada fecha.

  • Días feriados de Puerto Rico: calendario de gobierno (verificado con el memorando anual de la OATRH), legal y bancario, con la regla de domingo a lunes.
  • Nómina y pagos: calcule el día laborable correcto para fechas de pago y liquidación bancaria.
  • Plazos: ¿qué fecha será dentro de 10 días laborables?
  • Nombres en español para cada feriado.

Documentación y consultas en español: opendayapi.com/es/. Se paga por cada solicitud exitosa; los errores nunca se cobran.

Support

Questions, a date that looks wrong, or a calendar you need? Open an issue in the Issues tab of this page. More documentation and free lookup pages: opendayapi.com.