Timezone Lookup
get_timezoneLook up current local time, UTC offset, and daylight saving time for any location using IP address, coordinates, airport code, or city name.
Instructions
Read-only timezone lookup via GET /v3/timezone. Works on free and paid plans. Cost: 1 credit. Use when the user asks for one place, IP, airport, UN/LOCODE, or IANA timezone current local time or metadata; use convert_timezone for source-to-destination conversion.
Returns { time_zone } plus selector context such as location, airport, city, or ip. time_zone includes the zone name, current time, UTC offsets, date/time variants, abbreviations, and DST status/transition fields when available.
Selector priority is tz, lat/long, location, ip, iata_code, icao_code, then lo_code. lat and long must be provided together. lang only changes location fields; non-English lang is paid-only and returns 401 on free plans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IPv4 or IPv6 address to get timezone for. | |
| tz | No | IANA timezone name (e.g. America/New_York, Europe/London). Highest priority if multiple params provided. | |
| lat | No | Latitude coordinate. Must be used together with long. | |
| lang | No | Response language for location fields in IP-based lookups (en, de, ru, ja, fr, cn, es, cs, it, ko, fa, pt). Paid plans only. Free plan returns 401 for non-English language values. | |
| long | No | Longitude coordinate. Must be used together with lat. | |
| lo_code | No | 5-character UN/LOCODE (e.g. DEBER, USNYC). | |
| location | No | City or address string (e.g. London, UK). | |
| iata_code | No | 3-letter IATA airport code (e.g. JFK, LHR). Returns airport details in the response. | |
| icao_code | No | 4-letter ICAO airport code (e.g. KJFK, EGLL). Returns airport details in the response. |