GET
/
v1
/
current_time

Getting started

Base URL

https://timezone.abstractapi.com/v1/current_time

Validation endpoint

https://timezone.abstractapi.com/v1/current_time
? api_key = YOUR_UNIQUE_API_KEY
& location = Oxford, United Kingdom

This was a successful request, and the details below are included in the response:

Request parameters

api_key
String
required

Your unique API key. Note that each user has unique API keys for each of Abstract’s APIs, so your Time, Date, and Timezone API key will not work for as your User Avatar API, for example.

location
String
required

The location to determine the current time and timezone of. This parameter accepts the location as a string (e.g., Los Angeles, CA), a longitude and latitude (e.g., -31.4173391,-64.183319) , or an IP address (e.g., 82.111.111.111)

Response parameters

The API response is returned in a universal and lightweight JSON format.

requested_location
String

The location from the request.

longitude
Float

Decimal of the longitude found for the requested_location.

latitude
Float

Decimal of the longitude found for the requested_location.

datetime
String

The current date and time of the requested_location.

timezone_name
String

Timezone’s name from the IANA Time Zone Database.

timezone_location
String

Timezone’s location.

timezone_abbreviation
String

Timezone’s abbreviation, also from the IANA Time Zone Database.

gmt_offset
Integer

Timezone’s offset from Greenwich Mean Time (GMT).

is_dst
Boolean

True if the location is currently in Daylight Savings Time (DST).