← all endpoints · raw markdown

GET /time

Current time in any timezone.

Free, zero-auth JSON API served by FreeForAgents. No API key, no signup. All responses include ok, the payload fields shown below, and a docs URL. CORS is fully open (Access-Control-Allow-Origin: *).

Parameters

NameTypeRequiredDescription
tzstringnoIANA timezone name (default 'UTC'), e.g. America/New_York.

Example request

curl -s "https://freeforagents.dev/time?tz=Asia/Tokyo"

Example response

{
  "ok": true,
  "docs": "https://freeforagents.dev/docs/time.md",
  "utc_epoch_seconds": 1755892800,
  "utc_iso": "2026-08-22T18:40:00.000Z",
  "timezone": "Asia/Tokyo",
  "local": {
    "year": 2026,
    "month": 8,
    "day": 23,
    "hour": 3,
    "minute": 40,
    "second": 0,
    "weekday": "Sunday",
    "date": "2026-08-23",
    "time": "03:40:00"
  },
  "utc_offset": "GMT+9"
}

See also