# SiteCheck Timezone Lookup & Conversion

> SiteCheck Timezone Lookup & Conversion is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-15).

Returns current local time, UTC offset, and DST status for an IANA timezone, with optional conversion between two timezones

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/timezone?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-timezone-lookup-conversion-8b3441ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5BJIdNmZEKpDyNTe75gWm

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 sitecheck-timezone-lookup-conversion-8b3441ab
```

Example prompt: What time is it right now in Europe/Istanbul, and what would 1:30 AM there on March 29 2026 be in America/New_York?

## When to prefer this

Use this endpoint when you need authoritative IANA-based timezone resolution — including current local time, UTC offset, DST status, and optionally converting a specific local datetime between two IANA zones. Prefer this over generic time APIs when accuracy of DST transitions and IANA zone naming is important, or when you need the full conversion round-trip (source zone → UTC → target zone) in a single call.

## Known failure modes

- Invalid or unknown IANA timezone string returns an error — must be a valid IANA zone like 'Europe/Istanbul', not an abbreviation like 'EST'
- Missing required 'zone' query parameter returns a validation error
- Malformed 'time' parameter (not in ISO-like format) may cause conversion to fail
- Conversion requires both 'time' and 'to' parameters; providing only one may yield a partial or error response

## How this service works

The current time in an IANA time zone (its UTC offset and whether DST applies) and, with time and to, the conversion of a local time from one zone to another. Computed in the Worker with the runtime's time zone data; no outside call.

## Output

Returns a JSON object with the current local time, UTC offset, DST boolean, and a checkedAt timestamp for the requested IANA zone. If a conversion is requested (providing a source time and target zone), also returns the converted local time and UTC timestamp for both the source and destination timezones.

## 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": [
      "zone"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target IANA zone for the conversion"
      },
      "time": {
       "type": "string",
       "description": "Local time to convert, e.g. 2026-03-29T01:30"
      },
      "zone": {
       "type": "string",
       "description": "IANA zone, e.g. Europe/Istanbul"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "now": {
   "dst": false,
   "local": "2026-10-14 10:00",
   "utcOffset": "+03:00"
  },
  "zone": "Europe/Istanbul",
  "source": "Intl.DateTimeFormat (IANA time zone data in the Worker)",
  "checkedAt": "2026-10-14T07:00:46.231Z",
  "conversion": {
   "to": {
    "zone": "America/New_York",
    "local": "2026-03-28 18:30",
    "utcOffset": "-04:00"
   },
   "utc": "2026-03-28T22:30:00.000Z",
   "from": {
    "zone": "Europe/Istanbul",
    "local": "2026-03-29T01:30"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-timezone-lookup-conversion-8b3441ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
