Skip to content
Docs

Tripadvisor prices

Tripadvisor metasearch: aggregated offers from multiple providers.

POST/v1/ota/tripadvisor
12 creditsTry itTripadvisor API overview →

Returns prices from Booking, Hotels.com, Expedia, and other providers as aggregated by Tripadvisor, for exactly the stay asked: the reply echoes the stay it priced and a different one is refused (503), never returned. Each offer's lead price means what its pricing_mode says - nightly or whole stay, before or after taxes, which Tripadvisor chooses per hotel - and total is the all-in stay total. property.price_per_night is the cheapest offer's nightly price before taxes.

Name the hotel by location_id, any Tripadvisor hotel page url, or name (+ city); resolved echoes the location used. A name with no single confident match answers 404 with candidates, uncharged.

Request

POSThttps://api.scrapercompany.com/v1/ota/tripadvisor

Authenticate with your API key in the x-api-key header (see Authentication).

Run this request on your own API key from this page, with the values you type. Signed out? Sign in or get an API key.

Body

JSON object. Unknown fields are rejected with 422.

  • location_idstring | nullmin length 1, max length 2048

    Numeric Tripadvisor id (the digits after -d in a page URL), e.g. 17768161. A Tripadvisor page URL is accepted here too.

  • urlstring | nullmin length 8, max length 2048

    Any Tripadvisor page for the location, on any Tripadvisor domain: Hotel_Review, Restaurant_Review, Attraction_Review, ShowUserReviews ... The -d number is the location id and the -g number its geo id.

  • namestring | nullmin length 2, max length 200

    Place name, resolved with Tripadvisor's own search. Used only when one candidate clearly wins; otherwise the call answers 404 with up to five candidates to pick from. Add city for best results.

  • citystringdefault max length 200

    With name: the city, sent with the name and used to rank same-name places elsewhere lower.

  • check_instring (date)required

    First night of the stay, YYYY-MM-DD.

  • check_outstring (date) | null

    Departure date. An alternative to nights — if both are given, this wins.

  • nightsintegerdefault 1min 1, max 30

    Length of stay. Ignored when check_out is supplied.

  • adultsintegerdefault 2min 1, max 8

    Adults in the room. Two is the hotel default; pass one for a hostel, which is priced per bed. Any value 1-8 works.

  • roomsintegerdefault 1min 1, max 8

    Rooms requested.

  • currencystringdefault USD

    One of 30 supported currencies.

    30 allowed values

    AED, ARS, AUD, BRL, CAD, CHF, CLP, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PLN, SAR, SEK, SGD, THB, TWD, USD

Example request

curl -X POST "https://api.scrapercompany.com/v1/ota/tripadvisor" \
  -H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "check_in": "2027-01-15",
    "nights": 1,
    "currency": "USD"
  }'

Response

200 — Metasearch offers for exactly the requested stay (Moxy Boston, 4 nights). Metered responses carry x-credits-charged and x-credits-remaining headers (see credit headers).

