{"openapi":"3.1.0","info":{"title":"Expedia Hotels Flights Cars and Activities Data (x402 & MCP)","version":"0.1.0","description":"Expedia hotel stays, flights, rental cars, vacation packages and activities across regional Expedia 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/expedia-com/v1/search":{"post":{"operationId":"expedia_com_search","summary":"Expedia Hotels Flights Cars and Activities Data: Search Expedia hotels, flights and travel offers","description":"Query Expedia hotel stays, flight itineraries, cars, packages and activities across regional Expedia storefronts. Unit price: $0.005000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["expedia-com","Travel"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.025000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","description":"City or region for hotels, cars, packages or activities, or the arrival city or airport for flights. An empty input uses the small hotel example."},"regionId":{"type":"string","description":"Numeric Expedia region identifier, such as 178293 for New York. Use it to specify or refine a destination; flights still require destination text.","pattern":"^\\s*[0-9]*\\s*$"},"service":{"type":"string","description":"Choose hotels, flights, cars, packages or activities. Hotels work only on www.expedia.com, www.expedia.ca, www.expedia.de and www.expedia.com.hk. Flights require an origin and destination, and packages require an origin plus a destination or region ID.","default":"hotels","enum":["hotels","flights","cars","packages","activities"]},"origin":{"type":"string","description":"Departure city or airport, such as JFK or Chicago (ORD). Required for flights and vacation packages; not used for hotels, cars or activities."},"domain":{"type":"string","description":"Regional Expedia host (e.g. www.expedia.com, www.expedia.co.uk, www.expedia.com.au). Hotels work only on www.expedia.com, www.expedia.ca, www.expedia.de and www.expedia.com.hk; other hosts are refused for hotels.","default":"www.expedia.com","pattern":"^\\s*(https?://)?(www\\.)?expedia\\.[a-zA-Z.]{2,10}/?\\s*$"},"checkin":{"type":"string","description":"YYYY-MM-DD for hotels, cars and packages, today or later. Leave empty to search 3 weeks from today.","pattern":"^\\s*([0-9]{4}-[0-9]{2}-[0-9]{2})?\\s*$"},"checkout":{"type":"string","description":"YYYY-MM-DD, after the check-in date. Leave empty for a 2-night stay.","pattern":"^\\s*([0-9]{4}-[0-9]{2}-[0-9]{2})?\\s*$"},"departureDate":{"type":"string","description":"YYYY-MM-DD for flights, today or later. Leave empty for 4 weeks from today.","pattern":"^\\s*([0-9]{4}-[0-9]{2}-[0-9]{2})?\\s*$"},"returnDate":{"type":"string","description":"YYYY-MM-DD when tripType=roundtrip, after the departure date. Leave empty for a 7-day trip.","pattern":"^\\s*([0-9]{4}-[0-9]{2}-[0-9]{2})?\\s*$"},"tripType":{"type":"string","description":"oneway or roundtrip for flights","default":"oneway","enum":["oneway","roundtrip"]},"adults":{"type":"integer","description":"Number of adult travelers","default":2,"minimum":1,"maximum":10},"children":{"type":"integer","description":"Number of children","default":0,"minimum":0,"maximum":10},"rooms":{"type":"integer","description":"Number of hotel rooms","default":1,"minimum":1,"maximum":10},"maxResults":{"type":"integer","description":"Maximum rows for one destination search or route: default 70, with larger requests collected in parts of 70 and fewer rows when unavailable. Your maximum total charge also limits delivery; Free plan users get up to 200 rows per run and 10 runs of this Actor.","default":5,"minimum":1,"maximum":10},"currency":{"type":"string","description":"Optional ISO currency override. Leave empty to derive it from the Expedia domain.","default":""},"locale":{"type":"string","description":"Optional Expedia locale override (e.g. en_US). Leave empty to derive it from the domain.","default":""},"sort":{"type":"string","description":"Hotel result order, such as RECOMMENDED. Leave the default unless you know the Expedia sort value you need.","default":"RECOMMENDED"},"includeSponsored":{"type":"boolean","description":"Include sponsored ad cards in results on the HTML page lanes; the primary JSON channel serves no sponsored cards, so nothing is filtered there.","default":false}},"additionalProperties":false},"example":{"service":"hotels","destination":"Austin","maxResults":5}}}},"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_expedia_com"},"example":{"jobId":"job_expedia-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","service":"example_service","name":"example_name","price":10,"priceDisplay":"example_priceDisplay"}],"meta":{"site":"expedia-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":25000,"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/expedia-com/v1/health":{"get":{"operationId":"expedia_com_health","summary":"Expedia Hotels Flights Cars and Activities Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["expedia-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_expedia_com":{"type":"object","properties":{"rowType":{"type":["string","number","boolean","object","array","null"]},"id":{"type":["string","number","boolean","object","array","null"]},"service":{"type":["string","null"],"title":"Service"},"name":{"type":["string","null"],"title":"Name"},"price":{"type":["number","null"],"title":"Price"},"priceDisplay":{"type":["string","null"],"title":"Price display"},"totalPrice":{"type":["number","null"],"title":"Total price"},"currency":{"type":["string","null"],"title":"Currency"},"starRating":{"type":["number","null"],"title":"Star rating"},"rating":{"type":["number","null"],"title":"Rating"},"reviewCount":{"type":["number","null"],"title":"Reviews"},"destination":{"type":["string","null"],"title":"Destination"},"origin":{"type":["string","null"],"title":"Origin"},"domain":{"type":["string","null"],"title":"Domain"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"sponsored":{"type":["boolean","null"],"title":"Sponsored"},"listingId":{"type":["string","null"],"title":"Listing ID"},"scrapedAt":{"type":["string","null"],"format":"date-time","title":"Scraped at"}},"additionalProperties":true},"Response_expedia_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_expedia_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"]}}