WorldTimeAPI is a simple web service which returns the current local time for a given timezone as either plain-text or JSON.
# curl "http://worldtimeapi.org/api/timezone/America/Chicago"
{
"utc_offset": "-05:00",
"timezone": "America/Chicago",
"day_of_week": 6,
"day_of_year": 73,
"datetime": "2026-03-14T08:43:02.886286-05:00",
"utc_datetime": "2026-03-14T13:43:02.886286+00:00",
"unixtime": 1773495782,
"raw_offset": -21600,
"week_number": 11,
"dst": true,
"abbreviation": "CDT",
"dst_offset": 3600,
"dst_from": "2026-03-08T08:00:00+00:00",
"dst_until": "2026-11-01T07:00:00+00:00",
"client_ip": "3.128.206.10"
}