# AgentTools Business Day Counter

> AgentTools Business Day Counter is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Counts working days (Mon–Fri) between two dates, breaking out weekends and optionally excluding public holidays for a given country via Nager.Date

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/live/business-days?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-business-day-counter-f1b3d597
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nvQiAyPVQw_L22KjhNwse

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 agenttools-business-day-counter-f1b3d597
```

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

## When to prefer this

Use this endpoint when you need a reliable, fast computation of working days between two dates with optional country-specific public holiday exclusion. Prefer it over manual calendar arithmetic when holiday accuracy matters for SLAs, payment terms, project planning, or compliance deadlines. It is cheaper and simpler than spinning up a full calendar API integration and supports real national holiday calendars via Nager.Date.

## Known failure modes

- Missing required 'start' or 'end' query parameters returns an error
- Invalid date format (non-ISO) may cause a parse error or unexpected results
- Unsupported or unrecognized country code may result in no holidays being excluded or an error
- End date before start date may return zero or a negative count
- Nager.Date upstream unavailability may affect holiday exclusion accuracy

## How this service works

Count business days (Mon–Fri) between two dates, with weekend and holiday breakdown. Provide a country code and real public holidays (via Nager.Date) are excluded too. Use this when an agent needs to working days between dates, optionally minus public holidays.

## Output

Returns the count of business days (Mon–Fri) between the two provided dates, along with a breakdown of weekend days excluded and public holidays excluded (if a country code was supplied). Holiday data is sourced from Nager.Date for real national public holidays.

## 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"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "End date"
      },
      "start": {
       "type": "string",
       "description": "Start date"
      },
      "country": {
       "type": "string",
       "description": "Excludes that country's public holidays"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-business-day-counter-f1b3d597/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
