Skip to content

API guides for building with time data.

Start with the guide that matches your integration, then follow the linked documentation and endpoint reference for the exact contract.

World Time API guide: get the current time for any timezone

Get the current time for any IANA timezone, IP address, coordinates or UTC offset as JSON: Unix, UTC, local ISO 8601, RFC 2822 and weekday in one call.

Read guide

WorldTimeAPI alternative: a drop-in replacement for worldtimeapi.org

worldtimeapi.org is offline. Keep the same /api/timezone and /api/ip paths, 15 fields and .txt output: change the host, add an API key, done.

Read guide

Time Zone API: look up any time zone by name, IP or coordinates

A time zone API that returns the IANA time zone, UTC offset and DST status for a zone name, IP address, latitude/longitude or UTC offset. Free plan with 10,000 requests a month.

Read guide

Time zone conversion API guide: convert timestamps between zones

Convert Unix seconds, milliseconds or ISO 8601 timestamps to any IANA zone, IP, coordinates or offset, with UTC, local ISO and RFC 2822 output.

Read guide

Daylight saving time API guide: DST status and the next transition

Check whether daylight saving time is active for any IANA zone, IP or coordinates, and get the next UTC offset change with next=true.

Read guide

Business days and holiday API guide: count working days between dates

Count business days between two dates, skipping weekends and public holidays for 249 countries and 862 regional calendars, in one API request.

Read guide

Bulk time and timezone API guide: many zones in one request

Fetch the current time, or convert one timestamp, for up to 10 time zones, IPs or offsets in a single request, returned as an array in input order.

Read guide

TimeLogic API SDK usage guide

Install the TimeLogic API SDKs for TypeScript, Python, Rust, Go, Java, .NET, PHP, Ruby, Kotlin and Swift, then make your first current-time call.

Read guide

Signed time API: signed responses and Ed25519 verification

Signed time API with verifiable timestamps: add sign=true and each response carries an Ed25519 signature over the exact body, path and signing time.

Read guide

OpenAPI documentation and free-tier pricing

Download the TimeLogic OpenAPI contract, generate clients, and start on the free tier: 10,000 requests a month, then Starter, Growth and Scale plans.

Read guide

Migrate from WorldTimeAPI: code for every language, field map and troubleshooting

Replace worldtimeapi.org in JavaScript, Python, PHP, Go, Java, C#, Ruby, curl or ESP32: same paths and 15 fields, new host, an API key, plus error fixes.

Read guide

Time API comparison: WorldTimeAPI alternatives and time zone APIs side by side

Compare time and time zone APIs as WorldTimeAPI alternatives: API keys, free tiers, WorldTimeAPI paths and signed responses. TimeLogic API keeps the exact paths.

Read guide

Get the current time from an API in JavaScript (browser and Node.js)

Fetch the real current time in JavaScript instead of trusting the device clock: browser and Node.js fetch examples, server clock offset, zones and DST.

Read guide

Get the current time from the internet in Python

Get the real current time in Python from a time API instead of the system clock: requests examples, UTC, time zones with DST, clock offset, async.

Read guide

Get the timezone from an IP address (and detect a user's time zone)

Detect a user's time zone from their IP address with one API call, or in the browser with Intl. JavaScript, Python and curl examples, plus accuracy notes.

Read guide

Get the timezone from latitude and longitude (coordinates to IANA time zone)

Turn latitude and longitude into an IANA time zone, UTC offset and DST flag with one API call. curl, JavaScript and Python examples, plus edge cases.

Read guide

Get the time from the internet on ESP32, ESP8266 and Arduino with a time API

ESP32 and Arduino sketches that get the local time over HTTPS with the time zone and DST applied: set the clock, parse JSON or .txt, and when to use NTP.

Read guide

Raspberry Pi and MicroPython: get the correct time from the internet with an API

Fix a Raspberry Pi with the wrong time, or give a Pico W the local time: shell, Python and MicroPython examples over HTTPS, time zone and DST included.

Read guide

NTP vs a time API: how to get reliable time from the internet

NTP or an HTTPS time API? When each is the better time source: browsers, blocked UDP, time zones and DST, signed timestamps and devices with wrong clocks.

Read guide

Need the complete contract? Read the documentation or open the API reference.