# Anchor X402 Datetime Parser

> Anchor X402 Datetime Parser is a paid API for AI agents from api.anchor-x402.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Parses any freeform datetime string into a structured, normalized representation

## Facts

- Endpoint: POST https://api.anchor-x402.com/v1/parse/datetime
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-anchor-x402-com-85cc3f49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ilg-7Rk1qgEDc0DYF4NOA

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 api-anchor-x402-com-85cc3f49 -d '<json body>'
```

Example prompt: Can you parse this messy date string for me — 'next Thurs at half past three in the afternoon' — and give me a clean, structured breakdown of the date and time?

## When to prefer this

Use this endpoint when you need to normalize user-entered, scraped, or freeform datetime strings into a structured, machine-readable format — especially when inputs are inconsistent, informal, or ambiguous. It is well-suited for preprocessing pipelines, form validation, or agentic workflows that receive natural language dates.

## Known failure modes

- Completely unparseable input returns an error or null result
- Ambiguous dates (e.g. '01/02/03') may produce low-confidence or incorrect parsing
- Missing timezone context may result in UTC assumption without warning
- Very short or context-free strings like 'tomorrow' without reference date may yield relative-only output
- Non-date strings passed as input return a parsing failure

## How this service works

Parse any freeform datetime string into a structured normalized form — $0.001 USDC

## Output

A structured, normalized datetime object containing parsed components such as ISO 8601 timestamp, year, month, day, hour, minute, second, timezone inference, and possibly a confidence indicator for ambiguous inputs.

## Example request

```json
{
 "input": "2024-01-15 14:30:00"
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "input": {
       "type": "string",
       "description": "Freeform datetime string."
      },
      "base_time": {
       "type": "string",
       "description": "Optional ISO 8601 reference; defaults to now UTC."
      },
      "timezone": {
       "type": "string",
       "description": "Optional IANA tz name; defaults to UTC."
      }
     },
     "required": [
      "input"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso": "2026-05-13T15:00:00-04:00",
  "unix": 1778000400,
  "timezone": "America/New_York",
  "components": {
   "day": 13,
   "hour": 15,
   "year": 2026,
   "month": 5,
   "minute": 0,
   "second": 0,
   "weekday": 2,
   "day_name": "Wednesday"
  },
  "confidence": "medium",
  "parsed_input": "next Tuesday at 3pm",
  "relative_human": "in 5 days",
  "relative_seconds": 432000
 }
}
```

## More

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