# Delx Business Days

> Delx Business Days is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Counts business days between two dates, accounting for weekdays and US federal holidays, without relying on any third-party calendar API.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/business-days
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-business-days-0c161e7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rQvlouZpc8DJuByFfD5Mb

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 delx-business-days-0c161e7d -d '<json body>'
```

Example prompt: How many business days are there between March 3, 2025 and April 18, 2025, excluding US federal holidays?

## When to prefer this

Choose this endpoint when you need a reliable, first-party business-day count without integrating a third-party calendar service. It is ideal for scheduling, SLA calculations, contract deadlines, and payroll windows where US federal holidays matter. Prefer it over manual date arithmetic or general-purpose date libraries when accuracy around US holidays is required and you want a single deterministic API call at very low cost ($0.002 USDC).

## Known failure modes

- Invalid or unparseable date format returns an error
- End date before start date may return zero or an error
- Unsupported calendar type parameter returns a validation error
- Payment failure via x402 protocol prevents the call from completing
- Extremely large date ranges may return unexpected results

## How this service works

Business-day counter for agents: weekdays or US federal holidays for $0.002 USDC—first-party calendar, no third-party API. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

Returns the count of business days between the specified start and end dates, with US federal holidays optionally excluded from the weekday count, giving an integer result and details about the date range used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-business-days-0c161e7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
