Skip to content

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/currentTimeThe current local date and time in an IANA time zone, with its UTC offset and daylight saving state.
GET/timeapi/timeZonesEvery IANA time zone name the API knows, in alphabetical order.
GET/timeapi/timeZoneInfoA time zone in detail: its local time, UTC offsets, daylight saving dates and the Unix timestamp now.
GET/timeapi/timeZoneAtCoordinateThe time zone of a position, with its local time and UTC offsets.
GET/timeapi/timeAtCoordinateThe current local date and time at a position, with its time zone.
GET/timeapi/convertTimeConverts a local date and time from one IANA time zone to another, such as London time to Jakarta time.

currentTime

GET/v1/timeapi/currentTime

The current local date and time in an IANA time zone, with its UTC offset and daylight saving state.

scope social:read1 unit

Parameters

timeZone
string
required
IANA time zone, such as Asia/Jakarta.
e.g. Asia/Jakarta
tunnel
string
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.
proxy
string
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.
profileId
string
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
datestring
dayOfWeekstring
dstActiveboolean
localAtstring
timestring
timeZonestring
utcOffsetSecondsinteger (int64)
curl "https://api.hoshime.com/v1/timeapi/currentTime?timeZone=Asia%2FJakarta" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/timeZones

Every IANA time zone name the API knows, in alphabetical order.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
namestring
curl "https://api.hoshime.com/v1/timeapi/timeZones" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/timeZoneInfo

A time zone in detail: its local time, UTC offsets, daylight saving dates and the Unix timestamp now.

scope social:read1 unitcached 1 min

Parameters

timeZone
string
required
IANA time zone, such as Europe/London.
e.g. Europe/London
tunnel
string
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.
proxy
string
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.
profileId
string
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
currentUtcOffsetSecondsinteger (int64)
dayOfWeekstring
daylightSavingActiveboolean
daylightSavingEndAtstring
daylightSavingOffsetSecondsinteger (int64)
daylightSavingStartAtstring
hasDaylightSavingboolean
localAtstring
nowAtstring
standardUtcOffsetSecondsinteger (int64)
timeZonestring
utcAtstring
curl "https://api.hoshime.com/v1/timeapi/timeZoneInfo?timeZone=Europe%2FLondon" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/timeZoneAtCoordinate

The time zone of a position, with its local time and UTC offsets.

scope social:read1 unitcached 1 min

Parameters

latitude
string
required
Latitude, from -90 to 90, such as 51.5072.
e.g. 51.5072
longitude
string
required
Longitude, from -180 to 180, such as -0.1276.
e.g. -0.1276
tunnel
string
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.
proxy
string
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.
profileId
string
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
currentUtcOffsetSecondsinteger (int64)
dayOfWeekstring
daylightSavingActiveboolean
daylightSavingEndAtstring
daylightSavingOffsetSecondsinteger (int64)
daylightSavingStartAtstring
hasDaylightSavingboolean
localAtstring
nowAtstring
standardUtcOffsetSecondsinteger (int64)
timeZonestring
utcAtstring
curl "https://api.hoshime.com/v1/timeapi/timeZoneAtCoordinate?latitude=51.5072&longitude=-0.1276" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/timeAtCoordinate

The current local date and time at a position, with its time zone.

scope social:read1 unit

Parameters

latitude
string
required
Latitude, from -90 to 90, such as 51.5072.
e.g. 51.5072
longitude
string
required
Longitude, from -180 to 180, such as -0.1276.
e.g. -0.1276
tunnel
string
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.
proxy
string
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.
profileId
string
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
datestring
dayOfWeekstring
dstActiveboolean
localAtstring
timestring
timeZonestring
utcOffsetSecondsinteger (int64)
curl "https://api.hoshime.com/v1/timeapi/timeAtCoordinate?latitude=51.5072&longitude=-0.1276" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/convertTime

Converts 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

fromTimeZone
string
required
IANA time zone of the given time, such as Europe/London.
e.g. Europe/London
dateTime
string
required
Local date and time in that zone, such as 2026-11-06 12:00:00.
e.g. 2026-11-06 12:00:00
toTimeZone
string
required
IANA time zone to convert to, such as Asia/Jakarta.
e.g. Asia/Jakarta
tunnel
string
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.
proxy
string
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.
profileId
string
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
dstActiveboolean
fromDateTimestring
fromTimeZonestring
toDateTimestring
toTimeZonestring
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"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open