SingStat Table Builder API

Government

by Department of Statistics Singapore

Programmatic access to over 2,500 official statistical tables from 70 public sector agencies: population, CPI, GDP, trade, employment and more. Query any table by its resource id.

How to authenticate

  1. 1No key needed.
  2. 2Find your table id (e.g. M810001) by browsing tablebuilder.singstat.gov.sg or the resourceId search API.
  3. 3GET /api/table/tabledata/{tableId}; send an Accept: application/json header (some clients get blocked without a normal User-Agent).

Example request

Request
curl -H 'Accept: application/json' -A 'Mozilla/5.0' 'https://tablebuilder.singstat.gov.sg/api/table/tabledata/M810001?limit=1'

Example response

Response (truncated)
{"Data":{"theme":"Population","id":"M810001","title":"Indicators On Population, Annual","frequency":"Annual","datasource":"SINGAPORE DEPARTMENT OF STATISTICS"}}

Notes for AI agents

Invalid table ids return 200 with a Resource Not Found body, not a 404 status; check the StatusCode field inside the JSON. Supports seriesNoORrowNo, timeFilter and limit params.

Machine-readable version: /api/apis/singstat-tablebuilder