具
TimeAPI API
6 endpointsUtilitiesGlobalsocial:read5 real examples
Returns current local time, UTC offsets and daylight saving data for IANA time zones or geographic coordinates.
View as Markdown| GET | /timeapi/currentTime | The current local date and time in an IANA time zone, with its UTC offset and daylight saving state. |
| GET | /timeapi/timeZones | Every IANA time zone name the API knows, in alphabetical order. |
| GET | /timeapi/timeZoneInfo | A time zone in detail: its local time, UTC offsets, daylight saving dates and the Unix timestamp now. |
| GET | /timeapi/timeZoneAtCoordinate | The time zone of a position, with its local time and UTC offsets. |
| GET | /timeapi/timeAtCoordinate | The current local date and time at a position, with its time zone. |
| GET | /timeapi/convertTime | Converts a local date and time from one IANA time zone to another, such as London time to Jakarta time. |
currentTime
GET
/v1/timeapi/currentTimeThe current local date and time in an IANA time zone, with its UTC offset and daylight saving state.
scope social:read1 unit
Parameters
timeZonestring required | IANA time zone, such as Asia/Jakarta. e.g. Asia/Jakarta |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
date | string |
dayOfWeek | string |
dstActive | boolean |
localAt | string |
time | string |
timeZone | string |
utcOffsetSeconds | integer (int64) |
curl "https://api.hoshime.com/v1/timeapi/currentTime?timeZone=Asia%2FJakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/timeapi/currentTime?timeZone=Asia%2FJakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/timeapi/currentTime?timeZone=Asia%2FJakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "date": "2026-11-07", "dayOfWeek": "Saturday", "dstActive": false, "localAt": "2026-11-07T01:02:41+07:00", "time": "01:02:41.144661", "timeZone": "Asia/Jakarta", "utcOffsetSeconds": 25200 }, "meta": { "cached": false, "endpoint": "currentTime", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "timeapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
timeZones
GET
/v1/timeapi/timeZonesEvery IANA time zone name the API knows, in alphabetical order.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
1 fields
name | string |
curl "https://api.hoshime.com/v1/timeapi/timeZones" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/timeapi/timeZones", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/timeapi/timeZones", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "name": "Africa/Abidjan" }, { "name": "Africa/Accra" } ], "meta": { "cached": false, "endpoint": "timeZones", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "timeapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
timeZoneInfo
GET
/v1/timeapi/timeZoneInfoA time zone in detail: its local time, UTC offsets, daylight saving dates and the Unix timestamp now.
scope social:read1 unitcached 1 min
Parameters
timeZonestring required | IANA time zone, such as Europe/London. e.g. Europe/London |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
currentUtcOffsetSeconds | integer (int64) |
dayOfWeek | string |
daylightSavingActive | boolean |
daylightSavingEndAt | string |
daylightSavingOffsetSeconds | integer (int64) |
daylightSavingStartAt | string |
hasDaylightSaving | boolean |
localAt | string |
nowAt | string |
standardUtcOffsetSeconds | integer (int64) |
timeZone | string |
utcAt | string |
curl "https://api.hoshime.com/v1/timeapi/timeZoneInfo?timeZone=Europe%2FLondon" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/timeapi/timeZoneInfo?timeZone=Europe%2FLondon", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/timeapi/timeZoneInfo?timeZone=Europe%2FLondon", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "currentUtcOffsetSeconds": 0, "dayOfWeek": "Friday", "daylightSavingActive": false, "daylightSavingEndAt": "2027-10-31T01:00:00Z", "daylightSavingOffsetSeconds": 3600, "daylightSavingStartAt": "2027-03-28T01:00:00Z", "hasDaylightSaving": true, "localAt": "2026-11-06T18:02:41Z", "nowAt": "2026-11-06T18:02:41Z", "standardUtcOffsetSeconds": 0, "timeZone": "Europe/London", "utcAt": "2026-11-06T18:02:41Z" }, "meta": { "cached": false, "endpoint": "timeZoneInfo", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "timeapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
timeZoneAtCoordinate
GET
/v1/timeapi/timeZoneAtCoordinateThe time zone of a position, with its local time and UTC offsets.
scope social:read1 unitcached 1 min
Parameters
latitudestring required | Latitude, from -90 to 90, such as 51.5072. e.g. 51.5072 |
longitudestring required | Longitude, from -180 to 180, such as -0.1276. e.g. -0.1276 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
currentUtcOffsetSeconds | integer (int64) |
dayOfWeek | string |
daylightSavingActive | boolean |
daylightSavingEndAt | string |
daylightSavingOffsetSeconds | integer (int64) |
daylightSavingStartAt | string |
hasDaylightSaving | boolean |
localAt | string |
nowAt | string |
standardUtcOffsetSeconds | integer (int64) |
timeZone | string |
utcAt | string |
curl "https://api.hoshime.com/v1/timeapi/timeZoneAtCoordinate?latitude=51.5072&longitude=-0.1276" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/timeapi/timeZoneAtCoordinate?latitude=51.5072&longitude=-0.1276", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/timeapi/timeZoneAtCoordinate?latitude=51.5072&longitude=-0.1276", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "currentUtcOffsetSeconds": 0, "dayOfWeek": "Friday", "daylightSavingActive": false, "daylightSavingEndAt": "2027-10-31T01:00:00Z", "daylightSavingOffsetSeconds": 3600, "daylightSavingStartAt": "2027-03-28T01:00:00Z", "hasDaylightSaving": true, "localAt": "2026-11-06T18:02:40Z", "nowAt": "2026-11-06T18:02:40Z", "standardUtcOffsetSeconds": 0, "timeZone": "Europe/London", "utcAt": "2026-11-06T18:02:40Z" }, "meta": { "cached": false, "endpoint": "timeZoneAtCoordinate", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "timeapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
timeAtCoordinate
GET
/v1/timeapi/timeAtCoordinateThe current local date and time at a position, with its time zone.
scope social:read1 unit
Parameters
latitudestring required | Latitude, from -90 to 90, such as 51.5072. e.g. 51.5072 |
longitudestring required | Longitude, from -180 to 180, such as -0.1276. e.g. -0.1276 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
date | string |
dayOfWeek | string |
dstActive | boolean |
localAt | string |
time | string |
timeZone | string |
utcOffsetSeconds | integer (int64) |
curl "https://api.hoshime.com/v1/timeapi/timeAtCoordinate?latitude=51.5072&longitude=-0.1276" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/timeapi/timeAtCoordinate?latitude=51.5072&longitude=-0.1276", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/timeapi/timeAtCoordinate?latitude=51.5072&longitude=-0.1276", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "date": "2026-11-06", "dayOfWeek": "Friday", "dstActive": false, "localAt": "2026-11-06T18:02:40Z", "time": "18:02:40.955927", "timeZone": "Europe/London", "utcOffsetSeconds": 0 }, "meta": { "cached": false, "endpoint": "timeAtCoordinate", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "timeapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
convertTime
GET
/v1/timeapi/convertTimeConverts a local date and time from one IANA time zone to another, such as London time to Jakarta time.
scope social:read1 unitcached 24 h
Parameters
fromTimeZonestring required | IANA time zone of the given time, such as Europe/London. e.g. Europe/London |
dateTimestring required | Local date and time in that zone, such as 2026-11-06 12:00:00. e.g. 2026-11-06 12:00:00 |
toTimeZonestring required | IANA time zone to convert to, such as Asia/Jakarta. e.g. Asia/Jakarta |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
dstActive | boolean |
fromDateTime | string |
fromTimeZone | string |
toDateTime | string |
toTimeZone | string |
curl "https://api.hoshime.com/v1/timeapi/convertTime?fromTimeZone=Europe%2FLondon&dateTime=2026-11-06+12%3A00%3A00&toTimeZone=Asia%2FJakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/timeapi/convertTime?fromTimeZone=Europe%2FLondon&dateTime=2026-11-06+12%3A00%3A00&toTimeZone=Asia%2FJakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/timeapi/convertTime?fromTimeZone=Europe%2FLondon&dateTime=2026-11-06+12%3A00%3A00&toTimeZone=Asia%2FJakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "dstActive": false, "fromDateTime": "…", "fromTimeZone": "…", "toDateTime": "…", "toTimeZone": "…" }, "meta": { "cached": false, "endpoint": "convertTime", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "timeapi", "requestId": "req_2Xb9kQ…", "units": 1 } }