Timezone API and IP to Timezone Lookup

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.

    • stringip:"216.73.216.161",
    • objectlocation:Object,
      • stringcontinent_code:"NA",
      • stringcontinent_name:"North America",
      • stringcountry_code2:"US",
      • stringcountry_code3:"USA",
      • stringcountry_name:"United States",
      • stringcountry_name_official:"United States of America",
      • booleanis_eu:false,
      • stringstate_prov:"Ohio",
      • stringstate_code:"US-OH",
      • stringdistrict:"Franklin",
      • stringcity:"Columbus",
      • stringzipcode:"43215",
      • stringlatitude:"39.96199",
      • stringlongitude:"-83.00275",
    • objecttime_zone:Object,
      • stringname:"America/New_York",
      • numberoffset:-5,
      • numberoffset_with_dst:-5,
      • stringdate:"2026-02-24",
      • stringdate_time:"2026-02-24 04:34:02",
      • stringdate_time_txt:"Tuesday, February 24, 2026 04:34:02",
      • stringdate_time_wti:"Tue, 24 Feb 2026 04:34:02 -0500",
      • stringdate_time_ymd:"2026-02-24T04:34:02-0500",
      • numberdate_time_unix:1771925642.354,
      • stringtime_24:"04:34:02",
      • stringtime_12:"04:34:02 AM",
      • numberweek:9,
      • numbermonth:2,
      • numberyear:2026,
      • stringyear_abbr:"26",
      • stringcurrent_tz_abbreviation:"EST",
      • stringcurrent_tz_full_name:"Eastern Standard Time",
      • stringstandard_tz_abbreviation:"EST",
      • stringstandard_tz_full_name:"Eastern Standard Time",
      • booleanis_dst:false,
      • numberdst_savings:0,
      • booleandst_exists:true,
      • stringdst_tz_abbreviation:"EDT",
      • stringdst_tz_full_name:"Eastern Daylight Time",
      • objectdst_start:Object,
        • stringutc_time:"2026-03-08 TIME 07:00",
        • stringduration:"+1.00H",
        • booleangap:true,
        • stringdate_time_after:"2026-03-08 TIME 03:00",
        • stringdate_time_before:"2026-03-08 TIME 02:00",
        • booleanoverlap:false,
      • objectdst_end:Object,
        • stringutc_time:"2026-11-01 TIME 06:00",
        • stringduration:"-1.00H",
        • booleangap:false,
        • stringdate_time_after:"2026-11-01 TIME 01:00",
        • stringdate_time_before:"2026-11-01 TIME 02:00",
        • booleanoverlap:true,
  • Detailed Timezone Data

    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.

    Response
    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}

    Geo Location Module

    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.

    Response
    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}

    Get Airport details from IATA or ICAO codes

    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.

    Response
    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}

    Get City Level Information from LO Code

    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.

    Response
    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}

    Convert Time / Calculate Time Difference

    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.

    Response
    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}

    Response in Multiple Languages

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

    • English FlagEnglish
    • German FlagGerman
    • Russian FlagRussian
    • Japanese FlagJapanese
    • French FlagFrench
    • Chinese Simplified FlagChinese Simplified
    • Spanish FlagSpanish
    • Czech Republic FlagCzech Republic
    • Italian FlagItalian
    • Korean FlagKorean
    • Persian FlagPersian
    • Portuguese FlagPortuguese
    • Standard Arabic FlagStandard Arabic

    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 skip over.

    timezone

    Ecommerce

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

    ecommerce

    Global Communication

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

    communication

    Flight Management

    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.

    flight-management

    Ready to get started? Get Started with Our Timezone API Today

    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.

    CTA Illustration
    CTA Illustration

    Subscribe Our Newsletter

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