# AgentStall ZA – Count Business Days (South Africa)

> AgentStall ZA – Count Business Days (South Africa) is a paid API for AI agents from agentstall.nilesh-b54.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-02).

Returns the number of South African business days (excluding weekends and public holidays) between two dates.

## Facts

- Endpoint: GET https://agentstall.nilesh-b54.workers.dev/v1/count-business-days?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstall-za-count-business-days-south-africa-9e1ab2ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X1zeRES9Pr0Oy8ORhs_Ws

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 agentstall-za-count-business-days-south-africa-9e1ab2ba
```

Example prompt: How many South African business days are there from December 1, 2026 to December 31, 2026? I need to account for weekends and SA public holidays.

## When to prefer this

Use this endpoint when you need business day counts specifically calibrated to the South African public holiday calendar. It is more accurate than generic weekday counters for ZA-specific SLA calculations, contract timelines, SARS filing windows, and payroll scheduling where SA public holidays must be excluded.

## Known failure modes

- Missing 'from' or 'to' query parameters returns a 400 error
- Date range exceeding 5 years returns a validation error
- Malformed date format (non-YYYY-MM-DD) returns a 400 error
- Unpaid call (no x402 payment) returns a 402 PAYMENT-REQUIRED response
- Reversed dates (from after to) likely returns an error or zero count

## How this service works

Counts the working days between two dates in 100+ countries (any ISO country code), excluding the local weekend and public holidays, and lists the holidays excluded. Verified calendars for South Africa, Nigeria, Kenya, Egypt, Ghana, Morocco, Rwanda, Uganda, Tanzania, Mauritius and Botswana. Useful for SLAs, turnaround times, leave calculations and deadlines measured in business days.

## Output

A JSON object containing the 'from' date (exclusive start), 'to' date (inclusive end), the count of South African business days (excluding weekends and public holidays) between them, and the total calendar days in the range.

## 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": "string",
       "description": "End date, YYYY-MM-DD (inclusive), within 5 years of 'from'"
      },
      "from": {
       "type": "string",
       "description": "Start date, YYYY-MM-DD (exclusive)"
      },
      "country": {
       "type": "string",
       "description": "ISO country code, e.g. ZA (default), KE, NG, EG, GH, US, GB, DE, IN, AE. Verified calendars for ZA, NG, KE, EG, GH, MA, RW, UG, TZ, MU and BW"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-12-31",
  "from": "2026-12-01",
  "businessDays": 20,
  "calendarDays": 30
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstall-za-count-business-days-south-africa-9e1ab2ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstall.nilesh-b54.workers.dev](https://www.zero.xyz/host/agentstall.nilesh-b54.workers.dev/llms.txt)
