{
"count": 519,
"zones": [
"Africa/Abidjan",
"Africa/Accra",
"Africa/Addis_Ababa"
]
}
curl --location --request GET 'https://zylalabs.com/api/15017/time+zones+api/39653/list+time+zones' --header 'Authorization: Bearer YOUR_API_KEY'
{
"zone": "America/New_York",
"datetime": "2026-11-17T05:29:31-05:00",
"date": "2026-11-17",
"time": "05:29:31",
"weekday": "Tuesday",
"utc_offset": "-05:00",
"abbreviation": "EST",
"is_dst": false,
"unix": 1794911371,
"next_clock_change": {
"at_utc": "2027-03-14T07:00:00+00:00",
"new_offset": "-04:00",
"new_abbreviation": "EDT",
"becomes_dst": true
}
}
curl --location --request GET 'https://zylalabs.com/api/15017/time+zones+api/39654/current+time+in+a+time+zone?zone=America/New_York' --header 'Authorization: Bearer YOUR_API_KEY'
{
"from": {
"zone": "America/New_York",
"datetime": "2027-03-14T09:30:00-04:00",
"date": "2027-03-14",
"time": "09:30:00",
"weekday": "Sunday",
"utc_offset": "-04:00",
"abbreviation": "EDT",
"is_dst": true,
"unix": 1805031000
},
"to": [
{
"zone": "Europe/London",
"datetime": "2027-03-14T13:30:00+00:00",
"date": "2027-03-14",
"time": "13:30:00",
"weekday": "Sunday",
"utc_offset": "+00:00",
"abbreviation": "GMT",
"is_dst": false,
"unix": 1805031000
},
{
"zone": "Asia/Tokyo",
"datetime": "2027-03-14T22:30:00+09:00",
"date": "2027-03-14",
"time": "22:30:00",
"weekday": "Sunday",
"utc_offset": "+09:00",
"abbreviation": "JST",
"is_dst": false,
"unix": 1805031000
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15017/time+zones+api/39655/convert+a+time+between+zones?time=2027-03-14T09:30&from=America/New_York&to=Europe/London,Asia/Tokyo' --header 'Authorization: Bearer YOUR_API_KEY'
{
"from": {
"zone": "America/Los_Angeles",
"datetime": "2026-11-17T02:29:31-08:00",
"date": "2026-11-17",
"time": "02:29:31",
"weekday": "Tuesday",
"utc_offset": "-08:00",
"abbreviation": "PST",
"is_dst": false,
"unix": 1794911371
},
"to": {
"zone": "Europe/Berlin",
"datetime": "2026-11-17T11:29:31+01:00",
"date": "2026-11-17",
"time": "11:29:31",
"weekday": "Tuesday",
"utc_offset": "+01:00",
"abbreviation": "CET",
"is_dst": false,
"unix": 1794911371
},
"hours_ahead": 9
}
curl --location --request GET 'https://zylalabs.com/api/15017/time+zones+api/39656/hours+between+two+time+zones?from=America/Los_Angeles&to=Europe/Berlin' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Time Zones API simply include your bearer token in the Authorization header.
| 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.
Current time in any IANA time zone, conversion between zones, time zone by coordinates, and DST changes.
The IANA time zone database, computed locally.
Accuracy follows the bundled IANA database version.
Each endpoint returns JSON data. The "List time zones" endpoint provides a list of time zones, while "Current time in a time zone" returns the current date and time for a specified zone. The "Convert a time between zones" endpoint gives converted times for multiple zones, and "Hours between two time zones" shows the time difference in hours between two specified zones.
Key fields include "zone" (time zone name), "datetime" (current date and time), "utc_offset" (time difference from UTC), "abbreviation" (time zone abbreviation), and "is_dst" (indicates if it's Daylight Saving Time). For conversion endpoints, additional fields like "from" and "to" zones are included.
The API provides information on current time, time zone conversions, and time differences. The "List time zones" endpoint offers a comprehensive list of IANA time zones, while the "Current time" endpoint gives real-time data, including DST changes. The conversion endpoints allow users to see how a specific time translates across different zones.
Response data is structured in JSON format. Each endpoint returns a main object containing relevant fields. For example, the "Current time" endpoint includes fields like "zone," "datetime," and "next_clock_change." The "Convert" endpoint organizes data into "from" and "to" objects, detailing the original and converted times.
Parameters vary by endpoint. For "Current time in a time zone," you need to specify the time zone (e.g., "America/New_York"). The "Convert a time between zones" endpoint requires both source and destination time zones, along with the time to convert. The "Hours between two time zones" endpoint needs two time zone parameters.
Typical use cases include scheduling meetings across different time zones, displaying current local times on websites, and calculating time differences for travel or communication. Developers can integrate this API into applications that require accurate time zone information and conversions.
Users can utilize the returned data by parsing the JSON response to extract relevant fields. For example, to display the current time, extract "datetime" and "zone." For conversions, use the "from" and "to" fields to show users the equivalent times in different zones, enhancing user experience in time-sensitive applications.
Data accuracy is maintained by using the IANA time zone database, which is regularly updated to reflect changes in time zone rules and DST adjustments. The API computes time based on this reliable source, ensuring that users receive accurate and up-to-date information for their specified time zones.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund