IPGeolocation's free Timezone API and Time conversion API provides date and time 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 JSON and XML format over secure HTTPS connection. The API also calculates precise time differences in hours and minutes between two locations using timezone, coordinates, or city.
Detailed timezone data consists of comprehensive information about the current time and date, presented in multiple formats. It also covers timezone offset values, daylight saving details like start and end times, any gaps or overlaps, and whether DST is active. Optionally, this data can be enriched with geolocation information when IP-based timezone detection is requested.
1{
2 "time_zone": {
3 "name": "Australia/Lord_Howe",
4 "offset": 10.5,
5 "offset_with_dst": 11,
6 "date": "2026-02-12",
7 "date_time": "2026-02-12 04:21:39",
8 "date_time_txt": "Thursday, February 12, 2026 04:21:39",
9 "date_time_wti": "Thu, 12 Feb 2026 04:21:39 +1100",
10 "date_time_ymd": "2026-02-12T04:21:39+1100",
11 "date_time_unix": 1770830499.363,
12 "time_24": "04:21:39",
13 "time_12": "04:21:39 AM",
14 "week": 7,
15 "month": 2,
16 "year": 2026,
17 "year_abbr": "26",
18 "current_tz_abbreviation": "LHDT",
19 "current_tz_full_name": "Lord Howe Daylight Time",
20 "standard_tz_abbreviation": "LHST",
21 "standard_tz_full_name": "Lord Howe Standard Time",
22 "is_dst": true,
23 "dst_savings": 0.5,
24 "dst_exists": true,
25 "dst_tz_abbreviation": "LHDT",
26 "dst_tz_full_name": "Lord Howe Daylight Time",
27 "dst_start": {
28 "utc_time": "2025-10-04 TIME 15:30",
29 "duration": "+0.50H",
30 "gap": true,
31 "date_time_after": "2025-10-05 TIME 02:30",
32 "date_time_before": "2025-10-05 TIME 02:00",
33 "overlap": false
34 },
35 "dst_end": {
36 "utc_time": "2026-04-04 TIME 15:00",
37 "duration": "-0.50H",
38 "gap": false,
39 "date_time_after": "2026-04-05 TIME 01:30",
40 "date_time_before": "2026-04-05 TIME 02:00",
41 "overlap": true
42 }
43 }
44}When Time Zone API is called without any parameter, with the IP address or with the location address, it returns geolocation information for the concerned location, along with the Time Zone Data.
1"location": {
2 "continent_code": "NA",
3 "continent_name": "North America",
4 "country_code2": "US",
5 "country_code3": "USA",
6 "country_name": "United States",
7 "country_name_official": "United States of America",
8 "is_eu": false,
9 "state_prov": "California",
10 "state_code": "US-CA",
11 "district": "Santa Clara",
12 "city": "Mountain View",
13 "zipcode": "94043-1351",
14 "latitude": "37.42240",
15 "longitude": "-122.08421"
16}The Time Zone API can retrieve detailed airport information along with time zone data using IATA or ICAO codes. The response includes the airport type, name, geo coordinates, elevation, continent, country and state codes, city, and IATA, ICAO, and FAA codes (if available), providing a complete profile of the airport's location and time zone.
1"airport_details": {
2 "type": "large_airport",
3 "name": "London Heathrow Airport",
4 "latitude": "51.47060",
5 "longitude": "-0.46194",
6 "elevation_ft": 83,
7 "continent_code": "EU",
8 "country_code": "GB",
9 "state_code": "GB-ENG",
10 "city": "London",
11 "iata_code": "LHR",
12 "icao_code": "EGLL",
13 "faa_code": ""
14}Our Time Zone API can be queried with an LO Code to provide city-level information, including the LO Code, location type, and geographic coordinates, along with relevant time zone data.
1"lo_code_details": {
2 "locode": "USNYC",
3 "city": "New York",
4 "state_code": "NY",
5 "country_code": "US",
6 "country_name": "",
7 "location_type": "Port, Rail Terminal, Road Terminal, Airport, Postal Exchange",
8 "latitude": "40.70000",
9 "longitude": "-74.00000"
10}Our Time Zone API sub-feature can calculate the time difference between two locations based on their time zone names, geo coordinates, or city address locations.
1{
2 "original_time": "2024-03-11 14:47:32",
3 "converted_time": "2024-03-11 02:47:32",
4 "diff_hour": 12,
5 "diff_min": 720
6}You can retrieve the geolocation information for an IP address in the following languages:
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 skip over.
Make sure you know which part of the world your buyers are coming from and show them the right message at their right time.
For teams that work from all over the globe, make communications a piece of cake using our free time zone API.
Airline platforms can build systems that facilitate users to show the accurate flight departure and arrival time in the passengers' time zones, helping them avoid any confusion and better plan their travel.
Enrich every request with precise geolocation and real-time threat intelligence, delivered on a global edge with a 99.99% uptime SLA. Start free and scale when you’re ready.
Get the latest in geolocation tech, straight to your inbox.