services / timezone
dataoperational · 33 ms
Timezone & Local Time
Resolve a city name or coordinates to its IANA timezone and return the current local time, UTC offset, DST flag and weekday. Use for scheduling across regions, 'what time is it in X', or normalizing timestamps. Params: location (required, e.g. 'Tokyo' or '35.68,139.69').
Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.
Call it
Input
| Field | Type | Description |
|---|---|---|
| location * | string | City name or 'lat,lon' |
Output
| Field | Type | Description |
|---|---|---|
| location | object | |
| timezone | string | IANA timezone, e.g. Asia/Tokyo |
| abbreviation | string | |
| utc_offset | string | e.g. +09:00 |
| utc_offset_seconds | integer | |
| is_dst | boolean | |
| local_time | string | ISO 8601 with offset |
| local_date | string | |
| weekday | string | |
| utc_time | string | |
| unix_time | integer |
Example response (data)
{
"location": {
"name": "Tokyo",
"country": "Japan",
"lat": 35.6895,
"lon": 139.6917
},
"timezone": "Asia/Tokyo",
"abbreviation": "JST",
"utc_offset": "+09:00",
"utc_offset_seconds": 32400,
"is_dst": false,
"local_time": "2026-09-09T21:00:00+09:00",
"local_date": "2026-09-09",
"weekday": "Wednesday",
"utc_time": "2026-09-09T12:00:00.000Z",
"unix_time": 1788955200
}