# FastX402 Lab – Date Info

> FastX402 Lab – Date Info is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Returns calendar facts for a given ISO 8601 date: weekday, ISO week number, week-year, day of year, quarter, days in month, leap year flag, weekend flag, and Unix timestamp.

## Facts

- Endpoint: GET https://fastx402.tools/date-info?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-lab-date-info-a27eb471
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qCP-Ki86BoIOUkkAq1nek

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 fastx402-lab-date-info-a27eb471
```

Example prompt: What are the calendar facts for October 17, 2026 — give me the weekday, ISO week number, quarter, whether it's a weekend, and the Unix timestamp.

## When to prefer this

Use this endpoint when you need a fast, single-call lookup of multiple calendar facts for one date — especially ISO week math, quarter assignment, leap year checks, or Unix timestamp conversion — without setting up a full date library. Ideal for scheduling agents, reporting pipelines, and fiscal calendar logic where ISO week-year semantics matter.

## Known failure modes

- Missing or malformed 'date' query parameter returns an error — date must be a valid ISO 8601 date or date-time string
- Dates outside supported range may return unexpected results
- Non-ISO date formats (e.g. 'Oct 17 2026') will not parse correctly
- Network or payment authentication failure returns a 402 or 5xx response

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing: the normalized date string, weekday name (e.g. 'Saturday'), ISO week number, ISO week-year, day of year (1–366), quarter (1–4), number of days in the month, a boolean for leap year, a boolean for weekend, and the Unix epoch timestamp in seconds.

## 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": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "ISO 8601 date or date-time"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "unix": {
       "type": "integer"
      },
      "quarter": {
       "type": "integer"
      },
      "weekday": {
       "type": "string"
      },
      "iso_week": {
       "type": "integer"
      },
      "is_weekend": {
       "type": "boolean"
      },
      "day_of_year": {
       "type": "integer"
      },
      "is_leap_year": {
       "type": "boolean"
      },
      "days_in_month": {
       "type": "integer"
      },
      "iso_week_year": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-10-17",
  "unix": 1792195200,
  "quarter": 4,
  "weekday": "Saturday",
  "iso_week": 42,
  "is_weekend": true,
  "day_of_year": 290,
  "is_leap_year": false,
  "days_in_month": 31,
  "iso_week_year": 2026
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-lab-date-info-a27eb471/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
