World Time API
World Time API
World Time API is a free time-and-timezone API — query current UTC, local time, DST status, UTC offset by timezone, IP, or city.
Completely free, no API key required
No SLA (community project, occasionally goes down)
GET http://worldtimeapi.org/api/timezone/Asia/Shanghai for Shanghai time; GET /ip auto-detects from caller IP.
Uptime · 30-day window
About this API
World Time API is a community-maintained free time API. Key feature: "actually free, actually simple" — no signup, no API key, one-page docs. Most common use case: "I have a user's IP or timezone string, want to know their current time". Response JSON includes UTC time, local time, UTC offset, DST status, future DST transition times. Also commonly used by developers to "verify their server is properly NTP-synced" (comparing server time vs API response). Downside: as a community project, no SLA guarantees — occasionally goes down or has high latency. For critical production scenarios, use PostgreSQL CURRENT_TIMESTAMP or install NTP locally, with World Time API as supplementary.
What you can build
- 1Display user's local time in apps
- 2Verify timezone during DST transitions
- 3Auto timezone conversion for meeting scheduling
- 4Cross-timezone CI/CD job scheduling
Strengths & limitations
Strengths
- Completely free, no API key required
- Concise response (single JSON sufficient)
- IP-based auto timezone detection supported
Limitations
- No SLA (community project, occasionally goes down)
- No historical time queries (current moment only)
Example request
curl https://worldtimeapi.org/<endpoint>Getting started
GET http://worldtimeapi.org/api/timezone/Asia/Shanghai for Shanghai time; GET /ip auto-detects from caller IP.
FAQ
Is the free tier rate-limited?+
No explicit rate limits, but reasonable use (< 5/sec per IP) avoids blocking.
Can it return historical dates?+
No — this is a "current time" API. For historical timezone queries, use the Time Zone Database (tzdb) locally.
Technical details
- Auth type
- unknown
- Pricing
- unknown
- Protocols
- REST
- SDKs
- python, javascript, go, java, php
- Last health check
- 5/12/2026, 7:38:40 AM