Skip to main content
fastCRW Pergamon
Public records · SG

data.gov.sg

api-production.data.gov.sg

Singapore's open-data catalogue.

Showing the catalogue

1Request

The numeric collection id as returned by the collections listing. 189 is HDB resale flat prices.

1 credit⌘ ↵
Code follows the fields above
curl "https://api.fastcrw.com/v1/data/datagovsg/collection?collectionId=189" \
  -H "Authorization: Bearer $FASTCRW_API_KEY"

2Response example

A sample shape. Press Run to see live data from data.gov.sg.

JSON
{
  "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": ""
}

Attribution: Source: data.gov.sg

Licence: Singapore Open Data Licence v1.0

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>