searchByMultiDataset

get

searchByMultiDataset

Provide the ability to search for a dataset, such as Attractions or Accommodation, within an area (identified by location and radius). A list of that dataset, along with the details, are then provided as a response to users. The query parameters include: location, radius, dataset, keyword, sort by (rating, last updated, distance away), and next token.

Resource URL

https://tih-api.stb.gov.sg/map /v1/search/multidataset

Query Parameters

Name Values Description
location
(required)

Filter records by location.
Max: 255 characters.
Field format: [latitude,longitude].
E.g. 1.2835627,103.8584985

radius

Radius in meter to restrict the search on.
Default 1000
Validation: number

dataset

Dataset which the search will be executed on. (accommodation, attractions, bars_clubs, cruises, event, food_beverages, precincts, shops, tour, venue, walking_trail).
Validation: valid dataset(s)

keyword

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

sort

Field name to sort [default, rating, lastupdated, distance_rating].
default is to sort by name in ascending order. distance_rating sorts the records by location, rating and name in descending and ascending order respectively.
Validation: Acceptable value

nextToken

Parameter to obtain the subsequent set of 20 records. The parameter is pulled directly from the output response provided by the API and should not be modified.
Max: 255 characters

language

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

distinct

Filters content to remove duplicated Places of Interest.
Distinct value [Yes | No].
Max: 255 characters
Validation: acceptable distinct value

startDate

Event Start Date.
Max: 255 characters
Validation: Date YYYY-MM-DD

endDate

Event End Date.
Max: 255 characters
Validation: Date YYYY-MM-DD

group

Filter Places of Interest that are SG Clean certified or have received Singapore Tourism Awards using the group value(s) (SGClean, STA). Provide one value or a comma-delimited string of value.
Max: 255 characters
E.g. SGClean,STA

Try it out

HTTP Basic

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

General

Working...