v1
latestOpenAPI 3.0.12026-07-242073551.1 MBGet Time Zones
Retrieves a list of time zones available on the system along with their relevant details. <br />With this endpoint, you can search for specific time zones, paginate results, and sort the data as needed.
Query parameters
A two-letter ISO 3166-1 alpha-2 code that represents a specific country. <br />This parameter is used to filter the list of time zones returned by the API, allowing users to retrieve only the time zones that are associated with the specified country.
A string representing the term or keywords used to filter the list of time zones, helping users to narrow down the list based on their input.
An integer that defines the maximum number of time zone records returned per page in the response.
<br /> For instance, if pageSize is set to 20, the API will return up to 20 time zones in each response.
<br />
<br /> <b>Note:</b> By default, this value is set to 100.
An integer indicating the specific page of results to retrieve, allowing for pagination of larger datasets.
<br /> For example, if <b>pageNumber</b> is set to 3, the API will return the results corresponding to the third page of locations based on the specified <b>pageSize</b>.
<br />
<br /> <b>Note:</b> By default, this value is set to 1.
Sort By
A string specifying the field by which to organise the search results. <br />For instance, "TimeZoneName" could be used to sort countries alphabetically, arranging the results in a more user-friendly order. <br /> <br /><b>Note:</b> By default, this value is set to CountryCode. <br /> <br />Enum [TimeZoneName, Country, CountryCode]
Order Direction
A string indicating the direction in which to sort the results, typically set to "ascending" or "descending". <br />For example, setting sortDir to "Ascending" while using "CountryName" as sortBy would arrange the countries from A to Z. <br /> <br /><b>Note:</b> By default, this value is set to Ascending. <br /> <br />Enum [Ascending, Descending]
Response
Returns a list of all the time zones for a given country.
Example response
{
"TimeZones": [
{
"TimezoneName": "Europe/Rome",
"Country": "Italy",
"CountryCode": "IT",
"UTCOffset": "UTC+1"
}
],
"TotalCount": 1
}