TimeZoneDB - Find Local Time Zone by Coordinate or Name

FREE
By seikan
Updated 6 months ago
Location
5.8/10
Popularity Score
434ms
Latency
100%
Success Rate

TimeZoneDB - Find Local Time Zone by Coordinate or Name API Documentation

TimeZoneDB finds you the local time zone of a place by latitude & longitude, or by the time zone name such as "Europe/London". You get local time in Unix timestamp, with GMT offset, daylight saving, and country code.

View API Details
GETMain
GETMain

Return country code, GMT offset, daylight saving time, time zone name, and current timestamp.

Authorization:

Required parameter "key" with API key value registered from TimeZoneDB website.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
keyQUERY
REQUIREDUnique API key registered from TimeZoneDB website.
Optional Parameters
zoneSTRING
OPTIONALTime zone name . You can refer the name from http://timezonedb.com/time-zones. Required if lat & lng fields are not provided.
timeNUMBER
OPTIONALUnix timestamp to be converted into local time. For more information of Unix time, please refer to http://en.wikipedia.org/wiki/Unix_time
latNUMBER
OPTIONALLatitude of a city. This field is required when "zone" is not specified.
lngNUMBER
OPTIONALLongitude of a city. This field is required when "zone" is not specified.
formatSTRING
OPTIONALThe forat of the returned result. Default is XML formatted.
callbackSTRING
OPTIONALUse for JavaScript JSON callback.
Code Snippet
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication