Home › Everyday Life › Count Spain Working Days

Count Spain Working Days

Counts authority-scope working and non-working dates in a range.

When to use

You need an auditable Spain working-day count.

Do not use when: The remaining national, autonomous-community, Ceuta/Melilla and up to two municipal local holidays require a jurisdiction-specific calendar.

Example user requests

Formula

for each included date: working_days += status.is_working_day

Normalize endpoints and count exact authority events over the declared weekday baseline.

Inputs

ParameterTypeUnitRequiredDescription
start_datedateyesFirst date in 2026-2026.
end_datedateyesLast date in 2026-2026.
include_start_datebooleandefault trueWhether start_date participates.
include_end_datebooleandefault trueWhether end_date participates.

Outputs

OutputTypeUnitDescription
working_daysintegerAuthority-scope working dates.
non_working_daysintegerWeekend and exact authority events.
public_holidays_countedlistExact events in the range.
territorystringES (Spain).
territory_namestringSpain
day_typestringDeterministic classification: official_weekend, regular_workday, or the first published authority event kind.
holiday_namesstring_listEvents applying on the date.
holiday_kindsstring_listAuthority event classifications.
holiday_detailslistStructured event details, including partial-day notes where published.
calendar_scopestringSpain nationwide national non-substitutable labour holidays for 2026
holiday_policystringOnly national non-substitutable holidays from the BOE calendar are included; autonomous-community and local holidays are not inserted.
substitute_day_policystringAutonomous-community substitution choices and local compensatory arrangements are not inferred.
calendar_profilestringspain-national-holidays
dataset_versionstringes-national-holidays-2026.1
sourceslistAuthority and legislation sources.

Example

Coverage starts with a published event: {"start_date":"2026-01-01","end_date":"2026-01-01","include_start_date":true,"include_end_date":true} → {"working_days":0,"non_working_days":1}

GET https://tttkmbb.com/api/v1/calculate/spain-national-working-days-between?start_date=2026-01-01&end_date=2026-01-01&include_start_date=true&include_end_date=true

Machine access

Sources

FAQ

Does this answer every Spanish region and municipality?

No. It is the nationwide non-substitutable subset only; autonomous-community, Ceuta/Melilla and local holidays require a jurisdiction-specific official calendar.

Related calculators