How do I authenticate with this API?
Create an API key in your Datpaq dashboard and send it with each request as a bearer token in the Authorization header.
One GET returns the current datetime, GMT offset, DST status, and zone abbreviation for any IANA zone. Comma-separated location format works too — no SDK, no body.
Why Current Time API
/api/v1/current-time
Current local time
Returns the current datetime, GMT offset, DST status, and abbreviation for any IANA timezone or comma-format location.
Service health
Status, version, and timestamp. Root / redirects here.
Prometheus metrics
Request counters, conversion counters, and processing duration histograms.
| Parameter | Type | Required | Description |
|---|---|---|---|
| target | string | yes | IANA zone (e.g. "America/New_York") or comma format (e.g. "America, Arizona") — converted to slash format automatically. |
| api_key | string | yes | API key via query string. Alternatively pass as x-api-key header. |
Pass an IANA identifier or comma-separated location. Always GET, always JSON.
GET https://datpaq.com/api/v1/current-time?api_key=YOUR_API_KEY&target=America/New_York
GET https://datpaq.com/api/v1/current-time?api_key=YOUR_API_KEY&target=America, Arizona
Error reference
Every error response includes a correlationId for request tracing and a clear error message.
{
"success": false,
"error": "Invalid timezone specified. Please provide a valid timezone from the IANA database.",
"meta": {
"correlationId": "ghi789-jkl012",
"timestamp": "2026-04-06T10:30:00.000Z"
}
}FAQ
Create an API key in your Datpaq dashboard and send it with each request as a bearer token in the Authorization header.
Yes. Datpaq APIs include a free tier for building, testing, and small production workloads before you move to a paid plan.
Datpaq APIs use REST over HTTPS and return JSON by default. Endpoint docs show the supported methods, query parameters, request bodies, and response fields.
Each API documents rate limits, validation rules, and error responses in the landing page and API docs so integrations can retry and fail cleanly.
One GET returns the current datetime, offset, and DST status for any IANA zone or comma-format location.