Core concepts
The unified schema
Every platform normalizes to the same shapes: Property, Availability, Price, PriceCompare and Review. One data model to code against, four platforms behind it.
Property
Returned by search and listing. The composite id is stable and case-sensitive.
{
"id": "stays_vrbo_5663861ha", // composite: stays_<platform>_<platformListingId>, case-sensitive
"platform": "vrbo",
"platformListingId": "5663861ha", // platform-native: numeric (Airbnb/Vrbo) or slug (Booking/Google); verbatim
"url": "https://www.vrbo.com/…",
"name": "Awesome home in Pirovac with swimming pool", // normalized display name; /v1/listing returns the raw title
"propertyType": "house", // hotel | apartment | house | villa | cottage | other
"location": { "lat": 43.82, "lng": 15.58, "city": "Murter", "region": "Sibenik-Knin", "country": "HR" },
"starRating": null, // hotel class; null for short-term rentals
"guestRating": 9.1, "ratingScale": 10, "reviewCount": 142,
"maxOccupancy": 8, "bedrooms": 3, "bathrooms": 1.5, // numbers — bathrooms can be fractional (½-baths)
"amenities": ["pool", "kitchen", "air_conditioning"],
"images": ["https://…"], // source URLs — StayingAPI never rehosts photos
"host": { "name": "…", "isSuperhost": false },
"price": { /* embedded Price when dates supplied; else absent */ },
"identity": { /* /v1/listing only: { requestedId, resolvedId, canonicalUrl }. Assert identity / de-dupe on resolvedId (stable); canonicalUrl is the exact fetched URL and may carry locale/query params — don't string-match on it. */ }
}Composite id is verbatim & case-sensitive
id = stays_<platform>_<platformListingId>. The listing-id segment is preserved exactly from the source — never re-cased. Two ids differing only in case are different properties.Field types to code against
platformListingIdis a string, not a number — numeric on Airbnb/Vrbo, a slug likeluxury-rooms-spliton Booking.com/Google. Never parse it as an integer.bedroomsandbathroomsare numbers, not integers —bathroomscan be fractional (e.g.1.5). Either can benullwhen the source doesn’t report it.- Monetary values (
nightlyPrice,totalPrice, fees,min,median) are decimals in the response currency — expect fractional cents, not whole units. nameis a normalized display name. The same property from /v1/listing returns the platform’s raw title, so the two can differ — match onplatform+platformListingId(orid), never on name.
Availability
One entry per requested listing; each day reports availability, min-nights and whether check-in / check-out / booking is allowed.
{
"platform": "airbnb",
"listingId": "42307961",
"dates": [
{ "date": "2026-07-13", "available": true, "minNights": 7, "checkIn": true, "checkOut": false, "bookable": true }
]
}Price
A real numeric quote for specific dates and occupancy. Fees are null when the source doesn’t itemize them.
{
"platform": "booking",
"listingId": "abramovic2",
"currency": "EUR",
"nightlyPrice": 303,
"totalPrice": 2122,
"priceBasis": "quoted_total", // or "nightly_rate_x_nights" / "displayed_stay_price"; see below
"fees": { "cleaning": null, "service": null, "taxes": null }, // null when the source doesn't itemize
"nights": 7,
"occupancy": { "adults": 2, "children": 2, "childAges": [8, 13] },
"source": "booking",
"url": "https://…"
}PriceCompare
One property, many OTAs — plus first-class min and median computed by StayingAPI across every offer’s total.
{
"property": "Hotel X, Sibenik",
"checkIn": "2026-07-13", "checkOut": "2026-07-20",
"currency": "EUR",
"min": 2122, // StayingAPI-computed: lowest offer totalPrice; null if no offers
"median": 2151, // StayingAPI-computed: median of offer totalPrices; null if no offers
"offers": [
{ "ota": "booking.com", "totalPrice": 2122, "currency": "EUR", "url": "…" },
{ "ota": "expedia", "totalPrice": 2180, "currency": "EUR", "url": "…" }
]
}Review
{
"platform": "tripadvisor",
"listingId": "d12345",
"reviewId": "r987",
"rating": 5, "ratingScale": 5,
"title": "Perfect family stay",
"text": "…",
"author": "Jane D.", "date": "2026-05-10",
"tripType": "family", "language": "en",
"ownerResponse": "Thank you!",
"liked": "…", "disliked": "…"
}Rating scales are echoed, never rescaled
ratingScale next to a rating. TripAdvisor, Airbnb and Vrbo are on a 5-point scale; Booking.com, Expedia and Hotels.com are on 10.Amenity taxonomy
Every adapter maps a platform’s raw amenity terms onto one controlled, snake_case vocabulary. The amenities[] filter on search accepts only these tokens (an unknown token → 400 invalid_amenity). The set is additive — tolerate unknown tokens.
| Token | Meaning |
|---|---|
pool | Swimming pool |
hot_tub | Hot tub / jacuzzi |
kitchen | Full kitchen |
wifi | Wireless internet |
air_conditioning | Air conditioning |
heating | Heating |
parking_free | Free parking |
parking_paid | Paid parking |
pet_friendly | Pets allowed |
washer | Clothes washer |
dryer | Clothes dryer |
ev_charger | EV charging |
gym | Gym / fitness |
sea_view | Sea / ocean view |
beachfront | Directly on the beach |
balcony | Balcony / terrace |
bbq | BBQ / grill |
workspace | Dedicated workspace |
crib | Crib / infant bed |
elevator | Elevator / lift |
wheelchair_accessible | Step-free access |
smoke_alarm | Smoke alarm |
breakfast | Breakfast available |
spa | Spa / wellness |
garden | Garden / green space |
fireplace | Indoor fireplace |
dishwasher | Dishwasher |
self_check_in | Self check-in |
non_smoking | Non-smoking |
family_friendly | Family friendly |
Some amenity filtering is enforced post-fetch
amenity_post_filtered warning when that post-fetch enforcement runs. If a non-empty upstream page becomes empty after filtering, the response also includes a post_filter_empty warning explaining why.Currency & localization
Pass-through, never FX
Default currency is USD. Each price object carries its own currency, and meta.currency names the currency the prices in the response are in. The currency parameter is a hint that triggers provider-side localization where supported; where it can’t localize, StayingAPI echoes the source currency unchanged and adds a currency_passthrough warning. No FX conversion is ever performed. Vrbo quotes in USD only, so a Vrbo search or price for another currency comes back in USD with that warning, and meta.currency says USD. When a fan-out returns prices in more than one currency, meta.currency is null: read each price’s own currency. Responses without prices echo the requested currency.
Booking currencies
Booking.com prices come back in the requested currency for about 50 currencies, including every major one. A currency Booking.com can’t be priced in through our sources (for example PHP or RUB) is answered in USD, with a currency_passthrough warning naming the currency you asked for and the one returned. It is never an error, and never a “try again”. In that case priceMin and priceMax are not applied, because they are in the currency you asked for; the warning says so.
Quoted totals and estimates
totalPrice is the price for the whole stay. nightlyPrice is the nightly rate the platform states when it states one (Airbnb’s “3 nights × €61”, before fees and taxes), otherwise totalPrice ÷ nights: compare stays on totalPrice. Every price carries priceBasis. quoted_total means the platform quoted a total for the stay. nightly_rate_x_nights means the platform gave only a nightly rate and totalPrice is that rate × nights (plus any fees listed in fees). Treat it as an estimate: whether it includes the platform’s mandatory fees and taxes is not verified against a checkout. Vrbo prices are always estimates of this kind and carry a price_unverified warning on /v1/price. displayed_stay_price means the platform showed a price for the stay (after any discount) but no total line, as with Airbnb’s “€183 for 3 nights” or a Booking.com price shown before taxes and charges. totalPrice is that figure; taxes may not be included, and a price_may_exclude_taxes warning says so.
The unified schema types ship in @stayingapi/schema and are re-exported by the SDK, so your types never drift from the API.