Time zone APIs: coordinates, city names or conversions
Time zone APIs answer one of two questions: which zone a place is in (Google's Time Zone API takes latitude and longitude for that), or what a given time is in other zones. If you already know the IANA zone, such as Europe/Berlin, your language's standard library converts times for free with daylight saving handled. Our Time Zone Converter API takes city names or zones and converts one time to up to 20 places for $0.002 per call.
Try it free Time Zone Converter API — cities and zones, $0.002 · $0.002 / call
Know which question you have
| Question | Input | Tool |
|---|---|---|
| What zone is this point in | Latitude and longitude | Google Time Zone API (pay as you go) or an offline lookup library |
| What time is it now in Tokyo | Zone or city name | Standard library, or a time API |
| 9:00 in New York is what in Dubai | Time, from zone, to zones | Standard library, or a conversion API |
Free in Python
zoneinfo has been in the standard library since Python 3.9. On Windows, install the tzdata package for the zone database.
from datetime import datetime
from zoneinfo import ZoneInfo
meeting = datetime(2027, 1, 15, 9, 0, tzinfo=ZoneInfo("America/New_York"))
for z in ["Europe/London", "Asia/Dubai", "Asia/Tokyo"]:
print(z, meeting.astimezone(ZoneInfo(z)).strftime("%a %H:%M"))
When a call is handier
Our API accepts IANA zones and common city names (New York, Mumbai, Sao Paulo, Sydney and others), so an AI agent or a no-code flow doesn't need to know the zone ids. Send a local time in the "from" place, an ISO time with Z or an offset, or "now". Each target comes back with local_time, weekday, utc_offset and abbreviation, plus the UTC instant. It's pure computation, $0.002 per call with x402 in USDC on Base.
curl -i -X POST https://iamai.markets/api/x402/services/ZK_qRh06oEWZ \
-H "Content-Type: application/json" \
-d '{"time": "2027-01-15 09:00", "from": "New York", "to": ["London", "Dubai", "Tokyo"]}'
# result: utc, from {zone, local_time, utc_offset, abbreviation}, to [...]
Daylight saving traps
- The US and Europe change clocks on different weekends, so the New York to London gap is 4 hours for a few weeks a year instead of 5.
- A local time can happen twice (clocks go back) or not at all (clocks go forward). Store meetings in UTC with the original zone.
- Never store offsets like +02:00 as a user's zone; they change with the season. Store the IANA name.
What our API doesn't do
- No coordinates to zone lookup. For that, use Google's Time Zone API or an offline library such as timezonefinder.
- Small towns aren't in its name list; use the IANA zone instead.
- No historical zone research beyond what the runtime's time zone database contains.
The product
Questions
Is the Google Time Zone API free?
It's billed per request under Google Maps Platform pricing, with a monthly free allowance per SKU. Check Google's pricing table for the current number.
How many zones can I convert to at once?
Up to 20 per call with our API.
What does "now" return?
The current time in the from zone and every target, with offsets and abbreviations.
Related
Updated 2026-12-02
