List rows of dataset

To find the datasetId, refer to the URL of dataset. For this dataset: https://data.gov.sg/collections/522/datasets/d_11e68bba3b3c76733475a72d09759eeb/view or https://data.gov.sg/datasets/d_11e68bba3b3c76733475a72d09759eeb/view The datasetId is: d_11e68bba3b3c76733475a72d09759eeb

Listing rows for a datasets

This API returns the list of rows of a single dataset

List rows for a dataset

get
Path parameters
datasetIdstringRequired

The unique identifier of the dataset

Header parameters
x-api-keystringOptional

API key for higher rate limits (optional)

Responses
200
Successful response
application/json
get
GET /v2/public/api/datasets/{datasetId}/list-rows HTTP/1.1
Host: api-production.data.gov.sg
Accept: */*
200

Successful response

{
  "code": 1,
  "data": {
    "rows": [
      {}
    ],
    "resourceId": "text",
    "resourceName": "text",
    "limit": 1,
    "links": {
      "next": "text"
    }
  },
  "errorMsg": "text"
}

Last updated

Was this helpful?