{"openapi":"3.1.0","info":{"title":"Tripadvisor Hotels Restaurants and Attractions Data (x402 & MCP)","version":"0.1.0","description":"Tripadvisor hotel rates, restaurants, things to do and location lookups across global Tripadvisor domains, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/tripadvisor-com/v1/search":{"post":{"operationId":"tripadvisor_com_search","summary":"Tripadvisor Hotels Restaurants and Attractions Data: Search Tripadvisor hotels, dining and attractions","description":"Query Tripadvisor hotels, restaurants, attractions and destination IDs across regional Tripadvisor sites. Unit price: $0.005000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["tripadvisor-com","Travel"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.050000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","description":"One city or region, such as Bangkok or London. Each run searches one destination; use regionId instead for a known geographic ID."},"regionId":{"type":"string","description":"Tripadvisor geographic ID, such as 293916 or g293916. Takes priority for listing searches and location lookups; use destination for sitemap searches.","pattern":"^[gG]?\\d*$"},"service":{"type":"string","description":"Choose hotels, restaurants, attractions, sitemap inventory entries, or location details. Each delivered row is billed at the same result price.","default":"hotels","enum":["hotels","restaurants","attractions","sitemap","location_lookup"]},"checkin":{"type":"string","description":"Hotel check-in in YYYY-MM-DD format. If omitted, the search uses a date 21 days ahead.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"checkout":{"type":"string","description":"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.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"adults":{"type":"integer","description":"Number of adult guests, from 1 to 10.","default":2,"minimum":1,"maximum":10},"children":{"type":"integer","description":"Number of children, from 0 to 10.","default":0,"minimum":0,"maximum":10},"childrenAges":{"type":"array","items":{"type":"integer","minimum":0,"maximum":17},"description":"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","description":"Number of hotel rooms, from 1 to 10.","default":1,"minimum":1,"maximum":10},"maxResults":{"type":"integer","description":"Maximum rows for the single destination or geographic input. Defaults to 70; larger requests are collected in parts of 70, subject to your maximum total charge and the Free-plan cap of 200 rows per run.","default":10,"minimum":1,"maximum":20},"quotePoll":{"type":"boolean","description":"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":"Leave at the default. Sponsored listings remain excluded even when this option is enabled.","default":false},"sort":{"type":"string","description":"Sorting preference where supported. Leave RECOMMENDED unless you need a different supported order.","default":"RECOMMENDED"},"domain":{"type":"string","description":"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","pattern":"^((https?://)?([A-Za-z0-9-]+\\.)*tripadvisor\\.[A-Za-z.]{2,10}/?)?$"},"locale":{"type":"string","description":"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":"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":"Not available: flights are not supported. Leave empty."},"departureDate":{"type":"string","description":"Not available: flights are not supported. Leave empty.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"returnDate":{"type":"string","description":"Not available: flights are not supported. Leave empty.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"tripType":{"type":"string","description":"Not available: flights are not supported. Leave at the default.","default":"oneway","enum":["oneway","roundtrip","multi"]},"fields":{"type":"array","items":{"type":"string"},"description":"Reserved; this input does not select output fields in Actor runs. Choose columns through the dataset export controls instead.","default":[]},"format":{"type":"string","description":"Leave as json. Choose the download format through the dataset export controls.","default":"json","enum":["json"]}},"additionalProperties":false},"example":{"service":"hotels","destination":"Bangkok","maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_tripadvisor_com"},"example":{"jobId":"job_tripadvi_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"service":"example_service","name":"example_name","listingId":"example_listingId","url":"https://tripadvisor.com/item/1","price":10,"priceDisplay":"example_priceDisplay"}],"meta":{"site":"tripadvisor-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":50000,"settledMicrousd":5000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/tripadvisor-com/v1/health":{"get":{"operationId":"tripadvisor_com_health","summary":"Tripadvisor Hotels Restaurants and Attractions Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["tripadvisor-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"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"}}},"Row_tripadvisor_com":{"type":"object","properties":{"service":{"type":["string","null"],"title":"Service"},"name":{"type":["string","null"],"title":"Name"},"listingId":{"type":["string","null"],"title":"Listing ID"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"price":{"type":["number","null"],"title":"Price"},"priceDisplay":{"type":["string","null"],"title":"Price display"},"currency":{"type":["string","null"],"title":"Currency"},"rating":{"type":["number","null"],"title":"Rating"},"reviewCount":{"type":["number","null"],"title":"Reviews"},"status":{"type":["string","null"],"title":"Status"},"listingStatus":{"type":["string","null"],"title":"Listing status"},"quoteStatus":{"type":["string","null"],"title":"Quote status"},"phone":{"type":["string","null"],"title":"Phone"},"destination":{"type":["string","null"],"title":"Destination"},"domain":{"type":["string","null"],"title":"Domain"},"scrapedAt":{"type":["string","null"],"format":"date-time","title":"Scraped at"}},"additionalProperties":true},"Response_tripadvisor_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_tripadvisor_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}