# TimeAPI API

> Returns current local time, UTC offsets and daylight saving data for IANA time zones or geographic coordinates.

Category: Utilities. Region: global. 6 endpoints at `https://api.hoshime.com/v1/timeapi/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/timeapi
## 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:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `timeZone` | string | yes | IANA time zone, such as Asia/Jakarta. (e.g. Asia/Jakarta) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `date` (string), `dayOfWeek` (string), `dstActive` (boolean), `localAt` (string), `time` (string), `timeZone` (string), `utcOffsetSeconds` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/timeapi/currentTime?timeZone=Asia%2FJakarta" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/timeapi/timeZones

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

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `name` (string)

```bash
curl "https://api.hoshime.com/v1/timeapi/timeZones" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/timeapi/timeZoneInfo

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

Scope: `social:read` · Units: 1 · Cached: 1 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `timeZone` | string | yes | IANA time zone, such as Europe/London. (e.g. Europe/London) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/timeapi/timeZoneInfo?timeZone=Europe%2FLondon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/timeapi/timeZoneAtCoordinate

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

Scope: `social:read` · Units: 1 · Cached: 1 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `latitude` | string | yes | Latitude, from -90 to 90, such as 51.5072. (e.g. 51.5072) |
| `longitude` | string | yes | Longitude, from -180 to 180, such as -0.1276. (e.g. -0.1276) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/timeapi/timeZoneAtCoordinate?latitude=51.5072&longitude=-0.1276" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/timeapi/timeAtCoordinate

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

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `latitude` | string | yes | Latitude, from -90 to 90, such as 51.5072. (e.g. 51.5072) |
| `longitude` | string | yes | Longitude, from -180 to 180, such as -0.1276. (e.g. -0.1276) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `date` (string), `dayOfWeek` (string), `dstActive` (boolean), `localAt` (string), `time` (string), `timeZone` (string), `utcOffsetSeconds` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/timeapi/timeAtCoordinate?latitude=51.5072&longitude=-0.1276" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## 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:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `fromTimeZone` | string | yes | IANA time zone of the given time, such as Europe/London. (e.g. Europe/London) |
| `dateTime` | string | yes | 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 | yes | IANA time zone to convert to, such as Asia/Jakarta. (e.g. Asia/Jakarta) |
| `tunnel` | string | no | 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 | no | 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 | no | 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 fields: `dstActive` (boolean), `fromDateTime` (string), `fromTimeZone` (string), `toDateTime` (string), `toTimeZone` (string)

```bash
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"
```
