searchPrecinctsByKeyword

get

searchPrecinctsByKeyword

Perform a search on all Precincts based on keyword as the search parameter. The keyword will match with names, description and tags, returning you the most relevant Precincts.

Resource URL

https://tih-api.stb.gov.sg/content /v1/precincts/search

Query Parameters

Name Values Description
keyword
(required)

Keyword to look for within name, description, body and tags when performing the search function.
Max: 255 characters

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 countent source(s)

page

Page number for pagination of the returned records. Default sets to 1.
Validation: integer

pageSize

Records per page for pagination of the returned records. Accept integer from 1 to 20. Default sets to 20.
Validation: integer

sortBy

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

sortOrder

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

language

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

group

Retrieve Points of Interest related to wellness (Wellness), SG Clean certification (SGClean) or Singapore Tourism Awards (STA) by using the group value(s) (Wellness, SGClean, STA). Provide one value or a comma-delimited string of values.
Max: 255 characters
E.g. Wellness,SGClean,STA

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 Error Code Description
400 400 Bad request
401 401 Unauthorized
404 404 Not Found

Resource Summary

Security Category

Precincts

Working...