200 response
{
  "search_parameters": {
    "engine": "tripadvisor_property",
    "location_id": "17768161",
    "check_in_date": "2027-03-25",
    "check_out_date": "2027-03-29",
    "nights": 4,
    "adults": 2,
    "rooms": 1,
    "currency": "USD"
  },
  "property": {
    "location_id": "17768161",
    "hotel_id": "17768161",
    "price_per_night": 337,
    "total": 1348,
    "lead_price": 1348,
    "lead_price_is": "stay",
    "pricing_mode": "BASE_PLUS_FEES_FULL_STAY",
    "currency": "USD",
    "requested_currency": "USD",
    "currency_verified": true,
    "complete": true,
    "availability": "available",
    "is_soldout": false,
    "provider_statuses": {
      "AVAILABLE": 3,
      "UNAVAILABLE": 1
    },
    "provenance": {
      "schema_version": 1,
      "observation_id": "rateobs_0123456789abcdef0123456789abcdef",
      "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
      "observed_at": "2026-08-07T01:23:45.678Z",
      "source": "tripadvisor",
      "source_kind": "metasearch",
      "source_property_id": "17768161",
      "requested_currency": "USD",
      "returned_currency": "USD",
      "price_basis": "nightly_before_taxes_including_fees",
      "derivation": "stay_price_divided_by_nights"
    }
  },
  "offers": [
    {
      "provider": "Booking.com",
      "provider_name": "Booking.com",
      "location_id": "17768161",
      "check_in": "2027-03-25",
      "check_out": "2027-03-29",
      "price": 1700,
      "price_value": 1700,
      "price_text": "$1,700",
      "price_is": "stay",
      "pricing_mode": "BASE_PLUS_FEES_FULL_STAY",
      "taxes_included": false,
      "nightly": 425,
      "nightly_derived": true,
      "total": 1980,
      "total_text": "$1,980",
      "currency": "USD",
      "price_currency": "USD",
      "is_member_rate": false,
      "room_plan": "",
      "offer_type": "chevron",
      "provenance": {
        "schema_version": 1,
        "observation_id": "rateobs_0123456789abcdef0123456789abcdef",
        "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
        "observed_at": "2026-08-07T01:23:45.678Z",
        "source": "tripadvisor",
        "source_kind": "metasearch",
        "source_property_id": "17768161",
        "requested_currency": "USD",
        "returned_currency": "USD",
        "price_basis": "stay_before_taxes_including_fees",
        "derivation": "parsed_display_price"
      }
    }
  ],
  "meta": {
    "source": "tripadvisor",
    "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
    "observed_at": "2026-08-07T01:23:45.678Z",
    "nights": 4,
    "elapsed_s": 5.836,
    "offers": 11,
    "polls": 6,
    "warnings": []
  },
  "resolved": {
    "location_id": "17768161",
    "input": "Moxy Boston Downtown",
    "input_kind": "name",
    "geo_id": "60745",
    "type": "hotel",
    "name": "Moxy Boston Downtown",
    "url": "https://www.tripadvisor.com/Hotel_Review-g60745-d17768161-Reviews-Moxy_Boston_Downtown-Boston_Massachusetts.html",
    "match": {
      "confidence": "high",
      "match_score": 0.97,
      "city": "Boston, Massachusetts"
    }
  }
}

Response fields

