Skip to content
Reference

WorldTimeAPI-compatible API reference

The /api/timezone and /api/ip routes answer the same paths, fields and .txt variants as worldtimeapi.org, on https://api.timelogicapi.com with an API key. Authorize below and try any route from the page.

Try requests live: click Authorize and paste your API key into one of the three options (Bearer, X-API-Key header or api_key query), then expand a route and use Try it out → Execute. No key yet? Get one free.

Interactive WorldTimeAPI-compatible reference

The browser version loads Swagger UI so you can authorize and try the routes. The route list below is available as crawlable HTML.

Download the OpenAPI YAML

Routes in this contract

Every route is GET (and HEAD). Add sign=true for detached Ed25519 signature headers; the body stays the same. An unknown zone returns 404 with {"error":"unknown location"}.

RouteWhat it returns
GET /api/timezoneList all timezones (JSON)
GET /api/timezone.txtList all timezones (plain text)
GET /api/timezone/{area}List the timezones in an area, or the time in a one-word zone (JSON)
GET /api/timezone/{area}.txtList the timezones in an area, or the time in a one-word zone (plain text)
GET /api/timezone/{area}/{location}Current time in a timezone (JSON)
GET /api/timezone/{area}/{location}.txtCurrent time in a timezone (plain text)
GET /api/timezone/{area}/{location}/{region}Current time in a three-part timezone (JSON)
GET /api/timezone/{area}/{location}/{region}.txtCurrent time in a three-part timezone (plain text)
GET /api/ipCurrent time for the caller's IP address (JSON)
GET /api/ip.txtCurrent time for the caller's IP address (plain text)
GET /api/ip/{ip}Current time for an IP address (JSON)
GET /api/ip/{ip}.txtCurrent time for an IP address (plain text)