Time Zone API
Overview
Time Zone API provides current time, date, and time zone related information. It can be consumed with the following input variations:
- For a Time Zone Name
- For any Address (preferably, city address)
- For Location Coordinates (latitude & longitude)
- For any IP address
- For any IATA code
- For any ICAO code
- For any UN/LOCODE
In each variation of the time zone API, time zone response remains the same. Alongside this geolocation information is provided for IP address and location address search, airport details are provided for IATA code and ICAO code search, and city details are provided for UN/LOCODE search. Here are the details to consume each variation of the time zone API.
Time Zone Information from a Time Zone Name
You can pass a valid time zone name as a query parameter tz to get the time zone information. Here is an example to get the time zone for 'Australia/Lord_Howe':
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&tz=Australia/Lord_Howe'{
"time_zone": {
"name": "Australia/Lord_Howe",
"offset": 10.5,
"offset_with_dst": 11,
"date": "2026-10-29",
"date_time": "2026-10-29 21:33:55",
"date_time_txt": "Thursday, October 29, 2026 21:33:55",
"date_time_wti": "Thu, 29 Oct 2026 21:33:55 +1100",
"date_time_ymd": "2026-10-29T21:33:55+1100",
"current_time": "2026-10-29 21:33:55.564+1100",
"current_time_unix": 1793270035.564,
"time_24": "21:33:55",
"time_12": "09:33:55 PM",
"week": 44,
"month": 10,
"year": 2026,
"year_abbr": "26",
"current_tz_abbreviation": "LHDT",
"current_tz_full_name": "Lord Howe Daylight Time",
"standard_tz_abbreviation": "LHST",
"standard_tz_full_name": "Lord Howe Standard Time",
"is_dst": true,
"dst_savings": 0.5,
"dst_exists": true,
"dst_tz_abbreviation": "LHDT",
"dst_tz_full_name": "Lord Howe Daylight Time",
"dst_start": {
"utc_time": "2026-10-03 TIME 15:30",
"duration": "+0.50H",
"gap": true,
"date_time_after": "2026-10-04 TIME 02:30",
"date_time_before": "2026-10-04 TIME 02:00",
"overlap": false
},
"dst_end": {
"utc_time": "2027-04-03 TIME 15:00",
"duration": "-0.50H",
"gap": false,
"date_time_after": "2027-04-04 TIME 01:30",
"date_time_before": "2027-04-04 TIME 02:00",
"overlap": true
}
}
}Time Zone Information from any Address
You can pass any address of a location as the query parameter location to get the time zone information. Here is an example to get the time zone information for the address 'London, UK':
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&location=London,%20UK'{
"location": {
"location_string": "London, UK",
"country_name": "United Kingdom",
"state_prov": "England",
"city": "London",
"locality": "",
"latitude": "51.50002",
"longitude": "-0.19244"
},
"time_zone": {
"name": "Europe/London",
"offset": 0,
"offset_with_dst": 0,
"date": "2026-10-29",
"date_time": "2026-10-29 10:33:55",
"date_time_txt": "Thursday, October 29, 2026 10:33:55",
"date_time_wti": "Thu, 29 Oct 2026 10:33:55 +0000",
"date_time_ymd": "2026-10-29T10:33:55+0000",
"current_time": "2026-10-29 10:33:55.572+0000",
"current_time_unix": 1793270035.572,
"time_24": "10:33:55",
"time_12": "10:33:55 AM",
"week": 44,
"month": 10,
"year": 2026,
"year_abbr": "26",
"current_tz_abbreviation": "GMT",
"current_tz_full_name": "Greenwich Mean Time",
"standard_tz_abbreviation": "GMT",
"standard_tz_full_name": "Greenwich Mean Time",
"is_dst": false,
"dst_savings": 0,
"dst_exists": true,
"dst_tz_abbreviation": "BST",
"dst_tz_full_name": "British Summer Time",
"dst_start": {
"utc_time": "2026-03-29 TIME 01:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-29 TIME 02:00",
"date_time_before": "2026-03-29 TIME 01:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-10-25 TIME 01:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-10-25 TIME 01:00",
"date_time_before": "2026-10-25 TIME 02:00",
"overlap": true
}
}
}Time Zone Information from Location Coordinates
You can pass the latitude and longitude of a location as query parameters lat and long to get the time zone information. Here is an example to get the time zone for the New York coordinates shown below:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&lat=40.7128&long=-74.0060'{
"time_zone": {
"name": "America/New_York",
"offset": -5,
"offset_with_dst": -4,
"date": "2026-10-29",
"date_time": "2026-10-29 06:33:55",
"date_time_txt": "Thursday, October 29, 2026 06:33:55",
"date_time_wti": "Thu, 29 Oct 2026 06:33:55 -0400",
"date_time_ymd": "2026-10-29T06:33:55-0400",
"current_time": "2026-10-29 06:33:55.565-0400",
"current_time_unix": 1793270035.565,
"time_24": "06:33:55",
"time_12": "06:33:55 AM",
"week": 44,
"month": 10,
"year": 2026,
"year_abbr": "26",
"current_tz_abbreviation": "EDT",
"current_tz_full_name": "Eastern Daylight Time",
"standard_tz_abbreviation": "EST",
"standard_tz_full_name": "Eastern Standard Time",
"is_dst": true,
"dst_savings": 1,
"dst_exists": true,
"dst_tz_abbreviation": "EDT",
"dst_tz_full_name": "Eastern Daylight Time",
"dst_start": {
"utc_time": "2026-03-08 TIME 07:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-08 TIME 03:00",
"date_time_before": "2026-03-08 TIME 02:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-11-01 TIME 06:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-11-01 TIME 01:00",
"date_time_before": "2026-11-01 TIME 02:00",
"overlap": true
}
}
}IP to Time Zone
Pass an IPv4 or IPv6 address in the ip query parameter to look up its time zone. This example uses 49.12.0.0.
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&ip=49.12.0.0'{
"ip": "49.12.0.0",
"location": {
"continent_code": "EU",
"continent_name": "Europe",
"country_code2": "DE",
"country_code3": "DEU",
"country_name": "Germany",
"country_name_official": "Federal Republic of Germany",
"is_eu": true,
"state_prov": "Bavaria",
"state_code": "DE-BY",
"district": "Cham",
"city": "Falkenstein",
"zipcode": "93167",
"latitude": "49.09745",
"longitude": "12.48637"
},
"time_zone": {
"name": "Europe/Berlin",
"offset": 1,
"offset_with_dst": 1,
"date": "2026-10-29",
"date_time": "2026-10-29 11:33:55",
"date_time_txt": "Thursday, October 29, 2026 11:33:55",
"date_time_wti": "Thu, 29 Oct 2026 11:33:55 +0100",
"date_time_ymd": "2026-10-29T11:33:55+0100",
"current_time": "2026-10-29 11:33:55.564+0100",
"current_time_unix": 1793270035.564,
"time_24": "11:33:55",
"time_12": "11:33:55 AM",
"week": 44,
"month": 10,
"year": 2026,
"year_abbr": "26",
"current_tz_abbreviation": "CET",
"current_tz_full_name": "Central European Standard Time",
"standard_tz_abbreviation": "CET",
"standard_tz_full_name": "Central European Standard Time",
"is_dst": false,
"dst_savings": 0,
"dst_exists": true,
"dst_tz_abbreviation": "GMT+02:00",
"dst_tz_full_name": "Central European Summer Time",
"dst_start": {
"utc_time": "2026-03-29 TIME 01:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-29 TIME 03:00",
"date_time_before": "2026-03-29 TIME 02:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-10-25 TIME 01:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-10-25 TIME 02:00",
"date_time_before": "2026-10-25 TIME 03:00",
"overlap": true
}
}
}Using Client or Machine IP Address
You can call the time zone API without passing any time zone, coordinates, IATA, ICAO, UN/LOCODE or IP address as well. It will use the calling machine's IP address to return the regional time zone information. Here is an example:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY'Time Zone and Airport Details from IATA Code
You can pass any 3-letter IATA code as a query parameter iata_code to get the comprehensive airport details along with information on the time zone in which that airport exists. Here is an example to get time zone information for London Heathrow using IATA code 'LHR':
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&iata_code=LHR'{
"airport_details": {
"type": "large_airport",
"name": "London Heathrow Airport",
"latitude": "51.47060",
"longitude": "-0.46194",
"elevation_ft": 83,
"continent_code": "EU",
"country_code": "GB",
"state_code": "GB-ENG",
"city": "London",
"iata_code": "LHR",
"icao_code": "EGLL",
"faa_code": ""
},
"time_zone": {
"name": "Europe/London",
"offset": 0,
"offset_with_dst": 0,
"date": "2026-10-29",
"date_time": "2026-10-29 10:33:55",
"date_time_txt": "Thursday, October 29, 2026 10:33:55",
"date_time_wti": "Thu, 29 Oct 2026 10:33:55 +0000",
"date_time_ymd": "2026-10-29T10:33:55+0000",
"current_time": "2026-10-29 10:33:55.591+0000",
"current_time_unix": 1793270035.591,
"time_24": "10:33:55",
"time_12": "10:33:55 AM",
"week": 44,
"month": 10,
"year": 2026,
"year_abbr": "26",
"current_tz_abbreviation": "GMT",
"current_tz_full_name": "Greenwich Mean Time",
"standard_tz_abbreviation": "GMT",
"standard_tz_full_name": "Greenwich Mean Time",
"is_dst": false,
"dst_savings": 0,
"dst_exists": true,
"dst_tz_abbreviation": "BST",
"dst_tz_full_name": "British Summer Time",
"dst_start": {
"utc_time": "2026-03-29 TIME 01:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-29 TIME 02:00",
"date_time_before": "2026-03-29 TIME 01:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-10-25 TIME 01:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-10-25 TIME 01:00",
"date_time_before": "2026-10-25 TIME 02:00",
"overlap": true
}
}
}Time Zone and Airport Details from ICAO Code
You can pass any 4-letter ICAO code in uppercase (e.g., KATL) as a query parameter icao_code to get the comprehensive airport details along with information on the time zone in which that airport exists. Lowercase ICAO codes are rejected with HTTP 400 (IATA codes and UN/LOCODEs are case-insensitive). Here is an example to get the airport details about the ICAO code 'KATL':
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&icao_code=KATL'{
"airport_details": {
"type": "large_airport",
"name": "Hartsfield Jackson Atlanta International Airport",
"latitude": "33.63670",
"longitude": "-84.42810",
"elevation_ft": 1026,
"continent_code": "NA",
"country_code": "US",
"state_code": "US-GA",
"city": "Atlanta",
"iata_code": "ATL",
"icao_code": "KATL",
"faa_code": ""
},
"time_zone": {
"name": "America/New_York",
"offset": -5,
"offset_with_dst": -4,
"date": "2026-10-29",
"date_time": "2026-10-29 06:33:55",
"date_time_txt": "Thursday, October 29, 2026 06:33:55",
"date_time_wti": "Thu, 29 Oct 2026 06:33:55 -0400",
"date_time_ymd": "2026-10-29T06:33:55-0400",
"current_time": "2026-10-29 06:33:55.590-0400",
"current_time_unix": 1793270035.59,
"time_24": "06:33:55",
"time_12": "06:33:55 AM",
"week": 44,
"month": 10,
"year": 2026,
"year_abbr": "26",
"current_tz_abbreviation": "EDT",
"current_tz_full_name": "Eastern Daylight Time",
"standard_tz_abbreviation": "EST",
"standard_tz_full_name": "Eastern Standard Time",
"is_dst": true,
"dst_savings": 1,
"dst_exists": true,
"dst_tz_abbreviation": "EDT",
"dst_tz_full_name": "Eastern Daylight Time",
"dst_start": {
"utc_time": "2026-03-08 TIME 07:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-08 TIME 03:00",
"date_time_before": "2026-03-08 TIME 02:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-11-01 TIME 06:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-11-01 TIME 01:00",
"date_time_before": "2026-11-01 TIME 02:00",
"overlap": true
}
}
}Time Zone and City Details from UN/LOCODE
You can pass any 5-character UN/LOCODE (two-letter country code followed by three letters or digits) as a query parameter lo_code to get the comprehensive UN/LOCODE and city details along with the time zone information of that city. Here is an example for Berlin, Germany, using the UN/LOCODE 'DEBER':
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&lo_code=DEBER'{
"lo_code_details": {
"lo_code": "DEBER",
"city": "Berlin",
"state_code": "BE",
"country_code": "DE",
"country_name": "",
"location_type": "Port, Rail Terminal, Road Terminal, Airport, Postal Exchange",
"latitude": "52.51667",
"longitude": "13.38333"
},
"time_zone": {
"name": "Europe/Berlin",
"offset": 1,
"offset_with_dst": 1,
"date": "2026-10-29",
"date_time": "2026-10-29 11:33:55",
"date_time_txt": "Thursday, October 29, 2026 11:33:55",
"date_time_wti": "Thu, 29 Oct 2026 11:33:55 +0100",
"date_time_ymd": "2026-10-29T11:33:55+0100",
"current_time": "2026-10-29 11:33:55.623+0100",
"current_time_unix": 1793270035.623,
"time_24": "11:33:55",
"time_12": "11:33:55 AM",
"week": 44,
"month": 10,
"year": 2026,
"year_abbr": "26",
"current_tz_abbreviation": "CET",
"current_tz_full_name": "Central European Standard Time",
"standard_tz_abbreviation": "CET",
"standard_tz_full_name": "Central European Standard Time",
"is_dst": false,
"dst_savings": 0,
"dst_exists": true,
"dst_tz_abbreviation": "GMT+02:00",
"dst_tz_full_name": "Central European Summer Time",
"dst_start": {
"utc_time": "2026-03-29 TIME 01:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-29 TIME 03:00",
"date_time_before": "2026-03-29 TIME 02:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-10-25 TIME 01:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-10-25 TIME 02:00",
"date_time_before": "2026-10-25 TIME 03:00",
"overlap": true
}
}
}Response in Multiple Languages
The geolocation information in the response from Time zone API when called using an IP address, can be retrieved in the following languages:
- English (en)
- German (de)
- Russian (ru)
- Japanese (ja)
- French (fr)
- Chinese Simplified (cn)
- Spanish (es)
- Czech (cs)
- Italian (it)
- Korean (ko)
- Persian (fa)
- Portuguese (pt)
- Standard Arabic (ar)
By default, the API responds in English. You can change the response language by passing the language code as a query parameter lang. Here is an example to get time zone and geolocation information for an IPv4 IP Address '1.1.1.1' in Chinese language:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone?apiKey=API_KEY&ip=1.1.1.1&lang=cn'Convert Time Between Time Zones
You can convert a timestamp provided as a query parameter time from one time zone to another time zone. You can convert the provided timestamp in six ways:
1. Convert Time Using Time Zone Names
You can provide proper time zone names to find the time difference between the given time zones. Here is an example of converting timestamp from 'America/Argentina/Catamarca' to 'Asia/Kabul' providing as query parameters tz_from and tz_to respectively:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone/convert?apiKey=API_KEY&tz_from=America/Argentina/Catamarca&tz_to=Asia/Kabul&time=2026-12-08%2011:00'{
"original_time": "2026-12-08 11:00:00",
"converted_time": "2026-12-08 18:30:00",
"diff_hour": 7.5,
"diff_min": 450
}2. Convert Time Using Location Coordinates
You can also calculate the time difference between the two different locations' geo coordinates. Here is an example to get the time zone difference from latitude '34.0207305', longitude '-118.6919163', to latitude '53.4736827', longitude '-77.3977062', provided as query parameters lat_from, long_from, and lat_to, long_to respectively:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone/convert?apiKey=API_KEY&lat_from=34.0207305&long_from=-118.6919163&lat_to=53.4736827&long_to=-77.3977062'{
"original_time": "2026-10-29 03:33:55",
"converted_time": "2026-10-29 06:33:55",
"diff_hour": 3,
"diff_min": 180
}3. Convert Time Using Location Addresses
To compare local times in two places, pass their addresses or city names in location_from and location_to . Here is an example for 'New York, USA' and 'Lahore, Pakistan':
curl -X GET 'https://api.ipgeolocation.io/v3/timezone/convert?apiKey=API_KEY&location_from=New%20York,%20USA&location_to=Lahore,%20Pakistan&time=2026-12-08%2006:00'{
"original_time": "2026-12-08 06:00:00",
"converted_time": "2026-12-08 16:00:00",
"diff_hour": 10,
"diff_min": 600
}4. Convert Time Using IATA Codes
You can calculate the time difference of two airports using their IATA codes. Here's an example to calculate the time difference of airport 'Dubai International Airport' (DXB) and 'Heathrow Airport' (LHR) with their IATA codes provided as query parameters iata_from and iata_to respectively:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone/convert?apiKey=API_KEY&iata_from=DXB&iata_to=LHR'{
"original_time": "2026-10-29 14:33:55",
"converted_time": "2026-10-29 10:33:55",
"diff_hour": 4,
"diff_min": 240
}5. Convert Time Using ICAO Codes
Similarly, you can calculate the time difference of two airports using their ICAO codes. Here's an example to calculate the time difference of airport 'Sydney Kingsford Smith Airport' (YSSY) and 'Beijing Capital International Airport' (ZBAA) with their ICAO codes provided as query parameters icao_from and icao_to respectively, and the time to convert is provided as query parameter time:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone/convert?apiKey=API_KEY&icao_from=YSSY&icao_to=ZBAA&time=2025-01-30%2009:00'{
"original_time": "2025-01-30 09:00:00",
"converted_time": "2025-01-30 06:00:00",
"diff_hour": 3,
"diff_min": 180
}6. Convert Time Using UN/LOCODE
You can also calculate the time difference between the two cities using their UN/LOCODE with the help of the Time Zone API. Here's an example to calculate the time difference of cities 'Islamabad' (PKISB) and 'New York' (USNYC) with their UN/LOCODE provided as query parameters locode_from and locode_to respectively, and the time to convert is provided as query parameter time:
curl -X GET 'https://api.ipgeolocation.io/v3/timezone/convert?apiKey=API_KEY&locode_from=PKISB&locode_to=USNYC&time=2025-02-28%2009:00:00'{
"original_time": "2025-02-28 09:00:00",
"converted_time": "2025-02-27 23:00:00",
"diff_hour": 10,
"diff_min": 600
}Time Zone Details in the Main IP Geolocation API Endpoint
Time zone data is included by default in the IP Geolocation API (/v3/ipgeo) for both Free and Paid plan subscriptions. See the Pricing page for plan details. Additional time zone fields and extended metadata are available through the dedicated /v3/timezone endpoint.
Basic time zone details are returned in the /v3/ipgeo endpoint response by default, as shown below.
curl -X GET 'https://api.ipgeolocation.io/v3/ipgeo?apiKey=API_KEY&ip=91.128.103.196'{
"ip": "91.128.103.196",
"time_zone": {
"name": "Europe/Stockholm",
"offset": 1,
"offset_with_dst": 1,
"current_time": "2026-10-29 11:33:55.570+0100",
"current_time_unix": 1793270035.57,
"current_tz_abbreviation": "CET",
"current_tz_full_name": "Central European Standard Time",
"standard_tz_abbreviation": "CET",
"standard_tz_full_name": "Central European Standard Time",
"is_dst": false,
"dst_savings": 0,
"dst_exists": true,
"dst_tz_abbreviation": "CEST",
"dst_tz_full_name": "Central European Summer Time",
"dst_start": {
"utc_time": "2026-03-29 TIME 01:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-29 TIME 03:00",
"date_time_before": "2026-03-29 TIME 02:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-10-25 TIME 01:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-10-25 TIME 02:00",
"date_time_before": "2026-10-25 TIME 03:00",
"overlap": true
}
},
"location": {
"continent_code": "EU",
"continent_name": "Europe",
"country_code2": "SE",
"country_code3": "SWE",
"country_name": "Sweden",
"country_name_official": "Kingdom of Sweden",
"country_capital": "Stockholm",
"state_prov": "Stockholms län",
"state_code": "SE-AB",
"district": "Stockholm",
"city": "Stockholm",
"zipcode": "164 40",
"latitude": "59.40510",
"longitude": "17.95510",
"is_eu": true,
"country_flag": "https://ipgeolocation.io/static/flags/se_64.png",
"geoname_id": "9972319",
"country_emoji": "🇸🇪"
},
"country_metadata": {
"calling_code": "+46",
"tld": ".se",
"languages": [
"sv-SE",
"se",
"sma",
"fi-SE"
]
},
"network": {
"connection_type": "",
"route": "91.128.0.0/14",
"is_anycast": false,
"is_cdn": false,
"cdn_provider_name": ""
},
"currency": {
"code": "SEK",
"name": "Swedish Krona",
"symbol": "kr"
},
"asn": {
"as_number": "AS1257",
"organization": "Tele2 Sverige AB",
"country": "SE",
"type": "ISP",
"domain": "tele2.se",
"date_allocated": "2002-09-19",
"rir": "RIPE"
},
"company": {
"name": "Tele2 Sverige AB",
"type": "ISP",
"domain": "tele2.se"
}
}1. Time Zone Field Availability Comparison
| Field | /v3/ipgeo | /v3/timezone |
|---|---|---|
| time_zone.name | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.offset | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.offset_with_dst | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.current_tz_abbreviation | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.current_tz_full_name | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.standard_tz_abbreviation | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.standard_tz_full_name | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.is_dst | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.dst_savings | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.dst_exists | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.dst_tz_abbreviation | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.dst_tz_full_name | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.dst_start | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.dst_end | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.current_time | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.current_time_unix | Available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.date | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.date_time | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.date_time_txt | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.date_time_wti | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.date_time_ymd | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.time_24 | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.time_12 | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.week | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.month | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.year | Not available in /v3/ipgeo | Available in /v3/timezone |
| time_zone.year_abbr | Not available in /v3/ipgeo | Available in /v3/timezone |
Reference to Time Zone API Response
Below we have provided separate tables for each JSON object fields that can be returned by Time Zone API.
1. Standalone Fields Reference
| Field | Type | Description | Can Be Empty? |
|---|---|---|---|
| ip | string | The IP address used for the time zone lookup. Returned when queried using the | Yes |
2. time_zone JSON Object Reference
| Field | Type | Description | Can Be Empty? |
|---|---|---|---|
| name | string | The IANA time zone name/identifier for the location. | No |
| offset | float | The Standard time zone offset from UTC in hours. | No |
| offset_with_dst | float | The time zone offset from UTC in hours, accounting for daylight saving time (DST) if found. | No |
| current_time | string | The current date and time with time zone offset in 'YYYY-MM-DD HH:mm:ss.SSSZ' format. | No |
| current_time_unix | float | The Unix timestamp representing the date and time in seconds (e.g., 1731073466.073). | No |
| date | string | The current date in 'YYYY-MM-DD' format. | No |
| date_time | string | The current date and time in 'YYYY-MM-DD HH:mm:ss' format. | No |
| date_time_txt | string | The current date and time in descriptive format for easy reading, formatted as 'EEEE, MMMM dd, yyyy HH:mm:ss'. (e.g., "Friday, November 06, 2026 08:44:26") | No |
| date_time_wti | string | The date and time with time zone information in 'EEE, dd MMM yyyy HH:mm:ss Z' format. (e.g., "Fri, 06 Nov 2026 08:44:26 -0500") | No |
| date_time_ymd | string | The date and time with time zone offset in ISO 8601 format 'YYYY-MM-DDTHH:mm:ss±HHMM'. (e.g., "2026-11-06T08:44:26-0500") | No |
| time_24 | string | The current time in 24-hour format 'HH:mm:ss'. | No |
| time_12 | string | The current time in 12-hour format with AM/PM notation, formatted as 'HH:mm:ss AM/PM'. | No |
| week | number | Week number of the year; values can include 53. | No |
| month | number | The current month as a number (1-12). | No |
| year | number | The four-digit current year (e.g., 2026). | No |
| year_abbr | string | The two-digit abbreviation for the year (e.g., "26"). | No |
| current_tz_abbreviation | string | Abbreviation of the time zone currently in effect for the location (standard or DST). e.g., EST, EDT, CEST. | No |
| current_tz_full_name | string | Full name of the time zone currently in effect for the location. e.g., Eastern Standard Time, Eastern Daylight Time, Central European Summer Time. | No |
| standard_tz_abbreviation | string | Abbreviation of the location’s standard (non-DST) time zone. e.g., EST, CET. | No |
| standard_tz_full_name | string | Full name of the location’s standard (non-DST) time zone. e.g., Eastern Standard Time, Central European Standard Time. | No |
| is_dst | boolean | Is the time zone currently observing daylight saving time? | No |
| dst_tz_abbreviation | string | Abbreviation of the location’s DST time zone (used when DST applies). e.g., EDT, CEST. | Yes |
| dst_tz_full_name | string | Full name of the location’s DST time zone (used when DST applies). e.g., Eastern Daylight Time, Central European Summer Time. | Yes |
| dst_savings | float | Daylight saving offset currently in effect, in hours (for example | No |
| dst_exists | boolean | Indicates whether Daylight Saving Time (DST) is observed in the region. If | No |
| dst_start.utc_time | string | The date and time in UTC when DST begins: the start of the current DST period while DST is in effect, otherwise the start of the next one. | Yes |
| dst_start.duration | string | The time change that occurs when DST starts. | Yes |
| dst_start.gap | boolean | Is there a missing hour (DST forward transition)? | Yes |
| dst_start.date_time_after | string | The local date and time that immediately follows the start of DST. | Yes |
| dst_start.date_time_before | string | The local date and time immediately before DST begins. | Yes |
| dst_start.overlap | boolean | Whether there is an overlap of time due to clocks being set back when DST starts. | Yes |
| dst_end.utc_time | string | The date and time in UTC when DST ends: the end of the current DST period while DST is in effect, otherwise the end of the next one. | Yes |
| dst_end.duration | string | The time change that occurs when DST ends. | Yes |
| dst_end.gap | boolean | Is there no gap (DST backward transition)? | Yes |
| dst_end.date_time_after | string | The local date and time that immediately follows the end of DST. | Yes |
| dst_end.date_time_before | string | The local date and time immediately before DST ends. | Yes |
| dst_end.overlap | boolean | Whether there is an overlap of time due to clocks being set back when DST ends. | Yes |
3. location JSON Object Reference
| Field | Type | Description | Can Be Empty? |
|---|---|---|---|
| location_string | string | The provided location parameter as | Yes |
| continent_code | string | The two-letter code of the continent (e.g., "NA"). | Yes |
| continent_name | string | The full name of the continent (e.g., "North America"). | Yes |
| country_code2 | string | The ISO 3166-1 alpha-2 two-letter country code (e.g., "US"). | Yes |
| country_code3 | string | The ISO 3166-1 alpha-3 three-letter country code (e.g., "USA"). | Yes |
| country_name | string | The common name of the country (e.g., "United States"). | Yes |
| country_name_official | string | The official full name of the country (e.g., "United States of America"). | Yes |
| is_eu | boolean | Whether the country belongs to the European Union | Yes |
| state_prov | string | Name of the state/province/region. | Yes |
| state_code | string | Code of the state/province/region. | Yes |
| district | string | Name of the district or county. | Yes |
| city | string | Name of the city. | Yes |
| locality | string | Smaller area, part or region of a city. | Yes |
| zipcode | string | ZIP/Postal code of the place. | Yes |
| latitude | string | The geographic latitude of the location. | Yes |
| longitude | string | The geographic longitude of the location. | Yes |
4. airport_details JSON Object Reference
| Field | Type | Description | Can Be Empty? |
|---|---|---|---|
| type | string | Classification of the airport based on size and traffic. | Yes |
| name | string | The full name of the airport. | Yes |
| latitude | string | The latitude coordinate of the airport. | Yes |
| longitude | string | The longitude coordinate of the airport. | Yes |
| elevation_ft | number | The elevation of the airport above sea level, measured in feet. | Yes |
| continent_code | string | The two-letter code of the continent. | Yes |
| country_code | string | The ISO 3166-1 alpha-2 code for the country where the airport is located. | Yes |
| state_code | string | Code of the state/province/region where the airport is located. | Yes |
| city | string | The city or administrative region that the airport serves. | Yes |
| iata_code | string | The three-letter IATA airport code (e.g., "LHR"). | Yes |
| icao_code | string | The four-letter ICAO airport code (e.g., "EGLL"). | Yes |
| faa_code | string | The FAA location identifier, used primarily in the United States. May be empty if not applicable. | Yes |
5. lo_code_details JSON Object Reference
| Field | Type | Description | Can Be Empty? |
|---|---|---|---|
| lo_code | string | A unique identifier for the location, often used in logistics and shipping (e.g., "USNYC"). | Yes |
| city | string | The name of the city or location associated with the | Yes |
| state_code | string | The code for the state, province or region. | Yes |
| country_code | string | The ISO 3166-1 alpha-2 country code (e.g., "US"). | Yes |
| country_name | string | The name of the country in an administrative context. | Yes |
| location_type | string | The type of the location as comma separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport). | Yes |
| latitude | string | The latitude coordinate of the location. | Yes |
| longitude | string | The longitude coordinate of the location. | Yes |
Reference to Time Conversion API Response
| Field | Type | Description | Can Be Empty? |
|---|---|---|---|
| original_time | string | The original date and time before any conversion, presented in the format 'yyyy-MM-dd HH:mm:ss' (e.g., "2026-03-09 14:47:32"). | No |
| converted_time | string | The date and time after conversion, in the format 'yyyy-MM-dd HH:mm:ss' (e.g., "2026-03-09 02:47:32"). | No |
| diff_hour | number | The absolute difference in hours (always zero or positive) between the | No |
| diff_min | number | The absolute difference in minutes (always zero or positive) between the | No |
Error Codes
Time Zone API and Time Conversion API return HTTP status code 200 for a successful API request along with the response.
In case of a bad or invalid request, Time Zone API and Time Conversion API return 4xx HTTP status code along with a descriptive message explaining the reason for the error.
Below is a detailed explanation of the specific HTTP status codes and their corresponding error conditions:
| HTTP Status | Description |
|---|---|
| 400 Bad Request | It is returned for one of the following reasons:
|
| 401 Unauthorized | It is returned for one of the following reasons:
|
| 402 Payment Required |
|
| 403 Forbidden |
|
| 404 Not Found | It is returned for one of the following reasons:
|
| 405 Method Not Allowed |
|
| 423 Locked |
|
| 429 Too Many Requests | It is returned for one of the following reasons:
|
| 499 Client Closed Request |
|
| 5XX Server Side Error |
|
OpenAPI Specification
The Time Zone API has an OpenAPI 3.0 specification in JSON and YAML, published in our OpenAPI repository on GitHub. Import it into Postman, Insomnia or another API client, or use it to generate client code. To try the endpoints without any setup, open our Postman workspace.
API SDKs
To facilitate developers, we have added SDKs for various programming languages. Our SDKs are also available on GitHub. Feel free to help us improve them.
Detailed instructions are available on each SDK’s documentation page linked below.
- IP Geolocation API Java SDK
- IP Geolocation API Python SDK
- IP Geolocation API Go SDK
- IP Geolocation API Ruby SDK
- IP Geolocation API JavaScript SDK
- IP Geolocation API JavaScript (Web) SDK
- IP Geolocation API TypeScript SDK
- IP Geolocation API PHP SDK
- IP Geolocation API C# (.NET) SDK
- IP Geolocation API Rust SDK
- IP Geolocation API Kotlin SDK
- IP Geolocation API Swift SDK
- IP Geolocation API C++ SDK
- Astronomy API Client-Side Plugin
Other Ways to Use the Time Zone API
You can also look up time zones and convert times using our CLI, MCP server, or third-party integration tools.
- Command Line (CLI): Use the IPGeolocation.io CLI to look up time zones and convert times between locations with the
timezoneandtime-conversioncommands. - AI Assistants (MCP): Use the IPGeolocation.io MCP Server with compatible AI assistants through the
get_timezoneandconvert_timezonetools. - Automation and Integrations: Explore integration guides for Zapier, Make, n8n, and Pipedream. View all integrations
Frequently Asked Questions
Looking for features, modules, and use cases? Visit the Time Zone API page.
Explore Time Zone API