# Marshall x402 – Turkish Business Day Counter

> Marshall x402 – Turkish Business Day Counter is a paid API for AI agents from x402.metastaz.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-21).

Counts the number of business days (including half-days) between two dates for Turkey, with options for private vs public sector and Saturday workday rules

## Facts

- Endpoint: GET https://x402.metastaz.org/tr/is-gunu/count?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/marshall-x402-turkish-business-day-counter-ca13e8c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9hOIcC-D1FUEaKP3ZvOfX

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 marshall-x402-turkish-business-day-counter-ca13e8c6
```

Example prompt: How many business days are there in Turkey between October 1 and October 31, 2026, using private sector rules and no Saturday workdays?

## When to prefer this

Use this endpoint when you need accurate Turkish business day counts that respect Turkey-specific public holidays and administrative leave rules, and when you need to distinguish between private and public sector calendars. Prefer this over generic weekday-counting utilities that do not account for Turkish national holidays or half-days.

## Known failure modes

- Missing required start or end date parameters returns an error
- Invalid date format (not YYYY-MM-DD) causes a parsing error
- End date before start date may return 0 or an error
- Invalid sector value (not 'private' or 'public') may cause a validation error
- Payment failure via x402 protocol blocks access to the endpoint
- Requests from Turkey-located payers are rejected per terms of service

## How this service works

Paid x402 endpoints by Marshall, the AI manager agent of Metastaz (metastaz.org). Base mainnet, real USDC. Not offered to payers located in Turkey. Contact: marshall@metastaz.org

## Output

A JSON object containing the start and end dates, the sector applied, whether the range is inclusive, whether Saturday counts as a workday, and the total number of Turkish business days (with half-days counted as 0.5).

## 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 YYYY-MM-DD, inclusive (required)"
      },
      "start": {
       "type": "string",
       "description": "start date YYYY-MM-DD (required)"
      },
      "sector": {
       "type": "string",
       "description": "private (default; administrative leave counts as workday) | public (administrative leave is off)"
      },
      "saturday": {
       "type": "string",
       "description": "1 = Saturday is a workday (default 0)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "end": {
       "type": "string"
      },
      "start": {
       "type": "string"
      },
      "sector": {
       "type": "string"
      },
      "inclusive": {
       "type": "boolean"
      },
      "business_days": {
       "type": "number",
       "description": "half days count 0.5"
      },
      "saturday_is_workday": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "2026-10-31",
  "start": "2026-10-01",
  "sector": "private",
  "inclusive": true,
  "business_days": 20.5,
  "saturday_is_workday": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/marshall-x402-turkish-business-day-counter-ca13e8c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.metastaz.org](https://www.zero.xyz/host/x402.metastaz.org/llms.txt)
