Search Nearby Locations Catalog

Searches the Location catalog for points of interest within a geographic area, ordered by proximity
or rating.

The search area is defined either by a center point and radius or by a bounding box, supplied via the search parameters. This endpoint is not limited by a partner's allowlist or geofencing, but each result returns only the lightweight catalog projection of a Location.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Search Nearby Locations Catalog requests

A Search Nearby Locations Catalog request takes a geographic area and returns Locations within it from the whole Tripadvisor catalogue, ordered by proximity or rating. Unlike Search Nearby Locations, it is not restricted by your allowlist or geofencing, and each result carries only a lightweight projection.

The search area is defined the same three ways, and the strategies are mutually exclusive:

StrategyParameters
Radius around a pointlat, lon, radius, unit
Radius around a Locationlocation_id, radius, unit
Bounding boxsw_lat, sw_lon, ne_lat, ne_lon

A request is an HTTP GET to a URL in the form:

https://terra.tripadvisor.com/api/catalog/locations/nearby

Search Nearby Locations Catalog responses

The response is a paged object. Each entry carries the lightweight catalogue projection plus its distance and bearing from the center point. Pages are 1-based.

Search parameters

radius, unit, the bounding-box corners and min_rating behave exactly as on Search Nearby Locations, including the radius maximum of 8 KM or 5 MI and the requirement that sw_lat be less than ne_lat.

sort

rating,desc by default. Sorting by distance is available for radius searches only, not for bounding boxes.

Limits

size must not exceed 20 and defaults to 20. A larger value returns 400.

This endpoint has no offset ceiling, so it can be paged further than Search Nearby Locations, which stops at an offset of 40.

Note: a result here is not a licence. Add the ID to your allowlist before calling the Location endpoints for it.

Note: counts against the same lower search rate limit as every other search and nearby endpoint. See API Access and Limits.

Examples

Find everything within 1 km of a point

curl "https://terra.tripadvisor.com/api/catalog/locations/nearby?version=1&lat=48.85&lon=2.33&radius=1&unit=KM" \
  -H "X-API-Key: API_KEY"

Find highly rated accommodations in a bounding box

curl "https://terra.tripadvisor.com/api/catalog/locations/nearby?version=1&sw_lat=48.84&sw_lon=2.32&ne_lat=48.87&ne_lon=2.37&category=HOTEL&min_rating=4" \
  -H "X-API-Key: API_KEY"

Related

Query Params
string

The ID of the Location to use as a reference for the radius-based search.

Required if lat or lon is not given.

number
-90 to 90

The latitude of the center point for the radius-based search.

Required if location_id not given.

number
-180 to 180

The longitude of the center point for the radius-based search.

Required if location_id not given.

double
> 0

The radius for the radius-based search.

Required if "Bounding Box" criteria is not given (sw_lat, sw_lon, ne_lat, ne_lon).

string
Defaults to MI

Unit of length for distance. If none specified defaults to miles.

string
-90 to 90

Bounding Box southwest latitude coordinate.

Required if radius is not given.

string
-180 to 180

Bounding Box southwest longitude coordinate.

Required if radius is not given.

string
-90 to 90

Bounding Box northeast latitude coordinate.

Required if radius is not given.

string
-180 to 180

Bounding Box northeast longitude coordinate.

Required if radius is not given.

string
enum

Filter based on Tripadvisor’s top-level categories (eat & drink, accommodations, attractions).

Allowed:
string
1 to 5

Filter by ratings with at least N bubbles (1.0-5.0).

locale
array of strings

preferred locales for localized fields (e.g. names, descriptions), in priority order;
falls back to the default locale when omitted

locale
integer
≥ 1

Page index (1-based).

integer
≤ 20
Defaults to 20

Page size.

sort
array of strings
Defaults to rating,desc

Sorting criteria in the format: property,(asc|desc). Multiple sort criteria are supported. Available sorting: distance (for radius-based search only), rating

sort
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json