# WebRef Business Days Between

> WebRef Business Days Between is a paid API for AI agents from webref.johnaio281.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Calculates the number of business days between two dates, excluding weekends

## Facts

- Endpoint: GET https://webref.johnaio281.workers.dev/api/time/business_days_between?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webref-business-days-between-06dc2307
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_emL1Fco-MqtvC7riMLqFS

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 webref-business-days-between-06dc2307
```

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

## When to prefer this

Use this endpoint when you need to programmatically count working days between two calendar dates for scheduling, deadline tracking, or SLA calculations, without writing custom calendar logic. Prefer this over manual arithmetic when weekends must be excluded and a lightweight, pay-per-call approach without signup is acceptable.

## Known failure modes

- Missing 'from' or 'to' query parameters returns an error
- Invalid date format (non-ISO strings) may cause parsing failure
- 'from' date after 'to' date may return zero or negative count
- Payment not provided or insufficient USDC triggers 402 Payment Required

## How this service works

Web standards and time reference for AI agents: HTTP status codes with what the client should do, retry semantics, MIME types and content-type matching, request-method safety and idempotency, plus deadline arithmetic - time until a moment, weekday and business-day checks, duration conversion and Unix timestamps. Pay per call in USDC on Base via x402 or USDC on Tempo via MPP. No signup, no API key, no KYC.

## Output

Returns the count of business days (Monday through Friday, excluding weekends) between the provided 'from' and 'to' dates, enabling deadline arithmetic and scheduling calculations.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "to": {
      "def": {
       "type": "string"
      },
      "type": "string"
     },
     "from": {
      "def": {
       "type": "string"
      },
      "type": "string"
     },
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webref-business-days-between-06dc2307/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webref.johnaio281.workers.dev](https://www.zero.xyz/host/webref.johnaio281.workers.dev/llms.txt)
