# fastapi.online Timezone Converter

> fastapi.online Timezone Converter is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-15).

Converts a datetime from one IANA timezone to another, returning the equivalent local time in the target timezone.

## Facts

- Endpoint: POST https://api.fastapi.online/timezone-convert
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-timezone-converter-d48ce6c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z4hUNAoBemeDOa-osPLJd

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 fastapi-online-timezone-converter-d48ce6c3 -d '<json body>'
```

Example prompt: Convert August 15, 2026 at noon from America/New_York to Asia/Tokyo for me.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call timezone conversion without signup, especially in an automated agent pipeline that already handles x402 crypto micropayments. Ideal for one-off conversions or when embedding timezone logic into a larger workflow without managing a dedicated time library.

## Known failure modes

- Invalid or unrecognized IANA timezone string returns an error (e.g. 'America/NewYork' instead of 'America/New_York')
- Malformed datetime string (wrong format) causes a parse error
- Missing required fields (datetime, from_tz, or to_tz) return a validation error
- Payment failure or insufficient balance returns HTTP 402

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns the equivalent datetime in the target IANA timezone, representing the same instant in time expressed as a local timestamp in the destination zone.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to_tz": {
   "type": "string",
   "maxLength": 60,
   "minLength": 1,
   "description": "IANA zone, e.g. Asia/Tokyo"
  },
  "from_tz": {
   "type": "string",
   "maxLength": 60,
   "minLength": 1,
   "description": "IANA zone, e.g. America/New_York"
  },
  "datetime": {
   "type": "string",
   "maxLength": 40,
   "minLength": 1,
   "description": "e.g. 2026-08-15T12:00:00"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-timezone-converter-d48ce6c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
