v1
latestOpenAPI 3.0.12026-07-24178873.1 KBSearch Nearby Locations
Finds Locations within a geographic area, ordered by proximity or rating.
<p>The search area is defined either by a center point and radius or by a bounding box, supplied via the <code>search</code> parameters. Results are restricted to Locations you are licensed to access and return the full Location representation, optionally with a single representative photo.Query parameters
The ID of the Location to use as a reference for the radius-based search.
<p> Required if `lat` or `lon` is not given.The latitude of the center point for the radius-based search.
<p> Required if `location_id` not given.The longitude of the center point for the radius-based search.
<p> Required if `location_id` not given.The radius for the radius-based search.
<p> Required if "Bounding Box" criteria is not given (`sw_lat`, `sw_lon`, `ne_lat`, `ne_lon`).Unit of length for distance. If none specified defaults to miles.
Bounding Box southwest latitude coordinate.
<p> Required if `radius` is not given.Bounding Box southwest longitude coordinate.
<p> Required if `radius` is not given.Bounding Box northeast latitude coordinate.
<p> Required if `radius` is not given.Bounding Box northeast longitude coordinate.
<p> Required if `radius` is not given.Filter based on Tripadvisor’s top-level categories (eat & drink, accommodations, attractions).
Filter by ratings with at least N bubbles (1.0-5.0).
when <code>true</code>, include a single representative photo for each Location
preferred locales for localized fields (e.g. names, descriptions), in priority order; falls back to the default locale when omitted
Page index (1-based).
Page size.
Sorting criteria in the format: property,(asc|desc). Multiple sort criteria are supported. Available sorting: distance (for radius-based search only), rating
Response
a page of Locations within the requested area, each annotated with its distance and bearing from the search center
Example response
{
"data": [
{
"location": {
"opening_hours": {
"periods": [
{
"closes": "20:00:00",
"opens": "08:00:00"
}
]
}
}
}
]
}