# Vextorium Date Calculator

> Vextorium Date Calculator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Performs date arithmetic and analysis: calculates date properties, adds/subtracts time intervals, and computes differences between two dates

## Facts

- Endpoint: POST https://api.vextorium.com/v1/date-calculator?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-date-calculator-e1c1369b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RGxDwI9rIDPWc55ROVIlC

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 vextorium-date-calculator-e1c1369b -d '<json body>'
```

Example prompt: What day of the week is 2025-07-04, and how many days and weekdays are between 2025-07-04 and 2026-01-01?

## When to prefer this

Choose this endpoint when you need precise calendar arithmetic without setting up a local date library — especially useful for agents that need weekday counts, quarter detection, ISO week numbers, leap year checks, or date offset calculations across month/year boundaries in a single API call.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns an error
- Missing required 'date' field returns a validation error
- Providing an out-of-range date (e.g. 2024-02-30) may return an error or unexpected result
- Network or payment failure (x402 USDC payment not completed) prevents response

## How this service works

244 pay-per-call data APIs for AI agents: official statistics and economy (ECB, Fed, Eurostat, World Bank, SEC, BOE, INE), crypto prices and sentiment, Spanish public data, compliance (sanctions, VAT, IBAN, LEI), science, weather, web and developer tools and local AI text tools. Pay in USDC via x402.

## Output

Returns a JSON object with up to three sections: 'date' (properties of the input date: weekday, quarter, ISO week/year, day of year, days in month, leap year flag, weekend flag), 'result' (same properties for the computed output date after adding days/months/years), and 'difference' (gap between two dates in total days, weeks, months, years, and Mon–Fri weekday count).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "date": {
   "type": "string",
   "description": "Date YYYY-MM-DD"
  },
  "until": {
   "type": "string",
   "description": "Second date for the difference (optional)"
  },
  "add_days": {
   "type": "integer"
  },
  "add_years": {
   "type": "integer"
  },
  "add_months": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": {
   "date": "2024-02-29",
   "leap": true,
   "quarter": 1,
   "weekday": "Thursday",
   "weekend": false,
   "week_iso": 9,
   "year_iso": 2024,
   "day_of_year": 60,
   "days_in_month": 29
  },
  "result": {
   "date": "2025-02-28",
   "leap": false,
   "quarter": 1,
   "weekday": "Friday",
   "weekend": false,
   "week_iso": 9,
   "year_iso": 2025,
   "day_of_year": 59,
   "days_in_month": 28
  },
  "difference": {
   "days": 4,
   "until": "2026-10-02",
   "weeks": 135.14,
   "years": 2,
   "months": 7,
   "total_days": 946,
   "weekdays_mon_fri": 676
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-date-calculator-e1c1369b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
