# IranTools Business Day Counter

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

Counts the number of Iranian business days (excluding weekends and official public holidays) between two dates

## Facts

- Endpoint: POST https://irantools.johnaio281.workers.dev/api/iran/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/irantools-business-day-counter-74e489f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8Zeq-XbCZem8vdEcYhvdB

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 irantools-business-day-counter-74e489f6 -d '<json body>'
```

Example prompt: How many Iranian business days are there from 2024-03-20 to 2024-04-20? I need to account for official Iranian public holidays and weekends.

## When to prefer this

Choose this endpoint when you need Iran-specific business day calculations that account for official Iranian public holidays and the Iranian work-week structure, rather than a generic weekday counter. It is ideal for payroll, SLA calculations, contract deadlines, or project scheduling in an Iranian business context where generic calendar tools would miss local holidays.

## Known failure modes

- Missing 'from' or 'to' fields returns a 400 validation error
- Dates in incorrect format (non-ISO string) may cause parsing failures
- Date range where 'from' is after 'to' may return zero or an error
- Very large date ranges may cause unexpected behavior
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.

## Output

Returns a count of business days between the two specified dates, excluding Iranian official public holidays and Iranian weekend days (Thursday/Friday or Friday depending on sector), giving an integer or structured result indicating the number of working days in that interval.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "to",
  "from"
 ],
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

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