Stay organized with collections Save and categorize content based on your preferences.
The Time Zone API is a service that accepts an HTTP request of latitude/longitude coordinates and a chosen date and time. It returns the time zone data for the location, including offsets for UTC and daylight savings time.
Why use the Time Zone APIWith the Time Zone API, you can develop applications that provide the time zone ID and name for dates and times at specific locations on a map. For example, you can show the following time zone data:
Time zone data can be particularly useful when you want to have your website or app display time-based data relevant to your users.
What you can do with the Time Zone APIWith the Time Zone API, you can request the time zone for locations on the surface of the earth, with the time offset from UTC and for daylight savings time for each of those locations.
How the Time Zone API worksThe Time Zone API accepts an HTTPS request of latitude/longitude coordinates, the desired date and time as a timestamp, and optionally, a language code. It returns data in the format specified by the request. The following example shows a request for Nevada, USA, with a requested output in JSON.
https://maps.googleapis.com/maps/api/timezone/json ?location=39.6034810%2C-119.6822510 ×tamp=1733428634 &key=YOUR_API_KEYResources
The following table summarizes the resources available through the Time Zone API along with the data it returns.
Data resources Data returned Return format TimezoneYou provide your request along with location and timestamp. See required parameters.
Call this API in the language of your choice through one of the following client libraries:
The Java Client, Python Client, Go Client and Node.js Client for Google Maps Services are community-supported client libraries, open sourced under the Apache 2.0 License. Download them from GitHub, where you can also find installation instructions and sample code.
What's nextExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["The Time Zone API provides time zone data, including UTC and daylight savings offsets, for specific locations based on latitude/longitude and timestamp."],["You can use the API to display localized time zone names, offsets, and enhance time-based data in your applications."],["The API accepts HTTPS requests with location and timestamp parameters and returns data in JSON or XML format."],["Client libraries are available in Java, Python, Go, and Node.js for easy integration into your projects."]]],["The Time Zone API retrieves time zone data for specific locations using latitude/longitude coordinates and a timestamp. It returns the time zone ID, localized name, UTC offset, and daylight saving time offset in JSON or XML format. To use it, you send an HTTPS request with location and timestamp and you can then utilize the data in your website or apps to show time-based information relevant to users' locations. You can also use one of the provided client libraries to access the API.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4