{"openapi":"3.0.0","info":{"title":"Tripadvisor Hotels Restaurants and Attractions Data","version":"1.0.0","description":"Tripadvisor hotel rates, restaurants, things to do and location lookups across global Tripadvisor domains, one row per entity."},"servers":[{"url":"https://ah-tripadvisor-com.opendata.best/s/tripadvisor-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Tripadvisor hotels, dining and attractions","description":"Query Tripadvisor hotels, restaurants, attractions and destination IDs across regional Tripadvisor sites.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"destination":{"type":"string","description":"Destination. One city or region, such as Bangkok or London. Each run searches one destination; use regionId instead for a known geographic ID.","example":"Bangkok"},"regionId":{"type":"string","description":"Geographic ID. Tripadvisor geographic ID, such as 293916 or g293916. Takes priority for listing searches and location lookups; use destination for sitemap searches."},"service":{"type":"string","enum":["hotels","restaurants","attractions","sitemap","location_lookup"],"description":"Service. Choose hotels, restaurants, attractions, sitemap inventory entries, or location details. Each delivered row is billed at the same result price.","default":"hotels","example":"hotels"},"checkin":{"type":"string","description":"Check-in Date. Hotel check-in in YYYY-MM-DD format. If omitted, the search uses a date 21 days ahead."},"checkout":{"type":"string","description":"Check-out Date. Hotel check-out in YYYY-MM-DD format. If omitted, the search uses a date 23 days ahead; set both dates for a specific trip."},"adults":{"type":"integer","minimum":1,"maximum":10,"description":"Adults. Number of adult guests, from 1 to 10.","default":2},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Children. Number of children, from 0 to 10.","default":0},"childrenAges":{"type":"array","items":{"type":"integer","minimum":0,"maximum":17},"description":"Children Ages. Ages of children, each from 0 to 17, such as [4, 9]. Omitted ages remain an empty list rather than being guessed."},"rooms":{"type":"integer","minimum":1,"maximum":10,"description":"Rooms. Number of hotel rooms, from 1 to 10.","default":1},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"quotePoll":{"type":"boolean","description":"Wait for Hotel Quotes. Hotels only: wait for more complete price quotes within the available run time. Default off; enabling this does not guarantee a price.","default":false},"includeSponsored":{"type":"boolean","description":"Include Sponsored Ads. Leave at the default. Sponsored listings remain excluded even when this option is enabled.","default":false},"sort":{"type":"string","description":"Sort. Sorting preference where supported. Leave RECOMMENDED unless you need a different supported order.","default":"RECOMMENDED"},"domain":{"type":"string","description":"Tripadvisor Domain. Regional Tripadvisor domain, such as www.tripadvisor.com or www.tripadvisor.co.uk. Coverage and available fields can vary by domain.","default":"www.tripadvisor.com","example":"www.tripadvisor.com"},"locale":{"type":"string","description":"Locale. Language and region tag, such as en_US or en_GB. Set this with domain and currency for regional searches.","default":"en_US"},"currency":{"type":"string","description":"Currency. Three-letter currency code, such as USD or GBP. Returned prices include a currency only when the source provides one.","default":"USD"},"origin":{"type":"string","description":"Origin. Not available: flights are not supported. Leave empty."},"departureDate":{"type":"string","description":"Departure Date. Not available: flights are not supported. Leave empty."},"returnDate":{"type":"string","description":"Return Date. Not available: flights are not supported. Leave empty."},"tripType":{"type":"string","enum":["oneway","roundtrip","multi"],"description":"Trip Type. Not available: flights are not supported. Leave at the default.","default":"oneway"},"fields":{"type":"array","items":{"type":"string"},"description":"Field Selection (not available)","default":[]},"format":{"type":"string","enum":["json"],"description":"Response Format. Leave as json.","default":"json"},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"service":"hotels","destination":"Bangkok","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"source":{"type":"string","title":"Source","description":"Always 'tripadvisor'."},"service":{"type":"string","title":"Service","description":"Selected service: hotels, restaurants, attractions, sitemap, or location_lookup."},"listingId":{"type":"string","title":"Listing ID","description":"Listing or location identifier. Some rows use a generated identifier rather than a native numeric Tripadvisor ID."},"listingType":{"type":"string","title":"Listing type","description":"Compatibility alias for service."},"type":{"type":"string","title":"Type","description":"Compatibility alias for service."},"kind":{"type":"string","title":"Seed kind","description":"Inventory entry category, such as hotel, restaurant, attraction, attraction_product, location, or url. Attraction rows may distinguish attraction from tour_product."},"name":{"type":"string","title":"Name","description":"Listing or place name."},"url":{"type":"string","title":"URL","description":"Listing or geographic link when available. Location lookup rows may have no URL."},"listingUrl":{"type":"string","title":"Listing URL","description":"Alias of `url`."},"status":{"type":"string","title":"Status","description":"Combined availability and price status. Use listingStatus and quoteStatus to distinguish listing availability from quote completion."},"listingStatus":{"type":"string","title":"Listing status","description":"Listing availability when provided; otherwise available or unpriced according to whether a price is present."},"quoteStatus":{"type":"string","title":"Quote status","description":"Quote completion state: complete, incomplete, or pending when the source does not provide a completion flag."},"availabilityStatus":{"type":"string","title":"Availability status","description":"Availability label supplied by the source, such as SOLD_OUT or AVAILABLE."},"searchComplete":{"type":"boolean","title":"Search complete","description":"Whether the hotel quote search has finished, when the source provides this flag."},"price":{"nullable":true,"type":"number","title":"Price","description":"Parsed primary price amount (basePrice preferred; falls back to the first number in priceDisplay). Not guaranteed to be the final payable total when pricingMode indicates fees."},"priceDisplay":{"type":"string","title":"Price display","description":"Raw price text from the card (e.g."},"displayPrice":{"type":"string","title":"Display price","description":"Display price supplied by the source, when distinct from priceDisplay."},"basePrice":{"nullable":true,"type":"number","title":"Base price","description":"Numeric base price, when provided."},"totalPrice":{"nullable":true,"type":"number","title":"Total price","description":"Numeric total price, when provided."},"priceNightly":{"type":"string","title":"Nightly price","description":"Per-night display price, when provided."},"pricingMode":{"type":"string","title":"Pricing mode","description":"How the displayed price treats fees, when specified. For example, BASE_PLUS_FEES indicates that fees are additional."},"priceMin":{"nullable":true,"type":"number","title":"Price min","description":"Lower end of the available hotel price range."},"priceMax":{"nullable":true,"type":"number","title":"Price max","description":"Upper end of the available hotel price range."},"priceRange":{"nullable":true,"title":"Price range","description":"Hotel price-range details when provided. Some rows contain a short price-band label instead."},"priceTier":{"type":"string","title":"Price tier","description":"Restaurant price band such as '$$-$$$' (restaurants only; split from priceRange because the two shapes differ)."},"currency":{"nullable":true,"type":"string","title":"Currency","description":"Currency code reported with the listing price. Empty when the source does not provide it."},"rating":{"nullable":true,"type":"number","title":"Rating","description":"Tripadvisor bubble rating (typically out of 5) when present."},"reviewCount":{"type":"integer","title":"Review count","minimum":0,"description":"Number of reviews when present."},"country":{"type":"string","title":"Country","description":"Search country context, not the geographic country of the listing. Use addressCountry for the listing address."},"proxyCountry":{"type":"string","title":"Search Country","description":"Alias for country; search country context, not the listing address."},"authority":{"type":"string","title":"Authority","description":"Regional host that served the listing (same as `domain`)."},"domain":{"type":"string","title":"Domain","description":"Tripadvisor regional host used for the search."},"destination":{"type":"string","title":"Destination","description":"Search destination echoed from input."},"origin":{"type":"string","title":"Origin","description":"Reserved for flights; not currently supported."},"regionId":{"type":"string","title":"Region ID","description":"Geographic identifier from the input, without a leading g."},"geoId":{"type":"string","title":"Geo ID","description":"Geographic identifier associated with an inventory entry or attraction, when provided."},"checkin":{"type":"string","title":"Check-in","description":"Requested check-in date echoed from input (hotels)."},"checkout":{"type":"string","title":"Check-out","description":"Requested check-out date echoed from input (hotels)."},"departureDate":{"type":"string","title":"Departure date","description":"Reserved for flights; not currently supported."},"returnDate":{"type":"string","title":"Return date","description":"Reserved for flights; not currently supported."},"actualCheckin":{"type":"string","title":"Actual check-in","description":"Check-in date returned by the site for the hotel search, when available."},"actualCheckout":{"type":"string","title":"Actual check-out","description":"Check-out date returned by the site for the hotel search, when available."},"actualAdults":{"type":"integer","title":"Actual adults","description":"Adult guest count returned by the site, when available."},"actualRooms":{"type":"integer","title":"Actual rooms","description":"Room count returned by the site, when available."},"echoTravelInfo":{"type":"object","title":"Echo travel info","description":"Stay dates and guest details returned by the site for the hotel search, when available."},"sponsored":{"type":"boolean","title":"Sponsored","description":"Sponsored listings are excluded, so this is false or absent. Setting includeSponsored does not enable sponsored rows."},"phone":{"type":"string","title":"Phone","description":"Public business contact phone, when supplied by the listing. Attraction rows do not include phone numbers."},"phones":{"type":"array","title":"Phones","description":"Available business phone entries with value, type, e164, and source fields.","items":{}},"address":{"nullable":true,"type":"object","title":"Address","description":"Address information as full text or structured components, depending on what the source supplies."},"streetAddress":{"type":"string","title":"Street address","description":"Street address when provided; may contain a complete address if separate components are unavailable."},"addressLocality":{"type":"string","title":"Address locality","description":"Listing city, when provided."},"addressRegion":{"type":"string","title":"Address region","description":"Listing state or region, when provided."},"addressCountry":{"type":"string","title":"Address country","description":"Geographic country of the listing. This differs from country, which describes the search context."},"postalCode":{"type":"string","title":"Postal code","description":"Listing postal code, when provided."},"latitude":{"nullable":true,"type":"number","title":"Latitude"},"longitude":{"nullable":true,"type":"number","title":"Longitude"},"imageUrl":{"type":"string","title":"Image URL","description":"Direct image link, when provided."},"imageUrlTemplate":{"type":"string","title":"Image URL template","description":"Image URL template; replace {width} and {height} placeholders with the desired dimensions before use."},"sourceLayer":{"type":"string","title":"Diagnostic Source","description":"Diagnostic source label; not a listing attribute."},"amenities":{"type":"array","title":"Amenities","description":"Hotel amenity labels, when provided.","items":{}},"seoContent":{"type":"array","title":"SEO content","description":"Hotel summary snippets supplied by the source, when available.","items":{}},"cuisines":{"type":"array","title":"Cuisines","description":"Restaurant cuisine labels.","items":{}},"mealTypes":{"type":"array","title":"Meal types","description":"Restaurant meal types (breakfast, lunch, ...).","items":{}},"establishmentTypes":{"type":"array","title":"Establishment types","description":"Restaurant establishment labels.","items":{}},"menuUrl":{"type":"string","title":"Menu URL","description":"Restaurant menu link."},"openStatus":{"type":"string","title":"Open status","description":"Machine open state (e.g. 'OPEN')."},"openStatusText":{"type":"string","title":"Open status text","description":"Human open state text (e.g. 'Open now')."},"hasReservation":{"type":"boolean","title":"Has reservation","description":"Whether the restaurant exposes a reservation offer."},"reservationProvider":{"type":"string","title":"Reservation provider","description":"Display name of the reservation provider (e.g. TheFork)."},"slug":{"type":"string","title":"Slug","description":"Name component of the listing or geographic URL."},"locationId":{"title":"Location ID","description":"Numeric location identifier for inventory or location lookup rows."},"geoName":{"type":"string","title":"Geo name","description":"Resolved geographic name, when provided."},"placeType":{"type":"string","title":"Place type","description":"Place classification supplied by the source, such as ACCOMMODATION."},"localizedName":{"type":"string","title":"Localized name","description":"Localized display name (location_lookup)."},"locale":{"type":"string","title":"Locale","description":"Input locale echoed."},"scrapedAt":{"type":"string","title":"Scraped at","description":"UTC ISO timestamp when the row was collected."},"airline":{"type":"string","title":"Airline","description":"Reserved for a future flights surface — not currently emitted."},"departTime":{"type":"string","title":"Departure time","description":"Reserved for flights."},"arriveTime":{"type":"string","title":"Arrival time","description":"Reserved for flights."},"originAirport":{"type":"string","title":"Origin airport","description":"Reserved for flights."},"destAirport":{"type":"string","title":"Destination airport","description":"Reserved for flights."},"duration":{"type":"string","title":"Duration","description":"Reserved for flights."},"stops":{"nullable":true,"type":"integer","title":"Stops","description":"Reserved for flights."},"priceOneWayPerTraveler":{"type":"string","title":"One-way per traveler","description":"Reserved for flights."},"a11ySummary":{"type":"string","title":"Accessibility summary","description":"Accessibility text, when provided."},"area":{"type":"string","title":"Area","description":"Sub-area / neighbourhood label when present."},"ratingPhrase":{"type":"string","title":"Rating phrase","description":"Human rating text (e.g. 'Excellent') when present."},"refundable":{"type":"boolean","title":"Refundable","description":"Whether the displayed offer is marked refundable, when provided."},"reservePayLater":{"type":"boolean","title":"Reserve now pay later","description":"Whether the offer permits reserving now and paying later, when provided."}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: listingId, name, listingUrl."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}