timezone

Resolve a coordinate to its IANA timezone and return the...

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.

get/api/timezone/lookup

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/timezone/lookup
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

latnumber required

Latitude in degrees, -90..90.

lonnumber required

Longitude in degrees, -180..180.

atstring date-time

Optional ISO 8601 instant. Defaults to the current server time.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.