This API provides complete and accurate time zone data, making it an essential tool for applications that require accurate time-related information. It is designed for users who wish to integrate global time zone data into their systems. With its easy-to-use interface and structured responses, the API ensures seamless integration into a wide variety of projects.
The API provides details about a specific time zone, including its standardized name, such as “Europe/London”. This ensures clarity when working with regions that observe multiple time zones or apply daylight saving time. Users can query the API for real-time data, retrieving the current date and time in the specified time zone with an accuracy of up to one second.
The API response includes both the full date (YYYYY-MM-DD) and the exact time (HH:MM:SS), allowing developers to use this data directly in time-sensitive applications. In addition, the response breaks down the date into its components, such as year, month and day, as well as the time in hours, minutes and seconds, for maximum flexibility. This feature is especially useful for applications that require granular control of temporal data, such as scheduling systems or analytics platforms.
This API provides reliable and accurate time zone information. Its robust design ensures accurate time data for any application, increasing functionality and improving the overall user experience.
To use this endpoint you must indicate a latitude and longitude in the parameters.
Get Time Zone - Endpoint Features
| Object | Description |
|---|---|
lat |
[Required] Indicates a latitude |
lon |
[Required] Indicates a longitude |
{"timezone": "Asia/Shanghai", "datetime": "2024-12-14 21:01:10", "date": "2024-12-14", "year": "2024", "month": "12", "day": "14", "hour": "21", "minute": "01", "second": "10", "day_of_week": "Saturday"}
curl --location --request GET 'https://zylalabs.com/api/5685/time+zone+information+api/7407/get+time+zone?lat=Required&lon=Required' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API, users must indicate a latitude and longitude.
The Time Zone Information API provides current date, time, and detailed time zone data, including name, year, month, day, and weekday.
The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.
There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.
Yes, the API supports all recognized time zones, including regions on all continents.
The Get Time Zone endpoint returns detailed time zone information, including the time zone name, current date and time, year, month, day, day of the week, and precise time components (hour, minute, second).
Key fields in the response include "timezone" (e.g., "Asia/Shanghai"), "datetime" (full date and time), "date" (YYYY-MM-DD), "year," "month," "day," "hour," "minute," "second," and "day_of_week."
The response data is structured in JSON format, with key-value pairs for each data field. This allows for easy parsing and integration into applications, enabling developers to access specific time-related information directly.
The endpoint provides comprehensive time zone data, including the current date and time, breakdown of date components (year, month, day), time components (hour, minute, second), and the day of the week.
The primary parameters for this endpoint are latitude and longitude, which specify the geographical location for which the time zone data is requested. Users must provide valid coordinates to receive accurate results.
Users can utilize the returned data for various applications, such as scheduling events, displaying local times in user interfaces, or performing time-sensitive calculations based on the precise date and time provided.
The Time Zone Information API sources its data from authoritative time zone databases and standards, ensuring that the information is accurate and up-to-date for all recognized time zones globally.
Typical use cases include scheduling applications, travel planning tools, analytics platforms requiring time zone awareness, and any system needing accurate local time representation based on geographical coordinates.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
2,518ms
Service Level:
100%
Response Time:
244ms
Service Level:
100%
Response Time:
226ms
Service Level:
100%
Response Time:
182ms
Service Level:
100%
Response Time:
164ms
Service Level:
100%
Response Time:
485ms
Service Level:
100%
Response Time:
482ms
Service Level:
100%
Response Time:
86ms
Service Level:
100%
Response Time:
94ms
Service Level:
100%
Response Time:
189ms
Service Level:
100%
Response Time:
2,557ms
Service Level:
100%
Response Time:
4,111ms
Service Level:
100%
Response Time:
3,413ms
Service Level:
100%
Response Time:
161ms
Service Level:
100%
Response Time:
8,001ms
Service Level:
100%
Response Time:
134ms
Service Level:
100%
Response Time:
158ms
Service Level:
100%
Response Time:
63ms
Service Level:
100%
Response Time:
124ms
Service Level:
100%
Response Time:
454ms