Reference: Working days
Working days between two dates by state, without weekends and public holidays.
Counts the working days (Arbeitstage) between two dates in a federal state: Monday to Friday, or Monday to Saturday if you choose, minus the statutory public holidays. For partial months, day rates, deadlines and workforce planning.
Endpoints and calls
#| Access | Call |
|---|---|
| REST API | GET /hr/arbeitstage |
| SDK JavaScript | qk.hr.arbeitstage(…) |
| SDK Python | qk.hr.arbeitstage(…) |
| CLI | qk arbeitstage --von 2027-01-01 --bis 2027-01-31 --land HE |
| MCP tool | hr_arbeitstage |
Parameters
#| Name | Type | Required | Default | Allowed | Description |
|---|---|---|---|---|---|
von | date (YYYY-MM-DD) | yes | First day, inclusive | ||
bis | date (YYYY-MM-DD) | yes | Last day, inclusive. Not before von, a period of at most ten years, within 2015 to 2035 | ||
land | text | yes | BW, BY, BE, BB, HB, HH, HE, MV, NI, NW, RP, SL, SN, ST, SH, TH | State code, for example HE; the name such as Hessen also works | |
samstag | true or false | no | false | Count Saturdays as working days (Werktage). Default: false | |
regionale | true or false | no | false | Subtract regional holidays. Default: false |
The API rejects unknown parameters with unbekannter_parameter. In addition there are format and trennzeichen, see CSV.
Response fields
#| Field | Type | Meaning |
|---|---|---|
datensatz | Text | Dataset id |
von | Date | First day, inclusive |
bis | Date | Last day, inclusive |
land | Text or null | State code |
land_name | Text | Name of the state |
samstag_als_arbeitstag | Boolean | Whether Saturdays are counted |
regionale_feiertage_abgezogen | Boolean | Whether regional holidays are subtracted |
kalendertage | Integer | Number of calendar days |
arbeitstage | Integer | Number of working days |
feiertage_an_arbeitstagen | List | Public holidays subtracted |
rechtsgrundlage | Text | Law or ordinance |
quelle | Object | Title and URL of the source the value is based on |
quellen | List | All legal provisions the response is based on, with title and URL |
hinweise | List | Limits of the values or the calculation, in sentences |
stand | Date | Date of the last check against the source |
lizenz | Text | Terms of use for the values |
zitat | Text | Ready-made sentence for citing, with value, validity, legal basis and source |
datenstand | Text | Id of the data snapshot: date and sequence number of the last changelog entry (/v1/aenderungen) affecting this dataset. The same datenstand means unchanged content, useful for auditors and for comparing two requests |
Example
#Call with von = 2027-01-01, bis = 2027-01-31, land = HE. The response is generated by the same code that answers the API.
api.quellenkontor.dev/v1/hr/arbeitstage?von=2027-01-01&bis=2027-01-31&land=HE
Zur API-Doku →This is how an agent calls the tool. Server setup is described in the MCP docs.
Error cases
#| Status | Code | When |
|---|---|---|
| 400 | parameter_fehlt | if von or bis or land is missing |
| 400 | ungueltiger_parameter | wrong format or a value outside: land (BW, BY, BE, BB, HB, HH, HE, MV, NI, NW, RP, SL, SN, ST, SH, TH) |
| 400 | unbekannter_parameter | a parameter this dataset does not have |
| 404 | kein_wert | outside the coverage (2015 to 2035) or the value for this period has not been promulgated yet |
| 401, 429 | see errors | all error codes |
Schema for MCP
#This is how the MCP server describes the arguments of the tool hr_arbeitstage:
Source and freshness
#| Item | Content |
|---|---|
| Source | Public holiday laws of the federal states (Feiertagsgesetze der Länder) |
| License | Calculation under the cited provisions. Use under the Quellenkontor terms of use. |
| Updates | when the law changes |
| Coverage | Germany, 2015 to 2035 |
| Last checked | September 23, 2026 |
| Next expected change | follows the public holidays |
Overview with tables and questions about the dataset: Working days calculator. Report an error through the contact form.
Something missing or unclear? Write to us and we will extend the docs.