Time Zone API and IP to Timezone Lookup

ipgeolocation's free Timezone API provides time and date related information such as current time, date in various formats, week, month, year, time in unix timestamp, UTC/GMT offset and day light saving time from timezone name, any IPv4 or IPv6 address or geolocation coordinates in REST, JSON and XML format over secure HTTPS connection.

  • objectgeo:Object,
    • fieldoriginal_time:"",
    • fieldconverted_time:"",
    • fielddiff_hour:"",
    • fielddiff_min:"",

Detailed Timezone Data

Detailed timezone data consists of current time, date in various date formats, day light saving information and geolocation data(in case of ip to timezone call).

Response

1{
2    timezone: "America/Los_Angeles",
3    timezone_offset: "-8",
4    date: "2019-05-08",
5    date_time: "2019-05-08 03:16:34",
6    date_time_txt: "Wednesday, May 08, 2019 03:16:34",
7    date_time_wti: "Wed, 08 May 2019 03:16:34 -0700",
8    date_time_ymd: "2019-05-08T03:16:34-0700",
9    date_time_unix: "1557310594.381",
10    time_24: "03:16:34",
11    time_12: "03:16:34 AM",
12    week: "19",
13    month: "05",
14    year: "2019",
15    year_abbr: "19",
16    is_dst: true,
17    dst_savings: "1",
18  }

Getting Time Zone Information from a Timezone name

You can pass a valid time zone name as a query parameter tz to get the time zone information. Here is a curl example:

Response

1{
2    timezone: "America/Los_Angeles",
3    timezone_offset: "-8",
4    date: "2019-05-08",
5    date_time: "2019-05-08 03:16:34",
6    date_time_txt: "Wednesday, May 08, 2019 03:16:34",
7    date_time_wti: "Wed, 08 May 2019 03:16:34 -0700",
8    date_time_ymd: "2019-05-08T03:16:34-0700",
9    date_time_unix: "1557310594.381",
10    time_24: "03:16:34",
11    time_12: "03:16:34 AM",
12    week: "19",
13    month: "05",
14    year: "2019",
15    year_abbr: "19",
16    is_dst: true,
17    dst_savings: "1",
18  }

Getting Timezone Information from a Location Coordinates

You can pass the latitude and longitude of a location as query parameters to get the timezone information. Here is a curl example:

Response

1{
2    timezone: "Australia/Brisbane",
3    timezone_offset: "10",
4    date: "2019-05-09",
5    date_time: "2019-05-09 16:19:51",
6    date_time_txt: "Thursday, May 09, 2019 16:19:51",
7    date_time_wti: "Thu, 09 May 2019 16:19:51 +1000",
8    date_time_ymd: "2019-05-09T16:19:51+1000",
9    date_time_unix: "1557382791.6194",
10    time_24: "16:19:51",
11    time_12: "04:19:51 PM",
12    week: "19",
13    month: "05",
14    year: "2019",
15    year_abbr: "19",
16    is_dst: false,
17    dst_savings: "0",
18  }

Getting Timezone Information from an IPv4 or IPv6 Address

You can pass any IPv4 or IPv6 address as a query parameter to get the regional time zone information. Here is a curl example:

Response

1{
2    geo: {
3      ip: "Asia/Karachi",
4      country_code2: "US",
5      country_code3: "USA",
6      country_name: "United States",
7      state_prov: "California",
8      district: "Santa Clara County",
9      city: "Mountain View",
10      zipcode: "94041",
11      latitude: "37.42290",
12      longitude: "-122.08500",
13    },
14    timezone: "America/Los_Angeles",
15    timezone_offset: "-8",
16    date: "2019-05-09",
17    date_time: "2019-05-09 01:05:31",
18    date_time_txt: "Thursday, May 09, 2019 01:05:31",
19    date_time_wti: "Thu, 09 May 2019 01:05:31 -0700",
20    date_time_ymd: "2019-05-09T01:05:31-0700",
21    date_time_unix: "1557389131.428",
22    time_24: "01:05:31",
23    time_12: "01:05:31 AM",
24    week: "19",
25    month: "05",
26    year: "2019",
27    year_abbr: "19",
28    is_dst: true,
29    dst_savings: "1",
30  }

Response in Multiple Languages

You can retrieve the geolocation information for an IP address in the following languages:

US FlagEnglish DE FlagGerman RU FlagRussian JP FlagJapanese FR FlagFrench CN FlagChinese Simplified ES FlagSpanish CZ FlagCzech IT FlagItalian

Use Cases

New Timezone During Traveling

Build an application for Travellers who move a lot between different timezones! Use the timezone API to keep them up-to-date and up-to-time always, no matter how many time zones they have skip over.

iplocation

Ecommerce

Make sure you know which part of the world your buyers are coming from and show them the right message at the(ir) right time.

geoip

Global Communication

For teams that work from all over the globe, make communications a piece of cake using our free time zone API.

iplook-up

Ready to get started?Get Started with IP Intelligence API Today