Skip to content
direct API / v1

A World Time API for software that has to be right.

TimeLogic API is a fast, signed World Time API for current time, timezone resolution, DST, conversion, and date math from the edge. One key. Signed JSON when you need proof.

No card for Free Direct bearer auth 400+ edge locations
Install with npm
npm install @timelogic/direct-apiSee SDKs
GET /v1/time/current?tz=America/New_York200 OK
Example response
Authorization: Bearer <your key>
Accept: application/json
{
  "unix": 1786054569,
  "unix_ms": 1786054569741,
  "utc": "2026-08-06T22:16:09Z",
  "iso_local": "2026-08-06T18:16:09-04:00",
  "rfc2822": "Thu, 06 Aug 2026 18:16:09 -0400",
  "human": "August 6, 2026, 6:16 PM America/New_York",
  "day_number": 5,
  "day_short": "Thu",
  "day_full": "Thursday",
  "timezone": "America/New_York"
}
https://api.timelogicapi.com
<50ms

typical edge response

Signed

verifiable JSON option

IANA

timezone data model

Bearer

simple direct auth

quick start

A real request, then the response shape.

The tabs are executable GET requests. The response example uses the same fields returned by the API; current-time values change on every call.

curl "https://api.timelogicapi.com/v1/time/current?tz=America/New_York" \
  -H "Authorization: Bearer $TIMELOGIC_API_KEY"
Example 200 response
{
  "unix": 1786054569,
  "unix_ms": 1786054569741,
  "utc": "2026-08-06T22:16:09Z",
  "iso_local": "2026-08-06T18:16:09-04:00",
  "rfc2822": "Thu, 06 Aug 2026 18:16:09 -0400",
  "human": "August 6, 2026, 6:16 PM America/New_York",
  "day_number": 5,
  "day_short": "Thu",
  "day_full": "Thursday",
  "timezone": "America/New_York"
}
TypeScript example

Make a World Time API request from npm.

Install the package, keep your key in an environment variable, and call the same endpoints documented in the API reference.

Browse SDKs and documentation
import { TimeApi, createConfiguration } from '@timelogic/direct-api';

const api = new TimeApi(createConfiguration({
  apiKey: process.env.TIMELOGIC_API_KEY!,
}));

const now = await api.getCurrentTime({ tz: 'America/New_York' });
migrating from worldtimeapi.org

WorldTimeAPI went offline. Your code doesn't have to change.

TimeLogic answers the same /api/timezone and /api/ip paths as worldtimeapi.org, with the same 15 JSON fields, the same .txt output and the same error bodies. Swap the host, add a free API key, and ship.

  • Exact paths after the domain, no /v1 prefix
  • JSON and .txt variants for every route
  • Key via Bearer, X-API-Key or api_key
  • Optional sign=true adds Ed25519 headers, body unchanged
# before
GET http://worldtimeapi.org/api/timezone/Europe/London

# after
GET https://api.timelogicapi.com/api/timezone/Europe/London
Authorization: Bearer $TIMELOGIC_API_KEY

{
  "utc_offset": "+00:00",
  "timezone": "Europe/London",
  "datetime": "2025-01-06T18:39:05.049000+00:00",
  "dst": false,
  "abbreviation": "GMT",
  ...
}
why direct

The useful parts are infrastructure.

Read integration notes

Edge latency

Route from the nearest Cloudflare location instead of adding another central hop.

Response integrity

A cryptographic signature protects the response body from tampering and helps confirm it came from TimeLogic. Verify it locally against the public signing key.

Timezone depth

IANA zones, DST transitions, coordinates, IP selectors, and business calendars.

Key control

Create, rotate, and revoke direct keys from one account surface.

two transports

Direct is the default. RapidAPI stays available.

Use the direct base URL for first-party keys, predictable auth, and account-level control. Existing RapidAPI consumers keep their marketplace transport and examples.

DIRECT / PRIMARY

api.timelogicapi.com

Bearer key · direct quotas · SDK default

Get a key
RAPIDAPI / COMPATIBLE

Marketplace transport

RapidAPI headers · existing subscription · preserved docs

Open RapidAPI guide
pricing

Start free. Scale when traffic is real.

View plans

Free

A real key for prototypes, side projects, and evaluation.

Freeforever

10,000 requests / month

Starter

A small production allowance with every direct endpoint included.

$5/month

250,000 requests / month

Growth

Room for growing applications and higher-volume integrations.

$15/month

1,000,000 requests / month

Scale

A large fixed monthly allowance for serious production traffic.

$149/month

20,000,000 requests / month

FAQ

Common questions about the World Time API.

Get an API key and make the first request before the coffee gets cold.

A verified email is all the Free plan needs. Your account console keeps the key lifecycle explicit.

Create a free key