Skip to content
StayingAPI
Docs

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.

Property
{
  "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

Field types to code against

Availability

One entry per requested listing; each day reports availability, min-nights and whether check-in / check-out / booking is allowed.

Availability
{
  "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.

Price
{
  "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.

PriceCompare
{
  "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

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

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.

TokenMeaning
poolSwimming pool
hot_tubHot tub / jacuzzi
kitchenFull kitchen
wifiWireless internet
air_conditioningAir conditioning
heatingHeating
parking_freeFree parking
parking_paidPaid parking
pet_friendlyPets allowed
washerClothes washer
dryerClothes dryer
ev_chargerEV charging
gymGym / fitness
sea_viewSea / ocean view
beachfrontDirectly on the beach
balconyBalcony / terrace
bbqBBQ / grill
workspaceDedicated workspace
cribCrib / infant bed
elevatorElevator / lift
wheelchair_accessibleStep-free access
smoke_alarmSmoke alarm
breakfastBreakfast available
spaSpa / wellness
gardenGarden / green space
fireplaceIndoor fireplace
dishwasherDishwasher
self_check_inSelf check-in
non_smokingNon-smoking
family_friendlyFamily friendly

Some amenity filtering is enforced post-fetch

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.