Skip to main content

Getting started

Current time endpoint

The current_time endpoint takes a location in the form of a location name, latitude and longitude, or IP address and returns the current time, date, and timezone of that location.

Convert timezones endpoint

The convert_time endpoint makes it easy to convert the time and date of a given location to the time and date of another location. By default it converts the current time, but the conversion can take place in either the past or future with a simple parameter.

REST

The Timezones API, like all of Abstract’s APIs, is organized around REST. It is designed to use predictable, resource-oriented URLs and to use HTTP status codes to indicate errors.

HTTPS

The Timezones API requires all communications to be secured with TLS 1.2 or greater.

API Versions

All of Abstract’s API are versioned. The Timezones API is currently on Version 1.

Your API Key

Your API key is your unique authentication key to be used to access Abstract’s Timezones API. Note that each of Abstract’s APIs has a unique API key, so you will need different keys to access the Timezones and Email Validation APIs, for example. To authenticate your requests, you will need to append your API key to the base URL.

Response and error codes

Whenever you make a request that fails for some reason, an error is returned also in the JSON format. The errors include an error code and description, which you can find in detail below.

List of timezones