EXIF TIME-API

EXIF — Time API

Öffentlicher Zeit-Endpunkt — sicher für Shared Hosting. Kopierbare Beispiele für cURL, fetch und iFrame-Widgets.

Kurzbeschreibung

Die EXIF Time API liefert serverseitig validierte Zeitdaten (RFC3339), Optionen für Zeitzonen, Formatierung und Caching. Optimiert für Shared-Hosting : sichere Defaults, Rate-Limit, CORS, Response Caching und IP-Whitelist/Blacklist.

Design & Ziele

  • Öffentlicher read-only Endpunkt — keine Authentifizierung nötig
  • Härtung: Input Validation, strikte Header, HSTS, CSP
  • Low-cost footprint für WebSpaces (PHP / statische Dokumentation)

Wichtige Endpunkte

api/time
liefert aktuelle Zeit
Query-Parameter:
  • ?tz=Europe/Berlin — gewünschte IANA-Zeitzone (Standard: UTC)
  • ?format=iso|rfc3339|unix|human — Ausgabeformat (Standard: rfc3339)
  • ?locale=de|en — Sprache für menschenlesbare Ausgabe
  • ?cache=60 — optional, Sekunden, die der Client cachen darf

Beispielerfolg (200)

{
  "status":"ok",
  "server_time":"2025-10-12T00:05:12+00:00",
  "unix":1739317512,
  "tz":"Europe/Berlin",
  "human":"12.10.2025 02:05:12 (CEST)",
  "meta":{"srv":"exif-clock-1","version":"1.2.0"}
}

API — Kopierbare Beispiele

Hier findest du Beispielaufrufe und ein example payload — per Klick kopieren.

Endpoint & Beispiele

https://exif.one/api/time?tz=Europe/Berlin&format=rfc3339 # cURL curl -s "https://exif.one/api/time?tz=Europe/Berlin&format=rfc3339" # JavaScript (fetch) const endpoint = "https://exif.one/api/time?tz=Europe/Berlin&format=rfc3339"; const res = await fetch(endpoint, { method: 'GET', headers: { 'Accept': 'application/json' } }); if (!res.ok) throw new Error(await res.text()); const json = await res.json(); console.log(json); # Beispiel JSON (Antwort) { "status":"ok", "data":{ "iso":"2025-10-12T02:05:12+02:00", "rfc1123":"Sun, 12 Oct 2025 02:05:12 +0200", "local":"2025-10-12 02:05:12", "tz":"Europe/Berlin" } }