Search Content within Precinct By Precinct UUID

get

Search Content within Precinct By Precinct UUID

Provide the ability to search for content within a specified precinct identified by a unique identifier (uuid).

Resource URL

https://api.stb.gov.sg/content /precincts/v2/content

Header Parameters

Name Values Description
Content-Type

Format of the request body sent. Accepts only application/json.

X-Content-Language

Supported language [en | zh-cn | zh-tw | ja | ko].
Validation: acceptable language code

Query Parameters

Name Values Description
uuid
(required)

Attribute used to uniquely identify Precincts.
Max: 255 characters
Validation: valid uuid

dataset

Dataset which the search will be executed on. (accommodation, attractions, bars_clubs, events, food_beverages, shops, venues, walking_trails).
Validation: valid dataset(s)

filtersource

Filter the content based on specific source or multiple sources by using a comma-delimited string of values.
Max: 255 characters
Validation: valid content source & case sensitive
E.g. stb,other content source(s)

sort

Field name to sort. Possible values: [name | category | source]. When no value is specified, return the most recent/matching records first. sortOrder parameter is ignored when sort is not specified.

sortOrder

Sort order [asc | desc].
Validation: acceptable sort order value

offset

The position to return from the results.
By specifying offset, you retrieve a subset of records starting with the offset value. Offset works with limit, which determines how many records to retrieve starting from the offset.
If offset value exceeds the total number of records, the response will be empty.
Default value: 0 (starts from first record).
Validation: integer

limit

Maximum number of data records to return in a response.
Default set to 20, with maximum of 50. If the limit value exceeds the maximum, the response will return 50 data records.
Validation: integer

Try it out

HTTP Basic

OAuth 2.0

API Key

RESET

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Response Error Details

HTTP Code Description
400 Bad Request — Request was not accepted and could be due to malformed parameter (e.g. spelling error) or missing a required parameter.
401 Unauthorised — API key is invalid or was not provided.
403 Forbidden — API key does not have the permission to perform the request.
404 Resource Not Found — Requested resource (i.e. the resource URL) does not exist.
405 Method Not Allowed — The HTTP request method is not supported by the resource.
406 Not Acceptable — Requester's acceptable content type for the response does not match the content type returned by the resource.
414 Request URL Too Long — Request URL exceeded the maximum acceptable URL length.
415 Unsupported Media Type — Request's format is not supported by the resource.
422 Unprocessable Entity — Request was not accepted, often due to semantic errors, such as data format.
500 Server Errors — Something is not working on TIH's end, happened very rarely.

Resource Summary

Security Category

Precincts

Working...