# Timezone Lookup by Coordinates or City

> Timezone Lookup by Coordinates or City is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns IANA timezone, UTC offset, DST status, current local time, and DST transitions for a given latitude/longitude or city name

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/timezone-lookup
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-26cf7979
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s5vMiUay1vDUMSBSkr0Mj

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 x402-deployer-x402-deployer-workers-dev-26cf7979 -d '<json body>'
```

Example prompt: What IANA timezone is at coordinates 35.6762° N, 139.6503° E, and is daylight saving time currently active there?

## When to prefer this

Use this endpoint when you need authoritative IANA timezone data, UTC offset, DST status, or current local time for a geographic location specified by coordinates or city name — especially when you need DST transition dates. Prefer over manual timezone tables or OS-level lookups when accuracy and up-to-date DST rules matter.

## Known failure modes

- Invalid or out-of-range coordinates return an error response
- Ambiguous or misspelled city names may return no result or wrong match
- City names shared by multiple countries may resolve to unexpected location
- Upstream TimeAPI.io unavailability causes request failure
- Missing required input (no lat/lng and no city) returns a validation error

## How this service works

Timezone lookup. Returns IANA timezone, UTC offset, DST status, current local time, and DST transitions for any latitude/longitude or city name. Wraps the public TimeAPI.io endpoint — no auth, commercial-OK.

## Output

Returns the IANA timezone string (e.g. 'America/New_York'), the UTC offset in hours/minutes, whether DST is currently in effect, the current local date and time at that location, and the upcoming DST transition timestamps.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {
      "latitude": {
       "type": "number",
       "description": "Decimal degrees, range [-90, 90]. Required if no timezone provided."
      },
      "timezone": {
       "type": "string",
       "description": "IANA timezone identifier (e.g. 'America/Los_Angeles', 'Europe/Berlin'). Either this or lat+lon required."
      },
      "longitude": {
       "type": "number",
       "description": "Decimal degrees, range [-180, 180]. Required if no timezone provided."
      },
      "datetime_utc": {
       "type": "string",
       "description": "Optional UTC datetime to evaluate at (ISO8601). Reserved for future use; current API returns now."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "is_dst": {
       "type": "boolean"
      },
      "source": {
       "type": "string"
      },
      "timezone": {
       "type": "string"
      },
      "abbreviation": {
       "type": "string"
      },
      "current_local_time": {
       "type": "string"
      },
      "utc_offset_seconds": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-26cf7979/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
