← Agent Data Hub · Search endpoints · /llms.txt

Working Days and Deadlines: Count, Add Business Days, End of a Period by BGB §§ 187-193 (Werktage, Fristende)

Working days (Werktage, Arbeitstage, business days) between two dates, a date plus or minus n working days, with the public holidays of the country and region (DE all 16 states, AT, FR, IE by law; 247 countries in all). For Germany the end of a period (Fristende, Fristberechnung) by §§ 187, 188, 193 BGB: event or first day, days, weeks, months, years, moved off Saturday, Sunday and the state's holidays. Names the rules and holidays used. Calculation, not legal advice.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/date-business-days?country=DE&from=2026-03-02&to=2026-03-31&region=BY&compact=1

Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"date-business-days"}

How to fetch it

curl:

curl -s 'https://api.agentdatahub.de/api/v1/call/date-business-days?country=DE&from=2026-03-02&to=2026-03-31&region=BY&compact=1'

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/date-business-days?country=DE&from=2026-03-02&to=2026-03-31&region=BY&compact=1"
with urllib.request.urlopen(url, timeout=30) as r:
    data = json.load(r)
print(json.dumps(data, indent=2)[:2000])

Google Sheets:

This endpoint answers in JSON. Any recorded series loads as a table with =IMPORTDATA("https://api.agentdatahub.de/api/v1/series/<id>?format=csv") (Excel: Data → From Web); find ids with /api/v1/series?q=….

Parameters

countryISO-2 country code (required), e.g. DE
fromStart date YYYY-MM-DD (required)
toEnd date YYYY-MM-DD: counts the working days, both days counted
yearInstead of from/to: a whole year, e.g. 2027 (default: this year)
addInstead of to: working days to add, e.g. 10 or -3 (0: the next working day if from is none)
regionOptional region code or name, e.g. BY or Bayern, FR-67; its holidays count too
periodGermany only, instead of to/add: length of a period by BGB, e.g. 14d, 2w, 3m, 1y; answers its end
startWith period: event (default, the day of the event is not counted, § 187 Abs. 1) or begin (the day is the first day, § 187 Abs. 2)
weekendOptional, default sat,sun; sun counts Saturday as a working day (BGB Werktag); fri,sat
closedOptional extra closed dates, comma-separated YYYY-MM-DD (e.g. 2026-12-24,2026-12-31)

Example response (live, compact)

{
  "apiId": "date-business-days",
  "trust": "checked",
  "data_freshness": "cached",
  "data": {
    "answer": "Germany, Bavaria: 22 working days from 2026-03-02 to 2026-03-31, both days counted.",
    "country": "DE",
    "region": "DE-BY",
    "from": "2026-03-02",
    "to": "2026-03-31",
    "working_days": 22,
    "calendar_days": 30,
    "weekend_days": 8,
    "holidays_on_working_days": 0,
    "rules": [
      "Saturday and Sunday off",
      "public holidays of Germany, Bavaria by its holiday law"
    ],
    "holidays": [],
    "source": "Calculated by Agent Data Hub from the statutory holiday rules",
    "licence": "Facts from law, free to reuse (law texts carry no copyright: § 5 UrhG, § 7 öUrhG)",
    "as_of": "2026-11-19",
    "checked": "2026-11-19",
    "computed": true,
    "note": "Calculation, not legal advice (Berechnung, keine Rechtsberatung).",
    "page": "https://api.agentdatahub.de/workdays/DE/2026"
  },
  "source": "Calculated by Agent Data Hub from BGB §§ 187-193 and the statutory holiday rules",
  "source_url": "https://api.agentdatahub.de/workdays",
  "computed": true,
  "license": "BGB and Facts from law, free to reuse (law texts carry no copyright: § 5 UrhG, § 7 öUrhG); other countries' holidays: holidays library (github.com/vacanza/holidays), MIT licence",
  "licence_status": "yellow",
  "checked": "2026-12-02"
}

Source & license

SourceCalculated by Agent Data Hub from BGB §§ 187-193 and the statutory holiday rules
LicenseBGB and Facts from law, free to reuse (law texts carry no copyright: § 5 UrhG, § 7 öUrhG); other countries' holidays: holidays library (github.com/vacanza/holidays), MIT licence
Source URLhttps://api.agentdatahub.de/workdays
Termshttps://www.gesetze-im-internet.de/urhg/__5.html
CategoryGeodata, Weather & Environment › 4. Countries, Holidays & Timezones · more: de-air-quality-uba · de-climate-history-dwd · de-ev-charging-nearby