Collection APIs

Collections listing

This API returns a list of all the collections on data.gov.sg

Get collections

get
Query parameters
pageinteger · min: 1Optional

Page number (optional, must be 1 or more)

Header parameters
x-api-keystringOptional

API key for higher rate limits (optional)

Responses
200

Successful response

application/json
get
/v2/public/api/collections
200

Successful response

Collection metadata

This API returns the metadata of a single collection and the datasets within it

Get metadata for a collection

get
Path parameters
collectionIdnumberRequired

The unique identifier of the collection (number)

Query parameters
withDatasetMetadatabooleanOptional

Include dataset metadata (true or false, default is false)

Header parameters
x-api-keystringOptional

API key for higher rate limits (optional)

Responses
200

Successful response

application/json
get
/v2/public/api/collections/{collectionId}/metadata?withDatasetMetadata=true
200

Successful response

To find the collectionId, refer to the URL of collection. For this collection: https://beta.data.gov.sg/collections/522/view The collectionId is: 522

Last updated

Was this helpful?