{"openapi":"3.0.0","info":{"title":"Expedia Hotels Flights Cars and Activities Data","version":"1.0.0","description":"Expedia hotel stays, flights, rental cars, vacation packages and activities across regional Expedia domains, one row per entity."},"servers":[{"url":"https://ah-expedia-com.opendata.best/s/expedia-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Expedia hotels, flights and travel offers","description":"Query Expedia hotel stays, flight itineraries, cars, packages and activities across regional Expedia storefronts.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"destination":{"type":"string","description":"Destination. 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.","example":"Tulsa, OK"},"regionId":{"type":"string","description":"Region ID. Numeric Expedia region identifier, such as 178293 for New York. Use it to specify or refine a destination; flights still require destination text."},"service":{"type":"string","enum":["hotels","flights","cars","packages","activities"],"description":"Travel service. 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","example":"hotels"},"origin":{"type":"string","description":"Origin. 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":"Expedia Domain. 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","example":"www.expedia.com"},"checkin":{"type":"string","description":"Check-in / Pickup Date. YYYY-MM-DD for hotels, cars and packages, today or later. Leave empty to search 3 weeks from today."},"checkout":{"type":"string","description":"Check-out / Dropoff Date. YYYY-MM-DD, after the check-in date. Leave empty for a 2-night stay."},"departureDate":{"type":"string","description":"Flight Departure Date. YYYY-MM-DD for flights, today or later. Leave empty for 4 weeks from today."},"returnDate":{"type":"string","description":"Flight Return Date. YYYY-MM-DD when tripType=roundtrip, after the departure date. Leave empty for a 7-day trip."},"tripType":{"type":"string","enum":["oneway","roundtrip"],"description":"Flight Trip Type. oneway or roundtrip for flights","default":"oneway"},"adults":{"type":"integer","minimum":1,"maximum":10,"description":"Adults. Number of adult travelers","default":2},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Children. Number of children","default":0},"rooms":{"type":"integer","minimum":1,"maximum":10,"description":"Rooms. Number of hotel rooms","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},"currency":{"type":"string","description":"Currency. Optional ISO currency override. Leave empty to derive it from the Expedia domain.","default":""},"locale":{"type":"string","description":"Locale. Optional Expedia locale override (e.g. en_US). Leave empty to derive it from the domain.","default":""},"sort":{"type":"string","description":"Hotel Sort. 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 Ads. 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},"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":"Austin","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":{"rowType":{"type":"string","title":"Row type","description":"Type of entity in the row: hotel, flight, car, package or activity. Flights can also emit flight_segment and fare sub-rows, linked to their offer by parentOfferId."},"id":{"type":"string","title":"Entity ID","description":"Entity identifier. Use it with rowType to identify the row."},"source":{"type":"string","title":"Source","description":"Always 'expedia'."},"service":{"type":"string","title":"Service","description":"Travel service used for the search: hotels, flights, cars, packages or activities. Cruise searches are unavailable."},"listingId":{"type":"string","title":"Listing ID","description":"Expedia's own id: propertyId for hotels and packages, the offer link's id for cars, the activity link's id for activities. For flights (no source listing id) the offer's offerIdentifier when the server supplies one, else a stable hash of route, date, times, airline, flight numbers and fare — prefixed 'flt-' on the JSON lane, 'flight-' on the browser fallback."},"listingType":{"type":"string","title":"Listing type","description":"Redundant copy of service."},"name":{"type":"string","title":"Name","description":"Listing or offer name. Required; rows without one are dropped."},"type":{"type":"string","title":"Type","description":"Redundant copy of service."},"status":{"type":"string","title":"Status","description":"Always 'available' (placeholder)."},"domain":{"type":"string","title":"Domain","description":"Expedia regional host used for the search."},"market":{"type":"string","title":"Market","description":"Market searched, derived from the domain (US, CA, UK, ...). Not the destination's country."},"country":{"type":"string","title":"Country","description":"Country explicitly provided by the detail source, preserving its name or code."},"authority":{"type":"string","title":"Authority","description":"Redundant copy of domain."},"locale":{"type":"string","title":"Locale","description":"Market locale (en_US, en_CA, ...)."},"destination":{"type":"string","title":"Destination","description":"Search destination echoed from input."},"origin":{"type":"string","title":"Origin","description":"Flight/package origin echoed from input."},"regionId":{"type":"string","title":"Region ID","description":"Expedia region id echoed from input when supplied."},"checkin":{"type":"string","title":"Check-in","description":"Check-in date echoed from input (hotels, cars, packages)."},"checkout":{"type":"string","title":"Check-out","description":"Check-out date echoed from input (hotels, cars, packages)."},"departureDate":{"type":"string","title":"Departure date","description":"Departure date echoed from input (flights)."},"returnDate":{"type":"string","title":"Return date","description":"Return date echoed from input (flights roundtrip)."},"url":{"type":"string","title":"URL","description":"Listing or offer page URL; for flights, the search results page. For hotels the per-search query is stripped."},"listingUrl":{"type":"string","title":"Listing URL","description":"Redundant copy of url."},"price":{"nullable":true,"type":"number","title":"Price","description":"Primary travel price displayed by Expedia. Hotels use the nightly rate when labeled, otherwise the displayed lead price; flights use the per-traveler fare with its priceBasis; cars use the displayed daily rate; packages use the per-traveler package price; activities use the displayed starting price."},"priceDisplay":{"type":"string","title":"Price display","description":"Raw price text from the card: hotels/packages=per-night or per-traveler, flights=per-traveler, cars=per-day."},"priceNightly":{"nullable":true,"title":"Nightly price","description":"Empty when the nightly price is not stated."},"priceTotal":{"nullable":true,"title":"Total price (raw)"},"totalPrice":{"nullable":true,"type":"number","title":"Total price","description":"Numeric total parsed from the displayed total price, when available."},"priceLabels":{"type":"array","title":"Price labels","description":"Available price labels as displayed beside the offer.","items":{"type":"string"}},"priceUnitLabels":{"type":"array","title":"Price unit labels","description":"Available price-unit labels, such as for 2 nights or a date range.","items":{"type":"string"}},"priceOneWayPerTraveler":{"type":"string","title":"One-way price per traveler","description":"Flights: displayed per-traveler price only when the source explicitly labels the fare one-way. Empty or omitted for round-trip or unknown-basis fares."},"pricePerTraveler":{"type":"string","title":"Price per traveler","description":"Flights: the displayed fare per traveler. The source's one-way or round-trip basis is given by priceBasis when stated."},"priceBasis":{"type":"string","title":"Flight fare basis","description":"Flights: journey basis explicitly stated beside the fare. Omitted when the source does not state it.","enum":["oneway_per_traveler","roundtrip_per_traveler"]},"currency":{"type":"string","title":"Currency","description":"Price currency code supplied with the offer, or the regional default when it is not supplied."},"starRating":{"nullable":true,"type":"number","title":"Star rating","description":"Hotel star rating, such as 3, 4 or 4.5, when available. Hotel detail additions cover up to 20 rows per collection part and may stop earlier."},"rating":{"nullable":true,"type":"number","title":"Rating","description":"Guest rating, generally out of ten, when present. Activity ratings supplied out of five are converted to a ten-point scale."},"reviewCount":{"nullable":true,"type":"integer","title":"Review count","minimum":0,"description":"Number of reviews; null when the card shows none."},"sponsored":{"type":"boolean","title":"Sponsored","description":"True when the card is a sponsored ad."},"airline":{"type":"string","title":"Airline","description":"Flights: carrier name."},"offerIdentifier":{"nullable":true,"type":"string","title":"Offer identifier","description":"Flights: the server's own offer id, byte for byte; null when the card carries none. Also used as listingId when present."},"flightNumbers":{"type":"array","title":"Flight numbers","description":"Flights: leg flight numbers as '<airline> <number>' strings, in leg order; empty when the card shows none.","items":{"type":"string"}},"parentOfferId":{"nullable":true,"type":"string","title":"Parent offer ID","description":"Flight segment (flight_segment) and fare sub-rows: the parent offer's offerIdentifier linking the sub-row to its flight row."},"departTime":{"type":"string","title":"Depart time","description":"Flights: local departure time as displayed. The JSON lane also emits the same value as departureTime."},"arriveTime":{"type":"string","title":"Arrive time","description":"Flights: local arrival time as displayed. The JSON lane also emits the same value as arrivalTime."},"originAirport":{"type":"string","title":"Origin airport","description":"Flights: 3-letter origin IATA."},"destAirport":{"type":"string","title":"Destination airport","description":"Flights: 3-letter destination IATA."},"duration":{"nullable":true,"type":"string","title":"Duration","description":"Flights/activities duration text when the card states it. The flights JSON lane also emits the same value as durationText."},"stops":{"type":"string","title":"Stops","description":"Flights: 'Nonstop' or stop count text. The JSON lane also emits the same value as stopsLabel."},"stopCount":{"nullable":true,"type":"integer","title":"Stop count","description":"Flights: numeric stop count (0 for nonstop), when the card states it."},"a11ySummary":{"type":"string","title":"Accessibility summary","description":"Flights card's accessible text excerpt."},"area":{"type":"string","title":"Area","description":"Reserved (currently empty) neighborhood/area label."},"ratingPhrase":{"type":"string","title":"Rating phrase","description":"Reserved (currently empty) rating word."},"refundable":{"type":"string","title":"Refundable","description":"Reserved refundable-policy text."},"reservePayLater":{"type":"string","title":"Reserve now, pay later","description":"Reserved reserve-pay-later flag."},"supplierName":{"type":"string","title":"Supplier name","description":"Supplier or operator name for car rentals and activities, when available. Not currently supplied for hotels. Car rows also emit the same value as supplier."},"vehicleClass":{"nullable":true,"type":"string","title":"Vehicle class","description":"Cars: the vehicle's category or class label as displayed, when present."},"seats":{"nullable":true,"title":"Seats","description":"Cars: seat count as displayed (number, or text when not a plain count)."},"doors":{"nullable":true,"type":"string","title":"Doors","description":"Cars: door count label as displayed, when present."},"transmission":{"nullable":true,"type":"string","title":"Transmission","description":"Cars: transmission label as displayed, such as Automatic."},"badges":{"type":"array","title":"Badges","description":"Cars: offer badge texts shown on the card, such as deal or supplier badges.","items":{"type":"string"}},"priceDaily":{"nullable":true,"type":"number","title":"Daily price","description":"Cars: the displayed per-day rental rate."},"propertyBrandId":{"type":"string","title":"Property brand ID","description":"Reserved property brand identifier; not currently supplied."},"address":{"type":"string","title":"Address","description":"Available hotel city, postal code and country, or an activity meeting or redemption address. Hotel addresses are optional and need not include street details."},"latLng":{"type":"string","title":"Latitude, longitude","description":"Activity coordinates as a latitude,longitude string, when available."},"freeCancellation":{"nullable":true,"title":"Free cancellation","description":"Free-cancellation flag or displayed text when supplied by the offer. Not guaranteed for every service or row."},"amenities":{"type":"array","title":"Amenities","description":"Available hotel amenity descriptions, with duplicates removed and source order preserved. Up to 40 entries are kept; amenitiesTotal records the original count when shortened.","items":{"type":"string"}},"needToKnow":{"type":"array","title":"Need to know","description":"Available hotel policy text, as a list of lines.","items":{"type":"string"}},"needToKnowTitle":{"type":"string","title":"Need-to-know title","description":"Heading for the available hotel policy text."},"detailSource":{"type":"string","title":"Detail source","description":"Label identifying the source of additional property or activity details, when present."},"cardIndex":{"type":"integer","title":"Card index","description":"Position of the offer on the results page, when available."},"misId":{"nullable":true,"type":"string","title":"Multi-item search ID","description":"Packages: Expedia's multi-item-search id carried in the offer link, when present."},"top_dp":{"nullable":true,"type":"number","title":"Package total (link)","description":"Packages: the package total parsed from the offer link's top_dp parameter, when present."},"route":{"type":"object","title":"Route","description":"Packages: the searched route as the request flight leg's origin and destination codes.","properties":{"origin":{"nullable":true,"type":"string"},"destination":{"nullable":true,"type":"string"}}},"sparse":{"type":"boolean","title":"Sparse row","description":"Packages: true when the card gave no usable price; price can be empty on such rows."},"selectedRoomType":{"nullable":true,"type":"string","title":"Selected room type","description":"Packages: room type identifier from the offer link, when present."},"selectedRatePlan":{"nullable":true,"type":"string","title":"Selected rate plan","description":"Packages: rate plan identifier from the offer link, when present."},"rawText":{"type":"string","title":"Raw card text","description":"Available text excerpt from the offer."},"amenitiesTotal":{"type":"integer","title":"Amenities total","description":"Original amenity count when the list is shortened to 40 entries."},"badgesTotal":{"type":"integer","title":"Badges total","description":"Original badge count when the list is shortened to 20 entries."},"featuresTotal":{"type":"integer","title":"Features total","description":"Original feature count when the list is shortened to 40 entries."},"reviewsTotal":{"type":"integer","title":"Reviews total","description":"Original review count when the list is shortened to 20 entries."},"roomsTotal":{"type":"integer","title":"Rooms total","description":"Original room count when the list is shortened to 20 entries."},"ratesTotal":{"type":"integer","title":"Rates total","description":"Original rate count when the list is shortened to 20 entries."},"scrapedAt":{"type":"string","title":"Scraped at","description":"ISO timestamp when the row was collected."}},"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: name, listingId, url, price; rowType=flight: name, listingId, price."},"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"}}}}}}