data.gov.sg
  • Introduction to data.gov.sg
  • 🆕What's new
    • Release Notes: Feburary 2025
    • Release Notes: October 2024
    • Release Notes: September 2024
  • USER GUIDE
    • Content quality guidelines
      • Data types
      • Data principles
    • For data consumers
      • How to search for data
      • How to raise a data request
      • How to embed the dataset explorer on your site
    • How to search for real-time APIs
    • For data owners
      • How to onboard as an admin
      • How to login
      • How to publish data
      • How to unpublish and/or delete datasets
      • How to edit datasets
      • How to generate API keys
      • Write APIs
  • DEVELOPER GUIDE
    • API overview
    • Collection APIs
    • Dataset APIs
Powered by GitBook
On this page

Was this helpful?

  1. DEVELOPER GUIDE

API overview

PreviousWrite APIsNextCollection APIs

Last updated 11 months ago

Was this helpful?

There are two types of APIs on data.gov.sg.

  1. Real-Time APIs:

Please find a list of our real-time APIs

These are specific use-case APIs that allow you to query data such as weather and traffic conditions

  1. Collection and Dataset APIs:

API documentation can be found below

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 - has the collection_id of 1

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 - has the dataset_id of 1

For further queries feel free to reach out to us:

here
https://data.gov.sg/collections/1/view
https://data.gov.sg/datasets/1/view
Contact the Data.gov.sg team
Page cover image