Documentation

API URL


GET /current-time

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET /api/v1/current-time?target=America/New_York

Successful Response

Status
HTML
200 OK
Body
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
}

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-timezone

Last Updated:  May 4, 2026