API URL
GET /current-time
Headers
Code
Content-Type: application/jsonQuery Parameters
Param
Type
Description
target
required
string
IANA timezone identifier (e.g. America/New_York, UTC, Asia/Tokyo)
Example GET Request
Code
GET /api/v1/current-time?target=America/New_YorkSuccessful Response
Status
HTML
200 OKBody
Code
{
"requested_location": "America/New_York",
"longitude": -74,
"latitude": 40.7,
"datetime": "2025-04-05T17:05:43.614Z",
"timezone_name": "America/New_York",
"timezone_abbreviation": "EDT",
"gmt_offset": -4,
"is_dst": true
}Field
Type
success
boolean
data
object
data.timezone
string
data.current_time
string
data.utc_time
string
data.timezone_info
object
meta
object
meta.correlation_id
string
meta.processing_time
string
meta.timestamp
string
error
string
Error Response
Example
Code
400 MISSING_TARGET – If the 'target' parameter is not provided
400 INVALID_TIMEZONE – If the provided timezone cannot be parsed by moment-timezoneLast Updated: May 4, 2026