# TextKit Business-Day Counter

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

Counts the number of business days (and calendar days) between two dates

## Facts

- Endpoint: GET https://textkit.johnaio281.workers.dev/api/tk/business-days?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/textkit-business-day-counter-6246bcd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sny_84a39BfEbFlm0UeAM

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 textkit-business-day-counter-6246bcd0
```

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

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use business-day calculation with no API key or signup required. It is ideal for agents that need occasional weekday counts within automation workflows or scheduling tasks. It does not account for public holidays (only excludes weekends), so prefer a dedicated holiday-aware calendar API if public holidays matter.

## Known failure modes

- Missing required `from` or `to` query parameters — returns a validation error
- Invalid date components (e.g. month 13, day 32) — likely returns an error response
- `to` date earlier than `from` date — may return zero or negative business days
- Payment failure via x402 protocol — returns 402 Payment Required

## How this service works

General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.

## Output

Returns a JSON object with two integer fields: `businessDays` (the count of weekdays, i.e. Monday–Friday, in the range) and `calendarDays` (the total inclusive calendar-day span). For example, a 4-calendar-day range spanning no weekend returns {"businessDays":4,"calendarDays":4}.

## 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"
     ],
     "properties": {
      "to": {
       "type": "object",
       "required": [
        "year",
        "month",
        "day"
       ],
       "properties": {
        "day": {
         "type": "integer"
        },
        "year": {
         "type": "integer"
        },
        "month": {
         "type": "integer"
        }
       }
      },
      "from": {
       "type": "object",
       "required": [
        "year",
        "month",
        "day"
       ],
       "properties": {
        "day": {
         "type": "integer"
        },
        "year": {
         "type": "integer"
        },
        "month": {
         "type": "integer"
        }
       }
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "businessDays": 4,
  "calendarDays": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/textkit-business-day-counter-6246bcd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from textkit.johnaio281.workers.dev](https://www.zero.xyz/host/textkit.johnaio281.workers.dev/llms.txt)
