# 2s Timezone Lookup by Coordinates

> 2s Timezone Lookup by Coordinates is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Returns the IANA timezone identifier, UTC offset, local wall time, and DST status for a given latitude/longitude coordinate, optionally at a specified instant in time.

## Facts

- Endpoint: GET https://2s.io/api/timezone/lookup
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-timezone-lookup-by-coordinates-39e58b27
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jzFs0nCt1hTv1C5r5aDwA

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 2s-timezone-lookup-by-coordinates-39e58b27
```

Example prompt: What timezone is the location at latitude 48.8566, longitude 2.3522? I need the IANA name, current UTC offset, local time, and whether DST is active right now.

## When to prefer this

Use this endpoint when you need to resolve a geographic coordinate (lat/lon) to its IANA timezone identifier and current UTC offset without signing up for a separate API key or managing a subscription. It's ideal for AI agents that need pay-per-call, no-auth timezone resolution embedded in a geospatial or scheduling workflow, especially when you also need DST awareness and local wall time at a specific instant.

## Known failure modes

- Missing required lat or lon parameter returns a validation error
- lat out of range (-90 to 90) or lon out of range (-180 to 180) returns a validation error
- Invalid ISO 8601 format for optional 'at' parameter returns a parse error
- Payment not provided or insufficient USDC balance returns HTTP 402
- Coordinates in international waters or uninhabited regions may return no timezone items

## How this service works

Resolve a coordinate to its IANA timezone and return the current UTC offset, local wall time, DST status, and short abbreviation. Query: lat (-90..90), lon (-180..180), at (optional ISO 8601 instant; defaults to now). Returns { tz, abbreviation, offsetMinutes, offsetHours, localTime, observesDst, isDst, januaryOffsetMinutes, julyOffsetMinutes, instant, source }. Polygon lookup against a CC0 timezone boundary index; offsets and DST come from the runtime tzdata so transition rules stay current. Use when scheduling for a coordinate, converting timestamps to local wall time, or checking whether a location is currently observing daylight saving.

## Output

A JSON object containing an array of timezone records for the given coordinates, each with the IANA timezone ID (e.g. 'America/Los_Angeles'), short abbreviation (e.g. 'PDT'), UTC offset in both hours and minutes, ISO 8601 local wall time with offset suffix, DST observance flags, and representative January/July offsets for the year. Also includes source/provider attribution.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": 40.7128,
   "lon": -74.006
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "at": {
       "type": "string",
       "description": "Optional ISO 8601 instant. Defaults to the current server time."
      },
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude in degrees, -90..90."
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude in degrees, -180..180."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-timezone-lookup-by-coordinates-39e58b27/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