Fields marked required are always present; others appear when they apply.

  • search_parametersobjectrequired
    Show 8 child fields
    • search_parameters.enginestringrequired

      One oftripadvisor_property

    • search_parameters.location_idstringrequired
    • search_parameters.check_in_datestring (date)required
    • search_parameters.check_out_datestring (date)required
    • search_parameters.nightsintegerrequired
    • search_parameters.adultsintegerrequired
    • search_parameters.roomsintegerrequired
    • search_parameters.currencystringrequired
  • propertyobjectrequired
    Show 5 child fields
    • property.location_idstringrequired
    • property.hotel_idstringrequired
    • property.price_per_nightnumber | nullrequired

      Cheapest provider offer.

    • property.currencystringrequired

      The requested currency.

    • property.provenanceobject | nullrequired

      Provenance of the cheapest priced row; null when nothing priced.

      Show 13 child fields
      • property.provenance.schema_versionintegerrequired

        Provenance schema version (currently 1).

      • property.provenance.observation_idstringrequired

        Deterministic id of this price observation (rateobs_...).

      • property.provenance.collection_idstringrequired

        Id shared by every price from one upstream fetch (ratecol_...).

      • property.provenance.observed_atstringrequired

        UTC observation time, ISO-8601.

      • property.provenance.sourcestringrequired

        Upstream source, e.g. google_hotels_calendar.

      • property.provenance.source_kindstringrequired

        Kind of source, e.g. calendar, offer, ota_calendar, official.

      • property.provenance.source_property_idstringrequired

        Property identifier at the source.

      • property.provenance.requested_marketstring | nullrequired
      • property.provenance.requested_currencystring | nullrequired
      • property.provenance.returned_currencystring | nullrequired
      • property.provenance.price_basisstringrequired

        What the price represents, e.g. room_base_before_taxes_and_fees.

      • property.provenance.derivationstringrequired

        How the figure was derived, e.g. normalized_upstream.

      • property.provenance.upstream_rate_idstring | nullrequired

        Source-native rate/room id when available.

  • offersarray of objectrequired
    Show 12 child fields
    • offers[].providerstringrequired
    • offers[].provider_namestringrequired

      Same value as provider.

    • offers[].location_idstringrequired
    • offers[].check_instring (date)required
    • offers[].check_outstring (date)required
    • offers[].pricenumberrequired
    • offers[].price_valuenumberrequired

      Same value as price.

    • offers[].currencystringrequired
    • offers[].price_currencystringrequired

      Same value as currency.

    • offers[].room_planstringrequired

      One ofCPEPMAPAP

    • offers[].offer_typestringrequired

      One ofchevronhidden

    • offers[].provenanceobjectrequired

      Where, when and how one normalized price was observed.

      Show 13 child fields
      • offers[].provenance.schema_versionintegerrequired

        Provenance schema version (currently 1).

      • offers[].provenance.observation_idstringrequired

        Deterministic id of this price observation (rateobs_...).

      • offers[].provenance.collection_idstringrequired

        Id shared by every price from one upstream fetch (ratecol_...).

      • offers[].provenance.observed_atstringrequired

        UTC observation time, ISO-8601.

      • offers[].provenance.sourcestringrequired

        Upstream source, e.g. google_hotels_calendar.

      • offers[].provenance.source_kindstringrequired

        Kind of source, e.g. calendar, offer, ota_calendar, official.

      • offers[].provenance.source_property_idstringrequired

        Property identifier at the source.

      • offers[].provenance.requested_marketstring | nullrequired
      • offers[].provenance.requested_currencystring | nullrequired
      • offers[].provenance.returned_currencystring | nullrequired
      • offers[].provenance.price_basisstringrequired

        What the price represents, e.g. room_base_before_taxes_and_fees.

      • offers[].provenance.derivationstringrequired

        How the figure was derived, e.g. normalized_upstream.

      • offers[].provenance.upstream_rate_idstring | nullrequired

        Source-native rate/room id when available.

  • metaobjectrequired
    Show 6 child fields
    • meta.sourcestringrequired

      One oftripadvisor

    • meta.collection_idstringrequired
    • meta.observed_atstringrequired
    • meta.nightsintegerrequired
    • meta.elapsed_snumberrequired
    • meta.offersintegerrequired

Errors

Errors return a JSON body with a detail field. Failed requests are not charged. See Errors for the full list and retry advice.

StatusMeaningRetry?
401Unauthorized

Missing or invalid API key.

{"detail":"missing or invalid API key"}
No, fix the request
402Payment Required

Not enough credits for this request: the account's credits mode is enforce (mode in GET /v1/billing) and the request costs more than the available credits. Nothing is run or charged.

{"detail":"insufficient credits: this request costs 5, 0 available. Credits renew 2026-11-01."}
No, fix the request
404Not Found

The property, stay, job or record was not found.

{"detail":"job not found"}
No, fix the request
422Unprocessable Content

Request validation failed. detail is a list of problems for schema errors, or a string for semantic checks performed by the endpoint.

{"detail":[{"loc":["body","name"],"msg":"Field required","type":"missing"}]}
No, fix the request
429Too Many Requests

Too many requests: the key's requests-per-minute limit was exceeded, or (in enforce credits mode) the plan's concurrent-request limit. No rate-limit or Retry-After headers are sent; back off and retry.

{"detail":"rate limit 60/min exceeded"}
Yes, with backoff
502Bad Gateway

The upstream source failed, blocked the request or returned an unusable answer. Safe to retry later; failed requests are not charged.

{"detail":"RuntimeError"}
Yes, with backoff

Try it

Press Try it above to run this request on your own key, with the values you type (sign in first). For a no-code walkthrough, use the workspace’s guided Try it.

  1. Export your key: export SCRAPERCOMPANY_API_KEY=sk_... (no key yet? start a free trial).
  2. Copy the cURL example above and run it in a terminal.

Credits

12 credits per successful call. Failed, blocked and empty results are free.

Questions about this page?

Send the page link and your question, and the team will answer.

Email support