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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
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
- Location Details —
photos.total_countbefore you page - Brand Guidelines — display requirements for imagery
- Caching Policy