# Timezone Conversion API

> Timezone Conversion API is a paid API for AI agents from built-with-productos-xszv.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts a datetime string from one timezone to another and returns the localized datetime with UTC offset

## Facts

- Endpoint: GET https://built-with-productos-xszv.vercel.app/v1/timezone-convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/timezone-conversion-api-f27f9657
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wJwO3v6dIY3vs69JG8A7r

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 timezone-conversion-api-f27f9657
```

Example prompt: Convert 2026-01-01T12:00:00 from UTC to America/New_York and tell me the local time and UTC offset.

## When to prefer this

Choose this endpoint when you need a simple, deterministic timezone conversion without requiring an API key, and you are already operating in an x402/MPP micropayment context. It is ideal for agents that need to localize datetimes on-the-fly per call at low cost ($0.001 USDC). Prefer this over full calendar or scheduling APIs when only the timezone offset math is needed.

## Known failure modes

- Invalid or unrecognized timezone string (IANA format required) returns an error
- Malformed datetime string (non-ISO 8601 format) causes a parse failure
- Missing required 'datetime' or 'to_tz' query parameters returns a 400 error
- Payment not provided or invalid causes a 402 Payment Required response

## How this service works

Global current weather, hourly forecasts, foreign-exchange rates, EVM reads, and deterministic utilities for AI agents. Pay per call with MPP or x402; no API key.

## Output

Returns the original input datetime, the target timezone, the source timezone, the converted datetime string with timezone offset (e.g. 2026-01-01T07:00:00-05:00), and the UTC offset in seconds (e.g. -18000).

## 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": [
      "datetime",
      "to_tz"
     ],
     "properties": {
      "to_tz": {
       "type": "string"
      },
      "from_tz": {
       "type": "string"
      },
      "datetime": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "input": "2026-01-01T12:00:00",
  "to_tz": "America/New_York",
  "from_tz": "UTC",
  "datetime": "2026-01-01T07:00:00-05:00",
  "utc_offset_seconds": -18000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/timezone-conversion-api-f27f9657/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from built-with-productos-xszv.vercel.app](https://www.zero.xyz/host/built-with-productos-xszv.vercel.app/llms.txt)
