GET

TripAdvisor Prices from URL API

Get real-time hotel prices directly from any TripAdvisor URL - no location ID needed.

Overview

URL-Based Pricing

Simply paste a TripAdvisor hotel URL and get current prices from all booking providers in one API call.

This endpoint combines URL parsing and price retrieval in a single request. Perfect for price comparison tools, browser extensions, or any workflow where you have hotel URLs.

Endpoint URL

GET https://api.stayapi.com/v1/tripadvisor/hotel/prices-from-url

Query Parameters

Parameter Type Required Description
url string Required Any valid TripAdvisor hotel URL
check_in string Required Check-in date (YYYY-MM-DD)
check_out string Required Check-out date (YYYY-MM-DD)
adults integer Optional Number of adult guests (1-8, default: 2)
rooms integer Optional Number of rooms (1-4, default: 1)
currency string Optional Currency code (default: "USD")

Perfect For

Browser Extensions

Build price comparison extensions that work on any TripAdvisor hotel page. Users can see prices without leaving the site.

Price Monitoring

Track price changes for specific hotels over time. Just store the URL and check prices periodically.

Travel Planning Tools

Let users paste TripAdvisor links to compare prices across their shortlisted hotels.

Automated Workflows

Integrate with web scraping or automation tools that collect hotel URLs.

Example Workflow

  1. User browses TripAdvisor and finds an interesting hotel
  2. User copies the URL from their browser
  3. Your application calls this API with the URL and desired dates
  4. API returns prices from all available booking sites
  5. User compares prices and books through their preferred provider

URL Flexibility

This endpoint accepts any TripAdvisor hotel URL format - mobile, desktop, different domains, with or without review pages.

Request
curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/prices-from-url?url=https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-Hotel.html&check_in=2025-08-01&check_out=2025-08-03" \
  -H "x-api-key: YOUR_API_KEY"
Response
{
  "success": true,
  "data": {
    "location_id": "305165",
    "extracted_from_url": "https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-Hotel.html",
    "hotel_name": "The Siam",
    "check_in": "2025-08-01",
    "check_out": "2025-08-03",
    "nights": 2,
    "adults": 2,
    "rooms": 1,
    "currency": "USD",
    "prices": [
      {
        "provider_name": "Booking.com",
        "provider_logo": "https://static.tacdn.com/img2/branding/hotels/booking_logo.png",
        "price": "$450",
        "price_amount": 450.00,
        "price_type": "per_night",
        "total_price": "$900",
        "total_amount": 900.00,
        "booking_url": "https://www.tripadvisor.com/Commerce?p=BookingCom&src=123456",
        "special_offer": null
      },
      {
        "provider_name": "Hotels.com",
        "provider_logo": "https://static.tacdn.com/img2/branding/hotels/hotelscom_logo.png",
        "price": "$442",
        "price_amount": 442.00,
        "price_type": "per_night",
        "total_price": "$884",
        "total_amount": 884.00,
        "booking_url": "https://www.tripadvisor.com/Commerce?p=HotelsCom2&src=123456",
        "special_offer": "Collect 1 free night"
      },
      {
        "provider_name": "Official Site",
        "provider_logo": null,
        "price": "$425",
        "price_amount": 425.00,
        "price_type": "per_night",
        "total_price": "$850",
        "total_amount": 850.00,
        "booking_url": "https://www.thesiamhotel.com/reservations",
        "special_offer": "Best rate guarantee"
      }
    ],
    "summary": {
      "lowest_price": "$425",
      "lowest_provider": "Official Site",
      "highest_price": "$450",
      "highest_provider": "Booking.com",
      "average_price": "$439.00",
      "provider_count": 3,
      "currency": "USD"
    }
  },
  "message": "Successfully retrieved hotel prices from URL",
  "retrieved_at": "2024-01-15T10:30:00Z"
}