⚡ GlobeTimeZone API

Integrate world clock data and time zone conversion into your applications. RESTful, JSON responses. Free tier available.

🚀 Quick Start

No API key required for the free tier. Just send a GET request:

curl https://globetimezone.com/api/v1/current?tz=America/New_York

That's it. You get JSON back with the current time, UTC offset, DST status, and more.

📋 API Endpoints

GET /api/v1/current

Get current time for a timezone

Returns current date/time, UTC offset, DST status, and timezone abbreviation for any IANA timezone.

Parameters

ParameterTypeRequiredDescription
tzstringYesIANA timezone (e.g. America/New_York, Asia/Tokyo)
formatstringNoOutput format: "json" (default) or "text"

Example Response

{
  "timezone": "America/New_York",
  "datetime": "2026-05-22T09:15:00-04:00",
  "time": "09:15",
  "date": "2026-05-22",
  "utc_offset": "-04:00",
  "dst": true,
  "abbreviation": "EDT",
  "weekday": "Friday",
  "timestamp": 1747912500
}
GET /api/v1/convert

Convert time between time zones

Convert a specific date/time from one timezone to another.

ParameterTypeRequiredDescription
fromstringYesSource IANA timezone
tostringYesTarget IANA timezone
timestringNoTime in HH:MM format (default: now)
datestringNoDate in YYYY-MM-DD format (default: today)
{
  "from": { "timezone": "Asia/Shanghai", "datetime": "2026-05-22T21:00:00+08:00" },
  "to": { "timezone": "America/New_York", "datetime": "2026-05-22T09:00:00-04:00" },
  "offset_hours": -12
}
GET /api/v1/timezones

List all supported time zones

Returns a complete list of IANA timezones with metadata.

ParameterTypeRequiredDescription
regionstringNoFilter by region (Asia, Europe, Americas, etc.)
searchstringNoSearch by city/country name
{
  "total": 400,
  "timezones": [
    { "name": "America/New_York", "offset": -5, "region": "Americas", "dst": true },
    { "name": "Europe/London", "offset": 0, "region": "Europe", "dst": true }
  ]
}
GET /api/v1/overlap

Find overlapping working hours between time zones

Calculate the overlapping business hours for multiple time zones. Perfect for scheduling international meetings.

ParameterTypeRequiredDescription
zonesstringYesComma-separated IANA timezones (max 6)
startnumberNoWorkday start hour (default: 9)
endnumberNoWorkday end hour (default: 18)
{
  "zones": ["America/New_York", "Europe/London", "Asia/Shanghai"],
  "working_hours": { "start": 9, "end": 18 },
  "overlaps": [
    { "utc_hour": 13, "new_york": "09:00 AM", "london": "02:00 PM", "shanghai": "09:00 PM" },
    { "utc_hour": 14, "new_york": "10:00 AM", "london": "03:00 PM", "shanghai": "10:00 PM" },
    { "utc_hour": 15, "new_york": "11:00 AM", "london": "04:00 PM", "shanghai": "11:00 PM" }
  ]
}
GET /api/v1/timezone/:zone

Get current time and offset for a timezone

Returns detailed timezone information including current time, UTC offset, DST status, and abbreviation.

Example: GET /api/v1/timezone/America%2FNew_York

⚠️ 时区标识符中的 / 必须编码为 %2F(如 America%2FNew_York)。

Response

{
  "zone": "America/New_York",
  "offset": -14400,
  "abbreviation": "EDT",
  "dst": true,
  "currentTime": "2026-05-22T09:15:00-04:00"
}

💎 Plans & Pricing

🆓 Free

$0

forever

  • 1,000 requests/month
  • All endpoints
  • JSON responses
  • No API key needed
  • Community support

🏢 Enterprise

Custom

contact us

  • Unlimited requests
  • All endpoints
  • SLA guarantee
  • Dedicated support
  • On-premise option
  • Custom integrations

⏱️ Rate Limits

PlanRateBurstReset
Free10 req/min5 concurrentEvery 60s
Pro100 req/min50 concurrentEvery 60s
Enterprise1,000 req/min200 concurrentEvery 60s

Rate limit headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset

💻 Code Examples

JavaScript (Fetch)

const response = await fetch(
  'https://globetimezone.com/api/v1/current?tz=Asia/Tokyo'
);
const data = await response.json();
console.log(`Tokyo time: ${data.time} ${data.abbreviation}`);

Python (requests)

import requests
r = requests.get(
  'https://globetimezone.com/api/v1/convert',
  params={'from': 'America/New_York', 'to': 'Asia/Shanghai'}
)
data = r.json()
print(f"Shanghai: {data['to']['datetime']}")

cURL

# Get current Tokyo time
curl "https://globetimezone.com/api/v1/current?tz=Asia/Tokyo"

# Find overlaps for meeting planning
curl "https://globetimezone.com/api/v1/overlap?zones=America/New_York,Europe/London,Asia/Shanghai"