REST API
TimeDate Developer API
22 REST endpoints. IANA-accurate timezone data. 33,000+ cities. 120+ countries. Free tier — no key required to start.
Base URL & Response format
BASE URL
https://timedate.org/api/v1
ALL RESPONSES
{
"status": "ok",
"data": { ... },
"meta": {
"request_id": "...",
"elapsed_ms": 12
}
}Rate limits
| Tier | Limit | Auth |
|---|---|---|
| Free | 100 req/min | No key needed |
| API key | 1,000 req/min | X-API-Key: your-key |
Need higher rate limits?
API keys unlock 1,000 req/min. Free during beta — request yours in seconds.
Quick start
cURL
curl "https://timedate.org/api/v1/time/America/New_York"
JavaScript
const res = await fetch('https://timedate.org/api/v1/time/America/New_York')
const { data } = await res.json()
console.log(data.current_time) // "2026-03-18T14:32:00"Python
import requests
r = requests.get('https://timedate.org/api/v1/time/America/New_York')
print(r.json()['data']['current_time'])Endpoints (22)
| Method | Endpoint |
|---|---|
| GET | /api/v1/time/:timezone |
| GET | /api/v1/time/convert |
| GET | /api/v1/context |
| GET | /api/v1/context/:slug |
| GET | /api/v1/timezone/:tz |
| GET | /api/v1/timezone/list |
| GET | /api/v1/city/search |
| GET | /api/v1/city/top |
| GET | /api/v1/city/:slug |
| GET | /api/v1/city/:slug/nearby |
| GET | /api/v1/holidays/:country/:year |
| GET | /api/v1/holidays/countries |
| GET | /api/v1/holidays/upcoming |
| GET | /api/v1/sun |
| GET | /api/v1/moon |
| GET | /api/v1/date/diff |
| GET | /api/v1/date/add |
| GET | /api/v1/date/business-days |
| GET | /api/v1/date/week-number |
| POST | /api/v1/meeting/suggest |
| POST | /api/v1/meeting/score |
| POST | /api/v1/batch |
Full schema, request params, and response examples in the OpenAPI spec.
Embeddable Clock Widget
Add a live ticking clock to your website with a simple iframe. Configure timezone, theme, size, and more.
Building with AI?
Use the TimeDate MCP server to give Claude or Cursor real-time time and timezone data. One npx command to install.
View MCP docs →