Zum Inhalt springen
GET /v1/zone

Timezone details (offset, DST)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/time-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/time-api/v1/zone" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/time-api/v1/zone", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/time-api/v1/zone");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/time-api/v1/zone",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "timezone": "Asia/Tokyo",
        "dst_active": false,
        "current_local_time": "2026-05-30T12:14:11.1079865",
        "has_daylight_saving": false,
        "current_utc_offset_seconds": 32400,
        "standard_utc_offset_seconds": 32400
    },
    "meta": {
        "timestamp": "2026-05-30T03:14:11.349Z",
        "request_id": "f4da9fe8-cbee-4336-a73f-b1a12eb490c5"
    },
    "status": "ok",
    "message": "Timezone retrieved successfully",
    "success": true
}