Chronokit API

Free REST API for time, date, astronomy, weather, and geography data. No API key required. CORS enabled.

Quick Start

# Get current time in Tokyo
curl "https://chronokit.io/api/v1/time?tz=Asia/Tokyo"

# Calculate days between dates
curl "https://chronokit.io/api/v1/date?action=diff&start=2024-01-01&end=2026-03-15"

# Sunrise in New York
curl "https://chronokit.io/api/v1/astronomy?action=sun&lat=40.7128&lng=-74.006&date=2026-06-21"

API Endpoints

Time API

Timezone info, time conversion, DST status

GET

Endpoint

/api/v1/time

Date Calculator API

Duration between dates, add/subtract, age, weekday, week number, business days

GET

Endpoint

/api/v1/date

Astronomy API

Sun/moon times, moon phases, seasons, eclipses, planet positions

GET

Endpoint

/api/v1/astronomy

Holidays API

Public holidays for 100+ countries

GET

Endpoint

/api/v1/holidays

Weather API

Current conditions, 7-day forecast, hourly data

GET

Endpoint

/api/v1/weather

Geography API

City search, distance calculator, international dialing codes

GET

Endpoint

/api/v1/geo

Calendar API

Monthly calendar grids, leap year checker

GET

Endpoint

/api/v1/calendar

Fun API

Roman numerals, doomsday algorithm, date patterns

GET

Endpoint

/api/v1/fun

Response Format

All endpoints return JSON. Errors include an error field with a descriptive message and appropriate HTTP status codes (400 for bad requests, 500 for server errors).

// Success
{ "timezone": "America/New_York", "currentTime": "2026-03-15T10:30:00..." }

// Error
{ "error": "Missing required parameter: tz" }