Location Photos

Retrieves photos for a Tripadvisor Location.

Returns a page of high-resolution images contributed by both travelers and management, sorted with the most recent first. Each photo includes dynamic CDN references, the contributor source, an optional caption, and (for eligible partners) computer-vision metadata such as scene classification and an attractiveness score.

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

Location Photos requests

A Location Photos request takes a Tripadvisor Location ID and returns a page of photos for that Location, most recent first. Photos are contributed by both travelers and management (listing owners).

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

https://terra.tripadvisor.com/api/locations/{id}/photos

Location Photos responses

The response is a paged object. The data array contains the photos, each with CDN references, the contributor source, an optional caption and, for eligible packages, computer-vision metadata.

Pages are 1-based and size defaults to 100 — higher than the other paged endpoints. Request only what you will display.

source.name is Traveler or Management. Management photos are generally the ones to use as a lead image; there is no parameter to filter by source, so filter client-side.

cv_metadata is absent unless your package includes it. Treat its absence as expected rather than an error.

locale selects the caption language.

Note: original_size_url is a CDN URL. Do not download and re-host the image. Request the size you need using the CDN's resizing parameters.

Note: every photo display requires a link to Tripadvisor. See Linking Policy.

Examples

Retrieve the first 20 photos

curl "https://terra.tripadvisor.com/api/locations/187147/photos?version=1&size=20" \
  -H "X-API-Key: API_KEY"

Retrieve photos with Spanish captions

curl "https://terra.tripadvisor.com/api/locations/187147/photos?version=1&locale=es-MX" \
  -H "X-API-Key: API_KEY"

Related

Path Params
int32
required

the Tripadvisor Location ID to retrieve photos for

Query Params
locale
array of strings

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

locale
int32
≥ 0
int32
≥ 1
sort
array of strings
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