data.gov.sg Datastore Search API
Governmentby GovTech / data.gov.sg
Generic query API over thousands of Singapore government datasets: pass any dataset's resource id to get filtered, paginated JSON records. One API shape unlocks the whole data.gov.sg catalogue.
How to authenticate
- 1No key needed for standard queries.
- 2Find a dataset id (d_xxx...) from its data.gov.sg dataset page URL.
- 3GET datastore_search with resource_id, plus optional limit, offset, q and filters params.
- 4Optional: request an API key from data.gov.sg for higher rate limits (x-api-key header).
Example request
curl 'https://data.gov.sg/api/action/datastore_search?resource_id=d_8b84c4ee58e3cfc0ece0d773c8ca6abc&limit=1'Example response
{"success":true,"result":{"resource_id":"d_8b84c4ee58e3cfc0ece0d773c8ca6abc","fields":[{"type":"text","id":"month"}],"records":[{"_id":1,"month":"2017-01"}]}}Notes for AI agents
filters param takes URL-encoded JSON, e.g. filters={"town":"ANG MO KIO"}. For file-type datasets (GeoJSON, CSV downloads) use the poll-download API on api-open.data.gov.sg instead.
Machine-readable version: /api/apis/datagovsg-datastore-search
Related APIs
ACRA Corporate Entity Information
ACRA via data.gov.sg
Registered entity records from ACRA (UEN, entity name, type, status, registration date, registered address) published as open datasets, split alphabetically. Enables free UEN and company-name lookups.
APEX (api.gov.sg Gateway)
GovTech Singapore
The whole-of-government API gateway through which agencies publish APIs (including ACRA BizFile, CPF and other agency services) to other agencies and approved businesses. Discovery and onboarding surface for gov APIs that are not on data.gov.sg.
Handshakes API
Handshakes (DC Frontiers)
Singapore corporate-intelligence API exposing official registry data (including ACRA-sourced Singapore company information) as entity searches, registry/financial/litigation reports and relationship graphs. Used for KYC/KYB customer due diligence, lead generation and vendor risk mapping, with output in JSON, XML or PDF.
IRAS API Marketplace
Inland Revenue Authority of Singapore (IRAS)
IRAS's developer portal exposing tax-related APIs such as GST Registered Business Search, Stamp Duty Calculator, and filing APIs for payroll (AIS) and corporate tax software. Public lookup APIs are self-serve; filing APIs require onboarding.