# Business Day & Deadline API – Between Dates

> Business Day & Deadline API – Between Dates is a paid API for AI agents from businessdayapi.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Calculates the number of business days between two dates for a given country (and optional subdivision), accounting for local public holidays and country-specific weekend rules.

## Facts

- Endpoint: GET https://businessdayapi.com/v1/between?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-day-deadline-api-between-dates-c0827658
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RIU5gNXbA34N3ofSMqlG9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability business-day-deadline-api-between-dates-c0827658
```

Example prompt: How many business days are there between April 1 and April 8, 2026 in Germany, taking into account German public holidays?

## When to prefer this

Choose this endpoint when you need accurate, up-to-date business day counts across ~200 countries with proper public holiday data and country-specific weekend rules (including non-standard weekends like Fri/Sat in Egypt or Thu/Fri in some Middle Eastern countries). It is especially valuable when you need subdivision-level precision (e.g. German Bundeslaender, US states). Prefer this over generic date math libraries which lack current holiday data and regional rules.

## Known failure modes

- Missing required parameters (from, to, country) returns an error
- Invalid or unsupported country code returns an error or empty holiday list
- Invalid date format causes a parsing error
- Unsupported subdivision code may fall back to country-level holidays or return an error
- Invalid custom weekend override format causes a bad request error

## How this service works

Verified, always-current business-day arithmetic for ~200 countries incl. subdivisions (German Bundeslaender, US states) and correct per-country weekend rules (e.g. Fri/Sat in Egypt). Informational only — verify legally binding deadlines with the competent authority. Not legal advice.

## Output

A JSON object containing: the number of business days between the two dates, the total calendar days, the country code, the from and to dates, a list of public holidays that fell in that range (with names and dates), the data source (e.g. nager.date), and a verifiedAt timestamp indicating data freshness.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to",
      "country"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "region": {
       "type": "string",
       "description": "optional ISO 3166-2 subdivision suffix, e.g. BY (Bavaria), CA (California)"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code, e.g. DE, US, JP"
      },
      "weekend": {
       "type": "string",
       "description": "optional override: sat-sun | fri-sat | custom:THU,FRI"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-04-08",
  "from": "2026-04-01",
  "source": "nager.date",
  "country": "DE",
  "holidays": [
   {
    "date": "2026-04-03",
    "holidayName": "Karfreitag"
   }
  ],
  "verifiedAt": "2026-08-17T00:00:00Z",
  "businessDays": 3,
  "calendarDays": 7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/business-day-deadline-api-between-dates-c0827658/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from businessdayapi.com](https://www.zero.xyz/host/businessdayapi.com/llms.txt)
