Time Zone API

The Time Zone API provides time offset data for locations on the surface of the earth. You request the time zone information for a specific latitude/longitude pair and date.
First 5 requests free

API Docs

(1 results)

Error Code

Pricing

Timezone Query
Timezone Query
https://global.juheapi.com/timezone/v1/query
json
GET
https://global.juheapi.com/timezone/v1/query.php?apikey=xxxx&lat=35.111&lon=12313&timestamp=1581656099
Get back the time zone information of any global area

JUHEAPI Explorer - API testing tools

JUHEAPI Explorer allows you to call an API through its web interface , and view the entire process

Test
Request Parameter
NameMandatoryTypeDescription
apikey yes string the API KEY
lat yes string latitude
lon yes string longitude
timestamp yes string Required time (used to determine daylight saving time),Unix timestamp.
Request Example
CURL
curl -i -k "http://global.juheapi.com/timezone/v1/query?apikey=xxxx&lat=35.111&lon=12313×tamp=1581656099"
Return Parameter
NameTypeDescription
code string the error code
msg string the response description
data object the data
timezone_id string Time zone ID string
dst_offset number Daylight Saving Time (DST) time offset seconds
raw_offset number Coordinate point position time offset seconds from Coordinated Universal Time
Return Example
JSON
{ "code": "0", "msg": "success", "data": { "timezone_id": "Asia/Shanghai", "dst_offset": 0, "raw_offset": 28800 } }