# ISO 8601 DateTime to Unix Timestamp Converter

> ISO 8601 DateTime to Unix Timestamp Converter is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Converts an ISO 8601 datetime string (or human-readable datetime) to a Unix timestamp integer, with optional timezone support.

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/timetools/iso2unix?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iso-8601-datetime-to-unix-timestamp-converter-bd9c4ffb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_USPQy3HI3QuZUnjHzj7N3

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 iso-8601-datetime-to-unix-timestamp-converter-bd9c4ffb
```

Example prompt: Convert '2023-11-14T22:13:20Z' to a Unix timestamp — use Asia/Macau as the timezone if needed.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call, no-signup conversion from ISO 8601 or human-readable datetime strings to Unix epoch integers, especially in agent pipelines where you want to avoid dependency on an SDK or API key. It is ideal for lightweight serverless agent tasks that require timestamp normalization with optional IANA timezone context.

## Known failure modes

- Missing or malformed 'input' query parameter returns an error
- Invalid ISO 8601 string that cannot be parsed
- Unrecognized IANA timezone string causes a parsing error
- Payment not included or rejected (x402 payment required)
- Network timeout on the Cloudflare Worker edge

## How this service works

Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.

## Output

Returns a JSON object with an 'op' field ('iso2unix'), a 'meta' object with chars_in, chars_out, and elapsed_ms, and a 'result' field containing the Unix timestamp as an integer (e.g. 1700000000).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "tz": {
       "type": "string",
       "description": "IANA timezone, e.g. Asia/Tokyo"
      },
      "input": {
       "type": "string",
       "description": "Datetime / unix / ISO string (empty for diff with a,b)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "meta": {
       "type": "object",
       "properties": {
        "chars_in": {
         "type": "integer"
        },
        "chars_out": {
         "type": "integer"
        },
        "elapsed_ms": {
         "type": "integer"
        }
       }
      },
      "result": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "iso2unix",
  "meta": {
   "chars_in": 20,
   "chars_out": 10,
   "elapsed_ms": 0
  },
  "result": 1700000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iso-8601-datetime-to-unix-timestamp-converter-bd9c4ffb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
