# TripAdvisor Photos Scraper (`burbn/tripadvisor-photos`) Actor

Extract hotel, restaurant, and attraction photos from TripAdvisor by location ID. Get full-resolution images, captions, and linked review data.

- **URL**: https://apify.com/burbn/tripadvisor-photos.md
- **Developed by:** [Kevin](https://apify.com/burbn) (community)
- **Categories:** Travel, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Tripadvisor Photos | Extract Photos by Location ID

Extract photos from Tripadvisor by location ID. Get images in multiple resolutions with captions, linked reviews, user details, and metadata.

### ❓ What is Tripadvisor Photos?

**Tripadvisor Photos** is a powerful Apify actor that extracts all photos from any Tripadvisor location. Provide a location ID and get every uploaded photo with multiple image resolutions, captions, linked reviews, and uploader information.

With this Tripadvisor Photos actor, you can:

- 📸 **Extract Photos** — Get all photos for any Tripadvisor hotel, restaurant, or attraction.
- 🖼️ **Multiple Resolutions** — Download images in original, large, medium, small, and thumbnail sizes.
- 🔗 **Linked Reviews** — See which reviews each photo is associated with, including review titles and ratings.
- ⭐ **Featured Photos** — Identify Tripadvisor-blessed (featured) photos.
- 👤 **User Profiles** — Get uploader details including name, avatar, location, and profile link.
- 📄 **Deep Pagination** — Scrape multiple pages of photos with `maxPages` (up to 50 per page).
- 📊 **Export Structured Data** — Download results in JSON, CSV, Excel, XML, and RSS formats.

### 🎯 What Data Can You Extract?

This Tripadvisor Photos actor extracts the following fields for each photo:

| Field | Description | Example |
|-------|-------------|---------|
| `id` | Unique photo identifier | `35660584` |
| `caption` | Photo caption text | `view from altitude around 5pm` |
| `is_blessed` | Whether it's a Tripadvisor featured photo | `true` |
| `published_date` | When the photo was published | `2011-09-25T15:15:16-0400` |
| `uploaded_date` | When the photo was uploaded | `2011-09-18T10:09:05-0400` |
| `helpful_votes` | Number of helpful votes | `3` |
| `url_original` | Full resolution image URL | `https://media-cdn.tripadvisor.com/...photo-o/...` |
| `url_large` | Large size image URL | `https://media-cdn.tripadvisor.com/...photo-s/...` |
| `url_medium` | Medium size image URL | `https://media-cdn.tripadvisor.com/...photo-f/...` |
| `url_small` | Small size image URL | `https://media-cdn.tripadvisor.com/...photo-l/...` |
| `url_thumbnail` | Thumbnail image URL | `https://media-cdn.tripadvisor.com/...photo-t/...` |
| `width_original` | Original image width | `550` |
| `height_original` | Original image height | `412` |
| `location_name` | Associated location name | `Altitude Rooftop Bar` |
| `linked_review_title` | Title of the linked review | `Amazing views, good cocktails` |
| `linked_review_rating` | Rating of the linked review | `5` |
| `username` | Uploader's username | `Jspek` |
| `user_location_name` | Uploader's location | `Aberdeen, United Kingdom` |
| `user_link` | Link to uploader's profile | `https://www.tripadvisor.com/MemberProfile-...` |

### 🚀 How to Use Tripadvisor Photos

#### Step 1: Get a Location ID

Find the Tripadvisor location ID for the hotel, restaurant, or attraction you want photos from.

> **💡 Tip:** In a Tripadvisor URL like `https://www.tripadvisor.com/Restaurant_Review-g293928-d2233968-Reviews-...`, the number after `d` (2233968) is the location ID.

#### Step 2: Configure Parameters

| Input | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `location_id` | String | ✅ Yes | `2233968` | Tripadvisor location ID for the hotel/restaurant/attraction. |
| `maxPages` | Integer | ❌ No | `1` | Maximum number of pages to scrape. Each page returns up to 50 photos. |
| `limit` | Integer | ❌ No | `50` | Items to return per page (max `50`). |
| `currency` | String | ❌ No | `USD` | Currency code (e.g., `USD`, `EUR`, `INR`). |
| `lang` | String | ❌ No | `en_US` | Response language (e.g., `en_US`, `fr_FR`). |

#### Step 3: Run and Download Results

Click **Start** to run the Tripadvisor Photos scraper. Once completed, download your data in JSON, CSV, Excel, XML, or RSS formats.

### 📋 Example Input

```json
{
  "location_id": "2233968",
  "maxPages": 1,
  "limit": 50,
  "currency": "USD",
  "lang": "en_US"
}
````

### 📋 Example Output

```json
{
  "id": "35660584",
  "caption": "view from altitude around 5pm",
  "is_blessed": true,
  "published_date": "2011-09-25T15:15:16-0400",
  "uploaded_date": "2011-09-18T10:09:05-0400",
  "helpful_votes": "3",
  "url_original": "https://media-cdn.tripadvisor.com/media/photo-o/02/20/23/28/view-from-altitude-around.jpg",
  "width_original": "550",
  "height_original": "412",
  "url_large": "https://media-cdn.tripadvisor.com/media/photo-s/02/20/23/28/view-from-altitude-around.jpg",
  "url_medium": "https://media-cdn.tripadvisor.com/media/photo-f/02/20/23/28/view-from-altitude-around.jpg",
  "url_small": "https://media-cdn.tripadvisor.com/media/photo-l/02/20/23/28/view-from-altitude-around.jpg",
  "location_name": "Altitude Rooftop Bar",
  "location_id": "2233968",
  "linked_review_title": "Amazing views, good cocktails",
  "linked_review_rating": "5",
  "username": "Jspek",
  "user_locale": "en_US"
}
```

### 🎨 Dataset Views

The Tripadvisor Photos actor provides **3 organized dataset views** to help you inspect and analyze your data seamlessly:

| View | Description |
|------|-------------|
| 📸 **Photos Gallery** | Visual gallery showing photos with captions, locations, helpful votes, and upload dates. |
| 🔗 **Linked Reviews** | Photos with their associated review titles, ratings, and review URLs. |
| 🔗 **Image URLs** | All image URLs in different resolutions with dimensions for easy downloading. |

### 💡 Use Cases for Tripadvisor Photos

- 📸 **Visual Content Analysis** — Analyze what types of photos guests upload for different locations.
- 🏨 **Property Marketing** — Discover user-generated photos for marketing and promotional materials.
- 📊 **Competitive Analysis** — Compare photo quality and quantity across competing properties.
- 🗺️ **Travel Planning** — Browse authentic traveler photos before visiting a destination.
- 📈 **Sentiment Visualization** — Combine photo data with linked reviews for visual sentiment analysis.
- 📝 **Content Creation** — Find high-quality user photos for travel blogs and review articles.
- 🖼️ **Image Dataset** — Build image datasets for machine learning and computer vision projects.

### 🔧 Tips for Best Results

1. **Find Location IDs** — Use the [Tripadvisor Locations Search](https://apify.com/burbn/tripadvisor-locations-search) actor or extract from Tripadvisor URLs.
2. **Paginate for More** — Increase `maxPages` to get all photos. Each page returns up to 50 results.
3. **Check Featured Photos** — Look for `is_blessed: true` to find Tripadvisor-curated featured photos.
4. **Use Image URLs View** — Use the **Image URLs** view to quickly get download links in all resolutions.
5. **Utilize Dataset Views** — Use preconfigured views for clean, ready-to-use CSV or Excel files.

### 🏷️ Tags

`tripadvisor scraper` `tripadvisor photos` `tripadvisor photo scraper` `tripadvisor image scraper` `tripadvisor hotel photos` `tripadvisor restaurant photos` `tripadvisor attraction photos` `tripadvisor travel photos` `tripadvisor images` `tripadvisor travel advisor scraper` `tripadvisor photo extraction` `tripadvisor image download` `tripadvisor visual content` `tripadvisor user photos`

### 🎁 Get $5 Free Apify Credits

New to Apify? [Sign up using this link](https://apify.com?fpr=free-credits) and get **$5 free credits** to start extracting Tripadvisor photos right away! No credit card required.

### 📞 Support

For questions, feedback, or custom requests regarding the Tripadvisor Photos actor, please contact us through Apify or open a support issue.

***

**Happy exploring! 📸✨**

# Actor input Schema

## `location_id` (type: `string`):

The Tripadvisor location ID to fetch photos for. You can get this from the Tripadvisor URL or by using the Tripadvisor Locations Search actor.

## `maxPages` (type: `integer`):

Maximum number of pagination pages to scrape. Each page returns up to 50 photos.

## `limit` (type: `integer`):

The number of photos to return per page. Maximum is 50.

## `currency` (type: `string`):

The currency code for the response (e.g., USD, EUR, GBP, INR, JPY).

## `lang` (type: `string`):

The language code for API responses. Use locale format like en\_US, fr\_FR, de\_DE, ja\_JP, etc.

## Actor input object example

```json
{
  "location_id": "2233968",
  "maxPages": 1,
  "limit": 50,
  "currency": "USD",
  "lang": "en_US"
}
```

# Actor output Schema

## `gallery` (type: `string`):

View photos with captions, locations, and upload details.

## `reviewDetails` (type: `string`):

View photos with their associated review titles, ratings, and URLs.

## `imageUrls` (type: `string`):

View all image URLs in different resolutions (original, large, medium, small, thumbnail).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location_id": "2233968"
};

// Run the Actor and wait for it to finish
const run = await client.actor("burbn/tripadvisor-photos").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "location_id": "2233968" }

# Run the Actor and wait for it to finish
run = client.actor("burbn/tripadvisor-photos").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location_id": "2233968"
}' |
apify call burbn/tripadvisor-photos --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=burbn/tripadvisor-photos",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TripAdvisor Photos Scraper",
        "description": "Extract hotel, restaurant, and attraction photos from TripAdvisor by location ID. Get full-resolution images, captions, and linked review data.",
        "version": "1.0",
        "x-build-id": "aFO3tfgS7uF16pdXv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/burbn~tripadvisor-photos/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-burbn-tripadvisor-photos",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/burbn~tripadvisor-photos/runs": {
            "post": {
                "operationId": "runs-sync-burbn-tripadvisor-photos",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/burbn~tripadvisor-photos/run-sync": {
            "post": {
                "operationId": "run-sync-burbn-tripadvisor-photos",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "location_id"
                ],
                "properties": {
                    "location_id": {
                        "title": "Location ID",
                        "type": "string",
                        "description": "The Tripadvisor location ID to fetch photos for. You can get this from the Tripadvisor URL or by using the Tripadvisor Locations Search actor.",
                        "default": "2233968"
                    },
                    "maxPages": {
                        "title": "Max Pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of pagination pages to scrape. Each page returns up to 50 photos.",
                        "default": 1
                    },
                    "limit": {
                        "title": "Results per Page",
                        "minimum": 20,
                        "maximum": 50,
                        "type": "integer",
                        "description": "The number of photos to return per page. Maximum is 50.",
                        "default": 50
                    },
                    "currency": {
                        "title": "Currency",
                        "type": "string",
                        "description": "The currency code for the response (e.g., USD, EUR, GBP, INR, JPY).",
                        "default": "USD"
                    },
                    "lang": {
                        "title": "Language",
                        "type": "string",
                        "description": "The language code for API responses. Use locale format like en_US, fr_FR, de_DE, ja_JP, etc.",
                        "default": "en_US"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
