# data.gov.sg API

> Returns Singapore open dataset catalogue entries and live air temperature, PSI, two-hour weather forecast and rainfall readings.

Category: Government & Open Data. Region: SG. 17 endpoints at `https://api.hoshime.com/v1/datagovsg/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/datagovsg
## GET /v1/datagovsg/datasets

Datasets in the data.gov.sg catalogue, ten per page, in catalogue order.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `coverageEnd` (string), `coverageStart` (string), `createdAt` (string), `description` (string), `format` (string), `id` (string), `lastUpdatedAt` (string), `managedBy` (string), `name` (string), `status` (string)

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

## GET /v1/datagovsg/dataset

One dataset of the data.gov.sg catalogue: its name, description, agency and coverage.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Dataset id, such as d_8b84c4ee58e3cfc0ece0d773c8ca6abc. (e.g. d_8b84c4ee58e3cfc0ece0d773c8ca6abc) |
| `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: `coverageEnd` (string), `coverageStart` (string), `createdAt` (string), `description` (string), `format` (string), `id` (string), `lastUpdatedAt` (string), `managedBy` (string), `name` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/datagovsg/dataset?id=d_8b84c4ee58e3cfc0ece0d773c8ca6abc" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/datagovsg/airTemperature

Latest air temperature in degrees Celsius at each weather station.

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

| 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: `items` (StationReading[]), `items[].id` (string), `items[].latitude` (number (double)), `items[].longitude` (number (double)), `items[].name` (string), `items[].value` (number (double)), `readAt` (string)

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

## GET /v1/datagovsg/psi

Latest Pollutant Standards Index and pollutant readings for each region of Singapore.

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

| 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: `items` (Region[]), `items[].coEightHourMax` (integer (int64)), `items[].name` (string), `items[].no2OneHourMax` (integer (int64)), `items[].o3EightHourMax` (integer (int64)), `items[].pm10TwentyFourHourly` (integer (int64)), `items[].pm25TwentyFourHourly` (integer (int64)), `items[].psi24Hourly` (integer (int64)), `items[].so2TwentyFourHourly` (integer (int64)), `readAt` (string)

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

## GET /v1/datagovsg/twoHourForecast

The weather forecast for the next two hours for each area of Singapore.

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

| 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: `items` (Area[]), `items[].forecast` (string), `items[].latitude` (number (double)), `items[].longitude` (number (double)), `items[].name` (string), `readAt` (string), `validFrom` (string), `validTo` (string)

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

## GET /v1/datagovsg/rainfall

Latest rainfall in millimetres over the last five minutes at each weather station.

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

| 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: `items` (StationReading[]), `items[].id` (string), `items[].latitude` (number (double)), `items[].longitude` (number (double)), `items[].name` (string), `items[].value` (number (double)), `readAt` (string)

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

## GET /v1/datagovsg/relativeHumidity

Latest relative humidity in per cent at each weather station.

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

| 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: `items` (StationReading[]), `items[].id` (string), `items[].latitude` (number (double)), `items[].longitude` (number (double)), `items[].name` (string), `items[].value` (number (double)), `readAt` (string)

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

## GET /v1/datagovsg/windSpeed

Latest wind speed in knots at each weather station.

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

| 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: `items` (StationReading[]), `items[].id` (string), `items[].latitude` (number (double)), `items[].longitude` (number (double)), `items[].name` (string), `items[].value` (number (double)), `readAt` (string)

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

## GET /v1/datagovsg/windDirection

Latest wind direction in degrees at each weather station.

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

| 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: `items` (StationReading[]), `items[].id` (string), `items[].latitude` (number (double)), `items[].longitude` (number (double)), `items[].name` (string), `items[].value` (number (double)), `readAt` (string)

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

## GET /v1/datagovsg/uvIndex

The hourly UV index of Singapore for the day, latest hour first.

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

| 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: `items` (UVReading[]), `items[].readAt` (string), `items[].value` (number (double)), `readAt` (string)

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

## GET /v1/datagovsg/pm25

Latest hourly PM2.5 concentration in micrograms per cubic metre for each region of Singapore.

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

| 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: `items` (RegionReading[]), `items[].latitude` (number (double)), `items[].longitude` (number (double)), `items[].name` (string), `items[].value` (integer (int64)), `readAt` (string)

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

## GET /v1/datagovsg/forecast24h

The 24-hour weather forecast of Singapore: the general outlook and the forecast of each region for each period.

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

| 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: `general` (Outlook), `general.forecast` (string), `general.relativeHumidity` (Range), `general.temperature` (Range), `general.windDirection` (string), `general.windSpeed` (Range), `periods` (Period[]), `periods[].end` (string), `periods[].regions` (RegionForecast[]), `periods[].start` (string), `readAt` (string), `validFrom` (string), `validTo` (string)

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

## GET /v1/datagovsg/forecast4day

The four-day weather forecast of Singapore: each day's outlook, temperature, humidity and wind.

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

| 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: `items` (DayForecast[]), `items[].date` (string), `items[].outlook` (Outlook), `readAt` (string)

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

## GET /v1/datagovsg/carparks

Live lot availability of the HDB and public car parks, or of one car park by its number.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `number` | string | no | Car park number, such as HE12. Empty lists every car park. (e.g. HE12) |
| `limit` | integer | no | Items per page, 1 to 1000. (default 100) |
| `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: `lots` (LotCount[]), `lots[].available` (integer (int64)), `lots[].lotType` (string), `lots[].total` (integer (int64)), `number` (string), `readAt` (string), `updatedAt` (string)

```bash
curl "https://api.hoshime.com/v1/datagovsg/carparks?number=HE12" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/datagovsg/taxis

How many taxis are available in Singapore now, with the position of each.

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

| 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: `count` (integer (int64)), `positions` (Position[]), `positions[].latitude` (number (double)), `positions[].longitude` (number (double)), `readAt` (string)

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

## GET /v1/datagovsg/trafficImages

Latest snapshot from each Singapore traffic camera: the JPEG image, its time and the camera's position, or the snapshot nearest a time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `dateTime` | string | no | Time to read the cameras at, such as 2026-11-06T10:00:00 in Singapore time. Empty reads the latest. |
| `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: `cameras` (Camera[]), `cameras[].height` (integer (int64)), `cameras[].id` (string), `cameras[].image` (string), `cameras[].imageAt` (string), `cameras[].latitude` (number (double)), `cameras[].longitude` (number (double)), `cameras[].width` (integer (int64)), `readAt` (string)

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

## GET /v1/datagovsg/collections

The collections of the data.gov.sg catalogue, the groups of related datasets, each with the ids of its datasets.

Scope: `social:read` · Units: 1 · Cached: 60 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: `datasets` (string[]), `description` (string), `frequency` (string), `id` (string), `lastUpdatedAt` (string), `managedBy` (string), `name` (string)

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