data.gov.sg
Open data portalsSGapi-production.data.gov.sg
Singapore's open-data catalogue.
Capabilities (6)
GET /v1/data/datagovsg/collection1 creditReturns one collection's metadata including its description, managing agency, coverage period and the list of child datasetIds it contains.
GET /v1/data/datagovsg/collections1 creditReturns one page of data.gov.sg collections (curated groups of related datasets) with each collection's id, name, description and last-updated time.
GET /v1/data/datagovsg/dataset1 creditReturns one dataset's metadata: name, full description and notes, column schema with types and descriptions, managing agency, licence, coverage period and the collections it belongs to.
GET /v1/data/datagovsg/datasets1 creditReturns one page of ten data.gov.sg datasets with each dataset's id, name, description, format, managing agency, coverage dates and last-updated time, plus the total page and row counts.
GET /v1/data/datagovsg/datastore1 creditReturns up to 100 rows of a data.gov.sg dataset together with its field schema and the total matching row count, with optional column selection, sorting and exact-value filtering.
GET /v1/data/datagovsg/realtime1 creditReturns one of Singapore's live NEA feeds (station-level air temperature, rainfall, humidity, wind, or region-level PSI, PM2.5 and the 2-hour, 24-hour and 4-day forecasts) with station coordinates and a reading timestamp.
Response example
The shape of data from datagovsg/collection (Collection metadata). A sample, not live data.
{
"code": 0,
"data": {
"collectionMetadata": {
"collectionId": "189",
"createdAt": "2015-09-22T15:05:30+08:00",
"name": "Resale Flat Prices",
"description": "Access detailed HDB resale price and transaction data from 1990 to 2025. \r\nPrior to March 2012, the data are based on the date of approval for the resale transactions. \r\nFrom March 2012 onwards, the data are based on the date of registration of the resale transactions.",
"lastUpdatedAt": "2026-10-21T02:10:17+08:00",
"coverageStart": "1990-01-01T08:00:00+08:00",
"coverageEnd": "2024-04-08T00:00:00+08:00",
"frequency": "monthly",
"sources": [
"Housing & Development Board"
],
"managedBy": "Housing & Development Board",
"childDatasets": [
"d_8b84c4ee58e3cfc0ece0d773c8ca6abc",
"d_43f493c6c50d54243cc1eab0df142d6a",
"… 3 more items"
]
}
},
"errorMsg": ""
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Collection metadata
Use data.gov.sg (datagovsg) from fastCRW Pergamon, capability "Collection metadata" (collection). You have a collectionId and want the datasets inside it. Example options: collectionId=189. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsg" and capability "collection". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset collections page
Use data.gov.sg (datagovsg) from fastCRW Pergamon, capability "Dataset collections page" (collections). You want to browse data.gov.sg by curated topic group rather than one dataset at a time. Example options: page=1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsg" and capability "collections". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset metadata
Use data.gov.sg (datagovsg) from fastCRW Pergamon, capability "Dataset metadata" (dataset). You hold a datasetId and need its column names and meaning before querying its rows. Example options: datasetId=d_8b84c4ee58e3cfc0ece0d773c8ca6abc. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsg" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset catalogue page
Use data.gov.sg (datagovsg) from fastCRW Pergamon, capability "Dataset catalogue page" (datasets). You want to enumerate what is on data.gov.sg, or you need a datasetId and have nothing but the page number to go on. Example options: page=1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovsg" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.gov.sg
Cache: up to 3600s
