data.gov.sg API
Returns Singapore open dataset catalogue entries and live air temperature, PSI, two-hour weather forecast and rainfall readings.
View as Markdown| GET | /datagovsg/datasets | Datasets in the data.gov.sg catalogue, ten per page, in catalogue order. |
| GET | /datagovsg/dataset | One dataset of the data.gov.sg catalogue: its name, description, agency and coverage. |
| GET | /datagovsg/airTemperature | Latest air temperature in degrees Celsius at each weather station. |
| GET | /datagovsg/psi | Latest Pollutant Standards Index and pollutant readings for each region of Singapore. |
| GET | /datagovsg/twoHourForecast | The weather forecast for the next two hours for each area of Singapore. |
| GET | /datagovsg/rainfall | Latest rainfall in millimetres over the last five minutes at each weather station. |
| GET | /datagovsg/relativeHumidity | Latest relative humidity in per cent at each weather station. |
| GET | /datagovsg/windSpeed | Latest wind speed in knots at each weather station. |
| GET | /datagovsg/windDirection | Latest wind direction in degrees at each weather station. |
| GET | /datagovsg/uvIndex | The hourly UV index of Singapore for the day, latest hour first. |
| GET | /datagovsg/pm25 | Latest hourly PM2.5 concentration in micrograms per cubic metre for each region of Singapore. |
| GET | /datagovsg/forecast24h | The 24-hour weather forecast of Singapore: the general outlook and the forecast of each region for each period. |
| GET | /datagovsg/forecast4day | The four-day weather forecast of Singapore: each day's outlook, temperature, humidity and wind. |
| GET | /datagovsg/carparks | Live lot availability of the HDB and public car parks, or of one car park by its number. |
| GET | /datagovsg/taxis | How many taxis are available in Singapore now, with the position of each. |
| GET | /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. |
| GET | /datagovsg/collections | The collections of the data.gov.sg catalogue, the groups of related datasets, each with the ids of its datasets. |
datasets
/v1/datagovsg/datasetsDatasets in the data.gov.sg catalogue, ten per page, in catalogue order.
Parameters
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
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
10 fields
coverageEnd | string |
coverageStart | string |
createdAt | string |
description | string |
format | string |
id | string |
lastUpdatedAt | string |
managedBy | string |
name | string |
status | string |
curl "https://api.hoshime.com/v1/datagovsg/datasets" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/datasets", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/datasets", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "coverageEnd": "", "coverageStart": "", "createdAt": "2024-10-27T23:35:58+08:00", "description": "Source: SINGAPORE DEPARTMENT OF STATISTICS\r\n\r\nSurvey period: Supply, Use and Input-Output Tables 2017\r\n\r\nFootnotes: Each row shows how much …", "format": "CSV", "id": "d_000598f9f69718ffd6c77ae367a5d84f", "lastUpdatedAt": "2026-03-25T00:00:00+08:00", "managedBy": "Singapore Department of Statistics", "name": "Primary Inputs By Final Demand (Supply, Use and Input-Output Tables 2017)", "status": "active" }, { "coverageEnd": "2026-06-30T08:00:00+08:00", "coverageStart": "1998-01-01T08:00:00+08:00", "createdAt": "2026-03-17T12:24:16+08:00", "description": "Retrenchment refers to the termination of permanent employees due to redundancy and early termination of term contract employees due to redu…", "format": "CSV", "id": "d_000d49cda016c13522d7d5be6a050f59", "lastUpdatedAt": "2026-09-22T17:23:09+08:00", "managedBy": "Ministry of Manpower", "name": "Number of Retrenched Employees - Quarterly", "status": "active" } ], "meta": { "cached": false, "endpoint": "datasets", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
dataset
/v1/datagovsg/datasetOne dataset of the data.gov.sg catalogue: its name, description, agency and coverage.
Parameters
idstring required | Dataset id, such as d_8b84c4ee58e3cfc0ece0d773c8ca6abc. e.g. d_8b84c4ee58e3cfc0ece0d773c8ca6abc |
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
10 fields
coverageEnd | string |
coverageStart | string |
createdAt | string |
description | string |
format | string |
id | string |
lastUpdatedAt | string |
managedBy | string |
name | string |
status | string |
curl "https://api.hoshime.com/v1/datagovsg/dataset?id=d_8b84c4ee58e3cfc0ece0d773c8ca6abc" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/dataset?id=d_8b84c4ee58e3cfc0ece0d773c8ca6abc", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/dataset?id=d_8b84c4ee58e3cfc0ece0d773c8ca6abc", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "coverageEnd": "2018-12-01T08:00:00+08:00", "coverageStart": "2017-01-01T08:00:00+08:00", "createdAt": "2021-07-28T10:37:00+08:00", "description": "Notes:\n\n1. The approximate floor area includes any recess area purchased, space adding item under HDB’s upgrading programmes, roof terrace, …", "format": "CSV", "id": "d_8b84c4ee58e3cfc0ece0d773c8ca6abc", "lastUpdatedAt": "2026-11-07T02:02:10+08:00", "managedBy": "Housing & Development Board", "name": "Resale flat prices based on registration date from Jan-2017 onwards", "status": "" }, "meta": { "cached": false, "endpoint": "dataset", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
airTemperature
/v1/datagovsg/airTemperatureLatest air temperature in degrees Celsius at each weather station.
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
7 fields
items | StationReading[] |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
value | number (double) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/airTemperature" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/airTemperature", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/airTemperature", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "id": "S44", "latitude": 1.3458, "longitude": 103.6817, "name": "Nanyang Avenue", "value": 24.8 }, { "id": "S80", "latitude": 1.4247, "longitude": 103.8201, "name": "Sembawang Meteorological Station", "value": 25 } ], "readAt": "2026-11-07T02:00:00+08:00" }, "meta": { "cached": false, "endpoint": "airTemperature", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
psi
/v1/datagovsg/psiLatest Pollutant Standards Index and pollutant readings for each region of Singapore.
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
10 fields
items | Region[] |
coEightHourMax | integer (int64) |
name | string |
no2OneHourMax | integer (int64) |
o3EightHourMax | integer (int64) |
pm10TwentyFourHourly | integer (int64) |
pm25TwentyFourHourly | integer (int64) |
psi24Hourly | integer (int64) |
so2TwentyFourHourly | integer (int64) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/psi" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/psi", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/psi", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "coEightHourMax": 1, "name": "central", "no2OneHourMax": 23, "o3EightHourMax": 8, "pm10TwentyFourHourly": 27, "pm25TwentyFourHourly": 14, "psi24Hourly": 54, "so2TwentyFourHourly": 3 }, { "coEightHourMax": 1, "name": "east", "no2OneHourMax": 30, "o3EightHourMax": 8, "pm10TwentyFourHourly": 30, "pm25TwentyFourHourly": 15, "psi24Hourly": 54, "so2TwentyFourHourly": 5 } ], "readAt": "2026-11-07T02:00:00+08:00" }, "meta": { "cached": false, "endpoint": "psi", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
twoHourForecast
/v1/datagovsg/twoHourForecastThe weather forecast for the next two hours for each area of Singapore.
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
8 fields
items | Area[] |
forecast | string |
latitude | number (double) |
longitude | number (double) |
name | string |
readAt | string |
validFrom | string |
validTo | string |
curl "https://api.hoshime.com/v1/datagovsg/twoHourForecast" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/twoHourForecast", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/twoHourForecast", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "forecast": "Light Rain", "latitude": 1.375, "longitude": 103.839, "name": "Ang Mo Kio" }, { "forecast": "Light Rain", "latitude": 1.321, "longitude": 103.924, "name": "Bedok" } ], "readAt": "2026-11-07T01:30:00+08:00", "validFrom": "2026-11-07T01:30:00+08:00", "validTo": "2026-11-07T03:30:00+08:00" }, "meta": { "cached": false, "endpoint": "twoHourForecast", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
rainfall
/v1/datagovsg/rainfallLatest rainfall in millimetres over the last five minutes at each weather station.
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
7 fields
items | StationReading[] |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
value | number (double) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/rainfall" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/rainfall", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/rainfall", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "id": "S208", "latitude": 1.31363, "longitude": 104.00317, "name": "Changi East Close", "value": 0 }, { "id": "S220", "latitude": 1.38666, "longitude": 103.89797, "name": "Compassvale Lane", "value": 0 } ], "readAt": "2026-11-07T02:00:00+08:00" }, "meta": { "cached": false, "endpoint": "rainfall", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
relativeHumidity
/v1/datagovsg/relativeHumidityLatest relative humidity in per cent at each weather station.
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
7 fields
items | StationReading[] |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
value | number (double) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/relativeHumidity" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/relativeHumidity", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/relativeHumidity", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "id": "S44", "latitude": 1.3458, "longitude": 103.6817, "name": "Nanyang Avenue", "value": 96.9 }, { "id": "S116", "latitude": 1.2824, "longitude": 103.7545, "name": "Pasir Panjang Terminal", "value": 89.1 } ], "readAt": "2026-11-07T02:00:00+08:00" }, "meta": { "cached": false, "endpoint": "relativeHumidity", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
windSpeed
/v1/datagovsg/windSpeedLatest wind speed in knots at each weather station.
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
7 fields
items | StationReading[] |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
value | number (double) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/windSpeed" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/windSpeed", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/windSpeed", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "id": "S60", "latitude": 1.2504, "longitude": 103.8275, "name": "Artillery Avenue (Sentosa)", "value": 0.7 }, { "id": "S106", "latitude": 1.4168, "longitude": 103.9673, "name": "Jalan Noordin (Pulau Ubin)", "value": 1.1 } ], "readAt": "2026-11-07T02:00:00+08:00" }, "meta": { "cached": false, "endpoint": "windSpeed", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
windDirection
/v1/datagovsg/windDirectionLatest wind direction in degrees at each weather station.
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
7 fields
items | StationReading[] |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
value | number (double) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/windDirection" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/windDirection", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/windDirection", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "id": "S60", "latitude": 1.2504, "longitude": 103.8275, "name": "Artillery Avenue (Sentosa)", "value": 345 }, { "id": "S106", "latitude": 1.4168, "longitude": 103.9673, "name": "Jalan Noordin (Pulau Ubin)", "value": 47 } ], "readAt": "2026-11-07T02:00:00+08:00" }, "meta": { "cached": false, "endpoint": "windDirection", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
uvIndex
/v1/datagovsg/uvIndexThe hourly UV index of Singapore for the day, latest hour first.
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
4 fields
items | UVReading[] |
readAt | string |
value | number (double) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/uvIndex" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/uvIndex", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/uvIndex", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "readAt": "2026-11-06T19:00:00+08:00", "value": 0 }, { "readAt": "2026-11-06T18:00:00+08:00", "value": 0 } ], "readAt": "2026-11-06T19:00:00+08:00" }, "meta": { "cached": false, "endpoint": "uvIndex", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
pm25
/v1/datagovsg/pm25Latest hourly PM2.5 concentration in micrograms per cubic metre for each region of Singapore.
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
6 fields
items | RegionReading[] |
latitude | number (double) |
longitude | number (double) |
name | string |
value | integer (int64) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/pm25" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/pm25", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/pm25", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "latitude": 1.35735, "longitude": 103.82, "name": "central", "value": 12 }, { "latitude": 1.35735, "longitude": 103.94, "name": "east", "value": 6 } ], "readAt": "2026-11-07T02:00:00+08:00" }, "meta": { "cached": false, "endpoint": "pm25", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
forecast24h
/v1/datagovsg/forecast24hThe 24-hour weather forecast of Singapore: the general outlook and the forecast of each region for each period.
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
21 fields
general | Outlook |
forecast | string |
relativeHumidity | Range |
high | integer (int64) |
low | integer (int64) |
temperature | Range |
high | integer (int64) |
low | integer (int64) |
windDirection | string |
windSpeed | Range |
high | integer (int64) |
low | integer (int64) |
periods | Period[] |
end | string |
regions | RegionForecast[] |
forecast | string |
name | string |
start | string |
readAt | string |
validFrom | string |
validTo | string |
curl "https://api.hoshime.com/v1/datagovsg/forecast24h" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/forecast24h", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/forecast24h", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "general": { "forecast": "Thundery Showers", "relativeHumidity": { "high": 95, "low": 65 }, "temperature": { "high": 33, "low": 24 }, "windDirection": "NE", "windSpeed": { "high": 15, "low": 5 } }, "periods": [ { "end": "2026-11-07T06:00:00+08:00", "regions": [ { "forecast": "Light Rain", "name": "central" }, { "forecast": "Light Rain", "name": "east" } ], "start": "2026-11-07T00:00:00+08:00" }, { "end": "2026-11-07T12:00:00+08:00", "regions": [ { "forecast": "Partly Cloudy (Day)", "name": "central" }, { "forecast": "Partly Cloudy (Day)", "name": "east" } ], "start": "2026-11-07T06:00:00+08:00" } ], "readAt": "2026-11-06T23:31:00+08:00", "validFrom": "2026-11-07T00:00:00+08:00", "validTo": "2026-11-08T00:00:00+08:00" }, "meta": { "cached": false, "endpoint": "forecast24h", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
forecast4day
/v1/datagovsg/forecast4dayThe four-day weather forecast of Singapore: each day's outlook, temperature, humidity and wind.
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
9 fields
items | DayForecast[] |
date | string |
outlook | Outlook |
forecast | string |
relativeHumidity | Range |
temperature | Range |
windDirection | string |
windSpeed | Range |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/forecast4day" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/forecast4day", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/forecast4day", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "date": "2026-11-07", "outlook": { "forecast": "Afternoon thundery showers", "relativeHumidity": { "high": 95, "low": 65 }, "temperature": { "high": 33, "low": 24 }, "windDirection": "NE", "windSpeed": { "high": 15, "low": 5 } } }, { "date": "2026-11-08", "outlook": { "forecast": "Afternoon thundery showers", "relativeHumidity": { "high": 95, "low": 60 }, "temperature": { "high": 33, "low": 24 }, "windDirection": "VARIABLE", "windSpeed": { "high": 15, "low": 5 } } } ], "readAt": "2026-11-06T16:50:00+08:00" }, "meta": { "cached": false, "endpoint": "forecast4day", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
carparks
/v1/datagovsg/carparksLive lot availability of the HDB and public car parks, or of one car park by its number.
Parameters
numberstring | Car park number, such as HE12. Empty lists every car park. e.g. HE12 |
limitinteger | Items per page, 1 to 1000. default 100 |
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
lots | LotCount[] |
available | integer (int64) |
lotType | string |
total | integer (int64) |
number | string |
readAt | string |
updatedAt | string |
curl "https://api.hoshime.com/v1/datagovsg/carparks?number=HE12" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/carparks?number=HE12", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/carparks?number=HE12", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "lots": [ { "available": 103, "lotType": "C", "total": 105 } ], "number": "HE12", "readAt": "2026-11-07T02:01:36+08:00", "updatedAt": "2026-11-06T18:00:51Z" } ], "meta": { "cached": false, "endpoint": "carparks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
taxis
/v1/datagovsg/taxisHow many taxis are available in Singapore now, with the position of each.
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
5 fields
count | integer (int64) |
positions | Position[] |
latitude | number (double) |
longitude | number (double) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/taxis" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/taxis", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/taxis", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "count": 2131, "positions": [ { "latitude": 1.3029537724, "longitude": 103.6300903559 }, { "latitude": 1.3070082206, "longitude": 103.6315890402 } ], "readAt": "2026-11-07T02:02:28+08:00" }, "meta": { "cached": false, "endpoint": "taxis", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
trafficImages
/v1/datagovsg/trafficImagesLatest snapshot from each Singapore traffic camera: the JPEG image, its time and the camera's position, or the snapshot nearest a time.
Parameters
dateTimestring | Time to read the cameras at, such as 2026-11-06T10:00:00 in Singapore time. Empty reads the latest. |
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
9 fields
cameras | Camera[] |
height | integer (int64) |
id | string |
image | string |
imageAt | string |
latitude | number (double) |
longitude | number (double) |
width | integer (int64) |
readAt | string |
curl "https://api.hoshime.com/v1/datagovsg/trafficImages" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/trafficImages", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/trafficImages", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "cameras": [ { "height": 0, "id": "abc123", "image": "…", "imageAt": "2026-11-06T09:41:00Z", "latitude": 0, "longitude": 0, "width": 0 } ], "readAt": "2026-11-06T09:41:00Z" }, "meta": { "cached": false, "endpoint": "trafficImages", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }
collections
/v1/datagovsg/collectionsThe collections of the data.gov.sg catalogue, the groups of related datasets, each with the ids of its datasets.
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
7 fields
datasets | string[] |
description | string |
frequency | string |
id | string |
lastUpdatedAt | string |
managedBy | string |
name | string |
curl "https://api.hoshime.com/v1/datagovsg/collections" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovsg/collections", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovsg/collections", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "datasets": [ "…" ], "description": "…", "frequency": "…", "id": "abc123", "lastUpdatedAt": "2026-11-06T09:41:00Z", "managedBy": "…", "name": "…" } ], "meta": { "cached": false, "endpoint": "collections", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovsg", "requestId": "req_2Xb9kQ…", "units": 1 } }