Time Zone API

Run in Postman

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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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'
Response Preview
{
  "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

FieldTypeDescriptionCan Be Empty?
ipstring

The IP address used for the time zone lookup. Returned when queried using the ip= parameter or with no parameters.

Yes

2.  time_zone JSON Object Reference

FieldTypeDescriptionCan Be Empty?
namestring

The IANA time zone name/identifier for the location.

No
offsetfloat

The Standard time zone offset from UTC in hours.

No
offset_with_dstfloat

The time zone offset from UTC in hours, accounting for daylight saving time (DST) if found.

No
current_timestring

The current date and time with time zone offset in 'YYYY-MM-DD HH:mm:ss.SSSZ' format.

No
current_time_unixfloat

The Unix timestamp representing the date and time in seconds (e.g., 1731073466.073).

No
datestring

The current date in 'YYYY-MM-DD' format.

No
date_timestring

The current date and time in 'YYYY-MM-DD HH:mm:ss' format.

No
date_time_txtstring

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_wtistring

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_ymdstring

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_24string

The current time in 24-hour format 'HH:mm:ss'.

No
time_12string

The current time in 12-hour format with AM/PM notation, formatted as 'HH:mm:ss AM/PM'.

No
weeknumber

Week number of the year; values can include 53.

No
monthnumber

The current month as a number (1-12).

No
yearnumber

The four-digit current year (e.g., 2026).

No
year_abbrstring

The two-digit abbreviation for the year (e.g., "26").

No
current_tz_abbreviationstring

Abbreviation of the time zone currently in effect for the location (standard or DST). e.g., EST, EDT, CEST.

No
current_tz_full_namestring

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_abbreviationstring

Abbreviation of the location’s standard (non-DST) time zone. e.g., EST, CET.

No
standard_tz_full_namestring

Full name of the location’s standard (non-DST) time zone. e.g., Eastern Standard Time, Central European Standard Time.

No
is_dstboolean

Is the time zone currently observing daylight saving time?

No
dst_tz_abbreviationstring

Abbreviation of the location’s DST time zone (used when DST applies). e.g., EDT, CEST.

Yes
dst_tz_full_namestring

Full name of the location’s DST time zone (used when DST applies). e.g., Eastern Daylight Time, Central European Summer Time.

Yes
dst_savingsfloat

Daylight saving offset currently in effect, in hours (for example 1 or 0.5). It is 0 when DST is not active right now, even if the zone observes DST.

No
dst_existsboolean

Indicates whether Daylight Saving Time (DST) is observed in the region. If true, the dst_start and dst_end objects will include detailed DST transition information. For time zones that do not observe DST, both are returned as empty objects ({}).

No
dst_start.utc_timestring

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.durationstring

The time change that occurs when DST starts.

Yes
dst_start.gapboolean

Is there a missing hour (DST forward transition)?

Yes
dst_start.date_time_afterstring

The local date and time that immediately follows the start of DST.

Yes
dst_start.date_time_beforestring

The local date and time immediately before DST begins.

Yes
dst_start.overlapboolean

Whether there is an overlap of time due to clocks being set back when DST starts.

Yes
dst_end.utc_timestring

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.durationstring

The time change that occurs when DST ends.

Yes
dst_end.gapboolean

Is there no gap (DST backward transition)?

Yes
dst_end.date_time_afterstring

The local date and time that immediately follows the end of DST.

Yes
dst_end.date_time_beforestring

The local date and time immediately before DST ends.

Yes
dst_end.overlapboolean

Whether there is an overlap of time due to clocks being set back when DST ends.

Yes

3.  location JSON Object Reference

FieldTypeDescriptionCan Be Empty?
location_stringstring

The provided location parameter as location.

Yes
continent_codestring

The two-letter code of the continent (e.g., "NA").

Yes
continent_namestring

The full name of the continent (e.g., "North America").

Yes
country_code2string

The ISO 3166-1 alpha-2 two-letter country code (e.g., "US").

Yes
country_code3string

The ISO 3166-1 alpha-3 three-letter country code (e.g., "USA").

Yes
country_namestring

The common name of the country (e.g., "United States").

Yes
country_name_officialstring

The official full name of the country (e.g., "United States of America").

Yes
is_euboolean

Whether the country belongs to the European Union

Yes
state_provstring

Name of the state/province/region.

Yes
state_codestring

Code of the state/province/region.

Yes
districtstring

Name of the district or county.

Yes
citystring

Name of the city.

Yes
localitystring

Smaller area, part or region of a city.

Yes
zipcodestring

ZIP/Postal code of the place.

Yes
latitudestring

The geographic latitude of the location.

Yes
longitudestring

The geographic longitude of the location.

Yes

4.  airport_details JSON Object Reference

FieldTypeDescriptionCan Be Empty?
typestring

Classification of the airport based on size and traffic.

Yes
namestring

The full name of the airport.

Yes
latitudestring

The latitude coordinate of the airport.

Yes
longitudestring

The longitude coordinate of the airport.

Yes
elevation_ftnumber

The elevation of the airport above sea level, measured in feet.

Yes
continent_codestring

The two-letter code of the continent.

Yes
country_codestring

The ISO 3166-1 alpha-2 code for the country where the airport is located.

Yes
state_codestring

Code of the state/province/region where the airport is located.

Yes
citystring

The city or administrative region that the airport serves.

Yes
iata_codestring

The three-letter IATA airport code (e.g., "LHR").

Yes
icao_codestring

The four-letter ICAO airport code (e.g., "EGLL").

Yes
faa_codestring

The FAA location identifier, used primarily in the United States. May be empty if not applicable.

Yes

5.  lo_code_details JSON Object Reference

FieldTypeDescriptionCan Be Empty?
lo_codestring

A unique identifier for the location, often used in logistics and shipping (e.g., "USNYC").

Yes
citystring

The name of the city or location associated with the lo_code.

Yes
state_codestring

The code for the state, province or region.

Yes
country_codestring

The ISO 3166-1 alpha-2 country code (e.g., "US").

Yes
country_namestring

The name of the country in an administrative context.

Yes
location_typestring

The type of the location as comma separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport).

