API overview
There are two types of APIs on data.gov.sg.
Real-Time APIs:
These are specific use-case APIs that allow you to query data such as weather and traffic conditions
Collection and Dataset APIs:
These APIs allow you to query both collections and datasets, as well as to retrieve metadata and listings.
The API used to query a specific dataset for data can be found on the page API v1
, under Dataset Search
.
Nomenclature
Collection:
A grouping of datasets, generally thematically
collection_id
can be found in the URL of the dataset in this manner https://data.gov.sg/collections/{collection_id}/view
For example - https://data.gov.sg/collections/1/view has the
collection_id
of1
Dataset:
A single unit of data, which can be tabular (e.g. csv, xlsx) or otherwise (e.g. geojson, kml)
dataset_id
can be found in the URL of the dataset in this manner https://data.gov.sg/datasets/{dataset_id}/view
For example - https://data.gov.sg/datasets/1/view has the
dataset_id
of1
API Key
All Data.gov.sg APIs are public and can be accessed without an API key for testing purposes.
However, if you are using the APIs and datasets for production workflows, we strongly recommend you to use an API key.
This will grant you higher rate limits, prioritised support and maintenance updates
For further queries feel free to reach out to us: Contact the Data.gov.sg team
Last updated
Was this helpful?