# FastX402 Workdays Between

> FastX402 Workdays Between is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-18).

Calculates the number of business days between two dates for a given country, accounting for weekends and public holidays.

## Facts

- Endpoint: GET https://fastx402.tools/workdays-between?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-workdays-between-979d870b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mfI93trWbMb2Nprbx0FVe

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 fastx402-workdays-between-979d870b
```

Example prompt: How many business days are there between October 26 and November 2, 2026 in Turkey, accounting for public holidays and weekends?

## When to prefer this

Choose this endpoint when you need accurate business day counts for a specific country, including public holiday awareness, without managing your own holiday database. Ideal for deadline calculations, scheduling, SLA monitoring, and financial workflows where country-specific non-working days matter. It requires no account or API key — only USDC payment via x402 on Base or Solana.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns an error
- Unsupported or unrecognized 2-letter country code returns an error
- End date before start date may return 0 or an error
- Payment not processed due to insufficient USDC balance causes a 402 response
- Network timeout on slow connections

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object with the start date, end date, country code, number of business days, number of weekend days, and an array of public holidays falling within the range (each with date, English name, and local name).

## 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": [
      "start",
      "end",
      "country"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "Last day, YYYY-MM-DD (not counted)"
      },
      "start": {
       "type": "string",
       "description": "First day, YYYY-MM-DD (counted)"
      },
      "country": {
       "type": "string",
       "description": "2-letter country code, e.g. TR, US, DE"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "end": {
       "type": "string"
      },
      "start": {
       "type": "string"
      },
      "country": {
       "type": "string"
      },
      "holidays": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "local_name": {
          "type": "string"
         }
        }
       }
      },
      "weekend_days": {
       "type": "integer"
      },
      "business_days": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "2026-11-02",
  "start": "2026-10-26",
  "country": "TR",
  "holidays": [
   {
    "date": "2026-10-29",
    "name": "Republic Day",
    "local_name": "Cumhuriyet Bayramı"
   }
  ],
  "weekend_days": 2,
  "business_days": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-workdays-between-979d870b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