Yes
latitudestring

The latitude coordinate of the location.

Yes
longitudestring

The longitude coordinate of the location.

Yes

Reference to Time Conversion API Response

FieldTypeDescriptionCan Be Empty?
original_timestring

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_timestring

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_hournumber

The absolute difference in hours (always zero or positive) between the original_time and the converted_time. Compare the two times to see which zone is ahead.

No
diff_minnumber

The absolute difference in minutes (always zero or positive) between the original_time and the converted_time. Compare the two times to see which zone is ahead.

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 StatusDescription
400
Bad Request

It is returned for one of the following reasons:

  • If the provided IPv4 or IPv6 address is invalid.
  • If special characters [ ] { } | ^ ` are passed in the API URL, either as a parameter or its value, especially in the API key.
  • If the provided IATA code to the request parameters iata_code, iata_from, or iata_to is not a three-letter code (AAA).
  • If the provided ICAO code to the request parameters icao_code, icao_from, or icao_to is not a four-letter code (AAAA). ICAO codes must be in uppercase (e.g. KATL); lowercase ICAO codes are rejected. IATA codes and UN/LOCODEs are case-insensitive.
  • If the provided UN/LOCODE to the request parameters lo_code, locode_from, or locode_to is not a two-letter country code followed by three letters or digits (for example, USNYC).
  • If the provided values to the request parameters lat and long are not numbers, or the values fall outside the acceptable latitude and longitude ranges. The valid range for latitude is between -90 and 90, and for longitude, it is between -180 and 180. Non-numeric values, and values written with an exponent larger than 50 (for example 1e51), return Invalid value '1e51' for parameter 'lat'..
  • If the provided time zone name to the query parameter tz is wrong or not registered in the IANA time zone database.
  • If an invalid lang value is provided. Supported values: en, de, ru, ja, fr, cn, es, cs, it, ko, fa, pt, ar. The lang parameter only affects the values inside the location object.
  • If the IPv4 or IPv6 address is in our database but has no associated time zone data (message: Couldn't find time zone detail for the IP address (IP)).
  • If the IPv4 or IPv6 address is not in our database and no other lookup parameter resolves a time zone (message: Couldn't find time zone detail for the provided parameters.).
  • If the provided IATA, ICAO or UN/LOCODE code is found but its coordinates are invalid.
  • If one of the query parameters tz_from and tz_to is provided and other is missing, for time conversion.
  • If one of the query parameters location_from and location_to is provided and other is missing, for time conversion.
  • If one of the query parameters iata_from and iata_to is provided and other is missing, for time conversion.
  • If one of the query parameters icao_from and icao_to is provided and other is missing, for time conversion.
  • If one of the query parameters locode_from and locode_to is provided and other is missing, for time conversion.
  • If one of the query parameters lat_from, long_from, lat_to, and long_to is provided and other(s) is/are missing, for time conversion.
  • If the geographic coordinates provided to one of the parameters lat_from, long_from, lat_to, and long_to is/are not numbers, or the values fall outside the acceptable latitude and longitude ranges. The valid range for latitude is between -90 and 90, and for longitude, it is between -180 and 180. Non-numeric values return the same Invalid value ... for parameter ... message, naming the parameter.
  • If the time zone names provided to one of the parameters tz_from and tz_to is/are wrong or not registered in the IANA time zone database.
  • If the provided time value is invalid for the time conversion request.
  • If none of the query parameter combination is provided for time conversion. One of tz_from and tz_to, location_from and location_to, iata_from and iata_to, icao_from and icao_to, locode_from and locode_to, or lat_from, long_from, lat_to, long_to combination must be provided.
401
Unauthorized

It is returned for one of the following reasons:

  • An API key is required for this request, but the apiKey query parameter is missing and the request doesn't come from a domain added under Request Origin.
  • If an invalid (a random value) API key is provided, or the request has no API key and its Origin or Referer domain is not registered as a Request Origin.
  • If your account has been locked because of abuse or illegal activity.
  • If you haven't verified the email address on your account.
  • When the request uses an API key associated with a database subscription.
  • When the subscription associated with the API key is paused.
  • If you're making API requests after your subscription trial has expired.
  • If a language other than English is specified in the lang parameter while using an API key on the free plan.
402
Payment Required
  • If your paid subscription's active-until date has passed (one day after it for an active or trialing subscription) and you need to renew or upgrade your subscription. Paused subscriptions and expired trials get 401 instead.
403
Forbidden
  • If the API key has an IP allow-list and the request comes from an IP address that isn't on it.
404
Not Found

It is returned for one of the following reasons:

  • If an IPv4 or IPv6 address is passed as a path variable instead of as a URL parameter (ip=).
  • If the location address provided to the request parameter location in the /timezone endpoint, or to location_from or location_to in the /timezone/convert endpoint, is invalid. A city-level or state-level address must be provided.
  • If the provided UN/LOCODE, IATA code or ICAO code to the query parameters lo_code, iata_code, or icao_code (or their _from/_to equivalents on timezone/convert) does not exist in our database.
  • If an endpoint that does not exist in our API is called.
405
Method Not Allowed
  • If wrong HTTP request method is used for calling the endpoints. Only GET method is allowed for both endpoints timezone and timezone/convert.
423
Locked
  • If the passed IP address is from a bogon IP range, or is part of a private network (on timezone only).
429
Too Many Requests

It is returned for one of the following reasons:

  • If the API usage limit has been reached on a Free plan, on an active trial (100,000 API credits), on a paid plan with surcharge usage turned off (it is on by default on all paid plans), or on a subscription with the status 'past due' or 'deleted'.
  • If the surcharge API usage limit has been reached against the subscribed plan.
499
Client Closed Request
  • The edge logs 499 when the client closes the connection before the server can respond. A short client timeout can cause this. Check your client's timeout settings.
5XX
Server Side Error
  • If a 500 (Internal Server Error), 502 (Bad Gateway), 503 (Service Unavailable), 504 (Gateway Timeout), or 505 (HTTP Version Not Supported) status code is returned, it indicates an issue on our end. Please contact us with your request at support@ipgeolocation.io for further assistance.
  • A 503 is returned if your API key can't be verified because of a temporary internal error (message: "We're unable to verify your API key (...) due to an internal error..."). Retry after a short wait.
  • A 503 is also returned when a location (or location_from/location_to) value cannot be geocoded because the geocoding service is temporarily unavailable. Example: We couldn't look up the location (London, UK) right now. Please try again shortly, or use the 'lat' and 'long' parameters instead. Retry, or use coordinates.

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.


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.


Frequently Asked Questions

You can find the time zone of any IP address by using an IP to Time Zone API. Our API instantly detects the time zone based on the IP address you provide. Simply send an API request with the IP, and you'll receive details like the time zone name, current local time, GMT offset, DST status, and the geolocation information of the IP address as well.
IPGeolocation.io's Time Zone API is one of the most accurate available. It leverages a comprehensive database of IP address locations and time zones, ensuring precision and real-time updates, including automatic adjustments for daylight saving time.
When you make a request to the Time Zone API without specifying an IP address, it automatically detects your public IP from the request header. It then identifies your approximate geolocation and returns the corresponding time zone, along with local time details.
Yes. By using our Time Zone API, you can retrieve the current local time of any IP address. The API response includes the precise local time, GMT offset, and daylight saving time details if they are in effect in the observed time zone.
Yes, IPGeolocation.io offers a free plan for its Time Zone API. The free tier includes up to 1,000 API credits per day. If you need higher limits, advanced features, or dedicated support, paid plans are available with scalable pricing.
Call the Time Zone API with an HTTP GET request. It returns JSON by default (XML with output=xml), so it works with most web and mobile applications. This page has code examples in cURL, Java, Node.js, PHP, Python, Go, Ruby, and more.
Yes. The Time Zone API detects daylight saving time automatically. The response shows whether DST is active (is_dst), the DST offset currently in effect (dst_savings, 0 when DST isn't active), and whether the time zone observes DST (dst_exists). When it does, dst_start and dst_end give the current DST period, or the next one if DST isn't in effect.
Yes, the Time Zone API works with both desktop and mobile IP addresses and returns the time zone information along with the geolocation information for the queried IP address.
The IPGeolocation.io Time Zone API supports both JSON and XML formats and returns responses in JSON format by default. For an XML response, add the output=xml request parameter.
Because we identify a visitor's city and region accurately, and one time zone usually covers an entire country or region, the time zone comes back correct for every visitor, except near an internal border in a large country split across several time zones, where a location can sit in the next zone over. Each response also returns the DST state and UTC offset, which are exact once the zone is known.
IPGeolocation.io’s time zone API provides multiple ways to query time zone information including search by IP address, geo coordinates of a location, city address, time zone name specified by IANA, LOCODE, IATA code, and ICAO code.
Yes, IPGeolocation.io’s Time Zone API allows you to search for time zone information using either the IATA or ICAO airport codes. This feature is especially useful for building international travel applications that require accurate time zone data along with airport details.
Yes, the Time Zone API supports retrieving time zone information using the 5-character UN/LOCODE of any city worldwide. In addition to time zone data, the API response includes relevant details about the city associated with the provided code.
Our Time Conversion API offers multiple ways to convert time from one source to another. You can perform time conversions using time zone names, geographic coordinates (latitude and longitude), city names, UN/LOCODE, and IATA or ICAO airport codes. This flexibility makes it easy to integrate accurate time conversions into a variety of applications.
Yes, the Time Zone API returns geolocation information along with time zone details. When you query the API using an IP address or city name, a location object is included in the response containing geolocation details. Similarly, when you query using a UN/LOCODE, the corresponding city information is provided, and for IATA or ICAO codes, the response includes the airport's geolocation details.
Time Zone API and Time Zone Lookup by IP

Looking for features, modules, and use cases? Visit the Time Zone API page.

Explore Time Zone API

Subscribe to Our Newsletter

Get the latest in geolocation tech, straight to your inbox.