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 YAMLRoutes 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"}.
| Route | What it returns |
|---|---|
| GET /api/timezone | List all timezones (JSON) |
| GET /api/timezone.txt | List 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}.txt | List 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}.txt | Current 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}.txt | Current time in a three-part timezone (plain text) |
| GET /api/ip | Current time for the caller's IP address (JSON) |
| GET /api/ip.txt | Current time for the caller's IP address (plain text) |
| GET /api/ip/{ip} | Current time for an IP address (JSON) |
| GET /api/ip/{ip}.txt | Current time for an IP address (plain text) |
Moving from worldtimeapi.org
- Migration guide: before and after code in ten languages, a field-by-field table and troubleshooting.
- WorldTimeAPI alternative: what happened to worldtimeapi.org and the quickest way to keep your code running.
- WorldTimeAPI-compatible routes documentation: every route, field, header and error in prose.
- Changelog announcement for the compatible routes.
- /v1 API reference for conversion, DST, business days, calendars, countdowns and bulk requests.