# TripAdvisor Content API — how to use (mcp.ai)

Connect your TripAdvisor Content API account and use 5 tools for reviews straight from your AI agent. Connect with your own API key. The Tripadvisor Content API provides developers with access to extensive travel data including locations, reviews, photos, and ratings.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_tripadvisor_content_api?ms=1787291280000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `tripadvisor_content_api_get_location_details`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/tripadvisor_content_api`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/tripadvisor_content_api/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/tripadvisor_content_api/get/location/details` — Tool to get comprehensive information about a location (hotel, restaurant, or attraction) including name, address, rating, and contact details. Use when you need detailed information about a specific 
  - body: { currency?: string, language?: string, location_id: string }
- `POST https://api.mcp.ai/api/tripadvisor_content_api/get/location/photos/v2` — Tool to retrieve up to 5 high-quality photos for a specific location with complete metadata and pagination support. Use when you need detailed photo information including user details, source filterin
  - body: { limit?: integer, offset?: integer, source?: string, language?: string, locationId: integer }
- `POST https://api.mcp.ai/api/tripadvisor_content_api/get/location/reviews` — Tool to retrieve up to 5 of the most recent reviews for a specific location. Use when you need customer feedback, ratings, or review content for a TripAdvisor location.
  - body: { limit?: integer, offset?: integer, language?: string, locationId: string }
- `POST https://api.mcp.ai/api/tripadvisor_content_api/search/locations2` — Tool to search for TripAdvisor locations with advanced filtering options. Use when you need to find locations by name, category, phone, address, or coordinates with radius-based filtering.
  - body: { phone?: string, radius?: number, address?: string, latLong?: string, category?: string, language?: string, radiusUnit?: string, searchQuery: string }
- `POST https://api.mcp.ai/api/tripadvisor_content_api/search/nearby/locations` — Tool to search for locations near a specified latitude/longitude. Returns up to 10 locations with optional filtering by category, phone, or address.
  - body: { phone?: string, radius?: string, address?: string, latLong: string, category?: string, language?: string, radiusUnit?: string }

## Example prompts
- "What can I do in TripAdvisor Content API?"
- "Show me a summary of my TripAdvisor Content API account"

## More
- Page: https://mcp.ai/tripadvisor_content_api
- Agent spec (llms.txt): https://mcp.ai/tripadvisor_content_api/llms.txt
- Postman collection: https://mcp.ai/tripadvisor_content_api/postman.json
