# StayAPI documentation > Every StayAPI docs page as Markdown, in the order of https://stayapi.com/llms.txt. Source: https://stayapi.com/docs # StayAPI Documentation Welcome to the StayAPI documentation. Learn how to integrate real-time hospitality data into your applications with our REST API. ## Quick Start #### Get Started in Minutes Follow these simple steps to make your first API call and start accessing hospitality data. 1 ### Get Your API Key Sign up for a free account to get your API key. No credit card required for testing. [Get API Key →](/users/sign_up) 2 ### Make Your First Request Use our Meta Search endpoint to find booking links for any hotel across multiple platforms. curl -X GET "https://api.stayapi.com/v1/meta/search" \   -H "x-api-key: YOUR\_API\_KEY" \   -G -d "hotel\_name=Four Seasons Resort Bali" 3 ### Integrate & Build Use the returned data to build hospitality applications. [View Full Documentation →](/docs/endpoints/meta-search) ## Available Endpoints ### Meta Search GET Find booking links for any hotel across multiple platforms including Booking.com, Expedia, Hotels.com, and more. [View Documentation →](/docs/endpoints/meta-search) ### Hotel Reviews GET Access detailed customer reviews, ratings, and feedback from various booking platforms. [View Documentation →](/docs/endpoints/booking/hotel-reviews) ### Hotel Details GET Get comprehensive hotel information including amenities, location, contact details, and photos. [View Documentation →](/docs/endpoints/booking/hotel-details) ### Hotel Search GET Search for available hotels in any destination with flexible date and guest configurations. [View Documentation →](/docs/endpoints/booking/search) ## Authentication #### API Key Required All API requests require a valid API key passed in the x-api-key header. StayAPI uses API keys for authentication. Include your API key in the `x-api-key` header with every request. [Learn More About Authentication →](/docs/authentication) ## Need Help? ### Get Support Can't find what you're looking for? Our team is here to help you integrate StayAPI successfully. [Contact Support](/contact)[Book a call](/book-demo) Request ```curl curl -X GET "https://api.stayapi.com/v1/meta/search?hotel_name=Four%20Seasons%20Resort%20Bali&location=Jimbaran%2C%20Indonesia" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" ``` Response ```json { "status": "success", "data": { "hotel_name": "Four Seasons Resort Bali", "location": "Jimbaran, Indonesia", "links": { "booking_com": "https://www.booking.com/hotel/id/four-seasons-resort-bali-at-jimbaran-bay.html", "expedia": "https://www.expedia.com/Jimbaran-Hotels-Four-Seasons-Resort-Bali.h1234567.Hotel-Information", "hotels_com": "https://hotels.com/ho123456/four-seasons-resort-bali-jimbaran-indonesia/", "agoda": "https://www.agoda.com/four-seasons-resort-bali-at-jimbaran-bay/hotel/bali-id.html", "tripadvisor": "https://www.tripadvisor.com/Hotel_Review-g469404-d301386-Reviews-Four_Seasons_Resort_Bali_at_Jimbaran_Bay.html", "kayak": "https://www.kayak.com/hotels/Four-Seasons-Resort-Bali-c47329.h123456.Hotel-Information", "priceline": "https://www.priceline.com/hotel-deals/four-seasons-resort-bali-h123456", "official_website": "https://www.fourseasons.com/jimbaran/" }, "platform_count": 8, "official_website_detected": true, "search_quality": "high", "response_time_ms": 245 } } ``` ```json { "error": { "code": "not_found", "message": "No booking links found for the specified hotel", "details": "Try using a more specific hotel name or check the spelling" } } ``` --- Source: https://stayapi.com/docs/authentication # Authentication Learn how to authenticate your requests using API keys and manage your access credentials. ## API Key Authentication #### Authentication Required All StayAPI endpoints require authentication using an API key. StayAPI uses API key authentication for all requests. You must include your API key in the `x-api-key` header with every API request. ### How to Include Your API Key Add the `x-api-key` header to every request: ``` x-api-key: YOUR_API_KEY_HERE ``` ## Getting Your API Key 1 ### Sign Up for an Account Create a free StayAPI account to get started. No credit card required for testing. [Sign Up for Free →](/users/sign_up) 2 ### Access Your Dashboard Once logged in, navigate to your dashboard to view and manage your API keys. 3 ### Generate API Key Generate a new API key for your application. You can create multiple keys for different environments. ## API Key Security #### Keep Your API Key Secure Never expose your API key in client-side code, public repositories, or unsecured environments. ### Best Practices - Store API keys as environment variables - Use different keys for development, staging, and production - Rotate your API keys regularly - Never commit API keys to version control - Use server-side requests only - never expose keys in client-side code ### Environment Variables Example ``` # .env file STAYAPI_KEY=your_api_key_here # In your application api_key = process.env.STAYAPI_KEY # Node.js api_key = os.environ['STAYAPI_KEY'] # Python api_key = ENV['STAYAPI_KEY'] # Ruby ``` ## Authentication Errors ### 401 Unauthorized Returned when no API key is provided or the API key is invalid. ``` { "error": { "code": "unauthorized", "message": "Invalid or missing API key", "details": "Please provide a valid API key in the x-api-key header" } } ``` ### 429 Rate Limit Exceeded Returned when you exceed your rate limit. ``` { "error": { "code": "rate_limit_exceeded", "message": "Rate limit exceeded", "details": "You have exceeded your rate limit. Try again later." } } ``` Request ```curl curl -X GET "https://api.stayapi.com/v1/meta/search?hotel_name=Four%20Seasons%20Resort%20Bali" \ -H "x-api-key: sk_live_abcd1234..." \ -H "Content-Type: application/json" ``` Response ```json { "status": "success", "data": { "hotel_name": "Four Seasons Resort Bali", "links": { "booking_com": "https://www.booking.com/hotel/id/four-seasons-resort-bali-at-jimbaran-bay.html", "expedia": "https://www.expedia.com/Jimbaran-Hotels-Four-Seasons-Resort-Bali.h1234567.Hotel-Information", "hotels_com": "https://hotels.com/ho123456/four-seasons-resort-bali-jimbaran-indonesia/", "agoda": "https://www.agoda.com/four-seasons-resort-bali-at-jimbaran-bay/hotel/bali-id.html" }, "platform_count": 4, "official_website_detected": true } } ``` ```json { "error": { "code": "unauthorized", "message": "Invalid or missing API key", "details": "Please provide a valid API key in the x-api-key header" } } ``` --- Source: https://stayapi.com/docs/mcp # MCP Server Connect StayAPI to Claude, Claude Code, Cursor, and other Model Context Protocol clients. Your AI agent queries hotel data directly from natural-language prompts — no glue code. User: "Get me the latest reviews for booking.com/hotel/th/baan-coconut.html" Agent: → calls booking\_hotel\_reviews(url=…) → returns structured reviews ## What you get - **No new credentials.** Sign in with your StayAPI account from Claude or ChatGPT, or use your existing `X-API-Key`. - **Same quota and billing** as the REST API — one tool call = one API request. - **Same SLA** — calls run on the same infrastructure as the REST API. - Works in **Claude (web, desktop & mobile), Claude Code, Cursor** out of the box. - Works in **ChatGPT** as an MCP app in developer mode (setup below). ## Quick Start ### Fastest: let your agent install it Paste the prompt into the agent you already have open. It reads [stayapi.com/install](/install) and sets up the connector itself. Paste into Claude Code ``` Read https://stayapi.com/install and set up the StayAPI MCP server for me. ``` Then open a **new** session and run `claude mcp list`: `stayapi` should read `✓ Connected`. **No key yet?** [Sign up](/users/sign_up) for 50 free requests. The agent asks you for it. **Claude on the web, desktop, or mobile** doesn't need this prompt: add StayAPI under Settings → Connectors and sign in. **ChatGPT** : add it as an MCP app in developer mode and sign in. Other clients: manual setup below. Rather do it by hand? The full walkthrough follows. #### Have an account? Use the pre-filled setup Skip the placeholder below — your dashboard has a "MCP Setup" page with the snippets ready to copy. [Open MCP Setup →](/user/mcp) 1 ### Get your API key [Sign up](/users/sign_up) for a free StayAPI account (no credit card required), then copy your API key from the dashboard. Already have an account? [Sign in](/users/sign_in). 2 ### Add the MCP server to your agent #### Pick the snippet for your AI client **Claude Code** , **Cursor** , and **Claude Desktop** are three separate products with three different config systems. The snippets below look similar but aren't interchangeable — Claude Desktop in particular needs the `mcp-remote` bridge because its JSON config doesn't accept HTTP servers directly. #### Claude (web, desktop & mobile) No API key needed — you sign in to StayAPI instead. Custom connectors sync across Claude on the web, desktop, and mobile. 1. In Claude, open **Settings → Connectors → Add custom connector**. 2. Name it `StayAPI` and set the URL to `https://api.stayapi.com/mcp`. Leave the advanced OAuth fields empty. 3. Click **Connect** , sign in to StayAPI, and choose **Allow**. #### ChatGPT (developer mode) No API key needed — you sign in to StayAPI instead. StayAPI isn't in ChatGPT's plugin directory yet, so you add it yourself in developer mode (Plus, Pro, Business, Enterprise, or Edu, on the web). 1. In ChatGPT, turn on **Settings → Security and login → Developer mode**. 2. Open `chatgpt.com/plugins`, click **+** , and choose **Create MCP app**. 3. Name it `StayAPI`, set the URL to `https://api.stayapi.com/mcp`, and pick **OAuth**. Leave the client ID and secret blank. 4. Sign in to StayAPI and choose **Allow** , then install StayAPI from your personal plugins (`chatgpt.com/plugins?view=personal`). 5. In a **Work** chat, type `@StayAPI` and ask. ChatGPT can show results as hotel cards (the free `show_hotels` tool). Data tool calls use your plan's credits, like API-key calls. #### Claude Code Run from your terminal: ``` claude mcp add --scope user --transport http stayapi https://api.stayapi.com/mcp --header "X-API-Key: YOUR_API_KEY" ``` Then open a **new** Claude Code session (already-running sessions won't see the new server). Confirm with `claude mcp list` — should show `stayapi: … (HTTP) - ✓ Connected`. #### Cursor One click installs the connector in Cursor: [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=stayapi&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vYXBpLnN0YXlhcGkuY29tL21jcCIsImhlYWRlcnMiOnsiWC1BUEktS2V5IjoiWU9VUl9BUElfS0VZIn19) After installing, replace `YOUR_API_KEY` in Cursor's MCP settings with your real key. Or [sign in](/users/sign_in) for a one-click button with your key already baked in. Prefer to set it up by hand? Add to `~/.cursor/mcp.json` (create if missing), then restart Cursor: ``` { "mcpServers": { "stayapi": { "type": "http", "url": "https://api.stayapi.com/mcp", "headers": { "X-API-Key": "YOUR_API_KEY" } } } } ``` #### Claude Desktop Add to your `claude_desktop_config.json` (create if missing): - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json` - Windows: `%APPDATA%\Claude\claude_desktop_config.json` macOS / Linux: ``` { "mcpServers": { "stayapi": { "command": "npx", "args": [ "-y", "mcp-remote@0.1.18", "https://api.stayapi.com/mcp", "--header", "X-API-Key:YOUR_API_KEY" ] } } } ``` Windows: Claude Desktop doesn't inherit your shell `PATH`, so a bare `npx` throws `spawn npx ENOENT`. Point `command` at the absolute path to `npx.cmd`: ``` { "mcpServers": { "stayapi": { "command": "C:\\Program Files\\nodejs\\npx.cmd", "args": [ "-y", "mcp-remote@0.1.18", "https://api.stayapi.com/mcp", "--header", "X-API-Key:YOUR_API_KEY" ] } } } ``` - Verify Node in **Command Prompt** (not the Node.js app / REPL) with `where npx`. If it points elsewhere, use that path; the default is `C:\Program Files\nodejs\npx.cmd`. - Keep `mcp-remote@0.1.18` pinned — newer builds can throw `Unexpected content type: null`. 1. **Fully quit Claude Desktop with ⌘ Q** — closing the window leaves it running in the menu bar and the new server won't load. 2. Relaunch. **First launch may take ~30 seconds** while `npx` downloads `mcp-remote` from npm; subsequent launches are instant. On a fully locked-down machine, IT may need to allow `registry.npmjs.org`. 3. In a new conversation, click the 🔌 icon — `stayapi` should appear. Why `mcp-remote`? Claude Desktop's JSON config doesn't natively support HTTP MCP servers yet — it requires stdio entries (`command`/`args`), and the `mcp-remote` adapter bridges the gap. Prefer not to edit JSON? Add StayAPI as a Claude connector instead (see above) — it signs in with OAuth and needs no key. 3 ### Try it Ask your agent something like: - "What's the destination ID for Lisbon on Booking.com?" - "Get me 10 of the most recent reviews for https://www.booking.com/hotel/th/baan-coconut.html" - "Look up Google reviews for 'Bellagio Las Vegas'" - "Get exact Radisson room rates in London for two nights and separate public from member offers" ## Available tools Most agents will discover and call the right tool automatically based on your prompt — you don't need to memorize tool names. | Tool | What it does | | --- | --- | | `booking_lookup_destination` | Free-form name (e.g., "Lisbon") → Booking.com `dest_id`. First step before `booking_search_hotels` when you only have a city name. | | `booking_search_hotels` | List hotels in a destination for a stay window. Takes a `dest_id` (negative integers like `-3233180` are valid — preserve the sign). `country_market` (default `US`) sets the pricing market — Booking.com prices by the visitor's country. Optional market selects country and language/currency defaults (ES: es/EUR; US: en-us/USD); explicit overrides win. effective\_market reports best-effort targeting, not verified geography. Price objects include `labels`, `genius_discount_pct`, and `is_mobile_rate` for observed anonymous rate markers. | | `booking_search_by_url` | Run a hotel search from a Booking.com `searchresults.html` URL; destination, dates, guests, rooms, paging, language, currency and `nflt` filters are read from the URL (`order` is ignored). Explicit `language`/`currency` override the URL. Returns the same results as `booking_search_hotels`. A hotel-page URL is `invalid_input`. | | `booking_hotel_details` | Get one hotel's details — including description, check-in/check-out times, and top-level `property_type` (string or `null`; for example `HOTEL`, `APARTMENT`, `HOLIDAY_HOME`, or `CHALET`; new values may appear). The existing numeric `metadata.property_type` is unchanged. Look up details by `hotel_id` (fast) or canonical Booking URL (slower — the URL is resolved to an ID first). | | `booking_hotel_facilities` | Property-wide facilities by `hotel_id` or URL, grouped by category, plus popular highlights. Per-room amenities are in `booking_hotel_room_types`. An unknown hotel ID is `no_results`. | | `booking_hotel_room_types` | Get the static room-type catalog by hotel\_id or canonical Booking hotel URL, without dates or occupancy. Optional language defaults to en-us (it for Italian); translations may be unavailable. Returns descriptions, sizes, beds, photos, facilities, and source bathroom/smoking metadata. Beds contain bed\_type, count, and nullable name\_with\_count. name\_with\_count preserves localized text when available and is explicitly null otherwise. No prices, availability, physical stock counts, or inferred capacity. Use booking\_hotel\_rooms for dated availability and rates. [Room types documentation](/docs/endpoints/booking/room-types). | | `booking_hotel_rooms` | Get room types and live availability for one hotel by `hotel_id` or URL, for a stay window. Returns listed rate blocks plus `availability_summary.total_available_rooms` — a deduplicated count across rate plans. Optional `market` sets country and language/currency defaults; explicit overrides win. `effective_market` reports unverified targeting. Pass the same `country_market` as the search for matching prices. `children_ages` is a comma-separated string of integer ages 0–17; its count must equal `children`. Rate price objects include `labels`, `genius_discount_pct`, and `is_mobile_rate`. inventory\_scope=recommended marks a limited selection; counts cover only returned offers. Rate price requires\_sign\_in is null unless a sign-in condition is explicitly observed; Genius/member labels alone do not establish eligibility. inventory\_scope=desktop\_listed identifies desktop-listed offers, without complete-inventory or bookability guarantees. Family and multiroom occupancy fit may be null. price.currency is authoritative; property currency may be null. Tax basis and included/excluded charges are preserved when supplied. Room facilities belong to the static room-type catalog. Preserve quoted amounts and tax fields; do not infer a public price. cancellation\_policy\_title is a localized plain-text policy summary, or null when unavailable. cancellation\_deadline\_date is the property-local calendar date of the free-cancellation deadline in YYYY-MM-DD format, or null when unavailable or not applicable. It does not specify an exact cutoff time or time zone and is not a promise that the whole day is refundable. Refer to the rate policy for conditions. refundable\_until remains an exact timestamp or null; cancellation\_policy is unchanged. | | `booking_hotel_price_calendar` | Calendar availability and displayed average prices for exactly one hotel\_id or canonical Booking hotel URL. Required date\_from/date\_to are inclusive, today or later, covering 1–61 dates. adults defaults to 2 and rooms to 1 (both 1–10); children\_ages accepts up to 10 comma-separated ages 0–17 with child count inferred; currency defaults to USD and accepts USD, EUR, GBP, JPY, CAD, AUD, CHF, INR, CNY, SEK, KRW, AED, and MXN, case-insensitively. Sorted dates include available, min\_nights, and average\_price (null when unavailable). These are displayed calendar averages, not guaranteed stay totals or tax/fee-inclusive quotes. [Price calendar documentation](/docs/endpoints/booking/price-calendar). | | `booking_hotel_prices` | Compact price quote by `hotel_id` or URL for required `checkin`/`checkout`: `pricing_summary` (cheapest per night and total, net, taxes) plus one entry per room/rate and `is_soldout`. `rate_mode` is `default`, `occupancy_matched` (verified one-room fit), or `desktop_public` (adults-only desktop inventory for one room, including Genius and alternate occupancies. The summary selects the cheapest exact fit). The default retains the current compatible selection. `adults` 1–10, `rooms` 1–10, same market/currency options as `booking_hotel_rooms`. Use `booking_hotel_rooms` for full rate objects and availability counts. | | `booking_hotel_reviews` | Get reviews for a hotel by `hotel_id` or URL, with sort and pagination. Use `sort=recent_desc` for date-bounded backfills. Review IDs are opaque strings; deduplicate by ID. Reviewer IDs, travel purpose and selected room photos are omitted. Unknown incentive status and unavailable reviewer review counts are null. | | `booking_hotel_reviews_summary` | Review counts for a hotel by `hotel_id` or URL: total, by language, by traveler type, by popular topic. A valid hotel with no reviews returns `total_reviews: 0`; an unknown hotel ID is `no_results`. | | `booking_hotel_review_scores` | Aggregated review scores by `hotel_id` or URL: overall and per-category (staff, cleanliness, comfort, facilities, location, value for money, wifi), score bands, and by traveler type. Zero-review and unknown-hotel handling as for the summary. | | `booking_hotel_photos` | Get a hotel's full photo gallery by `hotel_id` or URL. Returns signed, ready-to-use image URLs at thumbnail, medium, and large sizes. `limit` (default 20, `0` = all) and `size` (`thumbnail` / `medium` / `large` / `all`) keep responses compact; `metadata.photo_count` is always the full gallery size. | | `airbnb_listing_details` | Get an Airbnb listing's details by a decimal-string `listing_id` or any Airbnb URL (URL→ID is instant). Prices are in `airbnb_listing_pricing`. | | `airbnb_listing_pricing` | Price of a stay by `listing_id` or URL: nightly rate, nights, service and cleaning fees, total, currency and line-item breakdown. Same dates, guests and currency inputs as details. Dates that cannot be booked (e.g. shorter than the minimum stay) return `available: false` with `unavailability_reason` and `pricing: null`; `airbnb_listing_calendar` shows `min_nights`. | | `airbnb_listing_cancellation_policy` | Cancellation policy for a stay by `listing_id` or URL (`check_in`, `check_out`, `adults`, `currency`): policy type, summary and refund milestones. Unbookable dates return `available: false` with an empty policy. | | `airbnb_listing_payment_methods` | Payment methods and payment plans (e.g. pay part now) for a stay by `listing_id` or URL, with the same inputs as the cancellation policy. Unbookable dates return `available: false` with empty lists. | | `airbnb_listing_overview` | No dates: a listing's description and guest / bedroom / bed / bath counts with room arrangements, by `listing_id` or URL. | | `airbnb_listing_photos` | No dates: every photo of a listing in display order with captions and the room-by-room grouping when present, by `listing_id` or URL. | | `airbnb_listing_calendar` | Get calendar availability by integer `listing_id` or string `url`; provide at least one, with `listing_id` taking precedence. Integer `months` defaults to 12 (range 1–12). Returns `listing_id` and `months`, each with `month`, `year`, and `days` containing `date`, `available`, `available_for_checkin`, `bookable`, and `min_nights`. No nightly pricing. Each successful call costs one credit. | | `airbnb_listing_reviews` | Get reviews for an Airbnb listing by a decimal-string `listing_id` or URL, with sort + pagination. | | `vrbo_lookup_destination` | Find Vrbo `region_id` values for a destination name (1–200 characters). An empty list is a successful answer. | | `vrbo_search_listings` | Dated Vrbo rental discovery in a `region_id`, 1–10 per page (`offset` 0–1000, adults 1–8), no prices; continue with the returned `next_offset`/`next_limit`. Results do not confirm availability. | | `vrbo_listing_url_to_id` | Convert a Vrbo listing URL to the internal `property_id` used by `vrbo_listing_reviews` and `expedia_hotel_rates`. Can take up to about 30 seconds; a page with no ID returns `no_results`. | | `vrbo_listing_reviews` | Guest reviews for a Vrbo rental by internal `property_id` (from search or `vrbo_listing_url_to_id`, not the number in a public URL); `page_size` 1–20, `sort_by` recommended, newest, highest or lowest. No reviews returns `no_results`. | | `google_reviews_for_place` | Get Google reviews for a place — by Google `data_id` or by `query` + optional `location`. The relative `date` is always present; `iso_date` may be null, and `iso_date_source` says whether it is the exact review time (`review`) or the reviewer's photo upload time (`photo`). Exact review dates are available on every page on a best-effort basis; individual dates may be photo-derived or null. Some places return only their first 5 reviews. | | `google_travel_resolve` | Hotel name → Google Travel `entity_token` candidates. First step for the other `google_travel_*` tools. | | `google_travel_search` | Free-text hotel search ("hotels in Lisbon") → ~20 hotel cards per `page`, each with rating, nightly and whole-stay price, star class, coordinates, check-in/out times, description, photos, amenity labels, deal note, location score, website, Google `hotel_id`, and an `entity_token` for drilldown; plus Google's `total_count`. Supports optional dates, adults, currency, and Google's `3.5+`, `4.0+`, or `4.5+` guest-rating filter. | | `google_travel_summary` | A hotel's review summary by `entity_token`: overall rating, total count, star histogram, and review-topic sub-scores. | | `google_travel_info` | A hotel's identity/metadata by `entity_token`: name, star class, coordinates, address, phone, check-in/out times, descriptions, website, location score, Maps ids, locality chain, and amenities (available, absent, and by section; English labels). | | `google_travel_photos` | A hotel's photo gallery by `entity_token` (https URLs, dimensions, and occasional AI caption highlights). | | `google_travel_prices` | A hotel's nightly rate, usual-price band, and partner booking offers by `entity_token`; optional paired YYYY-MM-DD dates plus adults target an explicit stay. Check-in must be today or later and check-out must be after check-in; otherwise Google chooses dates. `currency` shapes money fields. | | `google_travel_rooms` | Room-level offers per booking site for one hotel and stay, by `entity_token`: each site's room types (name, photos, bed and view features) and, per rate, the nightly and whole-stay price, free cancellation (Google's text plus an ISO `free_cancellation_until` when unambiguous), and breakfast. `official: true` marks the hotel's own website. Only sites with a Google sponsored listing carry room detail, so expect a few, not every `google_travel_prices` offer. Same dates, adults, and currency as `google_travel_prices`. No booking links are returned; use the partner's offer in `google_travel_prices` for a link. | | `google_travel_similar` | Similar hotels + vacation rentals near a hotel (`entity_token`), each with its own token to pivot to. | | `google_travel_nearby` | Nearby points of interest (attractions, transit, airports, restaurants) with ratings and drive/walk times, by `entity_token`. | | `google_travel_reviews` | A hotel's individual Google reviews by `entity_token` — rating, text, reviewer, owner response — with `sort` (most\_relevant / newest / highest\_rating / lowest\_rating) and cursor pagination. Exact creation and edit dates are available on every page on a best-effort basis; individual dates may be photo-derived or null. | | `google_maps_search` | Search Google Maps for places of any kind (restaurants, cafes, attractions, shops, hotels) by free text, with an optional `location` (`lat,lng`). Up to 20 ranked places per `page` (1 to 10), each with `data_id`, name, categories, address, coordinates, rating, review count, phone, website, today's hours, and live open state. Sponsored results are excluded. | | `google_maps_place` | Google Maps details for one place by `data_id`: identity ids and Maps link, categories, editorial summary, address and its parts, coordinates, time zone, phone, website, rating with star histogram, review topics, opening hours (plus delivery or takeout hours), attributes, order and reservation links, photos, the owner's name, places inside it, and hotel extras. Reviews come from `google_reviews_for_place` with the same `data_id`. | | `accor_search` | Search Accor (ALL — Sofitel, Fairmont, Novotel, Ibis, etc.) hotels by `latitude`+`longitude` (+`radius_km`) or `destination_slug`, with each property's best available offer. | | `accor_hotel_url_to_id` | Extract an Accor `hotel_id` from an `all.accor.com` (or `*.accor.com`) hotel URL for the other Accor tools. Local parse; does not confirm the hotel exists. | | `accor_hotel_details` | Get an Accor property's public content by `hotel_id`: contact and location, descriptions, ratings, room names and features, facilities, payment methods, accessibility, and media previews. | | `accor_hotel_amenities` | Get detailed amenity categories and services by `hotel_id`, including fee, coverage, and location metadata plus connecting and family room inventory. | | `accor_hotel_reviews` | Get up to 20 Accor guest reviews by `hotel_id`, including ratings, text, trip type, dates, and hotel responses. | | `accor_hotel_rooms` | Get bookable room offers for an Accor property by `hotel_id` (from `accor_search`), grouped into room types with rate plans, prices, and policies. | | `accor_hotel_photos` | Get an Accor property's full photo/video gallery by `hotel_id`. Public image URLs at every published size. | | `accor_price_calendar` | Get a per-date cheapest-offer calendar for an Accor property by `hotel_id` (window up to 60 days). | | `radisson_search` | Search Radisson by destination or hotel name. Returns hotel ids and public property metadata; prices are not included. | | `radisson_hotel_details` | Get identity, description, location, contact details, services, and status for one Radisson `hotel_id`. | | `radisson_hotel_amenities` | Get structured services, property types, location types, and tags. | | `radisson_hotel_reviews` | Get Radisson's TripAdvisor aggregate, ranking, traveler breakdowns, and published review sample. | | `radisson_hotel_url_to_id` | Resolve a canonical `radissonhotels.com/.../hotels/{slug}` URL to its Radisson hotel code. | | `radisson_hotel_rooms` | Get static room names, descriptions, capacity, services, and media. Live availability is deliberately excluded. | | `radisson_hotel_photos` | Get the full categorized Radisson property gallery with public image URLs. | | `radisson_price_calendar` | Get the lowest public price per arrival date across a window of up to 60 days. | | `radisson_hotel_rates` | Get the live lowest available cash rate for one hotel and stay, with optional member pricing. | | `radisson_hotel_room_rates` | Get raw public/member offers plus `normalized_rates` for single-room cash alternatives, nightly reward quotes, and `points_total`. Final redemption cash payable is unverified; mixed cash-and-points offers remain in raw data. | | `tripadvisor_geo_search` | Free-form place name (e.g., "Paris") → TripAdvisor `geo_id`. **First step** before `tripadvisor_search_hotels` if you only have a place name. | | `tripadvisor_search_hotels` | List TripAdvisor hotels in a `geo_id` area for an optional stay window. Each hotel carries a `location_id` for the other TripAdvisor tools. | | `tripadvisor_hotel_details` | Get one TripAdvisor hotel's details by `location_id` or any TripAdvisor hotel URL (URL→ID is instant). | | `tripadvisor_hotel_subratings` | Aggregate category ratings (location, rooms, value, cleanliness, service, sleep quality) for a TripAdvisor hotel by `location_id` or URL. A hotel with no category ratings is `no_results`. Overall rating and review count are in `tripadvisor_hotel_details`. | | `tripadvisor_hotel_reviews` | Get reviews for a TripAdvisor hotel by `location_id` or URL, with `page`/`per_page` and `language`. At most 20 reviews per page; `per_page` above 20 is treated as 20. | | `tripadvisor_hotel_prices` | Get live provider offers (Booking.com, Agoda, etc.) for a TripAdvisor hotel by `location_id` or URL for a required stay window. | | `agoda_hotel_url_to_id` | An `agoda.com//hotel/-.html` URL (an `/all/` segment is also accepted) → the numeric Agoda `hotel_id`. Use when you have a hotel URL; hotel-name lookup also returns hotel IDs. It fetches the hotel page, so it costs one quota unit. | | `agoda_search_hotels` | Search by city\_id and required check\_in/check\_out dates. Optional adults (2), rooms (1), children (0), children\_ages (JSON integer array, up to nine ages 0–17), currency (USD), and page (1–1000). Ages override children; omit ages to use age 8 for each child. Returns hotel cards, nullable nightly and whole-booking prices, and pagination. Fixed requested page size 10; actual card count may differ. No URL argument, sort, or filters. | | `agoda_hotel_details` | Date-free property metadata for a positive integer `hotel_id`: address, available amenities, selected photos, and useful\_information (nullable room count, opening year, check-in/check-out times, and ordered source groups). No URL, dates, locale, or currency parameters. [Hotel details docs](/docs/endpoints/agoda/hotel-details). | | `agoda_hotel_lookup` | Find hotel suggestions with a query of 2–200 characters. Returns hotel IDs and location context in provider order, with duplicate IDs removed. No pagination, prices, or availability. Use the selected hotel\_id with hotel prices or reviews. | | `agoda_hotel_prices` | Get live dated Agoda room availability by `hotel_id`, including the lowest all-inclusive stay price, per-night and whole-stay taxes/fees, breakfast, cancellation terms, and explicit sold-out status. Optional children\_ages is a JSON integer array of up to nine ages 0–17 and overrides children, including [] for adults only. Omit it to use age 8 for each child in children. | | `agoda_hotel_reviews` | Get Agoda's own guest reviews for one Agoda hotel by `hotel_id`. The requested page size is 20; actual counts can differ. Agoda lists English-language reviews first (newest first with the default sort), then reviews in other languages, so for a complete date range, page until `has_more` is false. `sorting` is `7` = most recent (default), `6` = highest rating, `5` = lowest rating. | | `agoda_hotel_review_comments` | Get Agoda's own guest reviews for one Agoda hotel; returns the same reviews, shape, and pagination as `agoda_hotel_reviews`. | | `kayak_hotel_url_to_id` | Extract a hotel\_id and canonical URL from a KAYAK property url. existence\_checked is false. Pass hotel\_id to Reviews; Details, Photos, and Amenities require url. | | `kayak_hotel_details` | Read published hotel content by KAYAK property url: name, plain-text description, address, coordinates, stars, and aggregate rating on a 0–10 scale. No live prices or availability. | | `kayak_hotel_photos` | Read KAYAK property photos by url with image URLs, thumbnails, categories, and attribution. No pagination or size controls. | | `kayak_hotel_amenities` | Read top amenities and categorized amenity entries by KAYAK property url. total counts categorized entries, excluding highlights. | | `kayak_hotel_reviews` | Read KAYAK hotel reviews by hotel\_id and page (1–1000, default 1), up to 10 per page. Follow has\_more; scores use 0–100 and source labels are preserved. No sort selector. | | `kayak_lookup_destination` | Find city IDs by query (2–100 trimmed characters), with limit 1–50 (default 10). Pass city\_id to the buzz calendar. | | `kayak_hotel_lookup` | Find hotel IDs by hotel name (2–100 trimmed characters; include the city), with limit 1–50 (default 10). Pass hotel\_id to Reviews. Suggestions can include vacation-rental units listed as hotels. | | `kayak_buzz_calendar` | Read LOW, MEDIUM, and HIGH daily relative price bands for a city\_id. No monetary prices, currency, or date-range controls. | | `holidaycheck_hotels_search` | Find hotels by query (1–200 characters after trimming), with page default 1 and up to 10 matches per page. available\_count and has\_more describe the available result set, not a global total. Pass returned hotel\_id directly to details or reviews. No dates, prices, or destination search. | | `holidaycheck_hotel_details` | Read hotel details by hotel\_id UUID: canonical URL, address, location, contact, descriptions, grouped amenities, and check-in/out wording. Star classification is separate from native six-point guest ratings. No prices or photo gallery. Each successful call costs one credit. | | `holidaycheck_hotel_url_to_id` | Extract a lowercase hotel UUID from a supported HolidayCheck hotel or review-listing URL. Does not verify existence; individual /hrd/ review URLs are excluded. | | `holidaycheck_hotel_reviews` | Read HolidayCheck reviews by hotel\_id UUID. Optional page defaults to 1; sort is most\_relevant (default) or recent\_desc. Returns up to 10 reviews per page with native six-point ratings, text sections, and recommendation percentage. No language control or owner responses. Each successful call costs one credit. | | `tripcom_search_hotels` | Search Trip.com by positive city\_id and required check\_in/check\_out. USD default; adults 2 and rooms 1 (both 1–6), limit 10 (1–20). Optional hotel\_name is trimmed to 1–200 characters with no control characters and requests native name matching within the required city/stay; the response echoes normalized hotel\_name or null. First page only, no children. Nullable source advertised prices have unspecified tax inclusion; use source payment totals with their labels and additional-charge notes rather than multiplying rounded displays. Selected-room names, beds, displayed guests and source labels describe one offer, not inventory, capacity or policy guarantees. | | `tripcom_hotel_reviews` | Get paginated Trip.com guest reviews by `hotel_id` — rating, text, stay date, room type, travel type, and the hotel's owner response. `page_size` is 1–50 (default 10); `currency` and `locale` only localize the response. Each review includes source: tripcom, ctrip, expedia, hotelscom, tripadvisor, or unknown. Attribution follows explicit review evidence; aggregate Expedia rating counts do not identify individual review origin. Token and signature fields are excluded; public aggregate rating metadata is retained. total\_reviews is the hotel aggregate; pageable\_reviews is the current feed count, not a guarantee that all aggregate reviews are retrievable. Complete zero-total and zero-feed pages are successful empty results. | | `ctrip_lookup_destination` | Resolve a city or exact place name (English or Chinese, 2–100 characters) to the Ctrip `city_id` that search needs; optional `country` filters homonyms, `limit` 1–15. Several matching cities, or a region instead of a city, return `invalid_input` with `suggestions` to choose from. | | `ctrip_search_hotels` | First-page Ctrip hotel search (up to 13 hotels) by `city_id`, with IDs, names, ratings, location and an optional sample room. Optional paired stay dates, today or later, 1–30 nights; the default stay is one night two weeks out. | | `ctrip_hotel_url_to_id` | Extract the numeric Ctrip `hotel_id` locally from a ctrip.com hotel URL, for details, rooms and reviews. | | `ctrip_hotel_details` | Ctrip hotel content by `hotel_id`: description, address, coordinates, contacts, rating and subratings, amenities, policies and photos. | | `ctrip_hotel_rooms` | Ctrip room types, availability and the advertised lowest price (CNY) for a stay by `hotel_id`; adults and rooms 1–8, up to 8 `children_ages` of 0–17. Per-rate-plan prices need a Ctrip login, so they are null. Can take up to about a minute; returns `rate_limited` with `retry_after` when busy. | | `ctrip_hotel_reviews` | Up to 10 reviews from Ctrip's first page by `hotel_id`, with rating, text, dates, room type, source and owner response. A hotel with no reviews returns `no_results`. | | `makemytrip_search_hotels` | Search MakeMyTrip hotels in India by city\_code, dates, and occupancy. Returns hotel IDs, INR listing prices, tax and coupon fields, photos, review summaries, and an opaque next\_cursor. | | `makemytrip_get_hotel_details` | Get MakeMyTrip hotel descriptions, address, coordinates, amenities, arrival times, and photos. Supply hotel\_id, city\_code, check\_in, and check\_out. | | `makemytrip_get_hotel_rates` | Get dated MakeMyTrip room rate plans in INR. Supply hotel\_id, city\_code, check\_in, and check\_out; every returned room has one or more plans, with a required before-tax nightly price. Tax and tax-inclusive fields are both null or both present; when present, the inclusive nightly amount is their sum rounded to two decimals. Rate-plan name and cancellation policy are nullable. Do not infer a stay total. | | `makemytrip_get_hotel_reviews` | Get MakeMyTrip review text, ratings, stay context, and source-aware pagination. Only Most relevant sorting is supported; stop automatic pagination when source\_changed is true and next\_start is null. | | `hyatt_hotel_points_calendar` | Compare Hyatt award arrival dates for one room. Required hotel\_code, start\_date and end\_date cover 1–31 inclusive UTC-today-or-later arrivals. nights is 1–30 (default 1), adults 1–9 (default 1), children 0–4 (default 0), child\_ages a JSON integer array with one age 0–17 per child. room\_category is STANDARD\_ROOM (default), CLUB, STANDARD\_SUITE or PREMIUM\_SUITE; a hotel without that category returns every date unavailable. days includes every requested arrival; points\_total sums complete nightly\_points, never first-night points multiplied by nights. Unavailable days have null points and an empty nightly array. Detailed Points + Cash quotes use hyatt\_hotel\_rooms with rate\_mode=awards. | | `hyatt_hotel_url_to_id` | Extract a lowercase five-character hotel\_code from a canonical HTTPS Hyatt url. Returns normalized url and existence\_verified false; hotel existence is not verified. | | `hyatt_hotel_rooms` | Get dated Hyatt room offers using hotel\_code, check\_in and check\_out. Optional rate\_mode is standard (default) or awards; responses echo rate\_mode. Awards requests return award or Points + Cash offers, with explicit whole-stay points\_total and quoted cash per room; never multiply nightly points to invent totals. Confirmed empty awards return a successful empty result; cash-only or ambiguous negative award results fail with 502. Adults 1–9 (default 2), rooms 1–2 (default 1), children 0–4 (default 0), and child\_ages as a JSON integer array with one age 0–17 per child. Occupancy and prices are per room. Cash and award flags describe returned offers, not exhaustive availability. Limited-capacity beta; honor Retry-After on temporary unavailability. | | `hilton_rooms` | Get dated Hilton room types, starting cash offers, and standard or premium full-points rewards. Use hotel\_code, dates, 1–4 adults, and USD, GBP, or EUR; Request 1–9 identical rooms (default 1), with the same room type, rate plan, adults, children, and child ages in each room. Each returned starting cash or full-points offer supports the requested quantity of identical rooms. Mixed room categories or different parties per room are not supported. price\_basis is per\_room: all cash and points amounts are per room, not aggregated across rooms. Optional children (0–6, default 0) requires exactly one child\_ages integer 0–17 per child in a JSON array. Occupancy applies to cash and rewards. Cash name, members\_only, and login\_required are nullable source labels; null means unknown. Reward points include exact stay totals and dated nightly breakdowns. Confirmed unavailability is a successful result with availability\_status unavailable, room\_types [], and total 0; availability\_message explains the result. No Points & Money quotes. | | `hilton_search` | Search undated Hilton hotel metadata in English by query or coordinates. Returns hotel\_code, photos, amenities, and opening status, without prices or stay availability. | | `hilton_hotel_url_to_id` | Extract the seven-character Hilton hotel\_code (ctyhocn) from a canonical HTTPS Hilton hotel or reservation rooms URL without checking existence. | | `ihg_search` | Find IHG hotels near a `latitude`/`longitude`, nearest first (`radius_miles` 1–100, default 50; `limit` 1–120, default 50). Returns the `hotel_code` mnemonic, brand, address, coordinates, photos and review summary; no prices or availability. | | `ihg_hotel_url_to_id` | Extract the IHG `hotel_code` (mnemonic, e.g. `USMKM`) from an ihg.com hotel URL. Local parsing only; it does not check that the hotel exists. | | `ihg_rooms` | Dated room types for a `hotel_code` with cash `rates` in the hotel's currency and IHG One Rewards `reward_options` (points-only, then points+cash with the cash part in USD). `adults` 1–8, `children` 0–6, `rooms` 1–9. No availability for the stay is a successful empty result; an unknown or inactive `hotel_code` is `no_results`. | | `wyndham_search` | Find Wyndham-family hotels near a `latitude`/`longitude`, nearest first (`radius_miles` 1–100, default 50; `limit` 1–100, default 50). Returns numeric `property_id`, brand, address, distance, rating, amenities and URL; no dated prices. | | `wyndham_hotel_url_to_id` | Resolve a wyndhamhotels.com hotel URL to its numeric `property_id`, name and `brand_code`. A Wyndham URL that matches no property is `no_results`. | | `wyndham_rooms` | Dated room types for a `property_id` with cash, member, points+cash and free-night rates, daily rates and cancellation terms. `adults` 1–8, `children` 0–6, `rooms` 1–9, optional `corporate_code`. No bookable rooms is a successful empty result; a `property_id` that matches no Wyndham property is `no_results` (REST 404, one credit). | | `bestwe_search_hotels` | Search dated WeHotel (Jin Jiang) inventory by `city_code`. Returns property IDs, public metadata, availability, and lowest visible CNY prices. | | `bestwe_hotel_url_to_id` | Extract a WeHotel (Jin Jiang) `property_id` locally from a canonical `hotel.bestwehotel.com/HotelDetail?hotelId=...` URL. | | `bestwe_hotel_details` | Get bilingual WeHotel (Jin Jiang) property content, policies, photos, facilities, services, and static room metadata. | | `bestwe_hotel_reviews` | Get paginated WeHotel (Jin Jiang) guest reviews with scores, moderated photos, tags, room context, and hotel replies. | | `bestwe_hotel_rooms` | Get dated WeHotel (Jin Jiang) room inventory and public or member rate plans with CNY prices, breakfast, and cancellation rules. | | `expedia_lookup_destination` | Find Expedia `region_id` values by destination name (1–200 characters), with type, location and coordinates. Pass `region_id` to `expedia_search_hotels` or `expedia_hotel_lookup`. An empty list is a successful answer. | | `expedia_hotel_lookup` | Find Expedia `property_id` values by hotel name (1–200 characters) within a numeric-string `region_id`. Pass `property_id` to details, reviews or rates. Availability is not verified; an empty list is a successful answer. | | `expedia_search_hotels` | Search Expedia hotels in a `region_id` for `check_in`/`check_out`, one page (`limit` 1–10, `offset` 0–1000) at a time, adults 1–8, with each card's lead price. Optional `stars`, `min_guest_rating`, `sort`, `free_cancellation` and `amenities` filters; continue with `next_offset`/`next_limit`. Lead prices are not bookable offers: use `expedia_hotel_rates` for offers. | | `expedia_hotel_details` | Static Expedia hotel details by numeric-string `property_id`: name, address, coordinates, star and guest rating, review count, description, popular amenities and check-in/out times. No dates, availability or prices. | | `expedia_hotel_reviews` | Expedia guest reviews by `property_id`; `page` starts at 0, `per_page` 1–5. `sort=recent_desc` returns newest first for date-bounded backfills; follow `has_more`. A property with no reviews returns `no_results`. | | `expedia_hotel_rates` | Get Expedia room rates and availability by numeric property\_id and ordered nonpast stay dates. Adults 1–10; optional children\_ages is a JSON integer array of up to six ages 0–17. Omit it or use [] for adults-only rates. Supported currencies: USD, EUR, GBP, AUD, CAD, JPY, THB, SGD, HKD, INR, NZD, BRL, MXN, CHF, DKK, NOK, SEK, KRW, MYR, IDR, PHP, SAR, TWD, VND, AED, PEN, CLP, COP, EGP, ARS, CNY, ISK and ZAR; normalized to uppercase; default USD. Unsupported codes return invalid input. Prices are native regional quotes and can vary by market, not a fixed exchange-rate conversion. Property and room text may be localized for that market. Member offers have is\_member\_rate=true; null means unknown eligibility. requires\_sign\_in is nullable and a member badge alone does not establish a sign-in gate. Exclude known member offers using is\_member\_rate, not requires\_sign\_in alone. total\_price\_amount is the displayed whole-stay total and may be rounded. reservation\_amount may exclude mandatory property charges and is not the amount due now, including with PAY\_LATER. total\_with\_taxes\_and\_fees is its deprecated alias, not a guaranteed all-inclusive total. Nightly fields are null when not supplied; no tax breakdown is promised. Sold-out stays are valid results. Available results include at least one priced offer; malformed availability is an error. Find property\_id with expedia\_hotel\_lookup or the numeric .h ID in an Expedia URL. | | `marriott_bonvoy_search` | Search Marriott Bonvoy hotels near a `latitude`+`longitude` for a stay. Returns each property's `property_id`, brand, rating, distance, lowest cash price, and `points_per_night` when an award rate exists; up to 20 per page, optional corporate code. Add `corporate_only` with a code to return only hotels that have a rate under it, priced at that rate. | | `marriott_bonvoy_rooms` | Use adults 1–10 (default 2), children 0–10 (default 0), and rooms 1–8 (default 1), with occupancy per room. When children \> 0, child\_ages must be a JSON integer array with exactly one age 0–17 per child. The same occupancy applies to cash and awards. Get live room types and rate plans for a Marriott `property_id` and stay: cash `per_night` and `total`, plus Bonvoy award pricing with `points` (check-in night), `points_total` (whole stay), and a per-night `nightly_rates` breakdown. `source_of_rate` is `MARSHA` or `ACRS`; ACRS rates have no per-night breakdown and null per-night fields on multi-night stays. | | `marriott_bonvoy_price_calendar` | Get the lowest rate for every check-in date at one Marriott `property_id`, for a window of up to 36 dates and 1–9 nights. Each date returns `available`, `per_night` and `stay_total` before taxes in the property's currency, or `points_total` with `use_points`. With `corporate_code`, only rates under that code are returned. | | `opentable_search_restaurants` | Search OpenTable restaurants near a `latitude`+`longitude` for a `date`/`time`/`party_size`. Returns name, cuisine, price band, rating, address, phone, and photos. | | `opentable_restaurant_url_to_id` | Resolve a full OpenTable `/r/{slug}` profile URL to its numeric `restaurant_id`, name, country, macro area, and neighborhood. | | `opentable_restaurant_details` | Get one OpenTable restaurant profile by `restaurant_id`, including cuisine, ratings, address, coordinates, contact details, hours, photos, policies, dining areas, and feature flags. | | `opentable_restaurant_menu` | Get an OpenTable restaurant's published menus by `restaurant_id`: menu and section names, item descriptions, prices, and portion variations. Prices are strings (restaurants can publish values like `MKT`); a restaurant with no structured menu returns an empty `menus` array. | | `opentable_restaurant_reviews` | Get OpenTable reviews by `restaurant_id`, sorted by `newest`, `highest`, or `lowest`. Returns up to 25 reviews per page. | | `opentable_restaurant_availability` | Check whether one exact reservation `time` is available for a restaurant, date, and party size. | | `opentable_restaurant_availability_slots` | Return OpenTable's nearby bookable `HH:MM` slots around a `preferred_time`. | | `opentable_private_dining_restaurants` | Search OpenTable **private-dining** venues near a `latitude`+`longitude`, with `cuisine_ids`/`instant_book`/`radius`/`min_capacity` filters. Returns the private-dining contact (name/phone/email), largest-space capacity, plus cuisine, rating, and photos. Pass `with_facets=true` to discover cuisine IDs. | | `meta_coordinates_lookup` | Resolve a place name (e.g. "Manhattan") to coordinates. Returns matching locations with `latitude`/`longitude`, `type`, country, and `place_id` — use it to get the lat/lng the other tools need. | | `meta_search` | Find one hotel's pages on booking sites and its official website from `hotel_name` (plus optional `location`). Returns `links` keyed by site (`booking_com`, `agoda`, `expedia`, `hotels_com`, `tripadvisor`, `kayak`, `priceline`, `marriott`, `hilton`, `ihg`, `hyatt`, `official_website`); a site with no link is null. A search that finds nothing returns `no_results`. | | `meta_match` | Match a hotel `name` to its canonical hotel page on one `platform` (`booking`, `agoda`, `tripadvisor`, `expedia`, `priceline`, `tripcom`, `kayak`). Returns `match` with title, description and url. No matching page returns `no_results`. | | `airbnb_search_listings` | Airbnb destination listings by city, neighborhood or postal code, one page (1–15, 18 listings) per call with total\_pages and has\_next\_page; dedupe overlapping results by listing\_id. Optional paired dates and guest counts. Undated results omit prices; neither mode verifies availability. No property-name lookup. | ## URL vs ID For Booking, Airbnb, and TripAdvisor tools that fetch a single item, you can pass **either** an `id` **or** a `url`. For OpenTable, call `opentable_restaurant_url_to_id` once, then pass its `restaurant_id` to details, menus, reviews, or availability. Radisson keeps resolution explicit. Call `radisson_hotel_url_to_id`, then pass the returned `hotel_id` to the content or pricing tool. Agoda and WeHotel (Jin Jiang) do the same. Call `agoda_hotel_url_to_id` or `bestwe_hotel_url_to_id`, then pass the returned ID to the content, review, or room tools. Trip.com search returns hotel IDs; it has no URL resolver, so `tripcom_hotel_reviews` takes the numeric `hotel_id` only. Marriott Bonvoy has no URL resolver either: `marriott_bonvoy_search` returns the `property_id` codes that `marriott_bonvoy_rooms` takes. Google Maps keys on `data_id`: `google_maps_search` returns one per place for `google_maps_place` and `google_reviews_for_place`. - **ID is faster** — no resolution step needed. - **URL works too** — the server resolves it internally. Booking URLs are slower to resolve. - **OpenTable URLs resolve exactly** — any valid `/r/{slug}` profile URL, including older slugs, via `opentable_restaurant_url_to_id`. If you only have a URL, pass it. If you have the ID from a previous call, prefer it. For Airbnb, send a positive decimal `listing_id` string, such as `"22120898"`. Responses also use decimal strings so long IDs stay exact. Safe JSON integers up to `9007199254740991` are accepted, but larger numeric IDs are rejected to prevent precision loss. ## Quota and billing | Call type | Counts against your quota? | | --- | --- | | `initialize`, `tools/list`, notifications | No (free housekeeping) | | `tools/call` returning successful data or a definitive no-results outcome | **Yes — 1 quota unit per completed call** | | Invalid input, provider or operational failures, and protocol errors | No, including errors returned with HTTP 200 | | `tools/call` on an unknown tool name | No | Billing follows the tool outcome, not just the HTTP status. A completed lookup that confirms no results, such as no available rooms, still uses one quota unit. Rate limits and monthly quotas are the same as the REST API — your tier dictates both. Both are checked before the tool runs, so a call over a limit gets a JSON-RPC error instead of a tool result: | HTTP status | JSON-RPC error.code | When | What the error carries | | --- | --- | --- | --- | | `402` | `-32001` | Free-plan credits are used up, or a paid subscription is overdue | `error.message` explains what to do; `error.data.code` is `free_tier_limit_reached` or `subscription_payment_required`; `error.data.cta` has the upgrade/billing link (`label`, `url`) | | `429` | `-32001` | A paid plan's quota is used up | `error.data.code: "quota_exceeded"`, plus `limit`, `remaining_quota`, `tier` and `reset_at`; `Retry-After` and `X-RateLimit-*` headers | | `429` | `-32002` | Your key is sending requests faster than its rate limit | `error.data.code: "rate_limit_exceeded"` and `error.data.retry_after` (seconds); `Retry-After` and `X-RateLimit-*` headers | Per-tool usage appears in your activity dashboard as `/mcp/tools/` — so you can see which tools your agents call most. ## Structured errors When something goes wrong, tools return a structured dict your agent can read and react to, rather than a generic failure: | Error | When | Shape | | --- | --- | --- | | `invalid_input` | Missing or bad parameter | `{error, message, field}` | | `url_resolution_failed` | Couldn't extract an ID from your URL | `{error, message, provider, outcome}``outcome` (when present) is `not_found`, `unavailable` or `overloaded` | | `upstream_error` | The upstream hotel provider returned an error | `{error, message, provider}` | | `no_results` | Query was valid but nothing matched | `{error, message, provider}` | | `rate_limited` | Service temporarily unavailable | `{error, message, provider, retry_after}` | Auth failures come back as JSON-RPC error code `-32001`: HTTP 401 for a missing or invalid key, 403 for a blocked account, and 503 when sign-in is temporarily unavailable (retry shortly). Quota and rate-limit rejections are described under [Quota and billing](#quota-and-billing). ## What's NOT supported in v1 - **JSON-RPC batches** — send one tool call at a time. Batched requests return JSON-RPC `-32600`. - **Google Travel search max-price filter** — the underlying provider doesn't expose one. `google_travel_search` supports Google's discrete `3.5`, `4.0`, and `4.5` guest-rating thresholds; for price caps, filter the response client-side. - **Pagination on `google_reviews_for_place` by `query`** — `next_page_token` only works when you initially called with `data_id`. The query path returns the first page plus the resolved `data_id` so you can paginate from there. ## Troubleshooting ### Claude Desktop on Windows: `mcp-remote` won't start The Windows failure ladder, in the order you'll hit it. All three are client-side — the server is fine. | Symptom | Cause | Fix | | --- | --- | --- | | `spawn npx ENOENT` | Claude Desktop can't find `npx` on its PATH. | Use the absolute path to `npx.cmd` (see the Windows snippet above). Verify Node with `where npx` in **Command Prompt** — not the Node.js app / REPL. | | `'npx' is not recognized` | Node isn't installed, or PATH was stripped by corporate policy. | Install Node LTS and restart the machine. If `where npx` is still blank in `cmd` but works elsewhere, use the absolute path. | | `Unexpected content type: null` | A `mcp-remote` version regression. | Pin `mcp-remote@0.1.18`. | ### Check the server is reachable from your machine Before blaming your client config, confirm the server answers from your network. Run this in **Command Prompt** (swap in your real key): ``` curl.exe -i -X POST https://api.stayapi.com/mcp -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "X-API-Key: YOUR_API_KEY" -d "{\"jsonrpc\":\"2.0\",\"id\":0,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-11-25\",\"capabilities\":{},\"clientInfo\":{\"name\":\"curl\",\"version\":\"1.0\"}}}" ``` If it returns `200` and `serverInfo: StayAPI`, the server is fine and the problem is your client config. #### PowerShell users: use curl.exe, not curl In PowerShell, `curl` is an alias for `Invoke-WebRequest`, which silently ignores `-H`/`-d`. Use `curl.exe` (as above) or run the command from **Command Prompt**. ### `401 Unauthorized` on initialize Your `X-API-Key` header is missing or wrong. Sign in and copy your current key from the dashboard and re-add the connector. Connected through a Claude connector? Disconnect and connect it again. ### `403 Forbidden` Your account is blocked. Contact [info@stayapi.com](mailto:info@stayapi.com). ### `402` or `429` with `quota_exceeded` on every tool call Your quota is used up. A `402` (free plan or overdue subscription) carries an upgrade/billing link in `error.data.cta`; a `429` with `error.data.code: "quota_exceeded"` carries `reset_at` — wait until then or upgrade your plan. A `429` with `-32002` is a short-term rate limit, not your quota: wait `retry_after` seconds and retry. ### `url_resolution_failed` from Booking tools The URL didn't resolve to a hotel. Use a canonical Booking URL (`https://www.booking.com/hotel/{cc}/{slug}.html`), not a search-results URL. Or pass `hotel_id` directly if you have it. ### Tool calls take a long time `booking_hotel_details(url=…)` and `booking_hotel_reviews(url=…)` resolve the URL first, which adds latency. Pass `hotel_id` directly if you have it. ### My agent isn't using the StayAPI tools Some agents need the tool descriptions to clearly match the request. Try mentioning a hotel name, URL, or the platform explicitly: "use StayAPI to find…". ## Privacy & security - Your `X-API-Key` is sent on every request as a custom HTTP header. Treat it like any other API credential — don't paste it into shared chats or commit it to a repo. - Claude connectors and the ChatGPT app sign in with OAuth and never see your API key. Their access tokens expire after an hour and are refreshed automatically; revoke a connection any time under **Connected apps** on your MCP setup page. - Tool inputs (URLs, hotel IDs, queries) are logged for analytics and debugging, same as REST API calls. - All connections to `https://api.stayapi.com/mcp` are TLS-encrypted. - The MCP server runs on the same infrastructure as the REST API. Same SLA, same data residency, same incident response. ## Related docs - • [API Documentation overview](/docs) - • [Authentication & API keys](/docs/authentication) - • [Booking hotel reviews (REST)](/docs/endpoints/booking/hotel-reviews) - • [Booking destinations lookup (REST)](/docs/endpoints/booking/destinations-lookup) - • [Airbnb listing reviews (REST)](/docs/endpoints/airbnb/reviews) - • [Google Travel hotel search (REST)](/docs/endpoints/google-travel/search) - • [Google Travel hotel data (REST)](/docs/endpoints/google-travel/resolve) - • [Google Maps place search (REST)](/docs/endpoints/google-maps/search) Questions? Email [info@stayapi.com](mailto:info@stayapi.com). --- Source: https://stayapi.com/docs/agent-skill # Agent Skill A free, open-source skill that teaches AI assistants how to use StayAPI — the right tool, the right parameters, the right order. Install it once and prompts like _"pull every review since June into a spreadsheet"_ just work. ## What an agent skill is A skill is a folder of instructions — a `SKILL.md` plus reference files — that your AI assistant loads automatically when a matching task comes up. No runtime, no build step: it's portable markdown that works in Claude Code, Claude.ai, Claude Desktop, and any other skills-aware agent. The StayAPI skill encodes our workflows and the pitfalls that trip up agents: resolving destination IDs before searching, using `sort=recent_desc` for chronological review backfills, reporting Booking prices as stay totals rather than nightly rates, and never printing your API key. | | Skill | [MCP server](/docs/mcp) | REST API | | --- | --- | --- | --- | | What it is | The **knowledge** — workflows & gotchas | The **connection** — the full live tool catalog | The **raw surface** — plain HTTPS | | Cost | Free (MIT) | 1 quota unit / call | 1 quota unit / call | | Best with | Either of the other two | Skill installed | Scripts & backends | The skill and the MCP server pair: install both and your agent knows what to do _and_ has the tools to do it. In Claude Code the skill can also drive the REST API directly from the shell using your `STAYAPI_API_KEY` environment variable. ## Install ### Claude Code Run both commands inside a Claude Code session, then open a **new** session: claude code ``` /plugin marketplace add stayapi/agent-skill /plugin install stayapi@stayapi ``` ### Claude.ai & Claude Desktop 1. Download `stayapi.skill` from the [latest GitHub release](https://github.com/stayapi/agent-skill/releases/latest). 2. Upload it under **Settings → Capabilities → Skills**. 3. For live data on Claude.ai, also add the [StayAPI MCP connector](/docs/mcp) — the skill supplies the know-how, the connector supplies the tools. ### Any other skills-aware agent The skill is plain markdown — clone and copy it wherever your agent looks for skills: bash ``` git clone https://github.com/stayapi/agent-skill.git cp -R agent-skill/skills/stayapi ~/.claude/skills/stayapi ``` ## Your API key The skill needs a StayAPI key to fetch data — the same `X-API-Key` you use everywhere else. It looks for the key in this order: 1. A connected **StayAPI MCP server** — the connector already carries the key, so the agent never touches it. 2. The `STAYAPI_API_KEY` environment variable (Claude Code / shell-capable agents). 3. Failing both, it asks you — and points you to [the dashboard](/users/sign_up) if you don't have a key yet. bash ``` export STAYAPI_API_KEY=your_key_here ``` The skill's instructions explicitly forbid printing, logging, or committing the key — commands always reference the variable, never the literal. ## What's inside ``` skills/stayapi/ ├── SKILL.md # triggers, auth rules, transport selection, core workflows └── references/ ├── workflows.md # worked examples: destination lookup, search, details, │ # review backfill, Google Travel, Airbnb └── tools.md # full catalog: every MCP tool ↔ its REST endpoint, grouped by platform ``` The skill loads progressively: the agent reads `SKILL.md` when a hotel-data task appears and opens the reference files only when it needs worked examples or the full platform catalog. It contains documentation only — no code executes, and all data comes from your StayAPI account. ## Try it After installing, ask your agent something like: - _"Find the top hotels in Lisbon for a weekend in September, with prices."_ - _"Get the 20 most recent guest reviews for https://www.booking.com/hotel/th/baan-coconut.html"_ - _"What do Google reviews say about the Bellagio this month?"_ The skill triggers on hotel and travel-data questions automatically. If your agent doesn't pick it up, mention the platform or StayAPI explicitly — _"use StayAPI to…"_ — once, and it will. ## Versions & updates The skill is versioned with tagged releases at [stayapi/agent-skill/releases](https://github.com/stayapi/agent-skill/releases), each with the packaged `.skill` file attached. To update: Claude Code re-installs from the marketplace; Claude.ai users upload the new release file; manual installs pull the repo again. ## Troubleshooting The skill never triggers. Confirm it's installed (Claude Code: `/plugin` → installed plugins; Claude.ai: Settings → Capabilities). Then ask a substantive hotel-data question — one-word prompts may not engage it. Mentioning a platform ("on Booking") or StayAPI by name always helps. The agent knows what to do but gets no data. The skill is knowledge, not a connection. On Claude.ai, add the [MCP connector](/docs/mcp). In Claude Code, either add the connector or set `STAYAPI_API_KEY` so the agent can call the REST API. 401 or 403 on every call. The key is missing, wrong, or the account is blocked. Check the dashboard for your current key. A used-up quota returns `402` or `429` instead, with an upgrade link or the reset time. ## Links - [Source & releases on GitHub](https://github.com/stayapi/agent-skill) (MIT) - [Agent skill overview page](/agent-skill) - [MCP server docs](/docs/mcp) - [REST API docs](/docs) - Questions: [info@stayapi.com](mailto:info@stayapi.com) --- Source: https://stayapi.com/docs/endpoints/health GET # Health Check API Monitor the API status and verify that the service is running properly. ## Overview #### Service Monitoring Use these endpoints to monitor the API health and ensure the service is operational. The Health Check endpoints provide a simple way to verify that the StayAPI service is running and responding to requests. These endpoints are useful for monitoring, load balancers, and uptime checks. ### Root Endpoint GET https://api.stayapi.com/ Returns basic API information and available endpoints. ### Health Endpoint GET https://api.stayapi.com/health Returns detailed health status and version information. ### V1 Health Endpoint GET https://api.stayapi.com/v1/health Returns V1-specific health status. ## Parameters No parameters required for health check endpoints. ## Response Format | Field | Type | Description | | --- | --- | --- | | status | string | Current status of the API (e.g., "healthy") | | message | string | Descriptive message about the API status | | version | string | API version information | ## Usage Tips ### Monitoring Best Practices - Use the `/health` endpoint for detailed monitoring - The root `/` endpoint is ideal for simple uptime checks - Check for HTTP 200 status code to verify the service is running - Parse the response body for additional status information #### Load Balancer Configuration Configure your load balancer to use the /health endpoint for health checks with a reasonable interval (e.g., every 30 seconds). Request ```curl curl -X GET "https://api.stayapi.com/health" ``` Response ```json { "status": "healthy", "message": "StayAPI is running", "version": "1.0.0", "timestamp": "2024-01-15T10:30:00Z" } ``` ``` { "message": "Welcome to StayAPI", "version": "1.0.0", "endpoints": { "health": "/health", "docs": "/docs", "v1": { "meta": "/v1/meta", "booking": "/v1/booking", "tripadvisor": "/v1/tripadvisor" } } } ``` --- Source: https://stayapi.com/docs/endpoints/account-usage GET # Account Usage API Retrieve your remaining credits and current billing-period usage for your API key. ## Overview #### Non-billable This call does not consume a credit and is not counted in your usage analytics — poll it as often as you reasonably need (about once a minute is plenty). Use this endpoint to monitor how many credits you have left in the current billing period, build a usage meter, or alert before you run out. The numbers reflect the active billing period and reset at `reset_at`. ### Endpoint GET https://api.stayapi.com/v1/account/usage ## Authentication Authenticate with your API key in the `x-api-key` header (header names are case-insensitive). See the [Authentication guide](/docs/authentication) for details. ``` x-api-key: YOUR_API_KEY ``` ## Parameters No parameters required. Authenticate with your `x-api-key` header. ## Response Format | Field | Type | Description | | --- | --- | --- | | tier | string | Your subscription tier (e.g. `free`, `basic`, `startup`, `scale`). | | used | integer | Billable requests consumed so far in the current billing period. | | remaining | integer | Credits left this period — `total_limit − used` (never negative). | | total\_limit | integer | Total credits available this period — `used + remaining`. | | plan\_limit | integer | Credits included with your subscription tier. | | purchased\_credits\_remaining | integer | Add-on credits still available on top of your plan. | | reset\_at | string | ISO-8601 (UTC) timestamp when the current period ends and `used` resets to 0. | | period\_start | string | ISO-8601 (UTC) timestamp when the current period started. | ## Status Codes & Errors - `200` — success; the usage object is returned. - `401` `INVALID_API_KEY_FORMAT` / `INVALID_API_KEY` — malformed or unknown API key. - `422` `VALIDATION_ERROR` — the `x-api-key` header is missing. - `403` `ACCOUNT_BLOCKED` — your account has been blocked. - `404` `ACCOUNT_NOT_FOUND` — no account is associated with this API key. - `503` `SERVICE_UNAVAILABLE` — usage data is temporarily unavailable. ### Error responses (Problem Details) Errors follow [RFC 7807](https://www.rfc-editor.org/rfc/rfc7807) Problem Details with media type `application/problem+json`. Example (`404`): ``` { "type": "https://api.stayapi.com/errors/account-not-found", "title": "Account not found", "status": 404, "detail": "No account is associated with this API key.", "error_code": "ACCOUNT_NOT_FOUND", "instance": "/v1/account/usage", "provider": "stayapi", "correlation_id": "req_..." } ``` #### Caching Successful (200) responses and the route-level 403/404/503 errors are returned with Cache-Control: no-store — always read them live. Auth and validation failures (401, 422) are produced before the route runs and do not carry that header. Request ```curl curl -X GET "https://api.stayapi.com/v1/account/usage" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "tier": "scale", "used": 12345, "remaining": 92655, "total_limit": 105000, "plan_limit": 100000, "purchased_credits_remaining": 5000, "reset_at": "2026-06-15T00:00:00Z", "period_start": "2026-05-15T00:00:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/account-not-found", "title": "Account not found", "status": 404, "detail": "No account is associated with this API key.", "error_code": "ACCOUNT_NOT_FOUND", "instance": "/v1/account/usage", "provider": "stayapi", "correlation_id": "req_..." } ``` --- Source: https://stayapi.com/docs/endpoints/meta-search GET # Hotel Meta Search API Find booking links for any hotel across multiple platforms including Booking.com, Expedia, Hotels.com, and more. ## Overview #### Primary Use Case Perfect for travel comparison sites, hotel booking aggregators, and applications that need to provide users with multiple booking options. The Meta Search endpoint searches across multiple booking platforms to find direct links for a specific hotel. This allows your users to compare prices and book through their preferred platform. ### Endpoint URL GET https://api.stayapi.com/v1/meta/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_name | string | Required | The name of the hotel to search for. Be as specific as possible for better results. | | location | string | Optional | The location of the hotel (city, region, country). Helps improve search accuracy. | #### Pro Tip Include both hotel\_name and location for the most accurate results. The more specific you are, the better the platform matching will be. ## Response Format ### Success Response (200 OK) | Field | Type | Description | | --- | --- | --- | | success | boolean | Whether the request was successful | | hotel\_name | string | The hotel name used for the search | | location | string | The location used for the search (null if not provided) | | links | object | Object containing booking platform URLs (null if not found) | | metadata.total\_results\_found | integer | Number of platforms where the hotel was found | | metadata.retrieved\_at | string | UTC timestamp for the search result | | message | string | Human-readable result message | ### Available Platforms The `links` object may contain URLs for the following platforms: #### OTA Platforms - `booking_com` - `expedia` - `hotels_com` - `agoda` - `tripadvisor` - `kayak` - `priceline` #### Hotel Chain Sites - `marriott` - `hilton` - `ihg` - `hyatt` #### Official Website - `official_website` - The hotel's own website ## Common Use Cases ### Travel Comparison Sites Show users multiple booking options for the same hotel, allowing them to compare prices and choose their preferred platform. Perfect for price comparison features ### Affiliate Marketing Generate affiliate revenue by providing users with direct booking links to partner platforms. Maximize conversion opportunities ### Hotel Discovery Apps Help users find and book hotels across multiple platforms from a single interface. Streamline the booking process ### Travel Blogs & Content Add booking options to hotel reviews and travel guides to monetize content. Turn content into revenue ## Error Responses ### 404 No Results The search completed but returned no organic results. Refine the hotel name or add a location. This is a completed lookup and counts as a request. ``` { "type": "https://api.stayapi.com/errors/not-found", "title": "No Results", "status": 404, "detail": "No search results found for this hotel", "error_code": "NO_RESULTS", "instance": "/v1/meta/search", "provider": "meta" } ``` ### 422 Validation Error The required `hotel_name` parameter is missing or invalid. ``` { "type": "https://api.stayapi.com/errors/validation-error", "title": "Validation Error", "status": 422, "detail": "Request validation failed.", "error_code": "VALIDATION_ERROR", "instance": "/v1/meta/search", "provider": "meta" } ``` ### 502 Upstream Error Hotel link search is temporarily unavailable or returned an unusable response; it can be retried. ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR", "instance": "/v1/meta/search", "provider": "meta" } ``` #### Handling Upstream Errors Treat a 502 as transient. Log the correlation\_id from the response and retry later using your normal application-level policy. Request ```curl curl -X GET "https://api.stayapi.com/v1/meta/search?hotel_name=Four%20Seasons%20Resort%20Bali&location=Jimbaran%2C%20Indonesia" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" ``` Response ```json { "success": true, "hotel_name": "Four Seasons Resort Bali", "location": "Jimbaran, Indonesia", "links": { "booking_com": "https://www.booking.com/hotel/id/four-seasons-resort-bali-at-jimbaran-bay.html", "expedia": "https://www.expedia.com/Jimbaran-Hotels-Four-Seasons-Resort-Bali.h1234567.Hotel-Information", "hotels_com": "https://hotels.com/ho123456/four-seasons-resort-bali-jimbaran-indonesia/", "agoda": "https://www.agoda.com/four-seasons-resort-bali-at-jimbaran-bay/hotel/bali-id.html", "tripadvisor": "https://www.tripadvisor.com/Hotel_Review-g469404-d301386-Reviews-Four_Seasons_Resort_Bali.html", "kayak": null, "priceline": null, "marriott": null, "hilton": null, "ihg": null, "hyatt": null, "official_website": "https://www.fourseasons.com/jimbaran/" }, "metadata": { "total_results_found": 6, "retrieved_at": "2025-01-07T12:50:26Z" }, "message": "Successfully found 6 links for the hotel", "retrieved_at": "2025-01-07T12:50:26Z" } ``` ```json { "type": "https://api.stayapi.com/errors/internal-error", "title": "Internal Server Error", "status": 500, "detail": "An unexpected error occurred while processing the request.", "error_code": "CONFIGURATION_ERROR" } ``` --- Source: https://stayapi.com/docs/endpoints/meta-match GET # Hotel Match API Match hotel names from your database to their canonical URLs on major OTA platforms. Perfect for normalizing hotel data across different systems. ## Overview #### Primary Use Case Ideal for matching hotels in your database to their exact OTA pages when hotel names may vary (e.g., "Sheraton NYC" vs "Sheraton New York Times Square Hotel"). The Hotel Match endpoint uses intelligent search to find the exact OTA page for a hotel you have in your database. It validates that the result is actually a hotel page on the specified platform, returning null if no confident match is found. ### Endpoint URL GET https://api.stayapi.com/v1/meta/match ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | name | string | Required | The hotel name from your database to match. Can include location for better accuracy. | | platform | string | Required | Target OTA platform. One of: `booking`, `agoda`, `tripadvisor`, `expedia`, `priceline`, `tripcom`, `kayak` | #### Pro Tip Include location in the name parameter for better matching accuracy. For example: "Sheraton New York Times Square" instead of just "Sheraton NYC". ## Supported Platforms `booking` Booking.com hotel pages Pattern: booking.com/hotel/{cc}/{slug}.html `agoda` Agoda hotel pages Pattern: agoda.com/{slug}/hotel/{city}-{cc}.html `tripadvisor` TripAdvisor hotel review pages Pattern: tripadvisor.com/Hotel\_Review-{id}-... `expedia` Expedia hotel information pages Pattern: expedia.com/{city}-Hotels-{name}.h{id}.Hotel-Information `priceline` Priceline hotel deal pages Pattern: priceline.com/hotel-deals/.../H{id}/... `tripcom` Trip.com hotel detail pages Pattern: trip.com/hotels/{city}-hotel-detail-{id}/... `kayak` KAYAK hotel pages, accepted by the KAYAK details, photos, amenities, and URL-to-ID endpoints Pattern: kayak.com/{slug}.{hotel\_id}.ksp ## Response Format ### Success Response (200 OK) | Field | Type | Description | | --- | --- | --- | | success | boolean | Always `true` for successful requests | | query.name | string | The hotel name used for matching | | query.platform | string | The platform used for matching | | match | object | null | Matched hotel data, or `null` if no confident match found | | match.title | string | Hotel title from the OTA platform | | match.description | string | Meta description snippet from the search result | | match.url | string | Canonical URL on the OTA platform | | message | string | null | Optional status message (e.g., reason for null match) | ## Common Use Cases ### Hotel Data Normalization Match hotels from your database to their canonical OTA URLs when names may vary across systems. Standardize your hotel inventory ### Multi-Platform Linking Build a mapping table of hotel URLs across different OTA platforms for your hotel database. Connect hotels across platforms ### Affiliate Link Generation Generate verified OTA URLs for hotels to use in affiliate marketing campaigns. Monetize your hotel content ### Data Enrichment Enrich your hotel records with verified URLs from major booking platforms. Complete your hotel data ## Error Responses ### 400 Bad Request Missing required parameters or invalid platform value. ``` { "detail": [ { "loc": ["query", "platform"], "msg": "value is not a valid enumeration member", "type": "type_error.enum" } ] } ``` ### 404 No Match Found No matching hotel page found on the specified platform. ``` { "type": "https://api.stayapi.com/errors/not-found", "title": "No Match Found", "status": 404, "detail": "No matching hotel page found on Booking.com", "error_code": "NO_MATCH", "name": "Some Unknown Hotel ABC", "platform": "booking" } ``` Error codes: `NO_RESULTS` (no search results) or `NO_MATCH` (results found but URL pattern didn't match). ### 502 Upstream Error Search service temporarily unavailable. ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR" } ``` Request ```curl curl -X GET "https://api.stayapi.com/v1/meta/match?name=Sheraton%20New%20York%20Times%20Square&platform=booking" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" ``` Response ```json { "success": true, "query": { "name": "Sheraton New York Times Square", "platform": "booking" }, "match": { "title": "Sheraton New York Times Square Hotel", "description": "Featuring an extensive health center and a ticket service for popular New York shows, Sheraton New York Times Square Hotel is 180 feet from the 7th Avenue.", "url": "https://www.booking.com/hotel/us/sheraton-new-york-towers.html" }, "message": null } ``` ``` { "type": "https://api.stayapi.com/errors/not-found", "title": "No Match Found", "status": 404, "detail": "No matching hotel page found on Booking.com", "error_code": "NO_MATCH", "name": "Some Unknown Hotel ABC", "platform": "booking" } ``` ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR" } ``` --- Source: https://stayapi.com/docs/endpoints/meta-coordinates-lookup GET # Coordinates Lookup API Turn a free-text place name — a city, neighborhood, landmark, or airport — into geographic coordinates you can use anywhere. ## Overview #### Primary Use Case Resolve a place name to latitude/longitude, then feed those coordinates into any of StayAPI's location-based endpoints (for example, searching for hotels or restaurants near a location). Many StayAPI endpoints search by latitude and longitude. This endpoint is the bridge: give it a place name and it returns the resolved location with coordinates, a place type, and a country code. ### Endpoint URL GET https://api.stayapi.com/v1/meta/coordinates-lookup ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | term | string | Required | The place name to resolve (e.g. `Manhattan`, `Central Park`, `Paris`). Whitespace is trimmed; an empty value returns a 400. | | limit | integer | Optional | Maximum number of locations to return (1–25, default 10). The lookup typically resolves to a single best match. | ## Response Format ### Success Response (200 OK) | Field | Type | Description | | --- | --- | --- | | success | boolean | Always `true` on a 2xx response | | query | string | The (trimmed) term you searched | | total | integer | Number of locations returned (`0` if nothing matched) | | locations | array | List of matching locations (see fields below) | ### Location Object | Field | Type | Description | | --- | --- | --- | | name | string | Full formatted address / label of the place | | type | string | Place type — e.g. `locality`, `country`, `airport`, `point_of_interest` | | latitude | number | Latitude of the location | | longitude | number | Longitude of the location | | country | string | ISO 3166-1 alpha-2 country code (may be `null`) | | place\_id | string | Stable identifier for the location | #### No matches A valid query that matches nothing is still a success: you get HTTP 200 with "total": 0 and an empty "locations" array — not an error. ## Common Use Cases ### Powering Location Search Let users type a city or neighborhood, resolve it to coordinates, then search hotels or restaurants near that point. Name in, coordinates out ### Map Centering Center a map on a searched place using the returned latitude and longitude. Instant map focus ### Data Enrichment Attach coordinates and a country code to place names in your own database. Normalize your data ### Autosuggest Backends Resolve a selected suggestion to coordinates before running a geo query. Bridge UI to search ## Error Responses Errors follow the [RFC 7807 Problem Details](https://www.rfc-editor.org/rfc/rfc7807) format. ### 400 Bad Request The `term` parameter is missing or empty. ``` { "type": "https://api.stayapi.com/errors/invalid-input", "title": "Invalid Input", "status": 400, "detail": "Parameter 'term' must not be empty.", "error_code": "INVALID_INPUT" } ``` ### 502 Upstream Error The coordinates lookup was temporarily unavailable. Retry after a short delay. ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR" } ``` Request ```curl curl -X GET "https://api.stayapi.com/v1/meta/coordinates-lookup?term=Manhattan" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "query": "manhattan", "total": 1, "locations": [ { "name": "Manhattan, New York, NY, USA", "type": "sublocality", "latitude": 40.7685167, "longitude": -73.9821938, "country": "US", "place_id": "ChIJYeZuBI9YwokRjMDs_IEyCwo" } ] } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-input", "title": "Invalid Input", "status": 400, "detail": "Parameter 'term' must not be empty.", "error_code": "INVALID_INPUT" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/destinations-lookup GET # Destination Lookup API Convert free-form location names into Booking.com destination IDs for precise hotel searches. ## Overview #### Live Booking.com Suggestions This endpoint returns fast, reliable Booking.com destination suggestions with support for multiple location types (cities, districts, airports, landmarks). The Destination Lookup endpoint resolves free-form location queries (like "Barcelona", "Paris", or "New York") into destination IDs and types. It provides instant, accurate destination suggestions including cities, districts, airports, and landmarks - useful when you don't know the exact destination ID but want to search for hotels in a specific location. ### Updated Behavior The API now returns `success: true` whenever a valid `dest_id` is found and returned. When multiple destinations match, it automatically uses the first suggestion as default while still returning all options. The `success` field now simply indicates whether a usable destination ID was found. ### Endpoint URL GET https://api.stayapi.com/v1/booking/destinations/lookup ### Use Case Use this endpoint to find the `dest_id` before calling the [Hotel Search endpoint](/docs/endpoints/booking/search). This two-step workflow allows users to search by familiar location names instead of numeric IDs. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Location name to search for (e.g., "Barcelona", "Paris", "New York", "Phuket") | | language | string | Optional | Language code for results (default: "en-us"). Examples: "en-us", "fr", "de", "es" | ## Response Fields | Field | Type | Description | | --- | --- | --- | | success | boolean | True when a valid dest\_id is found and returned, false only when no destinations found or an error occurs | | query | string | The original query string provided | | dest\_id | integer | Booking.com destination ID (populated with first suggestion when multiple matches exist) | | dest\_type | string | Type of destination: "CITY", "REGION", "DISTRICT", "AIRPORT", "LANDMARK" (populated with first suggestion when multiple matches exist) | | normalized\_query | string | Normalized location name from Booking.com (populated with first suggestion's label when multiple matches exist) | | suggestions | array | List of alternative destinations if query is ambiguous | | message | string | Descriptive message about the result | ## Common Workflow ### Two-Step Hotel Search 1. 1 #### Lookup Destination ID Call this endpoint with a location name to get the `dest_id`. GET /v1/booking/destinations/lookup?query=Barcelona 2. 2 #### Search Hotels Use the returned `dest_id` to search for hotels. GET /v1/booking/search?dest\_id=20014181&dest\_type=CITY **💡 Pro Tip:** Cache destination IDs on your end to avoid repeated lookups for popular locations. ## Key Features ### Live Suggestions Returns Booking.com's own real-time destination suggestions. ### Rich Location Types Returns cities, districts, airports, landmarks, and regions - not just cities. Get comprehensive location suggestions. ### Smart Matching Single unambiguous matches return destination ID directly. Multiple matches return suggestions for user selection. ### Detailed Labels Returns up to 5 suggestions with full location labels (e.g., "Paris, Ile de France, France") to help users choose correctly. ## Related Endpoints [ ### Hotel Search Search for hotels using the dest\_id from this endpoint ](/docs/endpoints/booking/search)[ ### Hotel Details Get detailed information about specific hotels ](/docs/endpoints/booking/hotel-details) Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/destinations/lookup?query=Barcelona" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "query": "Barcelona", "normalized_query": "Barcelona, Catalonia, Spain", "dest_id": -372490, "dest_type": "CITY", "suggestions": [], "message": "Resolved destination" } ``` ``` { "success": true, "query": "Barcelona", "normalized_query": "Barcelona, Catalonia, Spain", "dest_id": -372490, "dest_type": "CITY", "suggestions": [ { "dest_id": -372490, "dest_type": "CITY", "label": "Barcelona, Catalonia, Spain" }, { "dest_id": 2287, "dest_type": "DISTRICT", "label": "Downtown Barcelona, Barcelona, Catalonia, Spain" }, { "dest_id": 41, "dest_type": "AIRPORT", "label": "Barcelona El Prat Airport, Barcelona, Catalonia, Spain" }, { "dest_id": 1288, "dest_type": "DISTRICT", "label": "Gothic Quarter, Barcelona, Catalonia, Spain" }, { "dest_id": 203351, "dest_type": "LANDMARK", "label": "Sants Railway Station, Barcelona, Catalonia, Spain" } ], "message": "Multiple destinations found. Using first suggestion as default. You can select a different one if needed." } ``` ```json { "success": false, "query": "InvalidLocation123", "normalized_query": null, "dest_id": null, "dest_type": null, "suggestions": [], "message": "Unable to resolve destination. Try a more specific query or use suggestions if available." } ``` --- Source: https://stayapi.com/docs/endpoints/booking/url-to-id GET # URL to Hotel ID Convert Booking.com hotel URLs or slugs to their numeric hotel IDs. ## Overview The URL to Hotel ID endpoint extracts the numeric hotel ID from any Booking.com hotel URL or slug. This is useful when you have a hotel URL but need the numeric ID for other API calls like the reviews endpoint. ### Endpoint URL GET https://api.stayapi.com/v1/booking/hotel/url-to-id ### Use Case Use this endpoint when you have a Booking.com hotel URL (from a user or another source) and need to get the numeric hotel ID for use with other endpoints. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Booking.com hotel URL or slug in any of the accepted formats (see below) | ### Accepted URL Formats - 1 Full URL `https://www.booking.com/hotel/th/baan-coconut.html` - 2 Country code + slug `th/baan-coconut` - 3 Just the slug `baan-coconut` Note: Assumes Thailand (th) as default country ## Response Fields | Field | Type | Description | | --- | --- | --- | | hotel\_id | string | The numeric Booking.com hotel ID | | url | string | The normalized full Booking.com URL | ## Common Workflow ### URL to Reviews Flow 1. 1 #### Get Hotel ID from URL Call this endpoint with the hotel URL to get the numeric ID. GET /v1/booking/hotel/url-to-id?url=th/baan-coconut 2. 2 #### Use Hotel ID for API Calls Use the returned `hotel_id` with other endpoints. GET /v1/booking/hotel/reviews?url=https://www.booking.com/hotel/th/baan-coconut.html **Note:** Cache hotel IDs on your end for frequently accessed hotels. ## Related Endpoints [ ### Hotel Reviews Get reviews for a hotel using its URL ](/docs/endpoints/booking/hotel-reviews)[ ### Hotel Details Get detailed information about a hotel ](/docs/endpoints/booking/hotel-details) Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/hotel/url-to-id?url=th/baan-coconut" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "hotel_id": "1302021", "url": "https://www.booking.com/hotel/th/baan-coconut.html" } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Hotel ID Not Found", "status": 404, "detail": "Could not extract hotel ID from the provided URL", "error_code": "NOT_FOUND", "provider": "booking", "provided_url": "invalid-hotel-slug" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-details GET # Hotel Details API v2 Get hotel information with a compact response shape. Returns top-level hotel\_id, flat data object, and retrieval timestamp. #### v1 deprecated `/v1/booking/hotel/details` is still available for existing integrations but deprecated. Use `/v2/booking/hotel/details` for all new development. ## Overview The Hotel Details v2 endpoint accepts a `hotel_id` and returns a compact response with property classification, location, ratings, a main photo, and page\_name. Includes a nullable property description and nullable check-in/out times. Nested metadata is excluded. ### Endpoint URL GET https://api.stayapi.com/v2/booking/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Booking.com hotel ID (e.g., `1331780`). | ## Description, check-in/out times, and property classification `data.description` is the property description as a string, or `null` when unavailable. `data.check_in_time` is the earliest check-in and `data.check_out_time` the latest check-out, each an `"HH:MM"` string or `null` when unavailable. `data.property_type` is a string or `null`. It reports Booking.com’s property category, for example `HOTEL`, `APARTMENT`, `HOLIDAY_HOME`, or `CHALET`. These examples are not an exhaustive enum: clients should accept new string values. The field is `null` when the category is unavailable. ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx (400, 404, 500, 502, 503, 504) with Problem Details. - **400** `MISSING_PARAMETER`: `hotel_id` is required. - **400** `INVALID_HOTEL_ID`: `hotel_id` must be numeric. - **400** `INVALID_PARAMETERS`: `url` param is not accepted (use v1 for URL lookups). - **404** Not Found: Upstream indicates the hotel is missing. - **502** `UPSTREAM_ERROR`: Booking.com could not complete the request. - **503** Service Unavailable: Upstream rate-limited/maintenance (may include `Retry-After`). - **504** Upstream Timeout: The provider timed out. - **500** `INTERNAL_ERROR`: Unexpected processing errors. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. Request ```curl curl -X GET "https://api.stayapi.com/v2/booking/hotel/details?hotel_id=1331780" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" ``` Response ```json { "success": true, "hotel_id": "1331780", "data": { "hotel_name": "Hotel Meslay Republique", "description": null, "property_type": "HOTEL", "address": "3, rue Meslay", "city": "Paris", "country": "fr", "postal_code": "75003", "latitude": 48.8673, "longitude": 2.362240, "star_rating": 3, "review_score": 8.1, "review_count": 3022, "check_in_time": "15:00", "check_out_time": "12:00", "main_photo_url": "https://cf.bstatic.com/xdata/images/hotel/square200/44369511.jpg?k=…&o=", "page_name": "meslay-republique" }, "message": "Success", "retrieved_at": "2026-04-01T12:00:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Not Found", "status": 404, "detail": "Hotel not found for the requested hotel ID. The hotel may have been removed or the ID is incorrect.", "error_code": "NOT_FOUND", "provider": "booking" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-photos GET # Hotel Photos API v2 Get a hotel's full photo gallery. Each photo includes signed, ready-to-use image URLs at three sizes. #### URLs are signed and ready to use Booking's image CDN requires a signed token on every image URL — unsigned URLs return `401 Unauthorized`. All URLs returned here carry that token. The token is size-independent, so you can swap the size segment (`square200` / `square600` / `max1024x768`) in any URL and it will still load. ## Overview The Hotel Photos endpoint accepts a `hotel_id` and returns the property's full photo gallery. Each item has a `photo_id` and three signed URLs: `thumbnail_url` (square200), `medium_url` (square600), and `large_url` (max1024x768). The gallery is available even for hotels with no current availability. ### Endpoint URL GET https://api.stayapi.com/v2/booking/hotel/photos ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Booking.com hotel ID (e.g., `1331780`). Convert a Booking URL first with the [URL to Hotel ID](/docs/endpoints/booking/url-to-id) endpoint. | ## Response fields Each entry in the `photos` array contains: - `photo_id` — Booking's numeric photo identifier. - `thumbnail_url` — signed URL, `square200` size. - `medium_url` — signed URL, `square600` size. - `large_url` — signed URL, `max1024x768` size. Top level also includes `photo_count` and `retrieved_at`. The first photo in the array is the hotel's main photo (the same image as `main_photo_url` on the [Hotel Details](/docs/endpoints/booking/hotel-details) endpoint). ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx (400, 404, 500, 502, 503) with Problem Details. - **400** `MISSING_PARAMETER`: `hotel_id` is required. - **400** `INVALID_HOTEL_ID`: `hotel_id` must be numeric. - **400** `INVALID_PARAMETERS`: the `url` param is not accepted — convert it first with URL to Hotel ID. - **404** Not Found: Upstream indicates the hotel is missing. - **502** `UPSTREAM_ERROR`: Booking.com could not complete the request. - **503** Service Unavailable: Upstream rate-limited/maintenance (may include `Retry-After`). - **500** `INTERNAL_ERROR`: Unexpected processing errors. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. Request ```curl curl -X GET "https://api.stayapi.com/v2/booking/hotel/photos?hotel_id=1331780" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" ``` Response ```json { "success": true, "hotel_id": "1331780", "photos": [ { "photo_id": "141411508", "thumbnail_url": "https://cf.bstatic.com/xdata/images/hotel/square200/141411508.jpg?k=…&o=", "medium_url": "https://cf.bstatic.com/xdata/images/hotel/square600/141411508.jpg?k=…&o=", "large_url": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/141411508.jpg?k=…&o=" } ], "photo_count": 34, "message": "Success", "retrieved_at": "2026-04-01T12:00:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Not Found", "status": 404, "detail": "Hotel not found for the requested hotel ID. The hotel may have been removed or the ID is incorrect.", "error_code": "NOT_FOUND", "provider": "booking" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-reviews GET # Hotel Reviews API Access detailed customer reviews, ratings, and feedback from various booking platforms including Booking.com. ## Overview #### Rich Review Data Get comprehensive review information including ratings, text reviews, reviewer details, and review metadata for in-depth analysis. The Hotel Reviews endpoint provides access to customer reviews and ratings from major booking platforms. Perfect for sentiment analysis, hotel performance tracking, and providing social proof to your users. ### Endpoint URL GET https://api.stayapi.com/v1/booking/hotel/reviews ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Booking.com hotel ID (numeric string, e.g., "1302021") | | page | integer | Optional | Page number for pagination (default: 1) | | per\_page | integer | Optional | Number of reviews per page (default: 10, max: 25) | | language | string | Optional | Filter by language group (e.g., "en", "fr", "es"); regional variants share a group. Omit for all languages. | | sort | string | Optional | Review ordering. One of `most_relevant` (default), `recent_desc`, `recent_asc`, `score_asc`, `score_desc`. Use `recent_desc` for newest-first order — ideal for date-range backfills. | | include\_stay\_dates | boolean | Optional | Default false. Include available check-in and check-out dates. | #### Date-range backfill (e.g. last 12 months) Pass sort=recent\_desc, deduplicate by review id across pages, and stop as soon as a review's reviewed\_date falls past your cutoff. This typically fetches a small fraction of a property's total review history instead of every review ever submitted. ## Common Use Cases ### Sentiment Analysis Analyze customer sentiment and satisfaction trends to understand hotel performance over time. Perfect for business intelligence ### Social Proof Display recent customer reviews to build trust and encourage bookings on your platform. Increase conversion rates ### Competitive Analysis Compare review trends and ratings across competing hotels in the same market. Market intelligence ### Content Generation Use review highlights and common themes to generate marketing content and descriptions. Automated content creation ## Review identifiers and missing values Review IDs are opaque strings. Store them as returned and deduplicate within a hotel; they do not match historical numeric IDs. Reviewer IDs, travel purpose, and selected room photos are no longer returned. Reviewer-uploaded photos remain available. `is_incentivised` is null when unknown. `guest.nr_reviews` is null when unavailable; do not substitute zero. Relevance ordering can change and pages can overlap. Use `sort=recent_desc` for date backfills and deduplicate by ID. ## Response Format ### Review Object Fields | Field | Type | Description | | --- | --- | --- | | id | string | Opaque review identifier; do not parse as a number | | score | float | Review score (1-10 scale) | | reviewed\_date | string | Review timestamp (YYYY-MM-DD HH:MM:SS, UTC) | | hotelier\_name | string | Nullable reply-author name; null when unavailable | | is\_incentivised | boolean | null | Whether review was incentivised; null when unknown | | guest (object) | | guest.name | string | Reviewer's name | | guest.avatar | string | Reviewer's profile picture URL | | guest.nr\_reviews | integer | null | Available reviewer review count, or null; may differ from historical counts | | guest.country | string | Country code (uppercase) | | guest.country\_code | string | Country code (e.g., "th") | | guest.traveler\_type | string | Type of traveler (Solo, Couple, Family, etc.) | | guest.anonymous | boolean | Whether review is anonymous | | stay\_details (object) | | stay\_details.room\_type | string | Name of the room type booked | | stay\_details.nights | integer | Number of nights stayed | | stay\_details.checkin | string | null | Included only with include\_stay\_dates=true. Check-in date (YYYY-MM-DD), or null when unavailable. | | stay\_details.checkout | string | null | Included only with include\_stay\_dates=true. Check-out date (YYYY-MM-DD), or null when unavailable. | | review (object) | | review.title | string | Review title/summary (may be null) | | review.positive | string | Positive aspects mentioned (may be null) | | review.negative | string | Negative aspects mentioned (may be null) | | review.language | string | Review language code | | Additional fields | | helpful\_votes | integer | Number of helpful votes | | has\_photos | boolean | Whether the reviewer uploaded photos | | photos | array | Reviewer-uploaded photo URLs | | partner\_reply | string | Hotel response (may be null) | #### Pagination Use the pagination object to implement proper pagination in your application. Large hotels may have thousands of reviews. #### Zero reviews versus an invalid ID A valid Booking.com property with no reviews returns HTTP 200 with reviews\_returned: 0 and an empty reviews array. A numeric hotel\_id that does not exist returns HTTP 404 with error\_code NOT\_FOUND. When the hotel has reviews but none match an explicit language filter, the first page returns NO\_MATCHING\_REVIEWS. ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx (400, 404, 500, 502, 503, 504) with Problem Details. - **400** `INVALID_HOTEL_ID`: Input validation failed (hotel\_id must be a numeric string). - **404** `NOT_FOUND`: The numeric hotel\_id does not identify a Booking.com property. Valid zero-review properties return 200 with an empty result. - **502** `UPSTREAM_ERROR`: Booking.com could not complete the request. - **503** Service Unavailable: Upstream rate-limited/maintenance (may include `Retry-After`). - **504** Upstream Timeout: The provider timed out. - **500** `CONTENT_EXTRACTION_FAILED` or `INTERNAL_ERROR`: Unexpected parsing/processing errors. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. Request ```curl # Example request curl -X GET "https://api.stayapi.com/v1/booking/hotel/reviews?hotel_id=1302021&page=1&per_page=10&language=en" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" # Without language filter curl -X GET "https://api.stayapi.com/v1/booking/hotel/reviews?hotel_id=1302021&page=1&per_page=25" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" # Newest-first for date-range backfill (e.g. last 12 months) # Paginate page=1,2,3... and stop when reviewed_date < your cutoff curl -X GET "https://api.stayapi.com/v1/booking/hotel/reviews?hotel_id=1302021&sort=recent_desc&per_page=25&page=1" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" ``` Response ```json { "success": true, "hotel_id": "1302021", "data": { "reviews_returned": 1, "reviews": [ { "id": "879a6d0c104fafb9", "score": 9.0, "reviewed_date": "2026-11-01 12:00:00", "hotelier_name": null, "is_incentivised": null, "guest": { "name": "Sophie M.", "avatar": "https://cf.bstatic.com/avatar/s1.png", "nr_reviews": 12, "country": "FR", "country_code": "fr", "traveler_type": "Couple", "anonymous": false }, "stay_details": { "room_type": "Deluxe Bungalow", "nights": 5 }, "review": { "title": "Exceptional luxury experience", "positive": "The service was impeccable and the location is perfect.", "negative": null, "language": "en" }, "helpful_votes": 3, "has_photos": true, "photos": ["https://cf.bstatic.com/review_photo.jpg"], "partner_reply": "Thank you for your kind review!" } ], "pagination": { "current_page": 1, "per_page": 10, "has_next_page": true, "has_previous_page": false } }, "message": "Success", "retrieved_at": "2026-01-19T15:00:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-hotel-id", "title": "Invalid Hotel ID", "status": 400, "detail": "Parameter 'hotel_id' must be a numeric string.", "instance": "/v1/booking/hotel/reviews", "provider": "booking", "error_code": "INVALID_HOTEL_ID" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-reviews-summary GET # Hotel Reviews Summary API Get review metadata including total count, language breakdown, traveler types, and topics for any Booking.com hotel. ## Overview #### Accurate Total Counts This endpoint provides accurate total review counts and breakdowns that are not available from the reviews endpoint. The Hotel Reviews Summary endpoint provides review metadata including the total review count, breakdown by language, traveler type, and popular topics mentioned in reviews. ### Endpoint URL GET https://api.stayapi.com/v1/booking/hotel/reviews/summary ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx (400, 404, 500, 502, 503, 504) with Problem Details. - **400** `INVALID_HOTEL_ID`: The hotel\_id parameter is missing or not a valid numeric ID. - **404** `NOT_FOUND`: The numeric hotel\_id does not identify a Booking.com property. Valid zero-review properties return 200 with `total_reviews: 0` and empty breakdowns. - **502** `UPSTREAM_ERROR`: Review data is unavailable or inconsistent. - **503** Service Unavailable: Upstream rate-limited/maintenance (may include `Retry-After`). - **504** Upstream Timeout: The provider timed out. - **500** `INTERNAL_ERROR`: Unexpected processing errors. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Booking.com hotel ID (numeric string, e.g., "1302021") | #### Getting the Hotel ID You can get the hotel\_id from the /v1/booking/hotel/details endpoint response. ## Response Structure ### Summary Data - `total_reviews` - Total number of reviews for this hotel - `languages` - Breakdown by language, combining regional variants (array of name/count) - `traveler_types` - Available categories: Couple, Family, Group of friends, Solo traveler (array of name/count); no separate business category - `topics` - Up to ten property-specific topics (array of name/count); topics may overlap #### Zero reviews versus an invalid ID A valid Booking.com property with no reviews returns HTTP 200 with total\_reviews: 0 and empty language, traveler-type, and topic arrays. A numeric hotel\_id that does not exist returns HTTP 404 with error\_code NOT\_FOUND. ## Usage Examples ### Input requirement Provide the numeric Booking.com hotel ID in the `hotel_id` parameter. Example: `1302021` #### Performance Tip Use this endpoint when you need accurate total counts or review breakdowns. For individual reviews, use the /hotel/reviews endpoint. Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/hotel/reviews/summary?hotel_id=1302021" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "1302021", "data": { "total_reviews": 60, "languages": [ {"name": "English", "count": 31}, {"name": "Russian", "count": 16}, {"name": "Chinese", "count": 8}, {"name": "German", "count": 5} ], "traveler_types": [ {"name": "Couple", "count": 25}, {"name": "Family", "count": 18}, {"name": "Solo traveler", "count": 10}, {"name": "Group of friends", "count": 7} ], "topics": [ {"name": "Beach", "count": 15}, {"name": "Room", "count": 12}, {"name": "Staff", "count": 10}, {"name": "Pool", "count": 8} ] }, "message": "Success", "retrieved_at": "2026-01-19T15:00:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-hotel-id", "title": "Invalid Hotel ID", "status": 400, "detail": "Parameter 'hotel_id' must be a numeric string.", "instance": "/v1/booking/hotel/reviews/summary", "provider": "booking", "error_code": "INVALID_HOTEL_ID" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-reviews-scores GET # Hotel Review Scores API Get aggregated review scores by category and traveler type for any Booking.com hotel. ## Overview #### Detailed Score Breakdown This endpoint provides category-level scores (staff, cleanliness, comfort, etc.) and per-traveler-type breakdowns that are not available from the reviews or summary endpoints. The Hotel Review Scores endpoint returns the overall score, individual category scores on a 1-10 scale, five rating bands, and a breakdown by traveler type (family, couple, solo, group, business). ### Endpoint URL GET https://api.stayapi.com/v1/booking/hotel/reviews/scores ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Booking.com hotel ID (numeric string, e.g., "224399") | #### Getting the Hotel ID Use the /v1/booking/hotel/url-to-id endpoint to convert a Booking.com URL or slug to a numeric hotel ID. ## Response Structure ### Scores - `scores.overall` - Overall review score (1-10 scale); null for zero reviews - `scores.staff` - Staff score - `scores.cleanliness` - Cleanliness score - `scores.comfort` - Comfort score - `scores.facilities` - Facilities score - `scores.location` - Location score - `scores.value_for_money` - Value for money score - `scores.wifi` - WiFi score ### Other Fields - `total_reviews` - Total number of reviews - `score_percentage` - Five ordered bands with score\_start, score\_end (exclusive), score\_word, count and whole-number percent: [9,10.1) Wonderful, [7,9) Good, [5,7) Okay, [3,5) Poor, [1,3) Very Poor. Independently rounded percentages may not sum to exactly 100. Empty for zero reviews. ### Traveler Type Breakdown - `scores_by_traveler_type[].type` - Available nonzero canonical types: solo\_traveller, couple, family, group\_of\_friends, review\_category\_business\_travellers. Business overlaps other groups; group\_of\_friends combines the former separate group/friends rows. - `scores_by_traveler_type[].overall` - Overall score for this available nonzero traveler type (1–10; never null) - `scores_by_traveler_type[].count` - Number of reviews from this type - `scores_by_traveler_type[].scores` - Per-category scores for this type; unavailable optional scores are null #### Zero reviews versus an invalid ID A valid Booking.com property with no reviews returns HTTP 200 with total\_reviews: 0 and empty score breakdowns. A numeric hotel\_id that does not exist returns HTTP 404 with error\_code NOT\_FOUND. The former `score_distribution` field has been removed. Use `score_percentage` for the five bands. Examples are illustrative; counts change over time. ## Usage Examples ### Input requirement Provide the numeric Booking.com hotel ID in the `hotel_id` parameter. Example: `224399` #### Use Case This endpoint is ideal for building comparison dashboards or tracking score trends across categories and traveler segments. ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx (400, 404, 500, 502, 503, 504) with Problem Details. - **400** `INVALID_HOTEL_ID`: The hotel\_id parameter is missing or not a valid numeric ID. - **404** `NOT_FOUND`: The numeric hotel\_id does not identify a Booking.com property. Valid zero-review properties return 200. - **502** `UPSTREAM_ERROR`: Review data is unavailable or inconsistent. - **500** `INTERNAL_ERROR`: Unexpected processing errors. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/hotel/reviews/scores?hotel_id=224399" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "224399", "data": { "scores": { "overall": 8.0, "cleanliness": 8.4, "staff": 8.5, "comfort": 8.3, "facilities": 8.1, "location": 9.3, "value_for_money": 7.6, "wifi": 5.6 }, "total_reviews": 12614, "score_percentage": [ {"score_start": 9, "score_end": 10.1, "score_word": "Wonderful", "count": 6307, "percent": 50}, {"score_start": 7, "score_end": 9, "score_word": "Good", "count": 3784, "percent": 30}, {"score_start": 5, "score_end": 7, "score_word": "Okay", "count": 1261, "percent": 10}, {"score_start": 3, "score_end": 5, "score_word": "Poor", "count": 631, "percent": 5}, {"score_start": 1, "score_end": 3, "score_word": "Very Poor", "count": 631, "percent": 5} ], "scores_by_traveler_type": [ { "type": "solo_traveller", "overall": 7.9, "count": 1258, "scores": { "cleanliness": 8.3, "staff": 8.4, "comfort": 8.2, "facilities": 8.0, "location": 9.3, "value_for_money": 7.5, "wifi": 5.5 } }, { "type": "couple", "overall": 8.1, "count": 4202, "scores": { "cleanliness": 8.5, "staff": 8.5, "comfort": 8.4, "facilities": 8.2, "location": 9.3, "value_for_money": 7.7, "wifi": 5.6 } } ] }, "message": "Success", "retrieved_at": "2026-03-02T12:00:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-hotel-id", "title": "Invalid Hotel ID", "status": 400, "detail": "Parameter 'hotel_id' must be a numeric string. Use /hotel/url-to-id to convert URLs.", "instance": "/v1/booking/hotel/reviews/scores", "provider": "booking", "error_code": "INVALID_HOTEL_ID" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/room-types GET # Room types Read a hotel's static room-type catalog without choosing stay dates or guests. ## Overview Returns room names, descriptions, sizes, bed configurations, photos, facilities, and bathroom and smoking metadata in the requested language when available. English (en-us) is the default; individual translations may be unavailable. The catalog is independent of stay dates and occupancy. A room type is a category, not a physical room or a stock count. For prices, bookable rate plans, and availability, use [Room availability & rates](/docs/endpoints/booking/hotel-rooms). Room-type `id` values match that endpoint's room IDs, so you can join static content to a dated quote. `GET https://api.stayapi.com/v1/booking/hotel/room-types` Authenticate with `x-api-key: YOUR_API_KEY`. Standard account quota applies. ## Query parameters | Parameter | Type | Description | | --- | --- | --- | | `hotel_id` | Positive integer, required | Booking.com hotel ID, for example `346648` (Angsana Laguna Phuket). | | `language` | String, optional | Default `en-us`. Two-letter language with an optional two-letter region, for example `it` or `en-gb`. Case-insensitive; translations may be unavailable. | No dates, occupancy, currency, sorting, filtering, or pagination parameters. If you have a URL, first use [URL to ID](/docs/endpoints/booking/url-to-id). Related [hotel details](/docs/endpoints/booking/hotel-details) describe the property as a whole. ## Response fields - `success`: true on success; `retrieved_at`: retrieval timestamp. - `data.hotel_info`: hotel `id` and `name`. - `data.room_types`: array of distinct room types. An empty catalog is valid and does not mean sold out. - Each type has a string `id`; nullable `name`, `description`, `room_type_id` (source classification), and numeric `room_size_m2`. - `is_smoking`: nullable boolean; `bathroom_count`: nullable integer; `bathroom_attributes`: nullable object with nullable `is_ensuite` and `is_external`. Preserve source values; zero is not a capacity estimate. - `bed_configurations`: nullable array of objects with nullable `beds` arrays. A bed contains `bed_type`, `count`, and `name_with_count`, all nullable. `name_with_count` preserves localized text when available and is explicitly null otherwise. Labels and dimensions are not inferred from bed\_type. Bed counts do not establish maximum guest capacity. - `photos`: nullable array of objects with string `id`, nullable `url`, and nullable `thumbnail_url`. - `facilities`: nullable array of groups with nullable `category` and `facilities` arrays. Facility entries have string `id` and nullable `name`. - `data.metadata.total_room_types`: count of returned types, never physical rooms or available stock. Unknown optional values are `null`; explicitly empty arrays remain `[]`. No prices, dates, availability flags, physical inventory counts, or inferred capacity are returned. Content can change as the hotel updates its listing. ## Errors Errors use non-2xx RFC 7807 Problem Details: 422 for missing or invalid hotel\_id or malformed language; 502 for unavailable or invalid source data (including an unrecognized hotel ID); 503 for temporary service unavailability; 504 for timeout; 500 for unexpected processing errors. Authentication and quota errors follow the standard account contract. Error responses use `application/problem+json`. A 2xx response always indicates success. ## MCP Use `booking_hotel_room_types` with a numeric-string `hotel_id` or a full canonical Booking hotel `url`, such as `https://www.booking.com/hotel/th/angsana-laguna-phuket.html`. Supply at least one; hotel\_id takes precedence. Optional `language` defaults to `en-us`; use `it` for Italian. The tool returns the same success envelope. See [MCP setup](/docs/mcp). Observed response excerpt: one of 15 room types. Other types and optional fields are omitted for readability. Request ```curl curl "https://api.stayapi.com/v1/booking/hotel/room-types?hotel_id=346648&language=en-us" -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "data": { "hotel_info": { "id": "346648", "name": "Angsana Laguna Phuket" }, "room_types": [ { "id": "34664801", "name": "Laguna Room - King", "room_size_m2": 40.0, "is_smoking": false, "bathroom_count": 0, "bed_configurations": [ { "beds": [ { "bed_type": "EXTRA_LARGE_DOUBLE_BED", "count": 1, "name_with_count": null } ] } ] } ], "metadata": { "total_room_types": 15 } }, "retrieved_at": "2026-10-22T12:00:00Z" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-rooms GET # Room availability & rates API Extract comprehensive room details and listed rates from Booking.com hotels by hotel ID. For an inclusive date-by-date overview, see the [Booking price calendar](/docs/endpoints/booking/price-calendar). ## Point of sale and display settings Pass `market=ES` for Spain (Spanish and EUR defaults) or `market=US` for the United States (English and USD). The optional `language` and `currency` parameters override these defaults. Market is an ISO 3166-1 two-letter country code; unknown codes and conflicting `market`/`country_market` values return 400. Legacy `country_market` remains supported and keeps English/USD defaults. Omitting both retains US targeting and English/USD. For search by URL, explicit language/currency query parameters override values embedded in the URL; explicit URL values override market defaults. Defaults: ES es/EUR, US en-us/USD, GB en-gb/GBP, DE de/EUR, FR fr/EUR, IT it/EUR, PT pt-pt/EUR, NL nl/EUR, IE en-gb/EUR, CA en-us/CAD, AU en-gb/AUD, JP ja/JPY. Other valid countries use en-us/USD unless overridden. `data.effective_market` reports `requested_country`, nullable `targeted_country`, `language`, and `currency`. Targeting is best-effort: `country_verified` is false and `verified_country` is null because the response does not independently verify geography. A null target means country targeting was not applied. MCP returns the same object as `effective_market`. ``` {"requested_country":"ES","targeted_country":"ES","country_verified":false,"verified_country":null,"language":"es","currency":"EUR"} ``` For prices, `total_price_value` follows the displayed gross basis and is not guaranteed to include every charge. `taxes_and_charges_value` is the included portion (gross minus net); inspect `tax_breakdown[].included` for excluded taxes. Compare the same stay, occupancy, room, rate conditions and currency. Market can change tax inclusion and displayed totals without changing the all-in price; it does not guarantee a discount or availability. In the verified Spain/US comparison, the same rate displayed US$455 including taxes in Spain and $341 excluding taxes in the US, with the same $455.46 all-in amount. ## Overview #### Live data Returns normalized live room inventory and rate data. The Room availability and rates endpoint returns static per-room information (descriptions, photos, bed configurations, highlights) alongside the listed rates available for a specific date range (prices, refund policies, meal plans, availability). For a catalog independent of dates and occupancy, use the [Room types endpoint](/docs/endpoints/booking/room-types). ### Endpoint URL GET https://api.stayapi.com/v1/booking/hotel/rooms ### Need a hotel ID? Use [/v1/booking/hotel/url-to-id](/docs/endpoints/booking/url-to-id) to convert a Booking.com URL or slug to a numeric hotel ID. ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer (\> 0) | Required | Numeric Booking.com hotel ID (for example, `346648`). | | checkin | string (YYYY-MM-DD) | Optional | Arrival date. Defaults to today + 14 days. | | checkout | string (YYYY-MM-DD) | Optional | Departure date. Defaults to today + 15 days. | | adults | integer | Optional | Number of adults (1–30, default: 2). | | children | integer | Optional | Number of children (0–10, default: 0). | | rooms | integer | Optional | Number of rooms (1–8, default: 1). | | currency | string (ISO 4217) | Optional | Display currency override (market default, otherwise `USD`). Examples: `EUR`, `GBP`, `THB`. | | country\_market | string (ISO-3166) | Optional | Legacy two-letter country target (default: `US`), preserving English/USD defaults. It must match `market` if both are supplied. The echo is a request value, not verified geography. | | children\_ages | string | Optional | Comma-separated integer ages 0–17, for example 5,8. Required when children is positive; the age count must equal children. Omit or leave empty for zero children. | ## Response Structure ### Top-level fields - `success` — boolean, always `true` for 2xx responses. - `data.hotel_info` — basic property info (`id`, `currency_code`). - `data.rooms` — array of room _types_ with static data (see below). - `data.rates` — array of listed blocks for the requested dates (see below). - `data.availability_summary` — deduplicated inventory totals across `data.rates`: - `availability_status` — `available` when at least one listed rate was returned, otherwise `no_inventory`. - `total_available_rooms` — sum of the _maximum_ `room_count_available` per `room_id`, so a room type sold under several rate plans is counted once. `null` when there are no listed rates. - `available_rate_blocks` — number of entries in `data.rates`. - `available_room_types_counted` — number of distinct `room_id`s that contributed a count. - `room_counts_by_room_id` — the per-room-type counts that were summed. - `rates_without_room_count_available` — rate blocks returned without a usable count. - `calculation_method` — human-readable formula string. - `data.search_config` — echoes the guest/date configuration you requested. - `data.metadata` — `hotel_id`, `total_rooms`, `total_blocks`, `arrival_date`, `departure_date`. - `retrieved_at` — ISO-8601 UTC timestamp. ### Per-room fields (`data.rooms[]`) - `id` — stable room-type identifier. - `name` — human-readable room-type name (derived from the first associated rate). - `description` — full room description (may contain HTML formatting). - `ai_description` — short AI-generated comparative description (may contain `` tags). - `room_size_m2`, `room_size_ft2` — room size in metric and imperial units. - `is_smoking`, `is_dormitory` — booleans. - `bathroom_count` — number of bathrooms; `null` when Booking.com doesn't list a count (common for hotel rooms). `private_bathroom` — `true` for a private bathroom, `false` for a shared one, `null` when unknown. - `photos[]` — array with `id`, `url_original`, `url_max300`, `url_square60`, `url_640x200`, and `ratio`. - `bed_configurations[]` — each has a `beds` array with `bed_type`, `name`, `name_with_count`, `count`, `description`, `description_imperial`. - `highlights[]` — each has `id`, `name`, `icon`. ### Per-rate fields (`data.rates[]`) Each entry represents one listed "block" — a specific combination of a room type, a cancellation/refund policy, and a meal plan. A single room type can appear multiple times (for example, refundable vs non-refundable). - `block_id` — unique identifier for this listed option. - `room_id` — links this rate to an entry in `data.rooms[]`. - `name` — full rate name, e.g. _"Laguna Twin Room - Non-refundable"_. - `room_name` — the room-type name without the policy suffix. - `max_occupancy`, `nr_adults`, `nr_children`. - `refundable`, `refundable_until` — cancellation policy. cancellation\_policy\_title is a localized plain-text policy summary, or null when unavailable. cancellation\_deadline\_date is the property-local calendar date of the free-cancellation deadline in YYYY-MM-DD format, or null when unavailable or not applicable. It does not specify an exact cutoff time or time zone and is not a promise that the whole day is refundable. Refer to the rate policy for conditions. refundable\_until remains an exact timestamp or null; cancellation\_policy is unchanged. - `breakfast_included`, `half_board`, `full_board`, `all_inclusive`, `mealplan` — meal configuration. - `room_count_available` — how many rooms of this type Booking.com will sell for the requested dates. It is bounded by the property’s allotment on Booking.com, not its physical inventory, and is typically identical across rate blocks sharing the same `room_id`, so do not sum it across rate blocks. Use `data.availability_summary.total_available_rooms` for a deduplicated total, and compare values only within one property across dates. - `genius_discount_percentage` — Booking.com Genius loyalty discount if applicable. - `price` — object with `total`, `per_night`, `currency`, `formatted`, plus `before_discount` (Booking.com's struck-through price, e.g. `"$642"`) and `discount_name` (e.g. `"Bonus savings"`) when the property offers a discount, otherwise `null`. Booking.com occasionally returns a rate without the discount, so a higher price with a null `before_discount` is an undiscounted quote. ## Usage Tips #### Static vs. dynamic data rooms[] changes rarely (new photos, re-categorisation) — safe to cache for hours or days. rates[] is dynamic (availability, pricing) — refresh per user query. ### Best Practices - Join `rates[].room_id` back to `rooms[].id` to display photos next to each listed rate. - The hotel name may be unavailable here — call [/v1/booking/hotel/details](/docs/endpoints/booking/hotel-details) if you need it. - Empty `rooms` and `rates` arrays with a 200 status mean the property has no availability for the requested dates — try different dates rather than retrying. - If you only have a URL, call `/v1/booking/hotel/url-to-id` once and cache the resulting `hotel_id`. - To override the market currency, pass the `currency` parameter — `hotel_info.currency_code` is the property's native currency when known, otherwise null. Use `rates[].price.currency` for every quoted amount. ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx responses with RFC 7807 Problem Details. - **422** : Missing or invalid `hotel_id` (not a positive integer). - **404** `NOT_FOUND`: Upstream reports the hotel does not exist. - **502** `UPSTREAM_ERROR`: Upstream non-2xx or protocol error. - **503** `SERVICE_UNAVAILABLE`: Upstream WAF challenge or maintenance. - **504** `GATEWAY_TIMEOUT`: Upstream response timed out. - **500** `INTERNAL_ERROR`: Unexpected processing error. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. ## Family occupancy For two adults and a child aged eight, send `adults=2&children=1&children_ages=8`. Multiple ages use a single CSV value, for example `children=2&children_ages=5%2C8`. Missing ages, count mismatches, noninteger ages and ages outside 0–17 return HTTP 400 Problem Details with `error_code: INVALID_OCCUPANCY`. Invalid count types or counts outside 0–10 return HTTP 422. Adults-only requests can omit both child parameters. Each `data.rates[]` includes `fits_requested_occupancy`: true means that one rate accommodates the entire requested party, false means it does not, and null means the fit is unknown. Room alternatives may accommodate only part of your party. Desktop-listed family and multiroom offers report null because no guest allocation is verified. The prices summary selects a verified full-family rate; if none can be verified, prices returns HTTP 502 instead of a misleading family quote. Prices describe one room for the stay, not a combined multiroom reservation total. The rooms parameter does not establish an allocation of guests across rooms. ## Recommended offers When `data.inventory_scope` is `recommended`, the response contains a limited selection of recommended offers. Counts and summaries describe only the returned offers, not complete property inventory. `desktop_listed` identifies the returned desktop offer selection, without a guarantee of complete inventory or bookability. The field may be omitted for other responses. If offers cannot be obtained reliably, the API returns a non-2xx Problem Details error, including `502 UPSTREAM_ERROR`, rather than a false empty result. Use the quoted amounts and tax fields as returned. Do not calculate an anonymous public price from a Genius percentage or a strikethrough amount. | Field | Meaning | | --- | --- | | `data.inventory_scope` | Optional string: `recommended` or `desktop_listed`. Counts cover returned offers only. | | `data.rates[].price.requires_sign_in` | Boolean or null: true for an observed sign-in condition; null when unknown. | ## Quote taxes and missing values When supplied, `price.tax_basis` is `included`, `excluded`, `mixed`, or `unknown`. `price.taxes_included` is boolean or null. `charges_included` and `charges_excluded` are null or objects with nullable `amount`, `formatted`, `currency`, and `item_type`. Preserve these amounts separately; do not add included charges again. Unknown taxes are not zero taxes. Room facilities are available from [the static room-type catalog](/docs/endpoints/booking/room-types), not `rooms[]`. Unobserved cancellation, meal, room, and source-date values can be null; null cancellation is not non-refundable. Requested dates remain in `search_config`. `occupancy_total`, when present, is the priced guest count, without an inferred adult/child split. ## Rate labels `each data.rates[].price object` includes `labels` (an array of readable strings), `genius_discount_pct` (a number or null), and `is_mobile_rate` (a boolean). Labels describe the quoted rate, for example `Mobile rate` or `Bonus savings`. Unlabelled rates return `[]`. Quotes can carry sign-in conditions. `requires_sign_in: true` identifies an explicitly observed sign-in condition; `null` means eligibility is unknown, not a public-rate guarantee. Genius and member labels alone do not establish a sign-in requirement or prove a discount percentage. A null percentage means no rate-specific percentage was observed; `is_mobile_rate: false` means no explicit mobile-rate marker was observed. Labels can vary by market and occupancy and do not guarantee eligibility for logged-in member prices. Existing discount fields remain available. Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/hotel/rooms?hotel_id=346648&checkin=2026-05-05&checkout=2026-05-06&adults=2" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "url": "hotel_id:346648", "data": { "hotel_info": { "id": "346648", "currency_code": "THB" }, "rooms": [ { "id": "34664813", "name": "One-bedroom Loft Suite", "description": "Offering double-height ceilings, the split-level loft overlooks the lagoon. It features a coffee machine, safe and flat-screen TV.", "ai_description": "Double the size with outdoor furniture, patio, and a walk-in shower.", "room_size_m2": 88, "room_size_ft2": 947.22, "is_smoking": false, "is_dormitory": false, "bathroom_count": 1, "private_bathroom": true, "photos": [ { "id": 263386204, "url_original": "https://cf.bstatic.com/xdata/images/hotel/max500/263386204.jpg?k=...", "url_max300": "https://cf.bstatic.com/xdata/images/hotel/max300/263386204.jpg?k=...", "url_square60":"https://cf.bstatic.com/xdata/images/hotel/square60/263386204.jpg?k=...", "url_640x200": "https://cf.bstatic.com/xdata/images/hotel/640x200/263386204.jpg?k=...", "ratio": 1.5 } ], "bed_configurations": [ { "beds": [ { "bed_type": 6, "name": "Queen bed(s)", "name_with_count": "1 queen bed", "count": 1, "description": "151-180 cm wide", "description_imperial": "60-70 inches wide" } ] } ], "highlights": [ { "id": null, "name": "Free WiFi", "icon": "bui_wifi" }, { "id": 11, "name": "Air conditioning", "icon": "bui_weather_snowflake" } ] } ], "rates": [ { "block_id": "34664883_88879319_2_2_0_600415", "room_id": "34664883", "name": "Laguna Twin Room - Non-refundable", "room_name": "Laguna Twin Room", "max_occupancy": 2, "nr_adults": 2, "nr_children": 0, "refundable": false, "refundable_until": null, "cancellation_deadline_date": null, "cancellation_policy_title": "Non-refundable", "breakfast_included": false, "half_board": false, "full_board": false, "all_inclusive": false, "mealplan": "Continental breakfast costs US$28 per person per night.", "room_count_available": 20, "genius_discount_percentage": 0, "fits_requested_occupancy": true, "price": { "total": 137.56, "per_night": 137.56, "currency": "USD", "formatted": "US$138", "before_discount": null, "discount_name": null, "labels": [], "genius_discount_pct": null, "requires_sign_in": null, "is_mobile_rate": false } } ], "availability_summary": { "availability_status": "available", "total_available_rooms": 20, "available_rate_blocks": 1, "available_room_types_counted": 1, "room_counts_by_room_id": { "34664883": 20 }, "rates_without_room_count_available": 0, "calculation_method": "sum(max(room_count_available) grouped by room_id across bookable rate blocks)" }, "search_config": { "nbRooms": 1, "nbAdults": 2, "nbChildren": 0, "childrenAges": [], "checkin": "2026-05-05", "checkout": "2026-05-06" }, "metadata": { "hotel_id": "346648", "total_rooms": 6, "total_blocks": 24, "arrival_date": "2026-05-05", "departure_date": "2026-05-06" } }, "message": "Successfully retrieved room details", "retrieved_at": "2026-04-21T11:06:59Z" } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Hotel Not Found", "status": 404, "detail": "hotelPage: Hotel with id 999999999 was not found.", "error_code": "NOT_FOUND", "provider": "booking", "hotel_id": 999999999 } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-facilities GET # Hotel Facilities API Extract comprehensive property-wide facilities and amenities from Booking.com hotels by hotel ID. ## Overview #### Live data Returns normalized property facilities and amenity groups. The Hotel Facilities endpoint returns a detailed breakdown of property-wide facilities for a Booking.com hotel, organized by category (Bathroom, Bedroom, Food & Drink, Spa, Services, etc.), along with popular highlights and curated accommodation highlights. ### Endpoint URL GET https://api.stayapi.com/v1/booking/hotel/facilities ### Need a hotel ID? Use [/v1/booking/hotel/url-to-id](/docs/endpoints/booking/url-to-id) to convert a Booking.com URL or slug to a numeric hotel ID. ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer (\> 0) | Required | Numeric Booking.com hotel ID (for example, `91703` for Bellagio Las Vegas). | ## Response Structure ### Top-level fields - `success` — boolean, always `true` for 2xx responses. - `hotel_id` — the numeric ID that was queried. - `data.hotel_id` — stringified hotel ID, echoed from the upstream response. - `data.facilities` — object keyed by category name (see below). - `data.highlights` — array of the top popular facility titles (de-duplicated, up to ~10). - `data.accommodation_highlights` — curated hero amenities with icons. - `retrieved_at` — ISO-8601 UTC timestamp. ### Facility categories Category keys are human-readable strings provided by Booking.com. Typical categories include: - **General** , **Internet** , **Services** , **Front Desk Services** - **Bathroom** , **Bedroom** , **Living Area** , **Room amenities** - **Food & Drink** , **Kitchen** , **Media & Technology** - **Spa** , **Activities** , **Outdoors** , **View** - **Business Facilities** , **Cleaning Services** - **Entertainment & Family Services** , **Accessibility** , **Safety & security** , **Transportation** The exact set of categories returned depends on the hotel. Small properties may return only a handful; large resorts can return 20+. ### Accommodation highlights Each entry has `title`, `icon`, and `type`. The `type` field identifies the highlight kind (for example, `WifiFacilityHighlight`, `RestaurantFacilityHighlight`, `BarFacilityHighlight`, `GenericFacilityHighlight`). ## Usage Tips #### Display Strategy Group facilities by category for better UX. Use accommodation\_highlights for hero badges and highlights for a short bullet list. ### Best Practices - Use the `icon` field from `accommodation_highlights` to render matching glyphs. - Cache the response — facility data rarely changes. A 24-hour TTL is usually safe. - If you only have a URL, call `/v1/booking/hotel/url-to-id` once and store the resulting `hotel_id`. - Expect empty `highlights` and `accommodation_highlights` for very small properties. ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx responses with RFC 7807 Problem Details. - **422** : Missing or invalid `hotel_id` (not a positive integer). - **404** `NOT_FOUND`: Upstream reports the hotel does not exist. - **502** `UPSTREAM_ERROR`: Booking.com could not complete the request. - **503** `SERVICE_UNAVAILABLE`: Upstream WAF challenge or maintenance. - **500** `INTERNAL_ERROR`: Unexpected processing error. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/hotel/facilities?hotel_id=91703" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": 91703, "data": { "hotel_id": "91703", "facilities": { "Bathroom": [ "Bathtub or shower", "Free toiletries", "Private bathroom", "Toilet" ], "Bedroom": ["Wardrobe or closet"], "Food & Drink": ["Bar"], "General": ["Hardwood or parquet floors", "Heating"], "Internet": ["Internet"], "Living Area": ["Desk"], "Media & Technology": ["Radio", "TV", "Telephone"], "Services": [ "24-hour front desk", "Baggage storage", "Daily housekeeping", "Fax/Photocopying" ] }, "highlights": ["Internet", "24-hour front desk", "Bar"], "accommodation_highlights": [ { "title": "Private bathroom", "icon": "shower", "type": "GenericFacilityHighlight" }, { "title": "Free Wifi", "icon": "internet", "type": "WifiFacilityHighlight" }, { "title": "Bathtub or shower", "icon": "shower", "type": "GenericFacilityHighlight" }, { "title": "Baggage storage", "icon": "luggage_storage", "type": "GenericFacilityHighlight" }, { "title": "Bar", "icon": "bar", "type": "BarFacilityHighlight" } ] }, "message": "Success", "retrieved_at": "2026-04-17T15:53:57Z" } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Hotel Not Found", "status": 404, "detail": "Hotel not found", "error_code": "NOT_FOUND", "provider": "booking", "hotel_id": 99999999 } ``` --- Source: https://stayapi.com/docs/endpoints/booking/search GET # Hotel Search API Search for available hotels in any destination with flexible date and guest configurations. ## Point of sale and display settings Pass `market=ES` for Spain (Spanish and EUR defaults) or `market=US` for the United States (English and USD). The optional `language` and `currency` parameters override these defaults. Market is an ISO 3166-1 two-letter country code; unknown codes and conflicting `market`/`country_market` values return 400. Legacy `country_market` remains supported and keeps English/USD defaults. Omitting both retains US targeting and English/USD. For search by URL, explicit language/currency query parameters override values embedded in the URL; explicit URL values override market defaults. Defaults: ES es/EUR, US en-us/USD, GB en-gb/GBP, DE de/EUR, FR fr/EUR, IT it/EUR, PT pt-pt/EUR, NL nl/EUR, IE en-gb/EUR, CA en-us/CAD, AU en-gb/AUD, JP ja/JPY. Other valid countries use en-us/USD unless overridden. `data.effective_market` reports `requested_country`, nullable `targeted_country`, `language`, and `currency`. Targeting is best-effort: `country_verified` is false and `verified_country` is null because the response does not independently verify geography. A null target means country targeting was not applied. MCP returns the same object as `effective_market`. ``` {"requested_country":"ES","targeted_country":"ES","country_verified":false,"verified_country":null,"language":"es","currency":"EUR"} ``` For prices, `total_price_value` follows the displayed gross basis and is not guaranteed to include every charge. `taxes_and_charges_value` is the included portion (gross minus net); inspect `tax_breakdown[].included` for excluded taxes. Compare the same stay, occupancy, room, rate conditions and currency. Market can change tax inclusion and displayed totals without changing the all-in price; it does not guarantee a discount or availability. In the verified Spain/US comparison, the same rate displayed US$455 including taxes in Spain and $341 excluding taxes in the US, with the same $455.46 all-in amount. ## Overview #### Availability Search Search for hotels with real-time availability and pricing information based on dates and guest requirements. #### Need a Destination ID? Don't know the dest\_id for your location? Use the [Destinations Lookup endpoint](/docs/endpoints/booking/destinations-lookup) to convert any location name (e.g., "Barcelona", "Paris") into a Booking.com destination ID. The Hotel Search endpoint allows you to search for available hotels in any destination with specific check-in/check-out dates, number of guests, and rooms. Returns real-time availability and pricing data. ### Endpoint URL GET https://api.stayapi.com/v1/booking/search ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | dest\_id | string | Required | Destination ID from Booking.com (e.g., "-2167973" for Lisbon). Get it from Destinations Lookup | | dest\_type | string | Optional | Destination type (default: "CITY") | | checkin | string | Optional | Check-in date in YYYY-MM-DD format | | checkout | string | Optional | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (default: 2) | | rooms | integer | Optional | Number of rooms (default: 1) | | children | integer | Optional | Number of children, 0–10 (default: 0). Supply one age per child. | | children\_ages | string | Optional | Comma-separated integer ages 0–17. The count must equal children; omit or leave empty with zero children. Missing, malformed or mismatched ages return HTTP 400 Problem Details with error\_code INVALID\_OCCUPANCY. | | rows\_per\_page | integer | Optional | Results per page (default: 25, max: 100) | | offset | integer | Optional | Starting offset for pagination (default: 0). Booking.com serves results up to offset 1000 — `data.pagination.total_results` is the real match count, and `has_next_page` turns false at that limit. | | language | string | Optional | Language override (market default, otherwise "en-us") | | currency | string | Optional | Currency override (market default, otherwise "USD") | | country\_market | string (ISO-3166) | Optional | Legacy two-letter country target (default: `US`), preserving English/USD defaults. It must match `market` if both are supplied. The echo is a request value, not verified geography. | ## Rate labels `each data.hotels[].price object` includes `labels` (an array of readable strings), `genius_discount_pct` (a number or null), and `is_mobile_rate` (a boolean). Labels describe the quoted rate, for example `Mobile rate` or `Bonus savings`. Unlabelled rates return `[]`. A hotel without a quoted price retains `price: null`. These are anonymous public quotes. A property Genius badge alone does not prove a Genius discount on this rate. A null percentage means no rate-specific percentage was observed; `is_mobile_rate: false` means no explicit mobile-rate marker was observed. Labels can vary by market and occupancy and do not guarantee eligibility for logged-in member prices. Existing discount fields remain available. Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/search?dest_id=-2167973&checkin=2026-12-01&checkout=2026-12-04&adults=2&rooms=1&rows_per_page=2" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "url": "https://www.booking.com/searchresults.html?dest_id=-2167973&dest_type=city&group_adults=2&no_rooms=1&group_children=0&offset=0&checkin=2026-12-01&checkout=2026-12-04&lang=en-us&sb=1&src_elem=sb&aid=304142", "hotel_id": null, "data": { "hotels": [ { "hotel_id": "4045490", "name": "Maxime Boutique Hotel Avenida da Liberdade", "address": "58 Praça da Alegria", "city": "Lisboa", "display_location": "Lisboa", "distance": "0.4 miles", "latitude": 38.71833447459589, "longitude": -9.145319386577626, "star_rating": 3, "price": { "amount": 376.0343526281907, "currency": "USD", "display": "$376", "before_discount": "$470", "labels": [], "genius_discount_pct": null, "is_mobile_rate": false }, "rating": { "score": 8.8, "review_count": 3617, "display": "Excellent" }, "image_url": "https://cf.bstatic.com/xdata/images/hotel/square200/646162366.jpg?k=...&o=", "free_cancellation": true, "no_prepayment": false, "is_sold_out": false, "room_name": "Deluxe Twin Room" }, { "hotel_id": "10131840", "name": "MASA Hotel & Spa Campo Grande Collection", "address": "Campo Grande 56", "city": "Lisboa", "display_location": "Lisboa", "distance": "2.6 miles", "latitude": 38.750851, "longitude": -9.148746, "star_rating": 4, "price": { "amount": 258.1471755326366, "currency": "USD", "display": "$258", "before_discount": "$323", "labels": [], "genius_discount_pct": null, "is_mobile_rate": false }, "rating": { "score": 8.5, "review_count": 11888, "display": "Very Good" }, "image_url": "https://cf.bstatic.com/xdata/images/hotel/square200/535564893.jpg?k=...&o=", "free_cancellation": true, "no_prepayment": false, "is_sold_out": false, "room_name": "Standard Double Room" } ], "pagination": { "current_page": 1, "per_page": 2, "total_results": 5036, "total_pages": 501, "has_next_page": true, "has_previous_page": false, "offset": 0 }, "hotels_found": 2, "search_url": "https://www.booking.com/searchresults.html?dest_id=-2167973&dest_type=city&group_adults=2&no_rooms=1&group_children=0&offset=0&checkin=2026-12-01&checkout=2026-12-04&lang=en-us&sb=1&src_elem=sb&aid=304142", "metadata": { "dest_id": -2167973, "dest_type": "CITY", "checkin": "2026-12-01", "checkout": "2026-12-04", "adults": 2, "children": 0, "rooms": 1, "children_ages": [], "highlighted_hotels": [], "rows_per_page": 2, "offset": 0, "travel_purpose": 2, "language": "en-us", "currency": "USD", "country_market": "US" } }, "message": "Found 2 hotels", "retrieved_at": "2026-09-24T17:06:47.365477Z" } ``` ```json { "errors": [ { "type": "missing", "loc": [ "query", "dest_id" ], "msg": "Field required", "input": null, "url": "https://errors.pydantic.dev/2.13/v/missing" } ], "error": "Validation Error", "status_code": 422, "type": "https://api.stayapi.com/errors/validation-error", "title": "Validation Error", "status": 422, "detail": "Request validation failed", "error_code": "VALIDATION_ERROR", "instance": "/v1/booking/search", "provider": "booking", "correlation_id": "1f74d994-53f6-43b7-aa75-359845d3c6f4" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/search-by-url GET # Search by URL API Search for hotels using a Booking.com search results URL directly from your browser. ## Point of sale and display settings Pass `market=ES` for Spain (Spanish and EUR defaults) or `market=US` for the United States (English and USD). The optional `language` and `currency` parameters override these defaults. Market is an ISO 3166-1 two-letter country code; unknown codes and conflicting `market`/`country_market` values return 400. Legacy `country_market` remains supported and keeps English/USD defaults. Omitting both retains US targeting and English/USD. For search by URL, explicit language/currency query parameters override values embedded in the URL; explicit URL values override market defaults. Defaults: ES es/EUR, US en-us/USD, GB en-gb/GBP, DE de/EUR, FR fr/EUR, IT it/EUR, PT pt-pt/EUR, NL nl/EUR, IE en-gb/EUR, CA en-us/CAD, AU en-gb/AUD, JP ja/JPY. Other valid countries use en-us/USD unless overridden. `data.effective_market` reports `requested_country`, nullable `targeted_country`, `language`, and `currency`. Targeting is best-effort: `country_verified` is false and `verified_country` is null because the response does not independently verify geography. A null target means country targeting was not applied. MCP returns the same object as `effective_market`. ``` {"requested_country":"ES","targeted_country":"ES","country_verified":false,"verified_country":null,"language":"es","currency":"EUR"} ``` For prices, `total_price_value` follows the displayed gross basis and is not guaranteed to include every charge. `taxes_and_charges_value` is the included portion (gross minus net); inspect `tax_breakdown[].included` for excluded taxes. Compare the same stay, occupancy, room, rate conditions and currency. Market can change tax inclusion and displayed totals without changing the all-in price; it does not guarantee a discount or availability. In the verified Spain/US comparison, the same rate displayed US$455 including taxes in Spain and $341 excluding taxes in the US, with the same $455.46 all-in amount. ## Overview #### Simplest Search Method Copy any Booking.com search URL from your browser and use it directly to get hotel results via the API. The Search by URL endpoint allows you to use any Booking.com search results URL directly. This is perfect when you want to replicate a search you've already configured on Booking.com's website without manually extracting all the parameters. ### Endpoint URL GET https://api.stayapi.com/v1/booking/search\_by\_url ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Booking.com search results URL to parse and execute | | debug | boolean | Optional | Return parsed parameters without executing search (default: false) | | country\_market | string (ISO-3166) | Optional | Legacy two-letter country target (default: `US`), preserving English/USD defaults. It must match `market` if both are supplied. The echo is a request value, not verified geography. | ## How It Works ### Step 1: Get Your URL 1. Go to Booking.com 2. Search for hotels with your desired criteria 3. Copy the URL from your browser's address bar ### Step 2: Use the API Pass the copied URL to this endpoint: https://api.stayapi.com/v1/booking/search\_by\_url?url=https%3A%2F%2Fwww.booking.com%2Fsearchresults.html%3Fdest\_id%3D-2167973%26checkin%3D2026-12-01%26checkout%3D2026-12-04... ### Supported URL Parameters The API reads these parameters from the URL: - Destination: `dest_id`, `dest_type` - Dates: `checkin`, `checkout` - Guests and rooms: `group_adults`, `group_children`, `age[0]`, `age[1]`, …, `no_rooms`. Supply one integer age 0–17 per child; missing or mismatched ages are rejected. - Paging: `offset`, `rows` - Language and currency: `lang`, `selected_currency` - Highlighted hotels: `highlighted_hotels` Filters (`nflt`), price ranges, and sort order in the URL are not applied; results use Booking.com's default ranking. The URL must be percent-encoded when passed as the `url` parameter. Pass `country_market` as its own parameter, not inside the Booking.com URL. ## Debug Mode #### Testing Parameters Use debug=true to see what parameters are extracted from your URL without running the actual search. When `debug=true`, the API returns the parsed parameters instead of search results. This is useful for: - Verifying the URL is parsed correctly - Understanding what parameters are being used - Debugging search issues ## Rate labels `each data.hotels[].price object` includes `labels` (an array of readable strings), `genius_discount_pct` (a number or null), and `is_mobile_rate` (a boolean). Labels describe the quoted rate, for example `Mobile rate` or `Bonus savings`. Unlabelled rates return `[]`. A hotel without a quoted price retains `price: null`. These are anonymous public quotes. A property Genius badge alone does not prove a Genius discount on this rate. A null percentage means no rate-specific percentage was observed; `is_mobile_rate: false` means no explicit mobile-rate marker was observed. Labels can vary by market and occupancy and do not guarantee eligibility for logged-in member prices. Existing discount fields remain available. Request ```curl curl -G "https://api.stayapi.com/v1/booking/search_by_url" \ --data-urlencode "url=https://www.booking.com/searchresults.html?dest_id=-2167973&checkin=2026-12-01&checkout=2026-12-04&group_adults=2&no_rooms=1&rows=1" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "url": "https://www.booking.com/searchresults.html?dest_id=-2167973&dest_type=city&group_adults=2&no_rooms=1&group_children=0&offset=0&checkin=2026-12-01&checkout=2026-12-04&lang=en-us&sb=1&src_elem=sb&aid=304142", "hotel_id": null, "data": { "hotels": [ { "hotel_id": "16673871", "name": "Varandas da Bica room", "address": "Travessa da Laranjeira 29", "city": "Lisboa", "display_location": "Lisboa", "distance": "0.5 miles", "latitude": 38.7100533, "longitude": -9.1465548, "star_rating": null, "price": { "amount": 152.38104706769508, "currency": "USD", "display": "$152", "before_discount": "$277", "labels": [], "genius_discount_pct": null, "is_mobile_rate": false }, "rating": { "score": 7.7, "review_count": 35, "display": "Good" }, "image_url": "https://cf.bstatic.com/xdata/images/hotel/square200/886948570.jpg?k=...&o=", "free_cancellation": false, "no_prepayment": false, "is_sold_out": false, "room_name": "Economy Double Room" } ], "pagination": { "current_page": 1, "per_page": 1, "total_results": 5036, "total_pages": 1001, "has_next_page": true, "has_previous_page": false, "offset": 0 }, "hotels_found": 1, "search_url": "https://www.booking.com/searchresults.html?dest_id=-2167973&dest_type=city&group_adults=2&no_rooms=1&group_children=0&offset=0&checkin=2026-12-01&checkout=2026-12-04&lang=en-us&sb=1&src_elem=sb&aid=304142", "metadata": { "dest_id": -2167973, "dest_type": "CITY", "checkin": "2026-12-01", "checkout": "2026-12-04", "adults": 2, "children": 0, "rooms": 1, "children_ages": [], "highlighted_hotels": [], "rows_per_page": 1, "offset": 0, "travel_purpose": 2, "language": "en-us", "currency": "USD", "country_market": "US", "original_browser_url": "https://www.booking.com/searchresults.html?dest_id=-2167973&checkin=2026-12-01&checkout=2026-12-04&group_adults=2&no_rooms=1&rows=1", "parsed_parameters": { "dest_id": -2167973, "dest_type": "CITY", "checkin": "2026-12-01", "checkout": "2026-12-04", "adults": 2, "children": 0, "rooms": 1, "offset": 0, "rows_per_page": 1, "language": "en-us", "currency": "USD", "travel_purpose": 2, "original_url": "https://www.booking.com/searchresults.html?dest_id=-2167973&checkin=2026-12-01&checkout=2026-12-04&group_adults=2&no_rooms=1&rows=1", "parsed_successfully": true }, "url_parsed_at": "2026-09-24T17:07:49.037434Z" } }, "message": "URL-based search successful. Found 1 hotels", "retrieved_at": "2026-09-24T17:07:49.035426Z" } ``` ``` { "success": true, "url": "https://www.booking.com/searchresults.html?dest_id=-2167973&checkin=2026-12-01&checkout=2026-12-04&group_adults=2&no_rooms=1&rows=1", "hotel_id": null, "data": { "parsed_parameters": { "dest_id": -2167973, "dest_type": "CITY", "checkin": "2026-12-01", "checkout": "2026-12-04", "adults": 2, "children": 0, "rooms": 1, "offset": 0, "rows_per_page": 1, "language": "en-us", "currency": "USD", "travel_purpose": 2, "original_url": "https://www.booking.com/searchresults.html?dest_id=-2167973&checkin=2026-12-01&checkout=2026-12-04&group_adults=2&no_rooms=1&rows=1", "parsed_successfully": true }, "original_url": "https://www.booking.com/searchresults.html?dest_id=-2167973&checkin=2026-12-01&checkout=2026-12-04&group_adults=2&no_rooms=1&rows=1", "note": "Debug mode - parameters extracted but search not executed" }, "message": "Debug mode - URL parsed successfully", "retrieved_at": "2026-09-24T17:07:49.222055Z" } ``` ```json { "errors": [ { "type": "missing", "loc": [ "query", "url" ], "msg": "Field required", "input": null, "url": "https://errors.pydantic.dev/2.13/v/missing" } ], "error": "Validation Error", "status_code": 422, "type": "https://api.stayapi.com/errors/validation-error", "title": "Validation Error", "status": 422, "detail": "Request validation failed", "error_code": "VALIDATION_ERROR", "instance": "/v1/booking/search_by_url", "provider": "booking", "correlation_id": "0a8629d8-dc65-48f2-9de6-912dd31ce5d9" } ``` --- Source: https://stayapi.com/docs/endpoints/booking/price-calendar GET # Booking.com Price Calendar Compare displayed average prices and availability across an inclusive date range. ## Overview Authenticate with your `X-API-Key` header. Standard request billing applies. Supply exactly one numeric hotel ID or full canonical Booking.com hotel URL. The response includes every requested date, sorted ascending, with no pagination. GET https://api.stayapi.com/v1/booking/hotel/price-calendar ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | One of hotel\_id / url | Numeric Booking hotel ID, such as 10293946. Do not send together with url. | | url | string | One of hotel\_id / url | Full canonical URL: https://www.booking.com/hotel/{cc}/{slug}.html. Do not send together with hotel\_id. | | date\_from | string | Required | First date, YYYY-MM-DD, today or later. | | date\_to | string | Required | Last date, YYYY-MM-DD, inclusive. Same as date\_from or up to 60 days later: 1–61 dates. | | adults | integer | Optional | 1–10. Default: 2. | | rooms | integer | Optional | 1–10. Default: 1. | | children\_ages | string | Optional | Up to 10 comma-separated integer ages 0–17, for example 5,8. Child count is inferred; there is no children parameter. Omit for no children. | | currency | string | Optional | Case-insensitive USD (default), EUR, GBP, JPY, CAD, AUD, CHF, INR, CNY, SEK, KRW, AED, or MXN. Other codes return 400. | ## Response schema | Field | Meaning | | --- | --- | | success | Boolean true on success. | | hotel\_id | Resolved numeric hotel ID string; reuse for details, rooms, or prices. | | date\_from / date\_to | Inclusive requested date bounds. | | currency | Currency of the displayed calendar prices. | | available\_count | Number of dates marked available. | | dates | Complete sorted array, one entry per requested date. | | dates[].date | Calendar date, YYYY-MM-DD. | | dates[].available | Boolean availability for this date. | | dates[].min\_nights | Minimum nights reported by Booking, including on unavailable dates when supplied; null when not reported. | | dates[].average\_price | Displayed calendar average price; null when the date is unavailable. | ## Errors and limitations Prices use Booking's standard U.S. shopper market, with display currency selected independently; there is no market parameter. Prices are Booking's displayed calendar averages and retain any display rounding. They do not guarantee a stay total or inclusion of taxes and fees. Use dated room rates or hotel prices to inspect a particular stay. A complete calendar with every date unavailable is a valid success; missing upstream dates are not treated as sold out. Errors use RFC 7807 Problem Details: 400 for invalid parameters (including identifiers and date ranges), 401 for invalid authentication, 402 for exhausted quota, 404 for an unknown hotel ID, 429 for rate limits, and 502 when the upstream calendar is incomplete or invalid. ## Related resources [Hotel prices](/docs/endpoints/booking/hotel-prices) · [Room availability and rates](/docs/endpoints/booking/hotel-rooms) · [Booking API hub](/apis/booking) · [MCP: booking\_hotel\_price\_calendar](/docs/mcp) Illustrative Tallinn calendar quote; live prices may change. Request ```curl curl 'https://api.stayapi.com/v1/booking/hotel/price-calendar?hotel_id=10293946&date_from=2026-12-22&date_to=2026-12-22&adults=2¤cy=EUR' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": "10293946", "date_from": "2026-12-22", "date_to": "2026-12-22", "currency": "EUR", "available_count": 1, "dates": [ { "date": "2026-12-22", "available": true, "min_nights": 1, "average_price": 72.0 } ] } ``` --- Source: https://stayapi.com/docs/endpoints/booking/hotel-prices GET # Hotel Prices API Get real-time room pricing, tax breakdowns, and availability for any Booking.com hotel. For an inclusive date-by-date overview, see the [Booking price calendar](/docs/endpoints/booking/price-calendar). ## Point of sale and display settings Pass `market=ES` for Spain (Spanish and EUR defaults) or `market=US` for the United States (English and USD). The optional `language` and `currency` parameters override these defaults. Market is an ISO 3166-1 two-letter country code; unknown codes and conflicting `market`/`country_market` values return 400. Legacy `country_market` remains supported and keeps English/USD defaults. Omitting both retains US targeting and English/USD. For search by URL, explicit language/currency query parameters override values embedded in the URL; explicit URL values override market defaults. Defaults: ES es/EUR, US en-us/USD, GB en-gb/GBP, DE de/EUR, FR fr/EUR, IT it/EUR, PT pt-pt/EUR, NL nl/EUR, IE en-gb/EUR, CA en-us/CAD, AU en-gb/AUD, JP ja/JPY. Other valid countries use en-us/USD unless overridden. `data.effective_market` reports `requested_country`, nullable `targeted_country`, `language`, and `currency`. Targeting is best-effort: `country_verified` is false and `verified_country` is null because the response does not independently verify geography. A null target means country targeting was not applied. MCP returns the same object as `effective_market`. ``` {"requested_country":"ES","targeted_country":"ES","country_verified":false,"verified_country":null,"language":"es","currency":"EUR"} ``` For prices, `total_price_value` follows the displayed gross basis and is not guaranteed to include every charge. `taxes_and_charges_value` is the included portion (gross minus net); inspect `tax_breakdown[].included` for excluded taxes. Compare the same stay, occupancy, room, rate conditions and currency. Market can change tax inclusion and displayed totals without changing the all-in price; it does not guarantee a discount or availability. In the verified Spain/US comparison, the same rate displayed US$455 including taxes in Spain and $341 excluding taxes in the US, with the same $455.46 all-in amount. ## Overview #### Live Pricing Data Returns real-time prices with tax breakdowns, cancellation policies, meal plans, and bundle extras for all available rooms. The Hotel Prices endpoint provides comprehensive pricing information for a specific Booking.com hotel, including per-night and total costs, detailed tax breakdowns, and individual room options with cancellation policies and meal plans. #### Sold-out stays A stay that is independently confirmed as sold out returns HTTP 200 with is\_soldout: true, rooms: [], and available\_rooms\_count: 0. If empty inventory cannot be confirmed as sold out, the API returns a 502 instead of guessing. ### Endpoint URL GET https://api.stayapi.com/v1/booking/hotel/prices ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Booking.com hotel ID (numeric, up to 10 digits) | | check\_in | string | Required | Check-in date (YYYY-MM-DD) | | check\_out | string | Required | Check-out date (YYYY-MM-DD) | | adults | integer | Optional | Number of adults (1-10, default: 2) | | rooms | integer | Optional | Number of rooms (1-10, default: 1) | | currency | string | Optional | 3-letter currency override (market default, otherwise USD) | | rate\_mode | string enum | Optional | `default` preserves the current compatible selection. `occupancy_matched` selects a verified fit for a one-room party. `desktop_public` accepts adults-only, one-room requests and returns listed desktop offers, including Genius and alternate occupancies. | | country\_market | string (ISO-3166) | Optional | Legacy two-letter country target (default: `US`), preserving English/USD defaults. It must match `market` if both are supplied. The echo is a request value, not verified geography. | | children | integer | Optional | Number of children, 0–10; default 0. Supply one age per child. | | children\_ages | string | Optional | Comma-separated integer ages 0–17, for example 5,8. Required when children is positive; the age count must equal children. Omit or leave empty for zero children. | ## Response Structure ### Pricing Summary Shows the offer selected by the requested rate mode. See the `rooms` array for all room categories and prices. - `price_per_night` / `price_per_night_value` - Formatted and numeric price per night - `total_price` / `total_price_value` - Displayed price for the stay. A desktop offer can list additional charges separately. - `all_in_price` / `all_in_price_value` - Desktop price including mandatory charges when known - `net_price` / `net_price_value` - Price before taxes - `taxes_and_charges` / `taxes_and_charges_value` - Tax total - `block_id` - Selected rate identifier in occupancy-matched mode. Omitted in desktop-public mode - `currency` - Currency code ### Tax Breakdown Tax lines belong to the same selected rate as `pricing_summary`. In both optional modes, each offer has its own `tax_breakdown`. To exclude city tax, subtract a named city-tax amount only when `included` is true. When a desktop offer has only aggregate charges, the city-tax amount can be unknown. - `name` - Tax name - `type` - Tax type (omitted in desktop-public mode) - `percentage` - Tax rate (omitted in desktop-public mode) - `amount` / `amount_value` - Tax amount - `included` - Whether tax is already included in the price ### Rooms Array of all available room categories with individual pricing. Each entry represents a bookable room option. - `block_id` / `room_name` - Room identifier and name. Desktop-public mode returns the name without the identifier - `is_refundable` / `cancellation_policy` - Cancellation details - `breakfast_included` / `meal_plan` - Meal information - `price_per_night` / `total_price` - Room-level pricing - `bundle_extras` - Included extras (WiFi, gym, etc.) ### Sold-out response Confirmed sold-out dates use the normal success schema: `is_soldout` is `true`, `rooms` is empty, and `available_rooms_count` is zero. Pricing summary values are null because there is no bookable rate. ## Best Practices #### Date Selection Prices vary significantly by date. Always provide accurate check-in/check-out dates to get reliable pricing. ### Implementation Tips - Use both formatted strings and numeric values for flexible display - Check `is_soldout` before displaying pricing - Display the tax breakdown for price transparency - Highlight cancellation policies prominently for user confidence ## Error handling and status codes **Status codes:** 200 on success; errors use non-2xx (400, 500, 502) with Problem Details. - **400** `INVALID_HOTEL_ID`: Hotel ID is not numeric or exceeds 10 digits. - **400** `INVALID_DATE_FORMAT`: Dates are not in YYYY-MM-DD format. - **400** `INVALID_DATES`: Check-out is before check-in or stay exceeds 90 nights. - **400** `INVALID_CURRENCY`: Currency is not a 3-letter code. - **502** `UPSTREAM_ERROR`: Upstream request or parsing failed, including empty inventory that could not be confirmed as sold out. - **500** `INTERNAL_ERROR`: Unexpected processing error. ### Error responses (Problem Details) All Booking.com hotel endpoints return errors using RFC 7807 Problem Details. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "Parameter 'url' must be a full Booking.com hotel URL of the form https://www.booking.com/hotel/{cc}/{slug}.html.", "error_code": "INVALID_URL", "provided": "baan-coconut" } ``` **Media type:** `application/problem+json` **Standard fields:** `type`, `title`, `status`, `detail` **Extensions:** `error_code` and any endpoint-specific fields **2xx policy:** 2xx is returned only when data extraction succeeds. ## Family occupancy For two adults and a child aged eight, send `adults=2&children=1&children_ages=8`. Multiple ages use a single CSV value, for example `children=2&children_ages=5%2C8`. Missing ages, count mismatches, noninteger ages and ages outside 0–17 return HTTP 400 Problem Details with `error_code: INVALID_OCCUPANCY`. Invalid count types or counts outside 0–10 return HTTP 422. Adults-only requests can omit both child parameters. Each `data.rooms[]` includes `fits_requested_occupancy`: true means that one rate accommodates the entire requested party, false means it does not, and null means the fit is unknown. Room alternatives may accommodate only part of your party. The prices summary selects a verified full-family rate; if none can be verified, prices returns HTTP 502 instead of a misleading family quote. Prices describe one room for the stay, not a combined multiroom reservation total. The rooms parameter does not establish an allocation of guests across rooms. ## Recommended offers When `data.inventory_scope` is `recommended`, the response contains a limited selection of recommended offers. Counts and summaries describe only the returned offers, not complete property inventory. The field is omitted for ordinary inventory responses. If offers cannot be obtained reliably, the API returns a non-2xx Problem Details error, including `502 UPSTREAM_ERROR`, rather than a false empty result. Use the quoted amounts and tax fields as returned. Do not calculate an anonymous public price from a Genius percentage or a strikethrough amount. | Field | Meaning | | --- | --- | | `data.inventory_scope` | Optional string: `recommended` for a limited selection. | | `data.rooms[].requires_sign_in, data.pricing_summary.requires_sign_in` | Boolean or null: true for an observed sign-in condition; null when unknown. | ## Rate labels For `default` and `occupancy_matched`, `data.pricing_summary and each data.rooms[] item` includes `labels` (an array of readable strings), `genius_discount_pct` (a number or null), and `is_mobile_rate` (a boolean). Labels describe the quoted rate, for example `Mobile rate` or `Bonus savings`. Unlabelled rates return `[]`. Quotes can carry sign-in conditions. `requires_sign_in: true` identifies an explicitly observed Genius or member condition; `null` means eligibility is unknown, not a public-rate guarantee. A property Genius badge alone does not prove a Genius discount on this rate. A null percentage means no rate-specific percentage was observed; `is_mobile_rate: false` means no explicit mobile-rate marker was observed. Labels can vary by market and occupancy and do not guarantee eligibility for logged-in member prices. Existing discount fields remain available. ## Rate modes Omit `rate_mode` or pass `default` for the existing selection and response format. For one room, `occupancy_matched` selects the cheapest offer verified for the requested adults and child ages. Use `pricing_summary.block_id` to find that offer in `rooms`. Use `rate_mode=desktop_public` for adults sharing one room. The response includes all listed desktop rates, including Genius and alternate occupancies. Each room reports `priced_guests` and `fits_requested_occupancy`. The summary selects the cheapest exact fit. When none fits, its prices are null while listed rooms remain available and `is_soldout` is false. Only confirmed empty inventory is sold out. Desktop responses omit supplier identifiers (`block_id`, `room_id`, `product_id`) and raw supplier fields. Taxes and all-in totals appear when known. Unverifiable inventory returns HTTP 502. | Desktop field | Meaning | | --- | --- | | `rate_type` | `genius` for an explicitly Genius offer, otherwise `listed`. Null when no exact fit exists in the summary. | | `genius_price` | Formatted stay total for an explicitly Genius offer, otherwise null or omitted. A property badge alone does not establish a Genius price. | | `before_discount_price` | Original price as provided by Booking, otherwise null or omitted. Never calculated from a percentage. | | `total_price / total_price_value` | The listed stay total as formatted text and a number. | | `priced_guests / fits_requested_occupancy` | The offer occupancy and whether it exactly matches the requested adults sharing one room. | Request ```curl curl -X GET "https://api.stayapi.com/v1/booking/hotel/prices?hotel_id=346648&check_in=2027-05-15&check_out=2027-05-17&adults=2&children=1&children_ages=8&rooms=1¤cy=USD" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "346648", "data": { "hotel": { "id": "346648", "name": "Angsana Laguna Phuket" }, "search_params": { "check_in": "2027-05-15", "check_out": "2027-05-17", "adults": 2, "children": 1, "children_ages": [ 8 ], "rooms": 1, "currency": "USD", "nights": 2 }, "pricing_summary": { "price_per_night": "$185", "price_per_night_value": 185.0, "total_price": "$370", "total_price_value": 370.0, "net_price": "$320", "net_price_value": 320.0, "taxes_and_charges": "$50", "taxes_and_charges_value": 50.0, "currency": "USD", "labels": [ "Mobile rate" ], "genius_discount_pct": null, "is_mobile_rate": true }, "tax_breakdown": [], "rooms": [ { "price_per_night": "$185", "price_per_night_value": 185.0, "total_price": "$370", "total_price_value": 370.0, "net_price": "$320", "net_price_value": 320.0, "taxes_and_charges": "$50", "taxes_and_charges_value": 50.0, "currency": "USD", "labels": [ "Mobile rate" ], "genius_discount_pct": null, "is_mobile_rate": true, "block_id": "34664801_1", "room_id": "34664801", "room_name": "Family Suite", "max_occupancy": 3, "breakfast_included": false, "meal_plan": null, "is_refundable": true, "fits_requested_occupancy": true }, { "price_per_night": "$142", "price_per_night_value": 142.0, "total_price": "$284", "total_price_value": 284.0, "net_price": "$240", "net_price_value": 240.0, "taxes_and_charges": "$44", "taxes_and_charges_value": 44.0, "currency": "USD", "labels": [ "Mobile rate" ], "genius_discount_pct": null, "is_mobile_rate": true, "block_id": "34664802_1", "room_id": "34664802", "room_name": "Double Room", "max_occupancy": 2, "breakfast_included": false, "meal_plan": null, "is_refundable": true, "fits_requested_occupancy": false } ], "available_rooms_count": 2, "is_soldout": false }, "message": "Success" } ``` ``` { "success": true, "hotel_id": "714886", "data": { "hotel": { "id": 714886, "name": "H4 Hotel München Messe" }, "search_params": { "check_in": "2026-11-30", "check_out": "2026-12-01", "adults": 2, "rooms": 1, "currency": "EUR", "nights": 1 }, "pricing_summary": { "price_per_night": null, "price_per_night_value": null, "total_price": null, "total_price_value": null, "net_price": null, "net_price_value": null, "taxes_and_charges": null, "taxes_and_charges_value": null, "currency": "EUR", "labels": [], "genius_discount_pct": null, "requires_sign_in": null, "is_mobile_rate": false }, "tax_breakdown": [], "rooms": [], "available_rooms_count": 0, "is_soldout": true }, "message": "Success" } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-dates", "title": "Invalid Dates", "status": 400, "detail": "Check-out date must be after check-in date.", "instance": "/v1/booking/hotel/prices", "provider": "booking", "error_code": "INVALID_DATES" } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/hotel-reviews GET # TripAdvisor Hotel Reviews API Extract comprehensive hotel reviews from TripAdvisor using the hotel's location ID. ## Overview #### Rich Review Data Get detailed reviews with user profiles, ratings, photos, trip information, and engagement metrics. The TripAdvisor Hotel Reviews endpoint provides access to detailed review data including reviewer information, stay dates, ratings, review text, photos, helpful votes, and management responses. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/hotel/reviews/{location\_id} ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | location\_id | string | Required | TripAdvisor location ID (path parameter) | | page | integer | Optional | Page number, starts at 1 (default: 1) | | per\_page | integer | Optional | Number of reviews per page (1-50, default: 10). At most 20 reviews are returned per page; larger values are treated as 20. | | language | string | Optional | TripAdvisor language code, or `all` (default) to include reviews across source languages. A specific code selects the presentation language and can include an available translation. Accepted codes include `en`, `ja`, `es`, `fr`, `de`, `it`, `zhTW`, `zhCN`, `iw`, `in`, `ru`, `th`. | #### Ordering, language, and dates TripAdvisor provides its most-recent review order. A pinned review can appear among newer reviews, so do not assume every result is strictly descending by date. language=all includes reviews across source languages. A specific code (for example, language=ja) selects the presentation language and can include an available translation. created\_date and published\_date follow the dates TripAdvisor shows in its current review presentation. ## Response Structure ### Review Information - `review_id` - Unique review identifier - `title` - Review title - `text` - Full review text - `rating` - Overall rating (1-5) - `published_date` - When review was posted - `stay_date` - When the reviewer stayed ### Reviewer Details - Username and display name - Location - Contribution count and helpful votes - Profile photo URL ### Additional Data - Trip type (business, couples, family, etc.) - Review photos - Helpful vote count - Management response (if available) - Room tip information - Language of review ## Finding the Location ID #### Need the Location ID? Use the /location/extract-id endpoint to extract the location ID from any TripAdvisor hotel URL. The location ID can be found in TripAdvisor URLs. For example: ` https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-Hotel.html ` The location ID is `305165` (the number after "d"). Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/reviews/305165?page=1&per_page=10" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "reviews": [ { "id": 874521963, "rating": 5, "title": "Exceptional luxury hotel with outstanding service", "text": "From the moment we arrived, we were treated like royalty. The staff went above and beyond to ensure our stay was perfect.", "language": "en", "created_date": "2024-01-10", "published_date": "2024-01-10", "helpful_votes": 8, "user": { "id": "ABC123", "display_name": "Sarah M", "username": "SarahM_London", "is_verified": false, "contribution_count": 47, "hometown": "London, UK", "avatar_url": "https://media-cdn.tripadvisor.com/..." }, "trip_info": { "stay_date": "2023-12-15", "trip_type": "COUPLES" }, "additional_ratings": { "value": 5, "service": 5, "cleanliness": 5 }, "photos": [], "review_url": "https://www.tripadvisor.com/ShowUserReviews-...", "owner_response": { "text": "Dear Sarah, thank you for your wonderful review! We're delighted you enjoyed your stay and look forward to welcoming you back.", "published_date": "2024-01-12", "author": "Hotel Management", "connection_to_subject": "Manager" } } ], "total_count": 336, "review_count": 10, "location_id": 305165, "pagination": { "page": 1, "per_page": 10, "total_count": 336, "total_pages": 34, "has_next": true, "has_previous": false } } ``` ```json { "error": "Hotel not found", "detail": "No hotel found with location ID: 999999", "status_code": 404 } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/hotel-reviews-from-url GET # TripAdvisor Reviews from URL API Extract hotel reviews directly from any TripAdvisor hotel URL - no location ID needed. ## Overview #### Simplest Method Just paste any TripAdvisor hotel URL and get reviews instantly. The API handles location ID extraction automatically. This endpoint is a convenient wrapper that extracts the location ID from a TripAdvisor URL and retrieves reviews in one step. Perfect when you have the hotel URL but not the location ID. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/hotel/reviews-from-url ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Any valid TripAdvisor hotel URL | | page | integer | Optional | Page number, starts at 1 (default: 1) | | per\_page | integer | Optional | Number of reviews per page (1-50, default: 10). At most 20 reviews are returned per page; larger values are treated as 20. | | language | string | Optional | TripAdvisor language code, or `all` (default) to include reviews across source languages. A specific code selects the presentation language and can include an available translation. Accepted codes include `en`, `ja`, `es`, `fr`, `de`, `it`, `zhTW`, `zhCN`, `iw`, `in`, `ru`, `th`. | #### Ordering, language, and dates TripAdvisor provides its most-recent review order. A pinned review can appear among newer reviews, so do not assume every result is strictly descending by date. language=all includes reviews across source languages. A specific code (for example, language=ja) selects the presentation language and can include an available translation. created\_date and published\_date follow the dates TripAdvisor shows in its current review presentation. ## Supported URL Formats This endpoint accepts any valid TripAdvisor hotel URL, including: - ✓ Standard hotel pages `https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-Hotel.html` - ✓ With page numbers `https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-or10-Hotel.html` - ✓ Different language versions `https://www.tripadvisor.de/Hotel_Review-g1224250-d305165-Reviews-Hotel.html` - ✓ Mobile URLs `https://m.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-Hotel.html` ## Benefits ### Why Use This Endpoint? - No need to extract location IDs manually - Works with any TripAdvisor hotel URL format - Same rich review data as the location ID endpoint - Perfect for automated data collection workflows - Handles URL validation automatically #### Pro Tip The response includes the extracted location\_id, so you can use it for subsequent API calls if needed. Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/reviews-from-url?url=https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-Hotel.html&page=1&per_page=10" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "reviews": [ { "id": 874521963, "rating": 5, "title": "Exceptional luxury hotel with outstanding service", "text": "From the moment we arrived, we were treated like royalty. The staff went above and beyond to ensure our stay was perfect.", "language": "en", "created_date": "2024-01-10", "published_date": "2024-01-10", "helpful_votes": 8, "user": { "id": "ABC123", "display_name": "Sarah M", "username": "SarahM_London", "is_verified": false, "contribution_count": 47, "hometown": "London, UK", "avatar_url": "https://media-cdn.tripadvisor.com/..." }, "trip_info": { "stay_date": "2023-12-15", "trip_type": "COUPLES" }, "additional_ratings": { "value": 5, "service": 5, "cleanliness": 5 }, "photos": [], "review_url": "https://www.tripadvisor.com/ShowUserReviews-...", "owner_response": { "text": "Dear Sarah, thank you for your wonderful review! We're delighted you enjoyed your stay and look forward to welcoming you back.", "published_date": "2024-01-12", "author": "Hotel Management", "connection_to_subject": "Manager" } } ], "total_count": 336, "review_count": 10, "location_id": 305165, "pagination": { "page": 1, "per_page": 10, "total_count": 336, "total_pages": 34, "has_next": true, "has_previous": false } } ``` ```json { "error": "Invalid URL", "detail": "The provided URL is not a valid TripAdvisor hotel URL", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/hotel-details GET # TripAdvisor Hotel Details API Extract comprehensive hotel information from TripAdvisor using the hotel's location ID. ## Availability of hotel details A successful response identifies the hotel with numeric `location_id` and `data.name`. Other property fields are optional: a valid response can contain only basic identity information and `ranking_status`. `ranking_status` is `ok` when a ranking is available, `no_pop_index` when the hotel has no ranking, `not_in_top300_of_geo` when it is outside the destination coverage window, or `no_parent_geo` when no destination is available. `geo_search_failed` means additional details are temporarily unavailable; the basic hotel information is still returned successfully. When present, `ranking` contains optional `rank`, `total`, and `localized` fields. `amenities` contains highlighted amenities only, not the complete About-box list, and is omitted when unavailable. The response does not include `contact.website` or `num_rooms`. An unknown hotel returns HTTP 404. An unavailable or malformed hotel identity response returns HTTP 502 with Problem Details; it is not reported as a missing hotel. ## Overview #### Hotel Details Get hotel identity, ratings, structured address, phone, coordinates, and highlighted amenities when available. The TripAdvisor Hotel Details endpoint returns hotel identity, ratings, location data, phone, and highlighted amenities when available. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/hotel/details/{location\_id} Fields inside `data` are conditional on upstream coverage. `amenities` contains highlighted amenities only, not the full About-box list. `contact.website` and `num_rooms` are not returned, even when TripAdvisor displays them in its About box. If the hotel is outside the parent-area search window, the response may contain only its name and parent location data. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | location\_id | integer | Required | TripAdvisor location ID (path parameter, e.g., 83189) | ## Response Structure ### Basic Information - `name` - Hotel name - `accommodation_type` - Accommodation category - `hotel_url` - TripAdvisor hotel page URL - `rating` - Overall traveler rating (1–5) - `num_reviews` - Review count ### Location & Contact - `address` - Object containing street, city, state, country, postal\_code, and full\_address - `contact.phone` - Hotel phone number (when available) - `coordinates` - GPS coordinates object - `latitude` - Latitude coordinate - `longitude` - Longitude coordinate ### Amenities & Ranking - `amenities` - Highlighted amenity names (when available) - `ranking.localized` - Localized hotel ranking - `ranking_status` - Whether ranking data was available ## Common Use Cases - Building hotel profile pages with contact and location data - Displaying hotel locations on maps - Comparing ratings and highlighted hotel amenities - Enriching hotel data with TripAdvisor information - Creating hotel comparison tools - Implementing "click to call" or "get directions" features #### Data Freshness Hotel details change less frequently than reviews. Consider caching this data for 24-48 hours to improve performance. Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/details/83189" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "location_id": 83189, "data": { "location_id": 83189, "name": "Stanley Hotel", "accommodation_type": "HOTEL", "parent_location_id": 60945, "parent_geo_breadcrumbs": [ "Estes Park", "Colorado", "United States", "North America", "World" ], "coordinates": { "latitude": 40.38291, "longitude": -105.51906 }, "address": { "street": "333 Wonderview Avenue", "city": "Estes Park", "state": "Colorado", "country": "United States", "postal_code": "80517", "full_address": "333 Wonderview Avenue, Estes Park, CO 80517" }, "contact": { "phone": "+1 970-586-3371" }, "rating": 3.6, "num_reviews": 4028, "star_rating_tag_id": 9568, "star_rating": 3.0, "subratings": { "cleanliness": 4.04, "location": 4.69, "service": 3.8, "value": 3.27 }, "ranking": { "rank": 114, "total": 116, "localized": "#30 of 31 hotels in Estes Park" }, "price_level": { "minimum": 202, "maximum": 476 }, "main_image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/06/31/4d/e3/stanley-hotel.jpg?w=2000&h=1331&s=1", "country_code": "US", "hotel_url": "https://www.tripadvisor.com/Hotel_Review-g60945-d83189-Reviews-Stanley_Hotel-Estes_Park_Colorado.html", "ranking_status": "ok", "amenities": [ "Restaurant", "Bar/Lounge", "Family Friendly" ] }, "message": "Successfully retrieved hotel details", "retrieved_at": "2026-10-15T16:05:44.569860Z" } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR", "instance": "/v1/tripadvisor/hotel/details/8622290", "correlation_id": "example-request-id", "provider": "tripadvisor" } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/hotel-subratings GET # TripAdvisor Hotel Subratings API Retrieve a hotel's aggregate TripAdvisor category ratings by location ID. ## Overview #### Six category scores Returns Location, Rooms, Value, Cleanliness, Service, and Sleep Quality on TripAdvisor's 1–5 rating scale. Use subratings to compare the parts of the guest experience that an overall bubble rating hides. Values are returned as numbers rounded to two decimal places. A category can be `null` when TripAdvisor has not published enough data for it. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/hotel/subratings/{location\_id} ## Path parameter | Parameter | Type | Required | Description | | --- | --- | --- | --- | | location\_id | integer | Yes | The number after `d` in a TripAdvisor hotel URL, for example `236154`. | ## Response fields The `data` object always contains these keys: - `location` - `rooms` - `value` - `cleanliness` - `service` - `sleep_quality` ## Errors - **404** — no category ratings were found for the location ID. - **502** — TripAdvisor returned unavailable or malformed rating data. - **503 / 504** — the service is temporarily busy or the request timed out; retry shortly. Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/subratings/236154" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "location_id": 236154, "data": { "location": 4.86, "rooms": 4.36, "value": 4.38, "cleanliness": 4.65, "service": 4.59, "sleep_quality": 4.55 }, "message": "Successfully retrieved TripAdvisor hotel subratings", "retrieved_at": "2026-07-13T11:06:07.976853Z" } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Hotel Subratings Not Found", "status": 404, "detail": "No category ratings found for this TripAdvisor location ID.", "error_code": "NOT_FOUND", "provider": "tripadvisor", "location_id": 999999 } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/hotel-details-from-url GET # TripAdvisor Details from URL API Extract hotel details directly from any TripAdvisor hotel URL - no location ID needed. ## Availability of hotel details A successful response identifies the hotel with numeric `location_id` and `data.name`. Other property fields are optional: a valid response can contain only basic identity information and `ranking_status`. `ranking_status` is `ok` when a ranking is available, `no_pop_index` when the hotel has no ranking, `not_in_top300_of_geo` when it is outside the destination coverage window, or `no_parent_geo` when no destination is available. `geo_search_failed` means additional details are temporarily unavailable; the basic hotel information is still returned successfully. When present, `ranking` contains optional `rank`, `total`, and `localized` fields. `amenities` contains highlighted amenities only, not the complete About-box list, and is omitted when unavailable. The response does not include `contact.website` or `num_rooms`. An unknown hotel returns HTTP 404. An unavailable or malformed hotel identity response returns HTTP 502 with Problem Details; it is not reported as a missing hotel. ## Overview #### One-Step Solution Simply provide any TripAdvisor hotel URL and get hotel details in one call. This endpoint combines URL parsing and detail extraction in one call. Perfect when you have the hotel URL but not the location ID. Returns the same data as the location ID endpoint. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/hotel/details-from-url Fields inside `data` are conditional on upstream coverage. `amenities` contains highlighted amenities only, not the full About-box list. `contact.website` and `num_rooms` are not returned, even when TripAdvisor displays them in its About box. If the hotel is outside the parent-area search window, the response may contain only its name and parent location data. ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Any valid TripAdvisor hotel URL | ## Accepted URL Formats This endpoint works with any TripAdvisor hotel URL: Standard format: `https://www.tripadvisor.com/Hotel_Review-g60945-d83189-Reviews-Stanley_Hotel-Estes_Park_Colorado.html` With page navigation: `https://www.tripadvisor.com/Hotel_Review-g60945-d83189-Reviews-or10-Hotel.html` Different domains: `https://www.tripadvisor.co.uk/Hotel_Review-g60945-d83189-Reviews-Stanley_Hotel-Estes_Park_Colorado.html` ## Response Data Returns the same hotel information as the location ID endpoint, including: #### Property Information - • Hotel name and accommodation type - • Star rating and price level - • Ranking and ranking status - • Canonical hotel URL #### Location Details - • Full address - • GPS coordinates - • Country code - • Parent location breadcrumbs #### Reviews & Ratings - • Overall rating - • Category breakdowns - • Review count - • Star rating #### Amenities & Contact - • Highlighted amenities (partial list) - • Hero image - • Price range - • Phone when available ## Why Use This Endpoint? #### Best for Automation Ideal for browser extensions or any workflow where you have URLs but not location IDs. - No need to parse location IDs from URLs - Works with any TripAdvisor hotel page URL - Single API call for hotel details - Includes the extracted location ID in response - Perfect for automated integration workflows Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/details-from-url?url=https://www.tripadvisor.com/Hotel_Review-g60945-d83189-Reviews-Stanley_Hotel-Estes_Park_Colorado.html" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "location_id": 83189, "data": { "location_id": 83189, "name": "Stanley Hotel", "accommodation_type": "HOTEL", "parent_location_id": 60945, "parent_geo_breadcrumbs": [ "Estes Park", "Colorado", "United States", "North America", "World" ], "coordinates": { "latitude": 40.38291, "longitude": -105.51906 }, "address": { "street": "333 Wonderview Avenue", "city": "Estes Park", "state": "Colorado", "country": "United States", "postal_code": "80517", "full_address": "333 Wonderview Avenue, Estes Park, CO 80517" }, "contact": { "phone": "+1 970-586-3371" }, "rating": 3.6, "num_reviews": 4028, "star_rating_tag_id": 9568, "star_rating": 3.0, "subratings": { "cleanliness": 4.04, "location": 4.69, "service": 3.8, "value": 3.27 }, "ranking": { "rank": 114, "total": 116, "localized": "#30 of 31 hotels in Estes Park" }, "price_level": { "minimum": 202, "maximum": 476 }, "main_image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/06/31/4d/e3/stanley-hotel.jpg?w=2000&h=1331&s=1", "country_code": "US", "hotel_url": "https://www.tripadvisor.com/Hotel_Review-g60945-d83189-Reviews-Stanley_Hotel-Estes_Park_Colorado.html", "ranking_status": "ok", "amenities": [ "Restaurant", "Bar/Lounge", "Family Friendly" ] }, "message": "Successfully retrieved hotel details", "retrieved_at": "2026-10-15T16:05:44.569860Z" } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR", "instance": "/v1/tripadvisor/hotel/details-from-url", "correlation_id": "example-request-id", "provider": "tripadvisor" } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/hotel-prices GET # TripAdvisor Hotel Prices API Extract real-time hotel pricing from multiple providers through TripAdvisor. ## Overview #### Real-Time Pricing Get current prices from multiple booking providers including Booking.com, Expedia, Hotels.com, and more. The TripAdvisor Hotel Prices endpoint provides real-time pricing information from various booking providers for specific dates. Compare prices across platforms and get direct booking links. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/hotel/prices/{location\_id} ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | location\_id | string | Required | TripAdvisor location ID (path parameter) | | check\_in | string | Required | Check-in date (YYYY-MM-DD) | | check\_out | string | Required | Check-out date (YYYY-MM-DD) | | adults | integer | Optional | Number of adult guests (1-8, default: 2) | | rooms | integer | Optional | Number of rooms (1-4, default: 1) | | currency | string | Optional | Currency code (default: "USD") | ## Response Structure ### Per-Offer Fields - `provider` - Provider name (e.g. "Priceline", "Booking.com") - `price_per_night` - Formatted price per night (e.g. "$140") - `total_stay_price` - Formatted total stay price - `taxes_value` - Taxes amount (numeric) - `is_lowest_price` - Whether this is the lowest price - `rooms_remaining` - Number of rooms left at this price ### Summary Data - `lowest_price` - Lowest available price - `pricing_complete` - Whether all providers have responded - `has_member_rates` - Whether member-only rates exist ## Common Providers Typical booking providers include: Booking.com Expedia Hotels.com Agoda Trip.com Hotel Website #### Price Variations Prices can vary significantly between providers. Always check multiple sources for the best deal. Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/prices/305165?check_in=2026-04-01&check_out=2026-04-03&adults=2&rooms=1" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "location_id": 305165, "search_params": { "check_in": "2026-04-01", "check_out": "2026-04-03", "adults": 2, "rooms": 1, "currency": "USD" }, "pricing_summary": { "lowest_price": "$140", "pricing_complete": true, "has_member_rates": false }, "available_offers": [ { "provider": "Priceline", "price_per_night": "$140", "total_stay_price": "$304", "is_lowest_price": true, "rooms_remaining": 2, "taxes_value": 13 }, { "provider": "Booking.com", "price_per_night": "$173", "total_stay_price": "$380", "is_lowest_price": false, "rooms_remaining": null, "taxes_value": 17 }, { "provider": "Agoda.com", "price_per_night": "$170", "total_stay_price": "$392", "is_lowest_price": false, "rooms_remaining": 2, "taxes_value": 26 } ], "message": "Successfully retrieved hotel pricing", "retrieved_at": "2026-02-27T10:55:08Z" } ``` ```json { "error": "Invalid dates", "detail": "Check-out date must be after check-in date", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/hotel-prices-from-url GET # TripAdvisor Prices from URL API Get real-time hotel prices directly from any TripAdvisor URL - no location ID needed. ## Overview #### URL-Based Pricing Simply paste a TripAdvisor hotel URL and get current prices from all booking providers in one API call. This endpoint combines URL parsing and price retrieval in a single request. Perfect for price comparison tools, browser extensions, or any workflow where you have hotel URLs. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/hotel/prices-from-url ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Any valid TripAdvisor hotel URL | | check\_in | string | Required | Check-in date (YYYY-MM-DD) | | check\_out | string | Required | Check-out date (YYYY-MM-DD) | | adults | integer | Optional | Number of adult guests (1-8, default: 2) | | rooms | integer | Optional | Number of rooms (1-4, default: 1) | | currency | string | Optional | Currency code (default: "USD") | ## Perfect For ### Browser Extensions Build price comparison extensions that work on any TripAdvisor hotel page. Users can see prices without leaving the site. ### Price Monitoring Track price changes for specific hotels over time. Just store the URL and check prices periodically. ### Travel Planning Tools Let users paste TripAdvisor links to compare prices across their shortlisted hotels. ### Automated Workflows Integrate with automation tools that collect hotel URLs from various sources. ## Example Workflow 1. User browses TripAdvisor and finds an interesting hotel 2. User copies the URL from their browser 3. Your application calls this API with the URL and desired dates 4. API returns prices from all available booking sites 5. User compares prices and books through their preferred provider #### URL Flexibility This endpoint accepts any TripAdvisor hotel URL format - mobile, desktop, different domains, with or without review pages. Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/hotel/prices-from-url?url=https://www.tripadvisor.com/Hotel_Review-g187791-d1418033-Reviews-Hotel_Ciao-Rome_Lazio.html&check_in=2026-04-01&check_out=2026-04-03" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "location_id": 1418033, "search_params": { "check_in": "2026-04-01", "check_out": "2026-04-03", "adults": 2, "rooms": 1, "currency": "USD" }, "pricing_summary": { "lowest_price": "$140", "pricing_complete": true, "has_member_rates": false }, "available_offers": [ { "provider": "Priceline", "price_per_night": "$140", "total_stay_price": "$304", "is_lowest_price": true, "rooms_remaining": 2, "taxes_value": 13 }, { "provider": "Booking.com", "price_per_night": "$173", "total_stay_price": "$380", "is_lowest_price": false, "rooms_remaining": null, "taxes_value": 17 }, { "provider": "Agoda.com", "price_per_night": "$170", "total_stay_price": "$392", "is_lowest_price": false, "rooms_remaining": 2, "taxes_value": 26 } ], "message": "Successfully retrieved hotel pricing", "retrieved_at": "2026-02-27T10:55:08Z" } ``` ```json { "error": "Invalid URL", "detail": "The provided URL is not a valid TripAdvisor hotel URL", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/location-extract-id GET # Extract Location ID API Parse TripAdvisor hotel URLs to extract the location ID needed for API calls. ## Overview #### URL Parser Utility Extract location IDs from any TripAdvisor hotel URL format. Essential for using location-based endpoints. The Extract Location ID endpoint is a utility function that parses TripAdvisor URLs and extracts the location ID. This ID is required for many other TripAdvisor API endpoints. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/location/extract-id ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Any valid TripAdvisor hotel URL | ## Understanding Location IDs ### URL Structure TripAdvisor URLs contain location IDs in this format: https://www.tripadvisor.com/Hotel\_Review-g1224250-d305165-Reviews-Hotel\_Name.html - g1224250 - Geographic location ID (city/region) - d305165 - Property location ID (specific hotel) - This API extracts the property ID (the number after "d") ## Supported URL Formats ### Standard URLs ` https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-The_Siam.html ` ### With Page Numbers ` https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-or10-The_Siam.html ` ### Different Domains ` https://www.tripadvisor.co.uk/Hotel_Review-g1224250-d305165-Reviews-The_Siam.html `` https://www.tripadvisor.de/Hotel_Review-g1224250-d305165-Reviews-The_Siam.html ` ### Mobile URLs ` https://m.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-The_Siam.html ` ## Common Use Cases - Preprocessing URLs before calling other TripAdvisor endpoints - Building URL-to-ID mapping databases - Validating TripAdvisor URLs in user input - Extracting IDs from retrieved or collected URLs - Converting between URL formats and location IDs #### Batch Processing When processing multiple URLs, extract all IDs first, then use the location-based endpoints for better performance. Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/location/extract-id?url=https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-The_Siam.html" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "data": { "location_id": "305165", "url": "https://www.tripadvisor.com/Hotel_Review-g1224250-d305165-Reviews-The_Siam.html" }, "message": "Successfully extracted location ID", "retrieved_at": "2024-01-15T10:30:00Z" } ``` ```json { "error": "Invalid URL format", "detail": "Could not extract location ID from URL. Please provide a valid TripAdvisor hotel URL.", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/search GET # TripAdvisor Search API Search for hotels in any destination on TripAdvisor with advanced filtering options. ## Overview #### Location-Based Search Search for hotels in a specific geographic area with optional date filters and sorting options. The TripAdvisor Search endpoint allows you to find hotels in a specific location (city, region, or area) with optional filtering by dates, guest configuration, and various sorting options. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/search ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | geo\_id | integer | Required | TripAdvisor geographic area ID (e.g., 293916 for Bangkok) | | check\_in | string | Optional | Check-in date (YYYY-MM-DD) | | check\_out | string | Optional | Check-out date (YYYY-MM-DD) | | adults | integer | Optional | Number of adult guests (1-8, default: 2) | | rooms | integer | Optional | Number of rooms (1-4, default: 1) | | children\_ages | array | Optional | List of children ages (e.g., [5, 12]) | | currency | string | Optional | Currency code (default: "USD") | | offset | integer | Optional | Pagination offset (default: 0) | | limit | integer | Optional | Number of results (1-50, default: 30) | | sort | string | Optional | Sort order (see options below) | ## Sort Options Available sort orders: `BEST_VALUE` Best value for money (default) `TRAVELER_RANKED` Traveler ranking `PRICE_LOW_TO_HIGH` Lowest price first `PRICE_HIGH_TO_LOW` Highest price first ## Finding Geographic IDs #### Common Geo IDs Bangkok: 293916, Phuket: 2400063, Rome: 187791, Paris: 187147, London: 186338, New York: 60763 Geographic IDs can be found in TripAdvisor destination URLs: ` https://www.tripadvisor.com/Tourism-g293916-Bangkok_Thailand.html ` The geo ID is `293916` (the number after "g"). ## Response Data ### Hotel Information - Hotel name and TripAdvisor location ID - Rating (out of 5) and review count - Price range (minimum and maximum per night) - GPS coordinates (latitude/longitude) - Property type (HOTEL, RESORT, etc.) - Address and neighborhood ### Pagination - Use `offset` and `limit` in `search_params` to paginate - Available filters and sort options returned per request Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/search?geo_id=293916&check_in=2026-04-18&check_out=2026-04-20&adults=2&rooms=1&limit=10" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "geo_id": 293916, "search_params": { "check_in": "2026-04-18", "check_out": "2026-04-20", "adults": 2, "rooms": 1, "children_ages": [], "currency": "USD", "offset": 0, "limit": 10, "sort": "BEST_VALUE" }, "hotels": [ { "location_id": 8950960, "name": "Hotel Clover Asoke", "url": "/HotelHighlight-g293916-d8950960-Reviews-...", "geo_location": { "latitude": 13.7412, "longitude": 100.5591 }, "rating": 4.5, "review_count": 2345, "price": { "minimum": 85, "maximum": 210 }, "property_type": "HOTEL", "address": "123 Sukhumvit Road", "neighborhood": "Asoke", "merchandising_labels": ["Travellers' Choice"] } ], "filters": {}, "sort_options": [], "message": "Successfully retrieved hotel search results", "retrieved_at": "2026-02-27T10:30:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "instance": "/v1/tripadvisor/search", "provider": "tripadvisor", "error_code": "UPSTREAM_ERROR", "correlation_id": "req_abcdef1234" } ``` --- Source: https://stayapi.com/docs/endpoints/tripadvisor/geo-search GET # TripAdvisor Geo Search API Map city or location names to TripAdvisor geo IDs for use with the Search endpoint. ## Overview #### Geo ID Lookup Use this endpoint to resolve location names (e.g., "Paris", "Bangkok") into TripAdvisor geo IDs, which are required by the Search endpoint. The Geo Search endpoint accepts a location name and returns matching geographic locations with their geo IDs. Pass the returned `geo_id` directly to `/v1/tripadvisor/search` to find hotels in that location. ### Endpoint URL GET https://api.stayapi.com/v1/tripadvisor/geo-search ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Location name to search for (e.g., "Paris", "Bangkok", "New York") | ## Example Geo IDs #### Use with Search Pass the geo\_id from this endpoint directly to /v1/tripadvisor/search?geo\_id=... to search for hotels in that location. | Location | Geo ID | Type | | --- | --- | --- | | Paris, Ile-de-France, France | 187147 | CITY | | Bangkok, Thailand | 293916 | CITY | | New York City, New York, US | 60763 | CITY | | Phuket, Thailand | 293920 | ISLAND | | London, England, UK | 186338 | CITY | ## Response Data ### Result Fields - `geo_id` — TripAdvisor geographic ID (use with Search endpoint) - `name` — Location name - `secondary_text` — Parent region or country - `geo_type` — Location type (CITY, ISLAND, MUNICIPALITY, etc.) Request ```curl curl -X GET "https://api.stayapi.com/v1/tripadvisor/geo-search?query=Paris" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "query": "Paris", "results": [ { "geo_id": 187147, "name": "Paris", "secondary_text": "Ile-de-France, France", "geo_type": "CITY" } ], "result_count": 1 } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR" } ``` --- Source: https://stayapi.com/docs/endpoints/expedia/destination-lookup Expedia GET # Destination Lookup API ## Overview Authenticate with X-API-Key. One successful call consumes one credit. ### Endpoint URL GET https://api.stayapi.com/v1/expedia/destinations/lookup ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Trimmed 1–200 characters. | ## Response scope Returns `query, count, destinations`. Destination records contain `region_id, entity_type, name, location, latitude, longitude`; coordinates may be null. Preserve long region IDs as strings. Use returned region\_id with Expedia search or property-name lookup, then pass the selected property\_id to reviews or rates. MCP: `expedia_lookup_destination`. ## Errors Invalid requests return 400 or 422 Problem Details. Upstream failures return 502, 503, or 504. Respect Retry-After when supplied; do not treat an error as empty results. Request ```curl curl 'https://api.stayapi.com/v1/expedia/destinations/lookup?query=Rovaniemi' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "query": "Rovaniemi", "count": 1, "destinations": [ { "region_id": "3059", "entity_type": "CITY", "name": "Rovaniemi", "location": "Finland", "latitude": null, "longitude": null } ] } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/expedia/destinations/lookup", "provider": "expedia" } ``` --- Source: https://stayapi.com/docs/endpoints/expedia/search Expedia GET # Destination Search API ## Overview Authenticate with X-API-Key. One successful call consumes one credit. ### Endpoint URL GET https://api.stayapi.com/v1/expedia/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | region\_id | string | Required | Numeric string, up to 30 digits. | | check\_in | date | Required | Strict YYYY-MM-DD. | | check\_out | date | Required | Strict YYYY-MM-DD, checkout after check-in. | | adults | integer | Optional | 1–8. Default: 2. | | offset | integer | Optional | 0–1000. Default: 0. | | limit | integer | Optional | 1–10. Default: 10. | | currency | string | Optional | Supported currencies: USD, EUR, GBP, AUD, CAD, JPY, THB, SGD, HKD, INR, NZD, BRL, MXN, CHF, DKK, NOK, SEK, KRW, MYR, IDR, PHP, SAR, TWD, VND, AED, PEN, CLP, COP, EGP, ARS, CNY, ISK and ZAR. Default: USD. Whitespace is trimmed and letters are uppercased. | | stars | string | Optional | Comma-separated star ratings 1–5, e.g. 4,5. Each level includes its half-star (4 includes 4.5). | | min\_guest\_rating | integer | Optional | 7, 8 or 9 on a 10-point scale. Properties rated at least this. | | sort | string | Optional | recommended (default), price\_low\_to\_high, price\_high\_to\_low, star\_rating or guest\_rating (highest first). | | free\_cancellation | boolean | Optional | Default: false. Only properties with a free-cancellation price. | | amenities | string | Optional | Comma-separated pool, free\_parking, free\_breakfast, pets. Properties must offer every listed amenity. | Other filter values return 400. Resend the same filters with `next_offset`; if a requested filter cannot be confirmed as applied, the search returns 502 rather than unfiltered results. ## Response scope Returns `region_id, region_name, check_in, check_out, adults, currency, offset, limit, sort, stars, min_guest_rating, free_cancellation, amenities, count, properties, next_offset, next_limit` and `availability_verified: false`. Each primary card has `property_id, name, canonical_url` and a nullable `price`. Prices are native regional quotes and can vary by market, not a fixed exchange-rate conversion. Property and room text may be localized for that market. Canonical URLs use the corresponding regional Expedia site. Discovery does not confirm availability. Continue only with the returned next\_offset/next\_limit pair; nullable continuation does not claim exhaustive inventory. `price` contains the search result prices for your dates and adults: `total` is the whole stay in the requested currency and includes taxes and fees; `currency` identifies that currency; `per_night` is the displayed nightly price; its tax basis depends on the market; `total_before_discount` is the struck-through whole-stay price when available; a nightly-only discount does not populate this field. `per_night` and `total_before_discount` are null when not shown, and `price` is null when no price in the requested currency is available (for example, sold out). Displayed nightly amounts can be rounded. Compare stays with `total`; do not multiply `per_night` by nights. It is a search-result price, not a bookable offer: use [Expedia Hotel Rates](/docs/endpoints/expedia/hotel-rates) for bookable room offers. With `free_cancellation` or `amenities`, `price` reflects the matching rate, such as the refundable or breakfast-included price. Unpriced properties (`price: null`), including sold-out stays, can follow the available results and are not guaranteed to match every filter. The filter fields echo what was applied: `sort`, `stars` (sorted, `[]` when unset), `min_guest_rating` (null when unset), `free_cancellation` and `amenities` (`[]` when unset). Use returned property IDs with Expedia reviews or rates. MCP: `expedia_search_hotels`. ## Errors Unsupported currency codes return 400 Problem Details. Other invalid requests return 400 or 422 Problem Details. Upstream failures return 502, 503, or 504. Respect Retry-After when supplied; do not treat an error as empty results. Request ```curl curl 'https://api.stayapi.com/v1/expedia/search?region_id=3059&check_in=2027-02-10&check_out=2027-02-12' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "region_id": "3059", "region_name": "Rovaniemi", "check_in": "2027-02-10", "check_out": "2027-02-12", "adults": 2, "currency": "USD", "offset": 0, "limit": 10, "sort": "recommended", "stars": [], "min_guest_rating": null, "free_cancellation": false, "amenities": [], "count": 2, "availability_verified": false, "properties": [ { "property_id": "525650", "name": "Scandic Rovaniemi City", "canonical_url": "https://www.expedia.com/Rovaniemi-Hotels-Scandic-Rovaniemi-City.h525650.Hotel-Information", "price": { "total": 461.16, "currency": "USD", "per_night": 203.0, "total_before_discount": null } }, { "property_id": "892285", "name": "Santa's Hotel Santa Claus", "canonical_url": "https://www.expedia.com/Rovaniemi-Hotels-Santas-Hotel-Santa-Claus.h892285.Hotel-Information", "price": { "total": 484.53, "currency": "USD", "per_night": 213.0, "total_before_discount": 538.0 } } ], "next_offset": null, "next_limit": null } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/expedia/search", "provider": "expedia" } ``` --- Source: https://stayapi.com/docs/endpoints/expedia/hotel-lookup Expedia GET # Property Name Lookup API ## Overview Authenticate with X-API-Key. One successful call consumes one credit. ### Endpoint URL GET https://api.stayapi.com/v1/expedia/hotel/lookup ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Trimmed 1–200 characters. | | region\_id | string | Required | A numeric string up to 30 digits from destination lookup. | ## Response scope Returns `query, region_id, count, availability_verified: false, properties`. Each suggestion contains `property_id, name, location, latitude, longitude`; coordinates may be null. These are dateless native property-name suggestions using region context, not verified geographic containment, exact matches or bookable availability. When no suggestions match, HTTP 200 returns `count: 0` and `properties: []`, with the requested `query` and `region_id` and `availability_verified: false`. An empty result is a successful lookup. Use returned property IDs with Expedia reviews or rates. MCP: `expedia_hotel_lookup`. ## Errors Invalid requests return 400 or 422 Problem Details. Upstream failures return 502, 503, or 504. Respect Retry-After when supplied; do not treat an error as empty results. Request ```curl curl 'https://api.stayapi.com/v1/expedia/hotel/lookup?query=Scandic®ion_id=3059' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "query": "Scandic", "count": 1, "region_id": "3059", "availability_verified": false, "properties": [ { "property_id": "525650", "name": "Scandic Rovaniemi City", "location": "Rovaniemi, Finland", "latitude": 66.502668, "longitude": 25.726847 } ] } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/expedia/hotel/lookup", "provider": "expedia" } ``` --- Source: https://stayapi.com/docs/endpoints/expedia/hotel-details GET # Expedia Hotel Details API Get property metadata using an Expedia property ID. No stay dates are required. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/expedia/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Positive ASCII decimal string without leading zeros. In an Expedia hotel URL, it is the number after `.h` and before `.Hotel-Information`. For example, `.h1582716.Hotel-Information` identifies property `1582716`. | ## Response Returns property identity and available descriptive metadata. Optional fields are null when Expedia does not publish them. Details do not establish stay availability or contain a price quote. | Field | Description | | --- | --- | | `property_id` | Expedia property ID, preserved as a string. | | `name`, `url` | Property name and Expedia property URL. The URL may redirect to Expedia's canonical hotel page. | | `description`, `amenities` | Property description and published popular amenities; the amenities list is not exhaustive. | | `address` | Street address, city, region (state/province), postal code, and source country value. | | `telephone`, `image`, `property_type` | Published telephone, primary image URL, and source schema.org lodging type (for example Hotel or Motel). Types are not an exhaustive enum. | | `room_count`, `check_in_time`, `check_out_time` | Room count and source check-in/out strings, when supplied. These fields can be null; times are not inferred. | | `structured_data` | Verified property JSON-LD object, or null. Preserves remaining published metadata and original image and @type shapes. Normalized image selects the first usable HTTP(S) URL; property\_type selects the first nonempty type. | | `latitude`, `longitude` | Geographic coordinates, when published. | | `star_rating` | Property classification, separate from guest ratings. | | `guest_rating`, `guest_rating_scale`, `review_count` | Aggregate guest score, its maximum scale, and review count. | ## Errors and billing Errors use `application/problem+json`. Invalid property IDs return HTTP 400; a missing required parameter returns HTTP 422. A confirmed missing property returns HTTP 404 with code NOT\_FOUND. When the property cannot be verified as missing, blocked, malformed, partial, or otherwise unverifiable Expedia responses return HTTP 502. A 502 does not establish that a property is missing. Only a successful data call consumes one credit. ## Related endpoints [Hotel reviews](/docs/endpoints/expedia/hotel-reviews) · [Dated room rates](/docs/endpoints/expedia/hotel-rates) The same details are available through MCP as `expedia_hotel_details`. Request ```curl curl 'https://api.stayapi.com/v1/expedia/hotel/details?property_id=1582716' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/expedia/hotel/details", "provider": "expedia" } ``` --- Source: https://stayapi.com/docs/endpoints/vrbo/destination-lookup Vrbo GET # Destination Lookup API ## Overview Authenticate with X-API-Key. One successful call consumes one credit. ### Endpoint URL GET https://api.stayapi.com/v1/vrbo/destinations/lookup ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Trimmed 1–200 characters. | ## Response scope Returns `query, count, destinations`. Destination records contain `region_id, entity_type, name, location, latitude, longitude`; coordinates may be null. Preserve long region IDs as strings. Vrbo native property-name lookup is not available. MCP: `vrbo_lookup_destination`. ## Errors Invalid requests return 400 or 422 Problem Details. Upstream failures return 502, 503, or 504. Respect Retry-After when supplied; do not treat an error as empty results. Request ```curl curl 'https://api.stayapi.com/v1/vrbo/destinations/lookup?query=Orlando' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "query": "Orlando", "count": 1, "destinations": [ { "region_id": "2693", "entity_type": "CITY", "name": "Orlando", "location": "Florida, United States", "latitude": null, "longitude": null } ] } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/vrbo/destinations/lookup", "provider": "vrbo" } ``` --- Source: https://stayapi.com/docs/endpoints/vrbo/search Vrbo GET # Destination Search API ## Overview Authenticate with X-API-Key. One successful call consumes one credit. ### Endpoint URL GET https://api.stayapi.com/v1/vrbo/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | region\_id | string | Required | Numeric string, up to 30 digits. | | check\_in | date | Required | Strict YYYY-MM-DD. | | check\_out | date | Required | Strict YYYY-MM-DD, checkout after check-in. | | adults | integer | Optional | 1–8. Default: 2. | | offset | integer | Optional | 0–1000. Default: 0. | | limit | integer | Optional | 1–10. Default: 10. | | currency | string | Optional | Default: USD. Only USD is accepted, including case/whitespace-normalized USD. | ## Response scope Returns `region_id, region_name, check_in, check_out, adults, currency, offset, limit, count, properties, next_offset, next_limit` and `availability_verified: false`. Each primary card has `property_id, name, canonical_url` and `listing_id`. Use internal `property_id` for reviews; public `listing_id` belongs in the Vrbo URL and may end in `ha`. Prices are omitted: to price a listing, pass its `property_id` to [Expedia Hotel Rates](/docs/endpoints/expedia/hotel-rates) with your dates and use the rate plan's total price, which can include rental fees. Discovery does not confirm availability. Continue only with the returned next\_offset/next\_limit pair; nullable continuation does not claim exhaustive inventory. Vrbo native property-name lookup is not available. MCP: `vrbo_search_listings`. ## Errors Invalid requests return 400 or 422 Problem Details. Upstream failures return 502, 503, or 504. Respect Retry-After when supplied; do not treat an error as empty results. Request ```curl curl 'https://api.stayapi.com/v1/vrbo/search?region_id=2693&check_in=2027-02-10&check_out=2027-02-12' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "region_id": "2693", "region_name": "Orlando", "check_in": "2027-02-10", "check_out": "2027-02-12", "adults": 2, "currency": "USD", "offset": 0, "limit": 10, "count": 1, "availability_verified": false, "properties": [ { "property_id": "124565672", "name": "The Ocean's Cove - Free Parking", "canonical_url": "https://www.vrbo.com/5031607", "listing_id": "5031607" } ], "next_offset": null, "next_limit": null } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/vrbo/search", "provider": "vrbo" } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/search Airbnb GET # Destination Search API Get Airbnb listing cards for a destination, one page of 18 at a time (pages 1–15). Use a city, neighborhood, or postal code, not a listing title: native property-name lookup is not available. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | location | string | Required | Trimmed, 2–200 characters: a city, neighborhood, or postal code such as `30308`, `Atlanta-GA-30308`, or `SW1A 1AA`. | | check\_in / check\_out | date | Optional | Paired, ordered `YYYY-MM-DD` dates. | | adults | integer | Optional | Defaults to 1 (1–16). | | children | integer | Optional | Defaults to 0 (0–16). | | infants / pets | integer | Optional | Default to 0 (0–5). | | currency | string | Optional | Defaults to USD. | | page | integer | Optional | Defaults to 1 (1–15). Airbnb shows 18 listings per page. | ## Pagination and large areas Airbnb returns at most 15 pages (about 270 listings) for any one search. Request `page` 1 first, then keep requesting the next page while `has_next_page` is `true`. Each page is a separate request. A page past the last one returns an empty `listings` list with `has_next_page: false`. To collect more listings for a whole city, run the search for each of its postal codes and page through each one. Results are centered on the location rather than strictly bounded by it, and ranking can shift between requests, so pages and neighboring areas can overlap: deduplicate by `listing_id`. ## Response scope The response contains `location`, `requested_currency`, optional dates, `dates_requested`, `availability_verified` (always `false`), `page`, `total_pages` (0 when nothing matched), `has_next_page`, `count`, and `listings`. The older `page_scope` field is deprecated: it is `first_page` on page 1 and `later_page` on later pages; use `page` instead. Each listing includes `listing_id`, `url`, and `title`, with optional `name`, `image_url`, `rating_display`, `displayed_price`, `price_qualifier`, `price_currency`, and `price_applies_to_requested_dates`. Undated searches omit prices. A dated displayed price is returned only when it applies to the requested dates and guests; neither mode confirms availability. USD is set only when the rendered price explicitly carries a `USD` suffix; `€` and `£` map to EUR and GBP. Other display formats leave `price_currency` null. ## Errors Invalid requests, including a `page` outside 1–15, return 400 or 422 Problem Details. Upstream failures return 502, 503, or 504; do not treat those as empty results. Request ```curl curl 'https://api.stayapi.com/v1/airbnb/search?location=Paris%2C+France&check_in=2026-11-01&check_out=2026-11-04&adults=2¤cy=USD&page=2' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "location": "Paris, France", "requested_currency": "USD", "check_in": "2026-11-01", "check_out": "2026-11-04", "dates_requested": true, "availability_verified": false, "page": 2, "total_pages": 15, "has_next_page": true, "page_scope": "later_page", "count": 1, "listings": [{ "listing_id": "", "url": "https://www.airbnb.com/rooms/", "title": "Example listing title", "displayed_price": "$423 USD", "price_currency": "USD", "price_applies_to_requested_dates": true }] } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/airbnb/search", "provider": "airbnb" } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/reviews GET # Airbnb Listing Reviews API Extract comprehensive guest reviews from Airbnb listings using the listing ID. ## Overview #### Real-time Review Data Get complete review content, ratings, and host responses with real-time data updates. The Airbnb Listing Reviews endpoint provides access to detailed review data including guest profiles, ratings, review text, and host responses. Perfect for analyzing guest feedback and sentiment. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/reviews/{listing\_id} ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | | limit | integer | Optional | Number of reviews per page (1-50, default: 10) | | offset | string | Optional | Pagination offset (default: "0") | | sort\_by | string | Optional | Sort order: BEST\_QUALITY or MOST\_RECENT (default: BEST\_QUALITY) | | check\_in | string | Optional | Check-in date for contextual reviews (YYYY-MM-DD) | | check\_out | string | Optional | Check-out date for contextual reviews (YYYY-MM-DD) | ## Response Structure ### Review Information - `id` - Unique review identifier - `rating` - Overall rating (1-5 stars) - `text` - Full review text - `language` - Review language code - `created_at` - Review submission date ### Reviewer Details - Reviewer ID and display name - Profile picture URL - Verification status ### Additional Data - Host response text and date (if available) - Total review count for pagination - Pagination metadata ## Finding the Listing ID #### Need the Listing ID? Use the /listing/extract-id endpoint to extract the listing ID from any Airbnb URL. The listing ID can be found in Airbnb URLs. For example: ` https://www.airbnb.com/rooms/22120898 ` The listing ID is `22120898` (the number after "rooms/"). Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/reviews/22120898?limit=10&offset=0" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22120898", "total_count": 321, "review_count": 10, "has_more": true, "reviews": [ { "id": "1092837465", "rating": 5, "text": "What an amazing place! The views were absolutely stunning and the host was incredibly helpful throughout our stay. The apartment was spotlessly clean and exactly as described in the photos.", "language": "en", "created_at": "2024-03-15", "reviewer": { "id": "user_456789", "name": "Sarah Johnson", "picture_url": "https://a0.muscache.com/im/pictures/user/456789.jpg" }, "host_response": { "text": "Thank you so much for your wonderful review, Sarah! We're thrilled you enjoyed your stay.", "created_at": "2024-03-16", "author": "Host" } }, { "id": "1092736284", "rating": 4, "text": "Great location and comfortable apartment. Check-in was smooth and the host provided lots of local recommendations. Only minor issue was street noise at night.", "language": "en", "created_at": "2024-03-10", "reviewer": { "id": "user_123456", "name": "Michael Chen", "picture_url": null }, "host_response": null } ] } ``` ```json { "error": "Listing not found", "detail": "No listing found with ID: 999999999", "status_code": 404 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/reviews-from-url GET # Airbnb Reviews From URL API Extract listing reviews directly from any Airbnb URL without extracting the listing ID first. ## Overview #### Simplified Workflow Automatically extracts listing ID from URL and retrieves reviews in one API call. This endpoint simplifies the review extraction process by accepting any Airbnb listing URL. It automatically parses the listing ID and retrieves the comprehensive review data, eliminating the need for manual ID extraction. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/reviews-from-url ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full Airbnb listing URL | | limit | integer | Optional | Number of reviews per page (1-50, default: 10) | | offset | string | Optional | Pagination offset (default: "0") | | sort\_by | string | Optional | Sort order: BEST\_QUALITY or MOST\_RECENT (default: BEST\_QUALITY) | | check\_in | string | Optional | Check-in date for contextual reviews (YYYY-MM-DD) | | check\_out | string | Optional | Check-out date for contextual reviews (YYYY-MM-DD) | ## Supported URL Formats ### Accepted Airbnb URL Patterns `https://www.airbnb.com/rooms/22120898`- Standard listing URL `https://airbnb.co.uk/rooms/22120898?check_in=2025-10-31`- With parameters `https://m.airbnb.com/rooms/22120898`- Mobile URL `https://www.airbnb.de/listing/22120898`- Alternative format ## Response Structure The response structure is identical to the standard listing reviews endpoint, with the addition of the extracted listing ID. ### Response Fields - `listing_id` - Extracted listing ID - `total_count` - Total number of reviews - `review_count` - Reviews in current response - `has_more` - Whether more reviews exist - `reviews` - Array of review objects ## Usage Tips #### URL Encoding Always URL-encode the Airbnb URL parameter to handle special characters and query parameters correctly. ### URL Validation The endpoint automatically validates and normalizes Airbnb URLs, supporting various international domains and URL formats. ### Pagination Use the offset parameter to paginate through large review sets. Check the has\_more field to determine if additional pages exist. ### Date Filtering Provide check\_in and check\_out dates to get reviews most relevant to specific booking periods. Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/reviews-from-url?url=https://www.airbnb.com/rooms/22120898&limit=5" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22120898", "total_count": 321, "review_count": 5, "has_more": true, "reviews": [ { "id": "1092837465", "rating": 5, "text": "Absolutely perfect stay! The apartment exceeded our expectations in every way. The location was ideal for exploring the city, and the host was incredibly responsive and helpful.", "language": "en", "created_at": "2024-03-20", "reviewer": { "id": "user_789012", "name": "Emma Wilson", "picture_url": "https://a0.muscache.com/im/pictures/user/789012.jpg" }, "host_response": { "text": "Thank you Emma! It was a pleasure hosting you. You're welcome back anytime!", "created_at": "2024-03-21", "author": "Host" } }, { "id": "1092736284", "rating": 4, "text": "Great apartment with beautiful views. Everything was clean and well-maintained. The only minor issue was the Wi-Fi speed could be better for remote work.", "language": "en", "created_at": "2024-03-18", "reviewer": { "id": "user_345678", "name": "David Martinez", "picture_url": "https://a0.muscache.com/im/pictures/user/345678.jpg" }, "host_response": null } ] } ``` ```json { "error": "Invalid URL", "detail": "The provided URL is not a valid Airbnb listing URL", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/extract-id GET # Airbnb Extract Listing ID API Parse Airbnb listing URLs to extract listing IDs required for API calls. ## Overview #### URL Parsing Utility Extract decimal-string listing IDs and base64 encoded IDs from any Airbnb URL format. This utility endpoint parses Airbnb URLs to extract the decimal listing ID that can be used with other API endpoints. The `listing_id` response value is a decimal string, preserving long IDs exactly; it also returns the base64 encoded ID format for complete compatibility. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/extract-id ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Any valid Airbnb listing URL to parse | ## Response Structure ### Response Fields - `listing_id` - Numeric listing ID (e.g., 22120898) - `url` - Original URL provided for verification - `encoded_id` - Base64 encoded ID for advanced operations ### ID Format Explanation The encoded\_id is a base64 encoding of the string format: ` "StayListing:22120898" → Base64 → "U3RheUxpc3Rpbmc6MjIxMjA4OTg=" ` ## Supported URL Formats ### All Airbnb URL Patterns `https://www.airbnb.com/rooms/22120898`→ ID: 22120898 `https://www.airbnb.com/rooms/22120898?guests=2&check_in=2025-01-01`→ ID: 22120898 `https://www.airbnb.co.uk/rooms/22120898`→ ID: 22120898 `https://m.airbnb.com/rooms/22120898`→ ID: 22120898 `https://www.airbnb.com/listing/22120898`→ ID: 22120898 ## Common Use Cases ### Browser Extensions Extract IDs from the current tab URL to fetch reviews or pricing data. ### Bulk Processing Process lists of Airbnb URLs from spreadsheets or databases. ### URL Validation Validate user input to ensure proper Airbnb listing URLs. ### API Integration Convert between URL formats and API identifiers for custom integrations. ## Error Handling #### Invalid URLs The endpoint will return a 400 error if the URL is not a valid Airbnb listing URL or if no listing ID can be extracted. ### Common Error Scenarios - Non-Airbnb URLs (returns 400) - Airbnb URLs without listing IDs (e.g., search pages) - Malformed or incomplete URLs - Experience URLs instead of listing URLs Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/extract-id?url=https://www.airbnb.com/rooms/22120898" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "listing_id": "22120898", "url": "https://www.airbnb.com/rooms/22120898?check_in=2025-10-31", "encoded_id": "U3RheUxpc3Rpbmc6MjIxMjA4OTg=" } ``` ```json { "detail": "Could not extract listing ID from URL. Make sure it's a valid Airbnb URL." } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/calendar GET # Airbnb Listing Calendar API Get real-time calendar availability and stay requirements for any Airbnb listing. ## Overview #### Real-time Availability Calendar data is fetched in real-time from Airbnb. Availability and prices may change frequently. The Airbnb Calendar endpoint returns per-day availability for up to 12 months, including minimum night requirements and check-in eligibility. Perfect for building availability calendars and checking booking windows. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/{listing\_id}/calendar ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | | months | integer | Optional | Number of months to fetch (1-12, default: 12) | ## Response Structure ### Calendar Data - `months` - Array of month objects with daily availability - `date` - Date in YYYY-MM-DD format - `available` - Whether the day is available for booking - `available_for_checkin` - Whether guests can check in on this date - `bookable` - Whether the date can be booked - `min_nights` - Minimum nights required for check-in on this date Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/22120898/calendar?months=3" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22120898", "months": [ { "month": 3, "year": 2026, "days": [ { "date": "2026-03-06", "available": true, "available_for_checkin": true, "bookable": true, "min_nights": 2 }, { "date": "2026-03-07", "available": false, "available_for_checkin": false, "bookable": false, "min_nights": null } ] } ] } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR", "provider": "airbnb" } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/details GET # Airbnb Listing Details API Extract property details from Airbnb listings including title, rating, host info, and guest policies. ## Overview #### Checkout Data This endpoint uses Airbnb's checkout API to get accurate, real-time listing information including guest policies. The Airbnb Listing Details endpoint provides comprehensive property information including listing title, rating, host name, badges, and guest capacity. Requires check-in/check-out dates to access the data. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/{listing\_id}/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | | children | integer | Optional | Number of children (0-10, default: 0) | | infants | integer | Optional | Number of infants (0-5, default: 0) | | pets | integer | Optional | Number of pets (0-5, default: 0) | | currency | string | Optional | Currency code (default: USD) | ## Response Structure ### Listing Information - `title` - Property title - `image_url` - Main listing image - `rating` - Average rating (e.g., "4.86 (886)") - `rating_count` - Number of reviews - `badge` - Award badge (e.g., "Guest favorite") - `host_name` - Host display name ### Guest Policies - `max_guests` - Maximum guest capacity - `children_allowed` - Whether children are welcome - `infants_allowed` - Whether infants are welcome - `pets_allowed` - Whether pets are allowed #### Looking for the property description? The checkout API that powers this endpoint does not include the listing description. Use the [Listing Overview](/docs/endpoints/airbnb/overview) endpoint to get the full property description (plus bedroom, bed, and bath counts). ## Finding the Listing ID #### Need the Listing ID? Use the /listing/extract-id endpoint to extract the listing ID from any Airbnb URL. The listing ID can be found in Airbnb URLs. For example: ` https://www.airbnb.com/rooms/22135033 ` The listing ID is `22135033` (the number after "rooms/"). Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/22135033/details?check_in=2026-01-30&check_out=2026-02-01&adults=2" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "nights": 2, "details": { "title": "Central Warsaw Studio \"Zgoda BLUE\"", "image_url": "https://a0.muscache.com/im/pictures/804ec3dd-...", "rating": "4.86 (886)", "rating_count": 886, "badge": "Guest favorite", "host_name": "Zuzanna And Milosz", "max_guests": 2, "children_allowed": true, "infants_allowed": false, "pets_allowed": false } } ``` ```json { "error": "Invalid dates", "detail": "check_out must be after check_in", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/details-from-url GET # Airbnb Details from URL API Extract property details from any Airbnb URL. Simply paste the listing URL to get all details. ## Overview #### Easy URL Input Just copy and paste any Airbnb listing URL - we'll extract the ID and fetch the details for you. This endpoint accepts any Airbnb listing URL and extracts the property details. Supports standard URLs, URLs with parameters, and international domains. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/details-from-url ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full Airbnb listing URL | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | | currency | string | Optional | Currency code (default: USD) | ## Supported URL Formats - `https://www.airbnb.com/rooms/22135033` - `https://www.airbnb.com/rooms/22135033?check_in=2026-01-30` - `https://airbnb.co.uk/rooms/22135033` - `https://m.airbnb.com/rooms/22135033` ## Response Structure ### Listing Information - `title` - Property title - `image_url` - Main listing image - `rating` - Average rating - `host_name` - Host display name - `badge` - Award badge Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/details-from-url?url=https://www.airbnb.com/rooms/22135033&check_in=2026-01-30&check_out=2026-02-01" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "source_url": "https://www.airbnb.com/rooms/22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "nights": 2, "details": { "title": "Central Warsaw Studio \"Zgoda BLUE\"", "image_url": "https://a0.muscache.com/im/pictures/804ec3dd-...", "rating": "4.86 (886)", "rating_count": 886, "badge": "Guest favorite", "host_name": "Zuzanna And Milosz", "max_guests": 2, "children_allowed": true, "infants_allowed": false, "pets_allowed": false } } ``` ```json { "error": "Invalid URL", "detail": "Could not extract listing ID from URL", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/overview GET # Airbnb Listing Overview API Get the bedroom, bathroom, and bed counts plus the room-by-room arrangement for any Airbnb listing — no check-in or check-out dates required. ## Overview #### Listing Capacity This endpoint reads the listing's public property page (PDP) to return the structured guest, bedroom, bed, and bath counts that are not exposed by the checkout-based /details endpoint. The Airbnb Listing Overview endpoint returns a property's capacity summary: title, full property description, guest count, bedrooms, beds, baths, the raw overview labels Airbnb displays, and the optional per-room arrangement breakdown. Unlike the Listing Details endpoint, it does not require check-in or check-out dates — just the listing ID. Responses return `listing_id` as a decimal string to preserve long IDs exactly. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/{listing\_id}/overview ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | #### No Dates Needed This endpoint takes no query parameters. You only need the listing ID — check-in, check-out, and guest counts are not required. ## Response Structure ### Top-Level Fields - `success` - Boolean, `true` on success - `listing_id` - The requested Airbnb listing ID (decimal string) - `overview` - Object containing the capacity summary (described below) ### Overview Object - `title` - Property title (e.g. "Entire rental unit in Warsaw, Poland") - `description` - Full property description as clean plain text (paragraph breaks preserved as newlines), or `null` when the listing has none - `guests` - Maximum guest capacity (integer) - `bedrooms` - Number of bedrooms (integer). **Returns `null` for studios** - `beds` - Number of beds (integer) - `baths` - Number of bathrooms as a float, so half-baths are represented as `1.5` - `raw_items` - Array of the exact overview labels Airbnb displays (e.g. `["2 guests", "1 bedroom", "1 bed", "1 bath"]`) - `room_arrangements` - Array of per-room sleeping arrangements, or `null` when Airbnb does not expose it ### Room Arrangement Object Each entry in `room_arrangements` describes one room: - `title` - Room name (e.g. "Bedroom") - `subtitle` - Bed summary for that room (e.g. "1 double bed") - `icons` - Array of Airbnb bed-type icon keys (e.g. `["SYSTEM_BED_DOUBLE"]`) ## Studios & Edge Cases #### bedrooms: null Means Studio For studio listings Airbnb has no separate bedroom, so the bedrooms field is intentionally null (not 0). Treat null as "studio" rather than an error, and rely on beds and guests for capacity. `room_arrangements` can also be `null` — for example on hotel-room style listings that have no per-room breakdown. Always check for `null` before iterating, and use `raw_items` as the human-readable fallback. ## Error Responses Errors are returned as [RFC 7807](https://www.rfc-editor.org/rfc/rfc7807) Problem Details with a non-2xx status code. A successful response is always 2xx. | Status | error\_code | When it happens | | --- | --- | --- | | 404 | NOT\_FOUND | The listing was not found or is no longer available. | | 500 | INTERNAL\_ERROR | An unexpected server-side error occurred. | | 502 | UPSTREAM\_ERROR | The request to Airbnb could not be completed, or its response could not be read. | ## Finding the Listing ID #### Need the Listing ID? Use the /listing/extract-id endpoint to extract the listing ID from any Airbnb URL. The listing ID can be found in Airbnb URLs. For example: ` https://www.airbnb.com/rooms/22135033 ` The listing ID is `22135033` (the number after "rooms/"). Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/22135033/overview" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "overview": { "title": "Entire rental unit in Warsaw, Poland", "description": "Small freshly renovated bright apartment in the center of Warsaw...", "guests": 2, "bedrooms": 1, "beds": 1, "baths": 1.0, "raw_items": ["2 guests", "1 bedroom", "1 bed", "1 bath"], "room_arrangements": [ { "title": "Bedroom", "subtitle": "1 double bed", "icons": ["SYSTEM_BED_DOUBLE"] } ] } } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Not Found", "status": 404, "detail": "Listing not found", "error_code": "NOT_FOUND", "listing_id": "22135033" } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/photos GET # Airbnb Listing Photos API Get the complete photo gallery for any Airbnb listing — every image in display order with captions, dimensions, and the room-by-room tour grouping — using just the listing ID. ## Overview #### Full Gallery, Not Just the Hero The Listing Details endpoint only returns the single hero image. This endpoint parses the listing's property page to return every photo in display order, plus captions and the gallery room tour when Airbnb provides it. The Airbnb Listing Photos endpoint returns the full image gallery for a listing: a total count, every photo with its CDN URL, aspect ratio, orientation, accessibility label, and optional caption, plus the optional room-by-room tour grouping. Like the Overview endpoint, it requires no dates — just the listing ID. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/{listing\_id}/photos ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | #### No Dates Needed This endpoint takes no query parameters. You only need the listing ID — check-in, check-out, and guest counts are not required. ## Response Structure ### Top-Level Fields - `success` - Boolean, `true` on success - `listing_id` - The requested Airbnb listing ID (decimal string) - `image_count` - Total number of images returned (integer) - `images` - Array of photo objects in display order (described below) - `room_tour` - Optional array grouping image IDs by room; **omitted entirely when Airbnb does not provide a room tour** ### Image Object - `id` - Airbnb image ID (string) - `url` - Unsized CDN image URL (see resizing note below) - `aspect_ratio` - Width / height as a float (e.g. `1.3333`) - `orientation` - `LANDSCAPE` or `PORTRAIT` - `accessibility_label` - Alt text Airbnb assigns to the image - `caption` - Human caption (e.g. "kitchenette"). **Omitted when empty or null** - `is_professional` - Boolean, whether the photo is flagged as professional ### Room Tour Object Each entry in `room_tour` groups images for one room: - `image_ids` - Array of image `id` values (strings) that belong to this room. Cross-reference against the `images` array - `title` - Room name (e.g. "Bedroom"). **Optional — omitted when Airbnb returns it as null** ## Image URLs & Resizing #### URLs Are Unsized The url field has no size suffix. Use it as-is for full resolution, or append an ?im\_w= query string to request a CDN-resized variant. Append one of these query strings to any image `url` to get a resized variant: - `?im_w=1440` - Large - `?im_w=720` - Medium - `?im_w=480` - Small - `?im_w=240` - Thumbnail For example: ` https://a0.muscache.com/im/pictures/804ec3dd-....jpg?im_w=720 ` Omit the query string entirely for the original full-resolution image. ## Error Responses Errors are returned as [RFC 7807](https://www.rfc-editor.org/rfc/rfc7807) Problem Details with a non-2xx status code. A successful response is always 2xx. | Status | error\_code | When it happens | | --- | --- | --- | | 404 | NOT\_FOUND | The listing was not found or is no longer available. | | 500 | INTERNAL\_ERROR | An unexpected server-side error occurred. | | 502 | UPSTREAM\_ERROR | The request to Airbnb could not be completed, or its response could not be read. | ## Finding the Listing ID #### Need the Listing ID? Use the /listing/extract-id endpoint to extract the listing ID from any Airbnb URL. The listing ID can be found in Airbnb URLs. For example: ` https://www.airbnb.com/rooms/22135033 ` The listing ID is `22135033` (the number after "rooms/"). Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/22135033/photos" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "image_count": 17, "images": [ { "id": "717978933", "url": "https://a0.muscache.com/im/pictures/804ec3dd-....jpg", "aspect_ratio": 1.3333, "orientation": "LANDSCAPE", "accessibility_label": "Listing image 1", "caption": "kitchenette", "is_professional": false } ], "room_tour": [ { "image_ids": ["717978933", "467176922"] } ] } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Not Found", "status": 404, "detail": "Listing not found", "error_code": "NOT_FOUND", "listing_id": "22135033" } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/pricing GET # Airbnb Listing Pricing API Get real-time pricing with nightly rates, service fees, and total costs for any Airbnb listing. ## Overview #### Dynamic Pricing Prices are calculated in real-time based on your check-in/check-out dates and guest count. The Airbnb Pricing endpoint returns a detailed breakdown of all costs including nightly rate, accommodation total, service fees, and the final total. Perfect for price comparison and booking cost estimation. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/{listing\_id}/pricing ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | | currency | string | Optional | Currency code (default: USD). E.g., EUR, GBP, JPY | ## Response Structure ### Pricing Information - `nights` - Number of nights - `currency` - Currency code - `nightly_rate` - Average price per night - `accommodation_total` - Total accommodation cost - `service_fee` - Airbnb service fee - `total` - Total amount to pay - `total_formatted` - Formatted total with currency symbol ### Price Breakdown - `breakdown` - Array of line items with descriptions and amounts - Each item includes type, description, and amount Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/22135033/pricing?check_in=2026-01-30&check_out=2026-02-01¤cy=EUR" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "nights": 2, "pricing": { "nights": 2, "currency": "EUR", "nightly_rate": 44.49, "accommodation_total": 76.00, "service_fee": 12.98, "total": 88.98, "total_formatted": "EUR88.98", "breakdown": [ { "type": "ACCOMMODATION", "description": "EUR44.49 x 2 nights", "amount": 76.00 }, { "type": "SERVICE_FEE", "description": "Service fee", "amount": 12.98 } ] } } ``` ```json { "error": "Listing unavailable", "detail": "This listing is not available for the selected dates", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/pricing-from-url GET # Airbnb Pricing from URL API Get pricing information from any Airbnb URL. Simply paste the listing URL to get the price breakdown. ## Overview #### Easy URL Input Just copy and paste any Airbnb listing URL to get real-time pricing. This endpoint accepts any Airbnb listing URL and returns the pricing breakdown. Prices are calculated based on your specified dates and guest count. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/pricing-from-url ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full Airbnb listing URL | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | | currency | string | Optional | Currency code (default: USD) | ## Response Structure ### Pricing Information - `nightly_rate` - Average price per night - `accommodation_total` - Total accommodation cost - `service_fee` - Airbnb service fee - `total` - Total amount - `total_formatted` - Formatted with currency symbol Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/pricing-from-url?url=https://www.airbnb.com/rooms/22135033&check_in=2026-01-30&check_out=2026-02-01" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "source_url": "https://www.airbnb.com/rooms/22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "nights": 2, "pricing": { "nights": 2, "currency": "USD", "nightly_rate": 43.95, "accommodation_total": 87.90, "service_fee": 16.23, "total": 104.13, "total_formatted": "$104.13" } } ``` ```json { "error": "Invalid URL", "detail": "Could not extract listing ID from URL", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/cancellation-policy GET # Airbnb Cancellation Policy API Get cancellation policies with refund terms, deadlines, and milestone dates for any Airbnb listing. ## Overview #### Date-Specific Policies Cancellation deadlines are calculated based on your check-in date. Always verify before booking. The Airbnb Cancellation Policy endpoint returns the listing's cancellation terms including policy type, refund percentages, and deadline milestones. Essential for understanding what happens if plans change. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/{listing\_id}/cancellation-policy ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | ## Policy Types - `CANCEL_FLEXIBLE` - Full refund up to 24 hours before check-in - `CANCEL_MODERATE` - Full refund up to 5 days before check-in - `CANCEL_STRICT` - 50% refund up to 7 days before check-in - `NON_REFUNDABLE` - No refund available ## Response Structure ### Availability - `available` - `true` when the listing can be booked for the selected dates. Check it before reading the policy. - `unavailability_reason` - Why the stay cannot be booked, or `null` When the dates cannot be booked, the response is still `200` with `available: false`. `cancellation_policy` keeps its shape: `policy_type`, `title` and `subtitle` are `null` and `milestones` and `disclaimers` are empty. See the UNAVAILABLE response example. ### Policy Information - `policy_type` - Policy category (e.g., CANCEL\_MODERATE) - `title` - Human-readable title (e.g., "Free cancellation") - `subtitle` - Summary with deadline date ### Milestones - `refund_type` - Type of refund (Full, Partial, None) - `deadline` - Deadline timestamp (ISO 8601) - `refund_term` - Detailed refund description Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/22135033/cancellation-policy?check_in=2026-01-30&check_out=2026-02-01" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "available": true, "unavailability_reason": null, "cancellation_policy": { "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "policy_type": "CANCEL_MODERATE", "title": "Free cancellation", "subtitle": "Cancel before January 25 for a full refund.", "milestones": [ { "refund_type": "Full refund", "deadline": "2026-01-25T13:00:00.000Z", "refund_term": "Get back 100% of what you paid." }, { "refund_type": "Partial refund", "deadline": "2026-01-30T13:00:00.000Z", "refund_term": "Get back 50% of every night but the first one." } ], "disclaimers": [ "Service fees are refunded when you cancel before check-in." ] } } ``` ``` { "success": true, "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "available": false, "unavailability_reason": "The listing cannot be booked for the selected dates", "cancellation_policy": { "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "policy_type": null, "title": null, "subtitle": null, "milestones": [], "disclaimers": [] } } ``` ```json { "error": "Invalid dates", "detail": "check_out must be after check_in", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/cancellation-policy-from-url GET # Airbnb Cancellation Policy from URL API Get cancellation policies from any Airbnb URL. Simply paste the listing URL to check refund terms. ## Overview #### Easy URL Input Copy and paste any Airbnb URL to see the cancellation policy and refund deadlines. This endpoint accepts any Airbnb listing URL and returns the cancellation policy with refund milestones and deadlines. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/cancellation-policy-from-url ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full Airbnb listing URL | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | ## Response Structure ### Availability - `available` - `true` when the listing can be booked for the selected dates. Check it before reading the policy. - `unavailability_reason` - Why the stay cannot be booked, or `null` When the dates cannot be booked, the response is still `200` with `available: false`. `cancellation_policy` keeps its shape: `policy_type`, `title` and `subtitle` are `null` and `milestones` and `disclaimers` are empty. See the UNAVAILABLE response example. ### Cancellation Policy - `policy_type` - Policy category - `title` - Human-readable title - `subtitle` - Summary with deadline - `milestones` - Array of refund deadlines Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/cancellation-policy-from-url?url=https://www.airbnb.com/rooms/22135033&check_in=2026-01-30&check_out=2026-02-01" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "available": true, "unavailability_reason": null, "cancellation_policy": { "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "policy_type": "CANCEL_MODERATE", "title": "Free cancellation", "subtitle": "Cancel before January 25 for a full refund.", "milestones": [ { "refund_type": "Full refund", "deadline": "2026-01-25T13:00:00.000Z", "refund_term": "Get back 100% of what you paid." } ] } } ``` ``` { "success": true, "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "available": false, "unavailability_reason": "The listing cannot be booked for the selected dates", "cancellation_policy": { "listing_id": "22135033", "check_in": "2026-01-30", "check_out": "2026-02-01", "policy_type": null, "title": null, "subtitle": null, "milestones": [], "disclaimers": [] } } ``` ```json { "error": "Invalid URL", "detail": "Could not extract listing ID from URL", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/payment-methods GET # Airbnb Payment Methods API Get available payment methods and payment plans for any Airbnb listing. ## Overview #### Payment Options Payment methods include credit cards, PayPal, Apple Pay, and split payment plans when available. The Payment Methods endpoint returns all available payment options for a listing, including payment plans that allow splitting the total across multiple payments. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/{listing\_id}/payment-methods ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | listing\_id | string | Required | Airbnb listing ID (path parameter). Use decimal digits as a string in client code to preserve long IDs. | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | | currency | string | Optional | Currency code (default: USD) | ## Response Structure ### Availability - `available` - `true` when the listing can be booked for the selected dates. Check it before reading the payment options. - `unavailability_reason` - Why the stay cannot be booked, or `null` When the dates cannot be booked, the response is still `200` with `available: false`. `payment_methods` keeps its shape with empty `methods` and `payment_plans`. See the UNAVAILABLE response example. ### Payment Methods (`methods`) - `type` - Payment method code (e.g., CREDIT\_CARD) - `display_name` - Payment method name - `provider` - Payment processor code - `supported_networks` - Accepted card networks (e.g., VISA), empty when not applicable - `is_default` - Whether the method is preselected ### Payment Plans (`payment_plans`) - `type` - Plan code (e.g., FULL\_PAYMENT, DEPOSITS) - `title` - Plan summary (e.g., "Pay $102.08 now") - `subtitle` - Plan details, or null - `amount` - Amount due now - `deposit_info` - Later payment amount and date, or null Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/22135033/payment-methods?check_in=2026-01-30&check_out=2026-02-01" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "available": true, "unavailability_reason": null, "payment_methods": { "listing_id": "22135033", "methods": [ { "type": "CREDIT_CARD", "display_name": "Credit or debit card", "provider": "BRAINTREE", "supported_networks": ["VISA", "MASTERCARD", "AMEX", "DISCOVER", "JCB"], "is_default": false }, { "type": "BRAINTREE_PAYPAL", "display_name": "PayPal", "provider": "BRAINTREE", "supported_networks": [], "is_default": false } ], "payment_plans": [ { "type": "FULL_PAYMENT", "title": "Pay $102.08 now", "subtitle": null, "amount": "$102.08", "deposit_info": null }, { "type": "DEPOSITS", "title": "Pay $0 now", "subtitle": "$102.08 charged on Dec 9. No extra fees.", "amount": "$0", "deposit_info": { "amount": "$102.08", "date": "Dec 9" } } ] } } ``` ``` { "success": true, "listing_id": "22135033", "available": false, "unavailability_reason": "The listing cannot be booked for the selected dates", "payment_methods": { "listing_id": "22135033", "methods": [], "payment_plans": [] } } ``` ```json { "error": "Invalid dates", "detail": "check_out must be after check_in", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/airbnb/payment-methods-from-url GET # Airbnb Payment Methods from URL API Get payment methods and plans from any Airbnb URL. Simply paste the listing URL to see payment options. ## Overview #### Easy URL Input Copy and paste any Airbnb URL to see available payment methods and split payment plans. This endpoint accepts any Airbnb listing URL and returns the available payment methods and payment plans. ### Endpoint URL GET https://api.stayapi.com/v1/airbnb/listing/payment-methods-from-url ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full Airbnb listing URL | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-16, default: 1) | | currency | string | Optional | Currency code (default: USD) | ## Response Structure ### Availability - `available` - `true` when the listing can be booked for the selected dates. Check it before reading the payment options. - `unavailability_reason` - Why the stay cannot be booked, or `null` When the dates cannot be booked, the response is still `200` with `available: false`. `payment_methods` keeps its shape with empty `methods` and `payment_plans`. See the UNAVAILABLE response example. ### Payment Information - `payment_methods.methods` - Array of available payment methods (`type`, `display_name`, `supported_networks`, ...) - `payment_methods.payment_plans` - Array of payment plan options (`type`, `title`, `amount`, ...) Request ```curl curl -X GET "https://api.stayapi.com/v1/airbnb/listing/payment-methods-from-url?url=https://www.airbnb.com/rooms/22135033&check_in=2026-01-30&check_out=2026-02-01" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "listing_id": "22135033", "available": true, "unavailability_reason": null, "payment_methods": { "listing_id": "22135033", "methods": [ { "type": "CREDIT_CARD", "display_name": "Credit or debit card", "provider": "BRAINTREE", "supported_networks": ["VISA", "MASTERCARD", "AMEX", "DISCOVER", "JCB"], "is_default": false }, { "type": "BRAINTREE_PAYPAL", "display_name": "PayPal", "provider": "BRAINTREE", "supported_networks": [], "is_default": false } ], "payment_plans": [ { "type": "FULL_PAYMENT", "title": "Pay $102.08 now", "subtitle": null, "amount": "$102.08", "deposit_info": null }, { "type": "DEPOSITS", "title": "Pay $0 now", "subtitle": "$102.08 charged on Dec 9. No extra fees.", "amount": "$0", "deposit_info": { "amount": "$102.08", "date": "Dec 9" } } ] } } ``` ``` { "success": true, "listing_id": "22135033", "available": false, "unavailability_reason": "The listing cannot be booked for the selected dates", "payment_methods": { "listing_id": "22135033", "methods": [], "payment_plans": [] } } ``` ```json { "error": "Invalid URL", "detail": "Could not extract listing ID from URL", "status_code": 400 } ``` --- Source: https://stayapi.com/docs/endpoints/agoda/search GET # Agoda Hotel Search API Find hotels and matching prices for a city, stay, and guest group. ## Overview Authenticate with `X-API-Key`. Supply exactly one of `city_id` or a compatible `url`, plus the stay dates. ### Endpoint URL GET https://api.stayapi.com/v1/agoda/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | city\_id | integer | One of city\_id / url | 1–2147483647. Phuket is 16056. | | url | string | One of city\_id / url | Compatible Agoda search URL; see rules below. | | check\_in | date | RequiredDirectly or in URL | YYYY-MM-DD; today through 365 days ahead. | | check\_out | date | RequiredDirectly or in URL | After check-in; maximum 90 nights. | | adults | integer | Optional | Default 2; 1–60; must be at least rooms. | | rooms | integer | Optional | Default 1; 1–9. | | children | integer | Optional | Default 0; 0–9. Without explicit ages, each child uses age 8. | | children\_ages | string | Optional | Up to nine comma-separated integer ages 0–17. Nonblank ages override children; omitted or blank uses children with age 8. | | currency | string | Optional | Default USD; normalized three-letter currency code. | | page | integer | Optional | Default 1; 1–1000. | ## Search URL compatibility The REST endpoint accepts HTTPS URLs at `agoda.com/search` or `www.agoda.com/search`. Supported URL fields are `city`, `checkIn`, `checkOut`, `adults`, `rooms`, `children`, `childAges`, `currency`, and `los` (length of stay). The optional `cid` tracking parameter is accepted without changing the search. URLs must not contain credentials, ports, fragments, or duplicate query keys. Conflicting explicit values or unsupported filters return 400. Hotel URLs and other hosts or paths are not search inputs. Example: `https://www.agoda.com/search?city=16056&checkIn=2027-05-15&checkOut=2027-05-17`. URL-encode the entire value when passing it as `url`. The playground and MCP tool use `city_id` directly. ## Response and pricing The response includes `success`, `city_id`, nullable `city_name`, effective `search` occupancy and dates, `currency`, `hotels`, `pagination`, and a UTC ISO `retrieved_at` timestamp. Each card has a numeric `hotel_id`, `name`, boolean `available`, and nullable `url`, `star_rating`, `latitude`, and `longitude`. `price_per_room_per_night` and `stay_price` each contain `exclusive`, `taxes_and_fees`, and `total`. They reflect the cheapest matching-currency whole-booking offer. `stay_price` covers the requested rooms and entire stay. Source rounding means multiplying nightly values may not exactly reproduce whole-booking values. Unavailable cards have null prices. ## Pagination and limitations Request the next `page` to continue in the provider's default ranking. `page_size` is fixed at 10, but the actual card count can differ, including 11 cards when an unavailable card is present. `returned_count` is the actual array length; `total_filtered_hotels` is the provider-reported total. There is no `has_more`, configurable page size, sorting, or filtering parameter. Hotel ordering and totals can change between calls. A valid empty search returns `hotels: []` with `returned_count: 0`. For a specific hotel name, use [hotel name lookup](/docs/endpoints/agoda/hotel-lookup). Use a selected `hotel_id` with [hotel details](/docs/endpoints/agoda/hotel-details) for a date-free property profile, or with [hotel prices](/docs/endpoints/agoda/hotel-prices) for room-level offers or [hotel reviews](/docs/endpoints/agoda/hotel-reviews). ## Errors Failures return RFC 7807 Problem Details: 400 for invalid or conflicting parameters, 502 for an upstream failure, and 503 when temporarily unavailable. Missing or incorrectly typed required parameters return 422. Authentication and account limits can return 401, 402, or 429 and apply. Failed searches never return a successful empty list. Illustrative response. Request ```curl curl "https://api.stayapi.com/v1/agoda/search?city_id=16056&check_in=2027-05-15&check_out=2027-05-17&adults=2&rooms=1¤cy=USD&page=1" -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "city_id": 16056, "city_name": "Phuket", "search": { "check_in": "2027-05-15", "check_out": "2027-05-17", "adults": 2, "rooms": 1, "children": 0, "children_ages": [] }, "currency": "USD", "hotels": [ { "hotel_id": 10884, "name": "Banyan Tree Phuket", "url": null, "star_rating": 5.0, "latitude": null, "longitude": null, "available": true, "price_per_room_per_night": { "exclusive": 150.0, "taxes_and_fees": 30.0, "total": 180.0 }, "stay_price": { "exclusive": 300.0, "taxes_and_fees": 60.0, "total": 360.0 } } ], "pagination": { "page": 1, "page_size": 10, "returned_count": 1, "total_filtered_hotels": 1 }, "retrieved_at": "2026-10-14T12:00:00Z" } ``` ```json {"type":"about:blank","title":"Bad Request","status":400,"detail":"Invalid search parameters","provider":"agoda"} ``` --- Source: https://stayapi.com/docs/endpoints/agoda/hotel-details GET # Agoda Hotel Details API Retrieve a date-free property profile using an Agoda hotel ID. ## Overview Send your API key in `X-API-Key`. This endpoint returns public property metadata, without prices, reviews, or availability. Calls use standard account authentication and usage limits. ### Endpoint URL GET https://api.stayapi.com/v1/agoda/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer | Required | A positive integer from 1 to 2147483647, for example 10884. Supply it exactly once. | Only `hotel_id` is accepted. URLs, dates, locale, currency, unknown query parameters, and duplicate keys are rejected. There is no pagination, filtering, or sorting. ## Response `success` is true and `hotel_id` matches the requested ID. `name` is the property name. `address` contains nullable strings `full`, `street`, `city`, `area`, `country`, and `postal_code`, nullable integer `city_id` and `country_id`, and boolean `is_obfuscated`. When `is_obfuscated` is false, `full` is present; `street` can be null when Agoda supplies only a locality address. When true, `full`, `street`, `latitude`, and `longitude` are null; public city, area, and country context is retained when available. `accommodation_type` and plain-text `description` are nullable strings. `star_rating`, `latitude`, and `longitude` are nullable numbers. `amenities` lists explicitly available facilities as `group`/`name` objects. `photos` contains selected HTTPS image URLs published by Agoda, including supplier photos, and nullable captions. Either array can be empty; neither is a promise of an exhaustive inventory or gallery. `retrieved_at` is a UTC ISO timestamp. This response has no canonical hotel URL or guest rating field. `useful_information` is always an object. `number_of_rooms` and `year_opened` are nullable integers: the declared total room count and the year the property opened, not live inventory or construction year. `check_in_from`, `check_in_until`, `check_out_from`, and `check_out_until` are nullable strings preserving published time text. `groups` is an ordered array of `name`/`items` objects; each item has nonempty `label` and `value` strings. Unavailable information has null scalar fields and an empty groups array. Numeric values that cannot be interpreted unambiguously remain null; the published text is retained in groups. ## Find an ID and continue Find candidate IDs with [hotel name lookup](/docs/endpoints/agoda/hotel-lookup) or [hotel search](/docs/endpoints/agoda/search). Resolve an existing URL with [URL to hotel ID](/docs/endpoints/agoda/hotel-url-to-id), then pass the ID here. Use [hotel prices](/docs/endpoints/agoda/hotel-prices) for dated availability and [hotel reviews](/docs/endpoints/agoda/hotel-reviews) for guest feedback. The former `/v1/agoda/hotel?url=` endpoint is unavailable and returns 404. Migrate URL-based requests by resolving the URL to an ID, then calling this details endpoint. ## Errors Errors use RFC 7807 Problem Details. Invalid values, unsupported query keys, or duplicate keys return 400. Missing or incorrectly typed required input returns 422. A confirmed missing hotel returns 404; upstream or malformed data returns 502. Temporary unavailability returns 503, and timeouts can return 504. Authentication and account limits can return 401, 402, or 429. A failure is never represented as a successful empty profile. Example below: description, amenities, photos, and useful-information groups shortened for readability. Request ```curl curl "https://api.stayapi.com/v1/agoda/hotel/details?hotel_id=10884" -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": 10884, "name": "Banyan Tree Phuket", "address": { "is_obfuscated": false, "full": "33 Moo 4 Srisoonthorn Road Cherngtalay, Bang Thao, Phuket, Thailand, 83110", "street": "33 Moo 4 Srisoonthorn Road Cherngtalay", "city": "Phuket", "city_id": 16056, "area": "Bang Thao", "country": "Thailand", "country_id": 106, "postal_code": "83110" }, "accommodation_type": "Hotel", "star_rating": 5.0, "latitude": 8.010550498962402, "longitude": 98.29580688476563, "description": "Experience Luxury and Tranquility at Banyan Tree Phuket Nestled just 15 kilometers from the vibrant ", "amenities": [ { "group": "Take a look at these facilities:", "name": "Fitness center" }, { "group": "Take a look at these facilities:", "name": "Garden" } ], "photos": [ { "url": "https://pix8.agoda.net/hotelImages/10884/0/0fb9f4117c4170172a443131152862a7.jpg?va=1&ce=3&s=1024x768", "caption": "Exterior view" } ], "retrieved_at": "2026-10-14T14:50:59.864184+00:00", "useful_information": { "number_of_rooms": 218, "year_opened": 1994, "check_in_from": "03:00 PM", "check_in_until": "12:00 AM", "check_out_from": null, "check_out_until": "12:00 PM", "groups": [ { "name": "The property", "items": [ { "label": "Number of rooms", "value": "218" }, { "label": "Year property opened", "value": "1994" } ] } ] } } ``` ```json {"type":"about:blank","title":"Bad Request","status":400,"detail":"Invalid hotel_id","provider":"agoda"} ``` --- Source: https://stayapi.com/docs/endpoints/agoda/hotel-lookup GET # Agoda Hotel Name Lookup API Find hotel suggestions by name and select an Agoda hotel ID. ## Overview Send your API key in `X-API-Key`. This endpoint returns hotel suggestions, without prices or availability. ### Endpoint URL GET https://api.stayapi.com/v1/agoda/hotel/lookup ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | 2–200 characters after trimming; control characters are rejected. Include the city to distinguish similarly named hotels. | There are no date, limit, or page parameters. ## Response `success` is true; `query` is the trimmed input. `hotels` contains hotel suggestions in provider order, with duplicate hotel IDs removed. `count` matches the returned array length and `retrieved_at` is a UTC ISO timestamp. Each hotel has a positive integer `hotel_id` and a `name`. The fields `city_id` (integer), `city`, `country_code`, `location`, `search_url`, and `image_url` are nullable. A successful lookup with no suggestions returns `hotels: []` and `count: 0`. ## Limits and next steps Suggestions are not an exhaustive hotel catalog and have no pagination. Check the name and location before choosing a hotel. Pass its `hotel_id` to [hotel details](/docs/endpoints/agoda/hotel-details) for a date-free property profile, to [hotel prices](/docs/endpoints/agoda/hotel-prices) with stay dates, or to [hotel reviews](/docs/endpoints/agoda/hotel-reviews). If you already have an Agoda hotel URL, use [URL to hotel ID](/docs/endpoints/agoda/hotel-url-to-id). ## Errors Errors use RFC 7807 Problem Details: 400 for invalid input, 502 for an upstream failure, and 503 when the service is temporarily unavailable. Missing or incorrectly typed required parameters return 422. Authentication and account limits can return 401, 402, or 429 and apply as for other StayAPI endpoints. A failure is never represented as a successful empty list. Request ```curl curl "https://api.stayapi.com/v1/agoda/hotel/lookup?query=Banyan%20Tree%20Phuket" -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "query": "Banyan Tree Phuket", "hotels": [ { "hotel_id": 10884, "name": "Banyan Tree Phuket", "city_id": 16056, "city": "Phuket", "country_code": "TH", "location": "Phuket, Thailand", "search_url": "https://www.agoda.com/search?hotel=10884&selectedproperty=10884", "image_url": null } ], "count": 1, "retrieved_at": "2026-10-14T12:00:00Z" } ``` ```json {"type":"about:blank","title":"Bad Request","status":400,"detail":"Invalid query","provider":"agoda"} ``` --- Source: https://stayapi.com/docs/endpoints/agoda/hotel-prices GET # Agoda Hotel Prices API Look up live Agoda room availability and normalized rate plans for one hotel and stay. ## Overview Send your API key in `X-API-Key`. If you only have an Agoda URL, resolve it first with the [URL-to-ID endpoint](/docs/endpoints/agoda/hotel-url-to-id). ### Endpoint URL GET https://api.stayapi.com/v1/agoda/hotel/prices ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer | Required | Positive numeric Agoda hotel ID | | check\_in | date | Required | `YYYY-MM-DD`; today through 365 days ahead | | check\_out | date | Required | After check-in; maximum stay 90 nights | | adults | integer | Optional | Default 2; range 1–60 | | rooms | integer | Optional | Default 1; range 1–9 | | children | integer | Optional | Default 0; range 0–9. Child age defaults to 8 when children\_ages is omitted or blank. | | children\_ages | string | Optional | Up to nine comma-separated integer ages 0–17, such as `5,8`. Nonblank ages override children; omitted or blank uses the children count with age 8 for each child. The response search includes the effective children and children\_ages. | | currency | string | Optional | Default USD; three-letter currency code | ## Response schema `price_per_room_per_night` and `stay_price` each expose the tax-exclusive amount, taxes and fees, and Agoda's all-inclusive total. The top-level `lowest_price` is the cheapest all-inclusive whole-stay rate. ## Sold-out stays #### Sold out is a successful lookup A valid stay with no bookable rates returns HTTP 200 with available: false, sold\_out: true, no lowest\_price, and room\_types: []. Availability and prices are live and can change between lookup and booking. ## Errors **400 / 422:** invalid dates, parameter ranges, child ages, hotel ID, or currency. **401 / 403:** missing, invalid, or unauthorized API key. **502:** Agoda could not provide room availability; retry once after a short delay. **503 / 504:** temporary capacity or timeout condition. Honor `Retry-After` when present. Error bodies use RFC 7807 `application/problem+json`. Only a 2xx response is data. Use the same `hotel_id` for [hotel details](/docs/endpoints/agoda/hotel-details) without dates. Find a hotel first with [city search](/docs/endpoints/agoda/search) or [hotel name lookup](/docs/endpoints/agoda/hotel-lookup). Request ```curl curl 'https://api.stayapi.com/v1/agoda/hotel/prices?hotel_id=10884&check_in=2027-05-15&check_out=2027-05-17&adults=2&rooms=1&children_ages=5%2C8¤cy=USD' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": 10884, "search": { "check_in": "2027-05-15", "check_out": "2027-05-17", "adults": 2, "rooms": 1, "children": 2, "children_ages": [5, 8] }, "currency": "USD", "currency_symbol": "$", "available": true, "sold_out": false, "lowest_price": { "exclusive": 600.84, "taxes_and_fees": 124.36, "total": 725.20 }, "room_types": [{ "room_id": 3122086, "name": "Banyan Pool Villa", "max_occupancy": 2, "available_rooms": 4, "bed_configuration": "1 king bed", "rates": [{ "rate_plan_id": 1019134, "name": "Banyan Pool Villa", "occupancy": 2, "available_rooms": 4, "currency": "USD", "price_per_room_per_night": { "exclusive": 300.42, "taxes_and_fees": 62.18, "total": 362.60 }, "stay_price": { "exclusive": 600.84, "taxes_and_fees": 124.36, "total": 725.20 }, "breakfast_included": true, "free_cancellation": false, "cancellation_policy": "Non-refundable", "taxes_and_surcharges": ["City tax 1%", "Tax 17.7%"] }] }], "retrieved_at": "2026-08-19T10:30:00Z" } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/agoda/hotel/prices", "provider": "agoda" } ``` --- Source: https://stayapi.com/docs/endpoints/agoda/hotel-url-to-id GET # URL to Hotel ID Convert Agoda hotel URLs to their numeric hotel IDs. ## Overview The URL to Hotel ID endpoint extracts the numeric hotel ID from an Agoda hotel URL. Use it whenever you have a hotel URL from a user or another source and need the numeric ID to call other Agoda endpoints like hotel reviews. ### Endpoint URL GET https://api.stayapi.com/v1/agoda/hotel/url-to-id ### Use Case Use this endpoint when you have an Agoda hotel URL (from a user or another source) and need the numeric hotel ID for use with other Agoda endpoints. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full Agoda hotel URL (see accepted formats below) | ### Accepted URL Formats - 1 Hotel detail URL `https://www.agoda.com//hotel/-.html` - 2 Hotel detail URL with `/all/` segment `https://www.agoda.com//hotel/all/-.html` Note: Query strings and fragments are stripped before lookup. ## Response Fields | Field | Type | Description | | --- | --- | --- | | hotel\_id | integer | The numeric Agoda hotel ID | | url | string | The normalized Agoda URL (query string and fragment removed) | ## Common Workflow ### URL to Reviews Flow 1. 1 #### Get Hotel ID from URL Call this endpoint with the hotel URL to get the numeric ID. GET /v1/agoda/hotel/url-to-id?url=https://www.agoda.com/oulu-hotelli-apartments/hotel/all/oulu-fi.html 2. 2 #### Use Hotel ID for Reviews Pass the returned `hotel_id` to the reviews endpoint. GET /v1/agoda/hotel/reviews/356812 **Note:** Cache hotel IDs on your end for frequently accessed hotels. The numeric ID never changes for a given hotel. For a date-free property profile, pass the resolved `hotel_id` to [hotel details](/docs/endpoints/agoda/hotel-details). ## Related Endpoints [ ### Hotel Reviews Fetch Agoda reviews for a hotel by its numeric ID ](/docs/endpoints/agoda/hotel-reviews)[ ### Review Comments Fetch reviews from a specific review provider for a hotel ](/docs/endpoints/agoda/hotel-review-comments) Request ```curl curl -X GET "https://api.stayapi.com/v1/agoda/hotel/url-to-id?url=https://www.agoda.com/oulu-hotelli-apartments/hotel/all/oulu-fi.html" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "hotel_id": 356812, "url": "https://www.agoda.com/oulu-hotelli-apartments/hotel/all/oulu-fi.html" } ``` ```json { "type": "https://api.stayapi.com/errors/not-found", "title": "Hotel ID Not Found", "status": 404, "detail": "Could not extract hotel ID from the provided URL.", "error_code": "NOT_FOUND", "provider": "agoda", "provided_url": "https://www.agoda.com/" } ``` --- Source: https://stayapi.com/docs/endpoints/agoda/hotel-reviews Find a hotel first with [city search](/docs/endpoints/agoda/search) or [hotel name lookup](/docs/endpoints/agoda/hotel-lookup). GET # Agoda Hotel Reviews API Extract comprehensive hotel reviews from Agoda with detailed ratings, guest profiles, and sentiment data. Returns Agoda's own guest reviews only. ## Overview #### Agoda Guest Reviews Returns Agoda’s own guest reviews only. Reviews Agoda shows from partner sites are not included. The Agoda Hotel Reviews endpoint provides access to comprehensive review data including guest ratings, detailed comments, reviewer profiles, stay information, and sub-ratings for various hotel aspects. It returns Agoda's own guest reviews only. ### Endpoint URL GET https://api.stayapi.com/v1/agoda/hotel/reviews/{hotel\_id} ## Management replies Returns Agoda's own guest reviews only; reviews Agoda shows from partner sites are not included; pagination (`total_count`, `has_more`) covers Agoda's own reviews only. The requested page size is 20; actual counts can differ. Agoda lists English-language reviews first (newest first with the default sort), then reviews in other languages, so for a complete date range, page until `has_more` is false. Advertised totals do not guarantee every review is accessible. A hotel with no Agoda reviews returns `200` with `reviews: []` and `total_count` 0; a page Agoda keeps blocking returns `502`, so retry it later. `reviews[].owner_response` is null when no reply is available, or an object with nullable string fields `text`, `published_date`, and `author`. Reply dates preserve source formatting; ISO format and timezone are not guaranteed. Date and author may be null even when text is present. ``` {"text":"Thank you for your feedback.","published_date":null,"author":"Hotel management"} ``` `review_score` is Agoda's own guest score and rating count (not combined with partner sites), never a page average. Its `review_count` can be higher than `pagination.total_count` because it includes ratings without written reviews. Available aggregates contain nullable `overall`, `score_text`, and `review_count`. Missing aggregates can be an empty object or null; the review comments endpoint may return null. Do not infer an aggregate from the reviews on this page. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer | Required | Agoda hotel ID (path parameter, e.g., 319457) | | page | integer | Optional | Page number for pagination (starts at 1, default: 1) | | sorting | integer | Optional | Sort order: 7 = most recent, 6 = highest rating, 5 = lowest rating (default: 7) | ## Response Format ### Success Response Returns a JSON object containing reviews array, pagination details, and hotel metadata. ``` { "success": true, "hotel_id": 319457, "hotel_name": "Omena Hotel Jyvaskyla", "reviews": [...], "pagination": { "current_page": 1, "page_size": 20, "total_count": 1459, "total_pages": 73, "has_more": true }, "review_score": { "overall": 7.9, "score_text": "Very good", "review_count": 1612 }, "retrieved_at": "2025-09-04T10:30:00Z" } ``` ### Review Object Structure #### Core Fields - `review_id` - Unique review identifier - `rating` - Overall rating (1-10 scale) - `title` - Review title/summary - `comment` - Full review text - `pros` - Positive aspects mentioned - `cons` - Negative aspects mentioned - `date` - Review submission date - `stay_date` - Guest's stay date - `room_type` - Room type booked - `helpful_count` - Number of helpful votes - `language` - Reviewer's language code (e.g. en, de, zh-CN; null if Agoda doesn't provide one) - `translation` - Agoda's machine translation, or null if Agoda didn't translate the review: nullable `language`, `title`, `comment`. `title`/`comment` above are always the original text #### Reviewer Object - `name` - Reviewer's display name - `country` - Reviewer's country - `level` - Reviewer experience level - `group_type` - Travel group type (Solo, Couple, Family, etc.) #### Sub-ratings Object - `cleanliness` - Cleanliness rating - `location` - Location rating - `service` - Service quality rating - `facilities` - Facilities rating - `value_for_money` - Value rating - `comfort` - Comfort rating ## Error Responses 400 ### Bad Request Invalid hotel ID or parameter values 401 ### Unauthorized Missing or invalid API key 500 ### Internal Server Error Failed to fetch reviews from Agoda ## Usage Tips #### Pagination Info The requested page size is 20; actual counts can differ. Use page to fetch available results; advertised totals do not guarantee exhaustive coverage. ### Best Practices - Start with page 1 and increment sequentially for pagination - Use sorting=7 for most recent reviews to get latest feedback - Page until pagination.has\_more is false; English-language reviews come first, then other languages - Cache review data as it doesn't change frequently - Combine with hotel details endpoint for complete property information - Sub-ratings provide detailed insights into specific hotel aspects Request ```curl curl -X GET "https://api.stayapi.com/v1/agoda/hotel/reviews/319457?page=1&sorting=7" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": 319457, "hotel_name": "Omena Hotel Jyvaskyla", "reviews": [ { "review_id": "1013949992", "rating": 10.0, "title": "Thanks a lot for Omena Call Support", "comment": "Omena Call Support helped me to get my check-in link and access code...", "pros": "", "cons": "", "reviewer": { "name": "Shintaro", "country": "Japan", "level": "", "group_type": "Group" }, "date": "August 22, 2025", "stay_date": "August 2025", "room_type": "Double Room", "helpful_count": 0, "language": "en", "translation": null, "photos": [], "sub_ratings": { "cleanliness": 9.0, "location": 9.5, "service": 8.0, "facilities": 8.5, "value_for_money": 8.5, "comfort": 9.0 }, "owner_response": { "text": "Dear guest, thank you for your kind words! We are glad you enjoyed the location and cleanliness, and we hope to welcome you again soon.", "published_date": "2025-08-20T10:15:00+07:00", "author": "Hotel Management" } }, { "review_id": "848411361", "rating": 9.2, "title": "Good for short stay in city center", "comment": "The room is spacious and clean. Location is unbeatable...", "pros": "", "cons": "", "reviewer": { "name": "Minjie", "country": "China", "level": "", "group_type": "Solo traveler" }, "date": "August 29, 2024", "stay_date": "August 2024", "room_type": "Double Room", "helpful_count": 0, "language": "en", "translation": null, "photos": [], "sub_ratings": { "cleanliness": 9.0, "location": 10.0, "service": 8.0, "facilities": 8.0, "value_for_money": 9.0, "comfort": 9.0 }, "owner_response": null } ], "pagination": { "current_page": 1, "page_size": 20, "total_count": 1459, "total_pages": 73, "has_more": true }, "review_score": { "overall": 7.9, "score_text": "Very good", "review_count": 1612 }, "retrieved_at": "2025-09-04T10:30:00Z" } ``` ```json { "error": { "code": "INVALID_HOTEL_ID", "message": "The provided hotel ID is invalid or not found", "status": 400 } } ``` --- Source: https://stayapi.com/docs/endpoints/agoda/hotel-reviews-from-url GET # Agoda Reviews from URL API Extract hotel reviews directly from any Agoda hotel URL without needing to know the hotel ID. ## Overview #### Automatic Hotel ID Extraction Simply provide any Agoda hotel URL and the API will automatically extract the hotel ID and fetch reviews. This endpoint simplifies the review extraction process by accepting any valid Agoda hotel URL. The API automatically identifies the hotel ID from the URL and retrieves all review data, making it perfect for applications that work with URLs rather than IDs. ### Endpoint URL GET https://api.stayapi.com/v1/agoda/hotel/reviews-from-url ## Supported URL Formats ### Valid Agoda URL Patterns https://www.agoda.com/hotel-name/hotel/city-country.html Standard hotel page URL https://www.agoda.com/hotel-name/hotel/all/city-country.html Hotel page with all locations https://www.agoda.com/en-us/hotel-name/hotel/city.html Localized URL with language prefix agoda.com/hotel-123456.html Short format with hotel ID in URL #### URL Parameters Query parameters like check-in dates, guest counts, etc. are ignored. Only the hotel identifier is extracted. ## Management replies Returns Agoda's own guest reviews only; reviews Agoda shows from partner sites are not included; pagination (`total_count`, `has_more`) covers Agoda's own reviews only. The requested page size is 20; actual counts can differ. Agoda lists English-language reviews first (newest first with the default sort), then reviews in other languages, so for a complete date range, page until `has_more` is false. Advertised totals do not guarantee every review is accessible. A hotel with no Agoda reviews returns `200` with `reviews: []` and `total_count` 0; a page Agoda keeps blocking returns `502`, so retry it later. `reviews[].owner_response` is null when no reply is available, or an object with nullable string fields `text`, `published_date`, and `author`. Reply dates preserve source formatting; ISO format and timezone are not guaranteed. Date and author may be null even when text is present. ``` {"text":"Thank you for your feedback.","published_date":null,"author":"Hotel management"} ``` `review_score` is Agoda's own guest score and rating count (not combined with partner sites), never a page average. Its `review_count` can be higher than `pagination.total_count` because it includes ratings without written reviews. Available aggregates contain nullable `overall`, `score_text`, and `review_count`. Missing aggregates can be an empty object or null; the review comments endpoint may return null. Do not infer an aggregate from the reviews on this page. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full Agoda hotel URL (query parameter) | | page | integer | Optional | Page number for pagination (starts at 1, default: 1) | | sorting | integer | Optional | Sort order: 7 = most recent, 6 = highest rating, 5 = lowest rating (default: 7) | ## How It Works 1 ### URL Validation The API validates that the provided URL is from agoda.com domain. 2 ### Hotel ID Extraction The system automatically extracts the hotel ID from the URL by analyzing the page content. 3 ### Review Fetching Reviews are retrieved using the extracted hotel ID with your specified parameters. 4 ### Response Delivery Complete review data is returned in the same format as the standard reviews endpoint. ## Usage Examples ### Basic Review Extraction Extract reviews from any Agoda hotel page: GET /v1/agoda/hotel/reviews-from-url?url=https://www.agoda.com/omena-hotel-jyvaskyla/hotel/jyvaskyla-fi.html ### With Pagination Get specific page of reviews (20 reviews per page): GET /v1/agoda/hotel/reviews-from-url?url=https://www.agoda.com/hotel-name/hotel/city.html&page=2 ### Sorted by Rating Get highest-rated reviews first: GET /v1/agoda/hotel/reviews-from-url?url=https://www.agoda.com/hotel/city.html&sorting=6 ## Error Handling 400 ### Invalid URL The provided URL is not a valid Agoda hotel URL ``` { "error": { "code": "INVALID_URL", "message": "The provided URL is not a valid Agoda hotel URL" } } ``` 400 ### Hotel ID Not Found Could not extract hotel ID from the provided URL ``` { "error": { "code": "HOTEL_ID_NOT_FOUND", "message": "Could not extract hotel ID from the provided URL" } } ``` #### URL Requirements Ensure the URL points to a valid Agoda hotel page, not search results or other pages. ## Best Practices ### Recommendations - Validate URLs on the client side before making API calls - Cache the extracted hotel ID for subsequent requests - Use URL encoding for special characters in the URL parameter - Consider using the direct hotel ID endpoint if you already have the ID - Handle pagination based on the total\_pages returned in the response - Implement retry logic for temporary extraction failures Request ```curl curl -X GET "https://api.stayapi.com/v1/agoda/hotel/reviews-from-url?url=https%3A%2F%2Fwww.agoda.com%2Fomena-hotel-jyvaskyla%2Fhotel%2Fjyvaskyla-fi.html&page=1" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": 319457, "hotel_name": "Omena Hotel Jyvaskyla", "reviews": [ { "review_id": "1013949992", "rating": 10.0, "title": "Thanks a lot for Omena Call Support", "comment": "Omena Call Support helped me to get my check-in link...", "pros": "", "cons": "", "reviewer": { "name": "Shintaro", "country": "Japan", "level": "", "group_type": "Group" }, "date": "August 22, 2025", "stay_date": "August 2025", "room_type": "Double Room", "helpful_count": 0, "language": "en", "translation": null, "photos": [], "sub_ratings": { "cleanliness": 9.0, "location": 9.5, "service": 8.0 }, "owner_response": { "text": "Dear guest, thank you for your kind words! We are glad you enjoyed the location and cleanliness, and we hope to welcome you again soon.", "published_date": "2025-08-25T10:15:00+07:00", "author": "Hotel Management" } } ], "pagination": { "current_page": 1, "page_size": 20, "total_count": 1459, "total_pages": 73, "has_more": true }, "review_score": { "overall": 7.9, "score_text": "Very good", "review_count": 1612 }, "retrieved_at": "2025-09-04T10:30:00Z" } ``` ```json { "error": { "code": "HOTEL_ID_NOT_FOUND", "message": "Could not extract hotel ID from the provided URL", "status": 400 } } ``` --- Source: https://stayapi.com/docs/endpoints/agoda/hotel-review-comments GET # Agoda Review Comments API Fetch Agoda's own guest reviews for a hotel, page by page. ## Overview This endpoint returns the same Agoda reviews as the [main reviews endpoint](/docs/endpoints/agoda/hotel-reviews): Agoda's own guest reviews only. Reviews Agoda shows from partner sites are not included. ### Endpoint URL GET https://api.stayapi.com/v1/agoda/hotel/reviews/{hotel\_id}/comments ## Management replies Returns Agoda's own guest reviews only; reviews Agoda shows from partner sites are not included; pagination (`total_count`, `has_more`) covers Agoda's own reviews only. The requested page size is 20; actual counts can differ. Agoda lists English-language reviews first (newest first with the default sort), then reviews in other languages, so for a complete date range, page until `has_more` is false. Advertised totals do not guarantee every review is accessible. A hotel with no Agoda reviews returns `200` with `reviews: []` and `total_count` 0; a page Agoda keeps blocking returns `502`, so retry it later. `reviews[].owner_response` is null when no reply is available, or an object with nullable string fields `text`, `published_date`, and `author`. Reply dates preserve source formatting; ISO format and timezone are not guaranteed. Date and author may be null even when text is present. ``` {"text":"Thank you for your feedback.","published_date":null,"author":"Hotel management"} ``` `review_score` is Agoda's own guest score and rating count (not combined with partner sites), never a page average. Its `review_count` can be higher than `pagination.total_count` because it includes ratings without written reviews. Available aggregates contain nullable `overall`, `score_text`, and `review_count`. Missing aggregates can be an empty object or null; this endpoint may return null. Do not infer an aggregate from the reviews on this page. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer | Required | Agoda hotel ID (path parameter) | | page | integer | Optional | Page number for pagination (starts at 1, default: 1) | | sorting | integer | Optional | Sort order: 7 = most recent, 6 = highest rating, 5 = lowest rating (default: 7) | ## Response Format ### Success Response Returns a page of Agoda's own guest reviews with pagination information. ``` { "success": true, "hotel_id": 319457, "reviews": [...], "pagination": { "current_page": 1, "page_size": 20, "total_count": 565, "total_pages": 29, "has_more": true }, "retrieved_at": "2025-09-04T10:30:00Z" } ``` ## Usage Examples ### Get the Newest Reviews Fetch the first page with the default sort (most recent): GET /v1/agoda/hotel/reviews/319457/comments?page=1 ### Get Highest Rated Reviews Fetch top-rated reviews for showcasing positive feedback: GET /v1/agoda/hotel/reviews/319457/comments?sorting=6 ### Paginate Through All Reviews Increase `page` until `pagination.has_more` is false: GET /v1/agoda/hotel/reviews/319457/comments?page=3 ## Best Practices ### Optimization Tips - Page until pagination.has\_more is false; English-language reviews come first, then other languages - Paginate available reviews; requested page size is 20 - Use sorting=6 to highlight positive reviews in your application Request ```curl curl -X GET "https://api.stayapi.com/v1/agoda/hotel/reviews/319457/comments?page=1&sorting=7" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": 319457, "reviews": [ { "review_id": "607467196", "rating": 8.0, "title": "Very good", "comment": "", "pros": "Enough space in room, clean and silent.", "cons": "Shower is annoying, whole toilet floor is wet after shower...", "reviewer": { "name": "Eerik", "country": "", "level": "", "group_type": "Business traveler" }, "date": "January 16, 2023", "stay_date": "", "room_type": "", "helpful_count": 0, "language": "en", "translation": null, "photos": [], "sub_ratings": {}, "owner_response": { "text": "Dear guest, thank you for taking the time to review us. We are glad the location worked well for you and hope to host you again.", "published_date": "2023-01-20T09:00:00+07:00", "author": "Hotel Management" } }, { "review_id": "607467536", "rating": 6.0, "title": "Will not go again to this hotel---", "comment": "", "pros": "The place of the hotel was very good. We could reach all parts of town...", "cons": "They didn't communicate with me. I contacted them about payment...", "reviewer": { "name": "Gyorgy", "country": "", "level": "", "group_type": "Business traveler" }, "date": "October 03, 2022", "stay_date": "", "room_type": "", "helpful_count": 0, "language": "en", "translation": null, "photos": [], "sub_ratings": {}, "owner_response": null } ], "pagination": { "current_page": 1, "page_size": 20, "total_count": 565, "total_pages": 29, "has_more": true }, "retrieved_at": "2025-09-04T10:30:00Z" } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR", "hotel_id": 319457 } ``` --- Source: https://stayapi.com/docs/endpoints/vrbo/listing-reviews GET # VRBO Listing Reviews API Extract comprehensive guest reviews from VRBO listings using the internal property ID returned by the extract-id endpoint or VRBO search. ## Overview #### Real-time Review Data Get complete review content, ratings, sentiments, and host responses with real-time data updates. The VRBO Listing Reviews endpoint provides access to detailed review data including guest feedback, ratings, sentiment tags, and host responses. Perfect for analyzing guest feedback and property reputation. ### Endpoint URL GET https://api.stayapi.com/v1/vrbo/listing/reviews/{property\_id} ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Internal VRBO property ID returned as property\_id by /v1/vrbo/listing/extract-id or VRBO search (path parameter). The public listing ID in a VRBO URL may be different. | | page | integer | Optional | Page number (1-indexed, default: 1) | | page\_size | integer | Optional | Reviews per page (1-20, default: 10) | | sort\_by | string | Optional | Sort order: recommended, newest, highest, lowest (default: recommended) | ## Response Structure ### Review Information - `id` - Unique review identifier - `rating` - Overall rating (1-10 scale) - `rating_text` - Rating description (Excellent, Good, etc.) - `title` - Review title (if available) - `text` - Full review text ### Reviewer Details - `reviewer_name` - Guest display name - `verified` - Verified stay indicator (always true) ### Additional Data - `sentiments` - Array of sentiment tags (e.g., "Great location", "Clean") - `host_response` - Host reply text (if available) - `has_more` - Boolean indicating more pages available - `total_reviews` - Total count of reviews returned ## Finding the Property ID #### Need the Property ID? Pass the listing URL to /v1/vrbo/listing/extract-id, then use the returned property\_id with this reviews endpoint. Direct reviews requests require that resolved internal ID; do not pass the public listing ID from the URL. For example, resolve this public listing URL with the [Extract Property ID endpoint](/docs/endpoints/vrbo/extract-id): ` https://www.vrbo.com/1319401 ` The resolver returns `property_id: "33486931"`. Use that value in `/v1/vrbo/listing/reviews/33486931`. A public listing ID can match an unrelated internal property ID, so resolve the listing URL before fetching reviews. If you use [VRBO Search](/docs/endpoints/vrbo/search), pass its `property_id` directly to this endpoint. Its `listing_id` is for the public listing URL. Request ```curl curl -X GET "https://api.stayapi.com/v1/vrbo/listing/reviews/33486931?page=1&page_size=10" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "property_id": "33486931", "total_reviews": 15, "page": 1, "page_size": 10, "has_more": true, "sort_by": "newest", "reviews": [ { "id": "review_123456", "rating": 10, "rating_text": "Excellent", "title": "Perfect beach getaway!", "text": "This property exceeded all our expectations. The views were absolutely stunning and the host was incredibly helpful throughout our stay. Everything was spotlessly clean.", "reviewer_name": "Sarah J.", "verified": true, "sentiments": ["Great location", "Clean", "Responsive host"], "host_response": "Thank you so much for your wonderful review! We're thrilled you enjoyed your stay." }, { "id": "review_123457", "rating": 8, "rating_text": "Good", "title": null, "text": "Great location and comfortable apartment. Check-in was smooth and the host provided lots of local recommendations.", "reviewer_name": "Michael C.", "verified": true, "sentiments": ["Great location"], "host_response": null } ] } ``` ```json { "error": "Property not found", "detail": "No property found with ID: 999999999", "status_code": 404 } ``` --- Source: https://stayapi.com/docs/endpoints/vrbo/extract-id GET # VRBO Extract Property ID API Resolve VRBO listing URLs to the internal property IDs required by the reviews endpoint. ## Overview #### Resolve Before Fetching Reviews The public listing ID in a VRBO URL may differ from the internal property ID. Use the property\_id returned by this endpoint when requesting reviews. This endpoint resolves a VRBO listing URL to the internal `property_id` accepted by the [Listing Reviews endpoint](/docs/endpoints/vrbo/listing-reviews). For example, `https://www.vrbo.com/1319401` resolves to `33486931`. Use the returned value instead of copying the URL path or removing an alphanumeric suffix. The same `property_id` prices the listing through the [Expedia Hotel Rates endpoint](/docs/endpoints/expedia/hotel-rates). ### Endpoint URL GET https://api.stayapi.com/v1/vrbo/listing/extract-id ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | VRBO listing URL to resolve, including URLs with query parameters | ## Response Structure ### Response Fields - `success` - Boolean indicating successful extraction - `property_id` - Resolved internal property ID to pass to the reviews endpoint (e.g., "33486931") - `url` - Normalized listing URL used for resolution ## Supported URL Formats ### Example VRBO Listing URLs `https://www.vrbo.com/1319401`-\> Internal property\_id: 33486931 `https://www.vrbo.com/3530707ha`-\> Resolve to obtain the internal property\_id `https://www.vrbo.com/1319401?arrival=2025-01-01&departure=2025-01-05`-\> Internal property\_id: 33486931 ## Common Use Cases ### Browser Extensions Resolve the current tab URL, then use the returned internal property\_id to fetch reviews. ### Bulk Processing Process lists of VRBO URLs from spreadsheets or databases. ### URL Validation Validate user input to ensure proper VRBO listing URLs. ### API Integration Convert between URL formats and API identifiers for custom integrations. ## Error Handling #### Invalid URLs Invalid URLs return 400. A listing whose internal property ID cannot be resolved returns 404. An upstream resolution failure returns 502. Do not fall back to the public URL ID when resolution fails. ### Common Error Scenarios - Non-VRBO URLs (returns 400) - Listings that no longer resolve to a property (404) - Malformed or incomplete URLs Request ```curl curl -X GET "https://api.stayapi.com/v1/vrbo/listing/extract-id?url=https://www.vrbo.com/1319401" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "success": true, "property_id": "33486931", "url": "https://www.vrbo.com/1319401?arrival=2025-01-01" } ``` ```json { "detail": "Could not extract property ID from URL. Make sure it's a valid VRBO URL." } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/hotel-url-to-id GET # KAYAK URL to Hotel ID API URL to Hotel ID from a public KAYAK property URL. ## Overview URL to Hotel ID from a public KAYAK property URL. Use StayAPI REST or MCP with your API key. #### Scope Extracts the identifier from the URL without checking that the hotel exists. existence\_checked is false. Pass hotel\_id to Hotel Reviews. Keep the canonical URL for Details, Photos, and Amenities. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/hotel/url-to-id ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | HTTPS kayak.com or www.kayak.com property URL, at most 2,048 characters, with a slug of ASCII alphanumeric segments separated by single hyphens followed by a positive hotel ID and .ksp. ID range: 1–2147483647, no leading zero. Only absent port or 443 is accepted; no userinfo, percent-encoding in the property path, backslashes, or control characters. Tracking queries (including encoded values) and fragments are removed and host normalized to www.kayak.com. Details, Photos, and Amenities require this URL; Reviews requires hotel\_id. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | hotel\_id | string | KAYAK hotel identifier. | | url | string | Canonical KAYAK property URL. | | existence\_checked | boolean | Always false; resolving an ID does not verify hotel existence. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400 INVALID\_URL: invalid property URL. - 422: required url is missing. - 401/402/429: authentication, credit, or rate-limit error. - 502: source data unavailable or unexpected response. - 503: service temporarily unavailable. - 504: source request timed out. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/hotel/url-to-id?url=https%3A%2F%2Fwww.kayak.com%2FUbud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": "118305", "url": "https://www.kayak.com/Ubud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp", "existence_checked": false } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/hotel/url-to-id", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/hotel-details GET # KAYAK Hotel Details API Hotel Details from a public KAYAK property URL. ## Overview Hotel Details from a public KAYAK property URL. Use StayAPI REST or MCP with your API key. #### Scope Returns published hotel content, not dated room inventory or bookable rates. Optional metadata can be null. The aggregate rating uses a 0–10 scale; Hotel Reviews uses a separate 0–100 scale. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | HTTPS kayak.com or www.kayak.com property URL, at most 2,048 characters, with a slug of ASCII alphanumeric segments separated by single hyphens followed by a positive hotel ID and .ksp. ID range: 1–2147483647, no leading zero. Only absent port or 443 is accepted; no userinfo, percent-encoding in the property path, backslashes, or control characters. Tracking queries (including encoded values) and fragments are removed and host normalized to www.kayak.com. Details, Photos, and Amenities require this URL; Reviews requires hotel\_id. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | hotel\_id | string | KAYAK hotel identifier. | | url | string | Canonical KAYAK property URL. | | name | string | Hotel name. | | description / telephone | string or null | Plain-text description and published telephone. | | address | object | Nullable street, city, region, country, and postal\_code. | | latitude / longitude / stars | number or null | Coordinates and star classification. | | rating / rating\_scale | number or null / integer | Aggregate rating with rating\_scale 10. | | total\_review\_count | integer or null | Source aggregate review count; may differ from the Hotel Reviews source total. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400 INVALID\_URL: invalid property URL. - 422: required url is missing. - 401/402/429: authentication, credit, or rate-limit error. - 502: source data unavailable or unexpected response. - 503: service temporarily unavailable. - 504: source request timed out. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/hotel/details?url=https%3A%2F%2Fwww.kayak.com%2FUbud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": "118305", "url": "https://www.kayak.com/Ubud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp", "name": "Four Seasons Resort Bali at Sayan", "description": "Resort in Sayan, Ubud.", "address": { "street": "Sayan Ubud Gianyar", "city": "Ubud", "region": "Bali", "country": "Indonesia", "postal_code": null }, "latitude": -8.501039, "longitude": 115.24166, "stars": 5, "rating": 9.5, "rating_scale": 10, "total_review_count": 328, "telephone": "+62 361 201 6000" } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/hotel/details", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/hotel-photos GET # KAYAK Hotel Photos API Hotel Photos from a public KAYAK property URL. ## Overview Hotel Photos from a public KAYAK property URL. Use StayAPI REST or MCP with your API key. #### Scope Returns the available property photo collection with attribution. total counts the returned photos. No pagination, filtering, or image-size controls are supported. The response example is a one-photo excerpt. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/hotel/photos ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | HTTPS kayak.com or www.kayak.com property URL, at most 2,048 characters, with a slug of ASCII alphanumeric segments separated by single hyphens followed by a positive hotel ID and .ksp. ID range: 1–2147483647, no leading zero. Only absent port or 443 is accepted; no userinfo, percent-encoding in the property path, backslashes, or control characters. Tracking queries (including encoded values) and fragments are removed and host normalized to www.kayak.com. Details, Photos, and Amenities require this URL; Reviews requires hotel\_id. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | hotel\_id | string | KAYAK hotel identifier. | | url | string | Canonical KAYAK property URL. | | photos | array | Photo objects with required string id and url; thumbnail\_url, category, attribution, and source are nullable strings. | | total | integer | Number of photos returned. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400 INVALID\_URL: invalid property URL. - 422: required url is missing. - 401/402/429: authentication, credit, or rate-limit error. - 502: source data unavailable or unexpected response. - 503: service temporarily unavailable. - 504: source request timed out. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/hotel/photos?url=https%3A%2F%2Fwww.kayak.com%2FUbud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": "118305", "url": "https://www.kayak.com/Ubud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp", "photos": [ { "id": "2650679066", "url": "https://content.r9cdn.net/rimg/himg/5f/b7/f3/leonardo-118305-515333-190155.jpg?width=836&height=607&crop=true", "thumbnail_url": "https://content.r9cdn.net/rimg/himg/5f/b7/f3/leonardo-118305-515333-190155.jpg?width=200&height=200&crop=true", "category": "Bedroom", "attribution": "Leonardo", "source": "leonardo" } ], "total": 1 } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/hotel/photos", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/hotel-amenities GET # KAYAK Hotel Amenities API Hotel Amenities from a public KAYAK property URL. ## Overview Hotel Amenities from a public KAYAK property URL. Use StayAPI REST or MCP with your API key. #### Scope Returns top amenities and grouped property amenities as published. This does not establish whether a particular room or rate includes an amenity. The response example is an illustrative excerpt. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/hotel/amenities ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | HTTPS kayak.com or www.kayak.com property URL, at most 2,048 characters, with a slug of ASCII alphanumeric segments separated by single hyphens followed by a positive hotel ID and .ksp. ID range: 1–2147483647, no leading zero. Only absent port or 443 is accepted; no userinfo, percent-encoding in the property path, backslashes, or control characters. Tracking queries (including encoded values) and fragments are removed and host normalized to www.kayak.com. Details, Photos, and Amenities require this URL; Reviews requires hotel\_id. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | hotel\_id | string | KAYAK hotel identifier. | | url | string | Canonical KAYAK property URL. | | top\_amenities | array | Highlighted amenity objects with code and name. | | categories | array | Category code and name, containing amenities with code and name. | | total | integer | Sum of amenity entries in categories, including repeated entries; top\_amenities highlights are excluded. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400 INVALID\_URL: invalid property URL. - 422: required url is missing. - 401/402/429: authentication, credit, or rate-limit error. - 502: source data unavailable or unexpected response. - 503: service temporarily unavailable. - 504: source request timed out. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/hotel/amenities?url=https%3A%2F%2Fwww.kayak.com%2FUbud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": "118305", "url": "https://www.kayak.com/Ubud-Hotels-Four-Seasons-Resort-Bali-at-Sayan.118305.ksp", "top_amenities": [ { "code": "outpool", "name": "Outdoor pool" } ], "categories": [ { "code": "service_convenience", "name": "Services and conveniences", "amenities": [ { "code": "roomservice", "name": "Room service" } ] } ], "total": 1 } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/hotel/amenities", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/hotel-reviews GET # KAYAK Hotel Reviews API Read KAYAK hotel reviews by hotel ID and page. ## Overview Read KAYAK hotel reviews by hotel ID and page. Use StayAPI REST or MCP with your API key. #### Scope Returns up to 10 reviews per page in source order. Pass hotel\_id from URL to Hotel ID and follow has\_more. total\_review\_count is this review source's total, which can differ from the Hotel Details aggregate; do not reconcile them. returned counts only this page. No sort, language, or date-range selector. date\_text is a source month/year label, not an exact publication date. Each score uses a 0–100 scale. The response example is a one-review excerpt with synthetic review text. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/hotel/reviews ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Positive ASCII decimal hotel ID from URL to Hotel ID, range 1–2147483647 with no leading zero. Example: 118305. | | page | integer | Optional | Page number, 1–1000. Default: 1. Fixed page size: 10. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | hotel\_id | string | KAYAK hotel identifier. | | page / page\_size | integer | Requested page and fixed page size 10. | | total\_review\_count | integer | Source review total, distinct from this page count and the Details aggregate. | | returned / has\_more | integer / boolean | Number of rows returned and whether another page is available. | | reviews | array | Review objects with required string id; nullable string author, date\_text, positive\_comment, negative\_comment, and source. | | reviews[].score / score\_scale | number or null / integer | Score from 0–100, with score\_scale always 100. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400: invalid hotel\_id or numeric page outside 1–1000. - 422: hotel\_id is missing or page is not an integer. - 401/402/429: authentication, credit, or rate-limit error. - 502/503/504: source data temporarily unavailable or request could not complete. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/hotel/reviews?hotel_id=118305&page=1' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": "118305", "page": 1, "page_size": 10, "total_review_count": 194, "returned": 1, "has_more": true, "reviews": [ { "id": "example-review", "author": "Example guest", "date_text": "Sep 2026", "score": 90, "score_scale": 100, "positive_comment": "Comfortable room.", "negative_comment": null, "source": "Booking.com" } ] } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/hotel/reviews", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/destinations GET # KAYAK Destination Lookup API Find KAYAK city IDs by name. ## Overview Find KAYAK city IDs by name. Use StayAPI with an X-API-Key through REST or MCP. #### Scope City-only suggestions, not a hotel search. Use the returned city\_id in Buzz Calendar. limit controls the maximum number returned; total counts this response. No pagination, locale, or currency controls are supported. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/destinations/lookup ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | City name, 2–100 characters after trimming surrounding whitespace. | | limit | integer | Optional | Maximum suggestions, 1–50. Default: 10. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | total | integer | Number of entries returned. | | destinations | array | City suggestions. | | destinations[].city\_id / name / display\_name | string | City ID, name, and display label. | | destinations[].country / country\_code / region | string or null | Country name, country code, and region where available. | | destinations[].latitude / longitude | number or null | City coordinates where available. | | destinations[].timezone | string or null | City timezone where available. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400: invalid query, city identifier, or numeric limit outside 1–50. - 422: required parameter missing or limit is not an integer. - 401/402/429: authentication, credit, or rate-limit error. - 502/503/504: source data temporarily unavailable or request could not complete. Errors are never returned as successful 2xx responses. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/destinations/lookup?limit=10&query=Paris' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "destinations": [ { "city_id": "36014", "name": "Paris", "display_name": "Paris, France", "country": "France", "country_code": "FR", "region": "Ile-de-France", "latitude": 48.8534, "longitude": 2.3488, "timezone": "Europe/Paris" } ], "total": 1 } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/destinations/lookup", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/hotel-lookup GET # KAYAK Hotel Lookup API Find KAYAK hotel IDs by hotel name. ## Overview Find KAYAK hotel IDs by hotel name. Use StayAPI with an X-API-Key through REST or MCP. #### Scope Hotel-only suggestions, best match first. Include the city in query for the best match. The source returns a short suggestion list, so broad queries such as a chain name return only a few hotels. Suggestions can include individual vacation-rental units listed as hotels; no field marks them, so confirm name and city before using an ID. Pass hotel\_id to Hotel Reviews. No property URL is returned; Details, Photos, and Amenities take a property URL ending in ..ksp and return the canonical property url. limit controls the maximum number returned; total counts this response. A valid search with no matches returns an empty list. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/hotel/lookup ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Hotel name, ideally with city (such as Hotel Indigo Boston Garden), 2–100 characters after trimming surrounding whitespace. | | limit | integer | Optional | Maximum suggestions, 1–50. Default: 10. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | total | integer | Number of entries returned. | | hotels | array | Hotel suggestions. | | hotels[].hotel\_id / name | string | KAYAK hotel ID and hotel name. | | hotels[].city / region / country / country\_code | string or null | Location metadata where available. | | hotels[].latitude / longitude | number or null | Hotel coordinates where available. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400: invalid query or numeric limit outside 1–50. - 422: required parameter missing or limit is not an integer. - 401/402/429: authentication, credit, or rate-limit error. - 502/503/504: source data temporarily unavailable or request could not complete. Errors are never returned as successful 2xx responses. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/hotel/lookup?limit=10&query=Hotel+Indigo+Boston+Garden' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotels": [ { "hotel_id": "32650", "name": "Hotel Indigo Boston Garden By IHG", "city": "Boston", "region": "Massachusetts", "country": "United States", "country_code": "US", "latitude": 42.364845, "longitude": -71.06161 } ], "total": 1 } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/hotel/lookup", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/kayak/buzz-calendar GET # KAYAK Buzz Calendar API Compare daily relative price bands for a city. ## Overview Compare daily relative price bands for a city. Use StayAPI with an X-API-Key through REST or MCP. #### Scope The response example is an illustrative excerpt. This is a city calendar with relative LOW, MEDIUM, and HIGH price bands. It does not return monetary prices, currency, or hotel availability. The source determines the dates; no date-range controls or pagination are supported. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/kayak/buzz-calendar ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | city\_id | string | Required | Positive ASCII decimal KAYAK city ID from Destination Lookup, range 1–2147483647 with no leading zero, such as 36014 for Paris. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on success. | | total | integer | Number of entries returned. | | city\_id | string | Requested KAYAK city identifier. | | price\_basis | string | Always relative; these are not price quotes. | | calendar | array | Daily entries with date (YYYY-MM-DD) and price\_level (LOW, MEDIUM, or HIGH). | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "kayak"`, an instance and correlation id. - 400: invalid query, city identifier, or numeric limit outside 1–50. - 422: required parameter missing or limit is not an integer. - 401/402/429: authentication, credit, or rate-limit error. - 502/503/504: source data temporarily unavailable or request could not complete. Errors are never returned as successful 2xx responses. ## Related resources [Find a city ID](/docs/endpoints/kayak/destinations)[Read relative daily price bands](/docs/endpoints/kayak/buzz-calendar)[URL to Hotel ID](/docs/endpoints/kayak/hotel-url-to-id)[Hotel Details](/docs/endpoints/kayak/hotel-details)[Hotel Photos](/docs/endpoints/kayak/hotel-photos)[Hotel Amenities](/docs/endpoints/kayak/hotel-amenities)[Hotel Reviews](/docs/endpoints/kayak/hotel-reviews)[KAYAK API overview](/apis/kayak)[Use KAYAK tools through MCP](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/kayak/buzz-calendar?city_id=36014' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "city_id": "36014", "calendar": [ { "date": "2026-11-15", "price_level": "LOW" } ], "total": 1, "price_basis": "relative" } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/kayak/buzz-calendar", "provider": "kayak", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/tripcom/hotel-search GET # Trip.com Hotel Search API Find hotels for a city and stay, compare source prices, then use a returned hotel\_id for reviews. ## Overview Authenticate with `X-API-Key: YOUR_API_KEY`. The MCP equivalent is `tripcom_search_hotels`. ### Endpoint URL GET https://api.stayapi.com/v1/tripcom/hotels/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | city\_id | integer | Required | Positive Trip.com city ID; Shanghai is 2 and Hangzhou is 17. | | check\_in | date | Required | YYYY-MM-DD; today or later. | | check\_out | date | Required | After check-in; maximum 30 nights. | | hotel\_name | string | Optional | Native hotel-name keyword, trimmed 1–200 characters; no control characters. City and dates remain required. | | currency | string | Optional | Currency code; default USD, normalized to uppercase. | | adults | integer | Optional | 1–6; default 2. | | rooms | integer | Optional | 1–6; default 1. | | limit | integer | Optional | 1–20; default 10. First page only. | Use the numeric city ID from a Trip.com city URL. No city-name resolver, children, sorting, additional filters, or later pages are supported. The response echoes normalized `hotel_name`, or null when omitted. Name matching follows the source and does not guarantee an exact match. Verified no matches return successful empty results. For example, add `hotel_name=Hilton` to a city/stay search. ## Price meaning and limits - `price.amount` is the displayed advertised price. Its nightly/stay basis and tax inclusion are unspecified; it may be rounded. Do not multiply it to calculate a stay total. - `total_amount` and `taxes_and_fees` preserve source payment-breakdown amounts for the requested rooms and nights, or null when unavailable. Totals can exclude charges payable locally at the property. `total_display` and `explanation` preserve source text; `details` preserves source title/content fields. `notes` preserves additional-charge notices: a quoted prepayment can exclude amounts due at the hotel. - The example's USD 37 advertised display differs from its USD 77.64 quoted payment amount; the explanation rounds the total to USD 78. - `price` is null when no usable public price is returned. Missing metadata is nullable. Neither a missing price nor a search card proves availability or bookability. - `prices_included` is true if any returned hotel has a price. `returned` counts cards; `total` is the upstream count. Only `page: 1` is exposed. - Prices may change before booking. Trip.com identifiers are provider-specific. ## Selected room and hotel-card context `selected_room` describes the first offer on the search card, the same offer used for `price`. It is not full room inventory and is null when absent. Room names retain complete source wording, including qualifiers such as “Non Smoking” when supplied. - `room_id` and `name` are nullable strings. `beds` contains source bed text; `bed_details` contains nullable `room_name` and a `beds` list. - `displayed_guests.adults` and `displayed_guests.children` are nullable displayed counts, not capacity or occupancy guarantees. - `badges`, `promotions`, `discount_labels` and `activity_labels` are source labels. Do not infer refundable, breakfast or smoking policies. `trip_coins` preserves nullable title/content text, not a derived cash value. - Hotel `category`, `position_description` and `is_sponsored` are nullable; `areas`, feature-title `highlights` and `awards` are string lists. Missing lists are empty. - `price.original_amount` and `price.original_display` preserve source crossed-out values, or null. No discount arithmetic or additional price-basis inference is applied. ## Errors Non-2xx errors use RFC 7807 Problem Details with `provider: "tripcom"` and a correlation ID. Invalid inputs return 400 or 422; upstream failures or mismatched request context return 502; timeouts return 504. [Read reviews for a returned hotel ID](/docs/endpoints/tripcom/hotel-reviews) Illustrative example; room offers and prices vary by stay. Request ```curl curl 'https://api.stayapi.com/v1/tripcom/hotels/search?city_id=17&check_in=2026-11-14&check_out=2026-11-16¤cy=USD&adults=2&rooms=1&limit=1' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "city_id": 17, "hotel_name": null, "check_in": "2026-11-14", "check_out": "2026-11-16", "adults": 2, "rooms": 1, "currency": "USD", "hotels": [ { "hotel_id": 106246641, "name": "Hangzhou Xixi Rezen Hotel", "name_en": "Hangzhou Xixi Rezen Hotel", "star_rating": 5, "guest_rating": 9.3, "review_count": 4589, "review_summary": "Very Good", "address": "Xixi Wetland Park Area", "city_id": 17, "city": "Hangzhou", "latitude": 30.230964410736657, "longitude": 120.04509614968305, "image": "https://ak-d.tripcdn.com/images/1mc6o12000b19wjmk693A_R_600_600_R5_D.jpg_.webp", "url": "https://www.trip.com/hotels/detail/?hotelId=106246641", "price": { "amount": 37.0, "currency": "USD", "basis": "advertised_price", "taxes_included": null, "total_amount": 77.64, "taxes_and_fees": 4.36, "total_display": "US$77.64", "explanation": "Total price: US$78\n1 room × 2 nights incl. taxes & fees", "notes": [], "details": { "total": { "title": "Prepay Online", "content": "US$77.64" }, "payTax": { "title": "Taxes & fees", "content": "US$4.36" } }, "original_amount": 52.0, "original_display": "US$52" }, "category": "Hotel", "position_description": "Near Xixi National Wetland Park | Zhejianggongye University (pingfengxiaoqu)", "areas": [ "Xixi Wetland Park Area" ], "highlights": [], "awards": [], "is_sponsored": true, "selected_room": { "room_id": "1880932053", "name": "Designer Space Red", "beds": [ "1 queen bed" ], "bed_details": [ { "room_name": "Bedroom 1", "beds": [ "1 queen bed (1.8m wide)" ] } ], "displayed_guests": { "adults": 2, "children": 0 }, "badges": [ "Free Cancellation" ], "promotions": [ "China travel deal", "Surprise Savings", "Multi-night Discount" ], "discount_labels": [ "28% off" ], "activity_labels": [ "Last booked 1 hr ago" ], "trip_coins": { "title": "Receive after stay", "content": "Earn 39 Trip Coins (≈US$0.39)" } } } ], "returned": 1, "total": 100, "page": 1, "prices_included": true } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/tripcom/hotels/search", "provider": "tripcom", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/tripcom/hotel-reviews GET # Trip.com Hotel Reviews API Extract comprehensive hotel reviews from Trip.com with detailed ratings, guest feedback, and filter options for sentiment analysis. ## Overview #### Multi-Provider Reviews Each review includes source: tripcom, ctrip, expedia, hotelscom, tripadvisor, or unknown. Attribution follows explicit review evidence; aggregate Expedia rating counts do not identify individual review origin. Token and signature fields are excluded; public aggregate rating metadata is retained. The Trip.com Hotel Reviews endpoint provides access to comprehensive review data including guest ratings, detailed comments, check-in dates, and sentiment filters. Reviews can be filtered by positive, negative, or those with photos/videos. ### Endpoint URL GET https://api.stayapi.com/v1/tripcom/hotel/reviews/{hotel\_id} ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer | Required | Trip.com hotel ID (path parameter, e.g., 702258) | | page | integer | Optional | Page number for pagination (starts at 1, default: 1) | | page\_size | integer | Optional | Number of reviews per page (default: 10, max: 50) | | currency | string | Optional | Currency code (default: USD) | | locale | string | Optional | Locale string (default: en-XX) | ## Response Format ### Success Response total\_reviews is the hotel aggregate, not the number of reviews guaranteed to be retrievable. pageable\_reviews is the current feed count (totalCountForPage); it can be lower than the aggregate. A positive aggregate with zero pageable reviews returns an empty successful page. Missing or malformed upstream review payloads return 502. An out-of-range page also returns an empty reviews array with the totals preserved. A complete response with zero aggregate and zero pageable reviews is also a successful empty page. ``` { "success": true, "hotel_id": 702258, "data": { "total_reviews": 919, "totalCountForPage": 850, "pageable_reviews": 850, "reviews": [...], "filterList": [...], "imageDomain": "ak-d.tripcdn.com" }, "retrieved_at": "2025-01-23T12:00:00Z" } ``` ### Review Object Structure #### Core Fields - `id` - Review identifier from Trip.com - `rating` - Review score (1-10 scale) - `title` - Rating label (e.g., "Very good", "Great") - `text` - Full review text - `date` - Review creation date - `stay_date` - Guest's check-in date - `reviewer_name` - Guest name - `room_type` - Room type booked - `travel_type` - Trip type (e.g., "Business traveler", "Family") - `images` - Array of review image URLs #### Filter List Object - `id` - Filter identifier - `name` - Filter name (e.g., "Positive reviews", "Negative reviews") - `commentCount` - Number of reviews matching filter - `filterType` - Type of filter (1 = sentiment, 2 = category) ## Error Responses 400 ### Bad Request Invalid hotel ID or parameter values 401 ### Unauthorized Missing or invalid API key 500 ### Internal Server Error Failed to fetch reviews from Trip.com ## Usage Tips #### Pagination Info Use page\_size up to 50 reviews per request. Calculate current feed pages by rounding up pageable\_reviews (the alias of totalCountForPage) divided by page\_size. total\_reviews is the hotel aggregate, not a pagination bound. ### Best Practices - Start with page 1 and increment sequentially for pagination - Use the filterList to understand review sentiment distribution - Use pageable\_reviews (totalCountForPage) to bound pagination; stop on an empty page and do not paginate toward the hotel aggregate total\_reviews - Cache review data as it doesn't change frequently - Use each review’s source: tripcom, ctrip, expedia, hotelscom, tripadvisor, or unknown - Use page\_size=50 for fewer API calls when fetching the available review feed Request ```curl curl -X GET "https://api.stayapi.com/v1/tripcom/hotel/reviews/702258?page=1&page_size=10" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": 702258, "data": { "imageDomain": "ak-d.tripcdn.com", "total_reviews": 919, "totalCountForPage": 850, "pageable_reviews": 850, "filterList": [ { "id": 1, "name": "All reviews", "commentCount": 919, "filterType": 1 }, { "id": 2, "name": "Positive reviews", "commentCount": 863, "filterType": 1 } ], "reviews": [ { "id": 1622571051, "source": "tripcom", "rating": 9, "title": "Great", "text": "Generally it was a pleasant stay and experience. It is next to a premium Mall...", "date": "2025-11-05 10:30:00", "stay_date": "2025-11-01 00:00:00", "reviewer_name": "John D.", "room_type": "Deluxe Room", "travel_type": "Business traveler", "images": [], "owner_response": { "text": "Dear John, thank you for the great review! We are delighted you enjoyed the location and look forward to welcoming you back.", "published_date": "2025-11-08 09:00:00", "author": null } }, { "id": 1622572098, "source": "unknown", "rating": 8, "title": "Very good", "text": "Great location, friendly staff, and clean rooms. Would definitely recommend!", "date": "2025-09-20 14:22:00", "stay_date": "2025-09-15 00:00:00", "reviewer_name": "Sarah M.", "room_type": "Standard Room", "travel_type": "Family", "images": ["https://ak-d.tripcdn.com/images/example.jpg"], "owner_response": null } ] }, "retrieved_at": "2025-01-23T12:00:00Z" } ``` ```json { "error": { "code": "INVALID_HOTEL_ID", "message": "The provided hotel ID is invalid or not found", "status": 400 } } ``` --- Source: https://stayapi.com/docs/endpoints/ctrip/destination-lookup GET # Ctrip Destination Lookup API Find the city\_id used by Ctrip hotel search from a city or resort name and optional country. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/ctrip/destinations/lookup Authenticate with your StayAPI key in the `X-API-Key` header. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | City or resort name in English or Chinese, 2–100 characters. Whitespace is trimmed. | | country | string | Optional | Exact English or provider-localized country name, 2–100 characters. Case-insensitive; ISO codes and guessed aliases are not supported. | | limit | integer | Optional | Suggestions to return, 1–15. Default 10. Does not suppress ambiguity checks. | ## Limits and errors - Names, province and country labels may be localized or null. country\_en is the provider-supplied English country name or null, returned on the selected city and each city suggestion. A successful city\_id is a city identifier, not a hotel or region identifier. - resolution is city for a direct city match or parent\_city for an exact place mapped to its containing Ctrip hotel-search city. matched\_place\_name, matched\_place\_type and nullable matched\_place\_id identify that place; all three are null for a direct city match. These fields appear on the selected result and each city suggestion. name and city\_id always describe the returned search city, which need not be a legal municipality. For example, Magaluf maps to Calvia (51423). - Supply country to help resolve a place within the intended country. A parent\_city result still requires an exact place-name match after case, accent, punctuation and spacing normalization, plus an explicit matching country; a similar hotel name or a place in another country is not a substitute. - A matching native city, including a supported localized city alias, takes precedence over a containing-city place match and a same-name province. For example, Sevilla resolves directly to Seville (1350) with resolution=city; a parent\_city result is used only when no native city matches. Province errors carry region\_type=province, destination\_id and a null city\_id. A place with conflicting parent cities returns 409; hotel-only or unmatched names return 404. - HTTP 409 DESTINATION\_AMBIGUOUS means several cities match. Inspect suggestions and candidate\_count; reducing limit to 1 does not force a match. Add country or select a verified city\_id. If the short name Castellón is ambiguous, use the full city name Castellón de la Plana; supported aliases do not guarantee that every short name is unique. - HTTP 422 DESTINATION\_NOT\_CITY identifies a province, region or island. The destination object includes region metadata and city\_suggestions; suggestions contains typed city children when available. Do not use a region ID as city\_id. - For example, Murcia with country=Spain can return 422 with the municipality city\_id 3496 among city\_suggestions; inspect the typed child rather than assuming the province is a city. - HTTP 404 DESTINATION\_NOT\_FOUND means no city matched. Invalid inputs return 400/422; upstream failures return 502 or 503. Errors are never successful empty city resolutions. HTTP 503 LOOKUP\_CAPACITY\_EXCEEDED includes Retry-After; wait that interval before retrying. Per-user rate limits still return 429. - Errors are non-2xx RFC 7807 Problem Details responses with `provider: "ctrip"` and a correlation id. ## Related Ctrip endpoints [Hotel search Pass the selected city\_id to find hotels.](/docs/endpoints/ctrip/hotel-search)[URL to Hotel ID Resolve an existing property URL instead of a destination.](/docs/endpoints/ctrip/extract-id) Request ```curl curl 'https://api.stayapi.com/v1/ctrip/destinations/lookup?query=Hangzhou&country=China&limit=10' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "query": "Hangzhou", "resolution": "city", "matched_place_name": null, "matched_place_type": null, "matched_place_id": null, "city_id": 17, "name": "杭州", "name_en": "Hangzhou", "country": "中国", "country_en": "China", "suggestions": [{ "resolution": "city", "matched_place_name": null, "matched_place_type": null, "matched_place_id": null, "city_id": 17, "name": "杭州", "name_en": "Hangzhou", "display_name": "杭州, 浙江, 中国", "province": "浙江", "country": "中国", "country_en": "China", "type": "domestic_city", "search_url": "https://hotels.ctrip.com/hotels/list?cityId=17" }], "returned": 1 } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/ctrip/destinations/lookup", "provider": "ctrip", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/ctrip/hotel-search GET # Ctrip Hotel Search API Find Ctrip properties by city ID, then use each hotel\_id for details, rooms, or reviews. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/ctrip/hotels/search Authenticate with your StayAPI key in the `X-API-Key` header. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | city\_id | integer | Required | Ctrip city ID. Hangzhou is 17. Minimum 1. | | check\_in | date | Optional | YYYY-MM-DD. Supply with check\_out; defaults to 14 days from today. | | check\_out | date | Optional | YYYY-MM-DD. Supply with check\_in; maximum stay is 30 nights. | | page | integer | Optional | Only page 1 is currently supported. Default 1. | | limit | integer | Optional | Hotels to return, from 1 to 13. Default 10. | ## Limits and errors - The public Ctrip SSR feed currently exposes only the first page and at most 13 hotels. - Search returns availability and a sample room, but not bookable rate-plan prices. - Errors are non-2xx RFC 7807 Problem Details responses with `provider: "ctrip"` and a correlation id. ## Related Ctrip endpoints [Destination lookup Find a city\_id by name and optional country; regions and ambiguous matches return non-2xx errors.](/docs/endpoints/ctrip/destination-lookup)[Hotel details Content, ratings, amenities, policies, and photos.](/docs/endpoints/ctrip/hotel-details)[Rooms & lowest price Availability and advertised public low price.](/docs/endpoints/ctrip/hotel-rooms) Request ```curl curl 'https://api.stayapi.com/v1/ctrip/hotels/search?city_id=17&check_in=2026-08-15&check_out=2026-08-16&limit=10' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "city_id": 17, "check_in": "2026-08-15", "check_out": "2026-08-16", "hotels": [{ "hotel_id": 18078321, "name": "杭州临平万丽酒店", "name_en": "Renaissance Hangzhou Northeast Hotel", "guest_rating": 4.7, "review_count": 792, "available": true, "url": "https://hotels.ctrip.com/hotels/18078321.html" }], "returned": 1, "total": 10379, "page": 1, "prices_included": false } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/ctrip/hotels/search", "provider": "ctrip", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/ctrip/extract-id GET # Ctrip URL to Hotel ID API Turn a public Ctrip hotel URL into the numeric hotel\_id used by the details, rooms, and reviews endpoints. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/ctrip/hotel/extract-id Authenticate with your StayAPI key in the `X-API-Key` header. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | An http(s) hotel URL on ctrip.com, including desktop and supported mobile forms. | ## Limits and errors - Resolution is local and does not make an upstream Ctrip request. - Non-Ctrip hosts and URLs without a numeric hotel ID return 400. - Errors are non-2xx RFC 7807 Problem Details responses with `provider: "ctrip"` and a correlation id. ## Related Ctrip endpoints [Hotel details Use the returned hotel\_id for property content.](/docs/endpoints/ctrip/hotel-details)[Hotel reviews Use the returned hotel\_id for guest feedback.](/docs/endpoints/ctrip/hotel-reviews) Request ```curl curl 'https://api.stayapi.com/v1/ctrip/hotel/extract-id?url=https%3A%2F%2Fhotels.ctrip.com%2Fhotels%2F18078321.html' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": 18078321, "url": "https://hotels.ctrip.com/hotels/18078321.html" } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/ctrip/hotel/extract-id", "provider": "ctrip", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/ctrip/hotel-details GET # Ctrip Hotel Details API Return the stable property profile behind a Ctrip hotel ID, including multilingual names, location, ratings, facilities, policies, and photos. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/ctrip/hotel/details/{hotel\_id} Authenticate with your StayAPI key in the `X-API-Key` header. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer (path) | Required | Positive Ctrip hotel ID from search, URL extraction, or a Ctrip hotel URL. | ## Limits and errors - Details are fetched live from Ctrip. - Nullable fields remain null when Ctrip does not publish them; arrays remain present and may be empty. - Errors are non-2xx RFC 7807 Problem Details responses with `provider: "ctrip"` and a correlation id. ## Related Ctrip endpoints [Hotel search Find hotel IDs for a Ctrip city.](/docs/endpoints/ctrip/hotel-search)[Rooms & lowest price Check a hotel's stay-specific availability.](/docs/endpoints/ctrip/hotel-rooms) Request ```curl curl 'https://api.stayapi.com/v1/ctrip/hotel/details/18078321' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": 18078321, "name": "杭州临平万丽酒店", "name_en": "Renaissance Hangzhou Northeast Hotel", "star_rating": 5.0, "address": "人民大道607号", "city_id": 17, "rating": 4.7, "rating_max": 5.0, "review_count": 792, "amenities": [{ "code": 102, "name": "公用区wifi", "category": "公共区", "fee_label": "免费" }], "photos": [{ "url": "https://example.com/hotel.jpg", "picture_id": 1 }], "url": "https://hotels.ctrip.com/hotels/18078321.html" } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/ctrip/hotel/details/18078321", "provider": "ctrip", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/ctrip/hotel-rooms GET # Ctrip Hotel Rooms & Lowest Price API Check stay-specific availability, normalized room content, and Ctrip's anonymous advertised from-price. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/ctrip/hotel/rooms/{hotel\_id} Authenticate with your StayAPI key in the `X-API-Key` header. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer (path) | Required | Positive Ctrip hotel ID. | | check\_in | date | Optional | YYYY-MM-DD. Supply with check\_out; defaults to 14 days from today. | | check\_out | date | Optional | YYYY-MM-DD. Supply with check\_in; maximum stay is 30 nights. | | adults | integer | Optional | Adults across the request, 1 to 8. Default 2. | | children\_ages | integer[] | Optional | Repeat the query key for each child age, 0 to 17, up to 8 values. | | rooms | integer | Optional | Rooms requested, 1 to 8. Default 1. | ## Limits and errors - Ctrip exposes the hotel-level advertised lowest public price anonymously. - Individual rate-plan prices are login-gated. Their price is null and price\_visibility is login\_required. - This endpoint can return 503 SERVICE\_UNAVAILABLE when it is temporarily busy; retry shortly. - Errors are non-2xx RFC 7807 Problem Details responses with `provider: "ctrip"` and a correlation id. ## Related Ctrip endpoints [Hotel details Get content and amenities for the same hotel\_id.](/docs/endpoints/ctrip/hotel-details)[Hotel search Find hotels and IDs by city.](/docs/endpoints/ctrip/hotel-search) Request ```curl curl 'https://api.stayapi.com/v1/ctrip/hotel/rooms/18078321?check_in=2026-08-15&check_out=2026-08-16&adults=2&rooms=1' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": 18078321, "check_in": "2026-08-15", "check_out": "2026-08-16", "nights": 1, "adults": 2, "children_ages": [], "rooms_requested": 1, "currency": "CNY", "available": true, "lowest_price": { "amount": 686.0, "currency": "CNY", "symbol": "¥", "basis": "advertised_from_price" }, "room_prices_included": false, "room_price_limitation": "Individual rate-plan prices require a Ctrip login.", "room_types": [], "total_room_types": 0, "total_rate_plans": 0 } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/ctrip/hotel/rooms/18078321", "provider": "ctrip", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/ctrip/hotel-reviews GET # Ctrip Hotel Reviews API Return Ctrip's first-page guest review feed in StayAPI's normalized cross-provider review shape. ## Overview ### Endpoint URL GET https://api.stayapi.com/v1/ctrip/hotel/reviews/{hotel\_id} Authenticate with your StayAPI key in the `X-API-Key` header. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | integer (path) | Required | Positive Ctrip hotel ID. | | page | integer | Optional | Only page 1 is currently available. Default 1. | | page\_size | integer | Optional | Reviews to return, 1 to 10. Default 10. | | currency | string | Optional | Currency context. Default CNY. | | locale | string | Optional | Locale context. Default zh-CN. | ## Limits and errors - Ctrip currently exposes only the first review page, with up to 10 reviews. - Each review includes source: tripcom, ctrip, expedia, hotelscom, tripadvisor, or unknown. Attribution follows explicit review evidence; aggregate Expedia rating counts do not identify individual review origin. Token and signature fields are excluded; public aggregate rating metadata is retained. - total\_reviews is the hotel aggregate. pageable\_reviews is the upstream current feed count when supplied, otherwise null; it is not a promise that all aggregate reviews can be retrieved. - A hotel with no reviews returns 404. Upstream anti-bot blocking returns 502 rather than a false empty result. - Errors are non-2xx RFC 7807 Problem Details responses with `provider: "ctrip"` and a correlation id. ## Related Ctrip endpoints [URL to Hotel ID Resolve a Ctrip link before requesting reviews.](/docs/endpoints/ctrip/extract-id)[Hotel details Get ratings and property metadata for the same hotel.](/docs/endpoints/ctrip/hotel-details) Request ```curl curl 'https://api.stayapi.com/v1/ctrip/hotel/reviews/18078321?page=1&page_size=10' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_id": 18078321, "data": { "total_reviews": 792, "pageable_reviews": null, "reviews": [{ "id": 2018492261, "source": "unknown", "rating": 5, "title": "超棒", "text": "带娃打卡,服务很好,房间很干净。", "date": "2026-07-12 10:00:00", "stay_date": "2026-07-10 00:00:00", "reviewer_name": "Ctrip guest", "room_type": "豪华大床房", "travel_type": "家庭亲子", "images": ["https://example.com/review.jpg"], "owner_response": null }] }, "retrieved_at": "2026-07-29T12:00:00Z" } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/ctrip/hotel/reviews/18078321", "provider": "ctrip", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/holidaycheck/hotels-search GET # HolidayCheck Hotel Name Search API - Find Hotel UUIDs Find hotel-name matches and use their UUIDs for details and reviews. ## Overview Find HolidayCheck hotels by name with StayAPI. Browse available matches, keep location context, and pass hotel UUIDs directly to hotel details and guest reviews. #### Scope query is trimmed and must contain 1–200 characters. This is hotel-name matching, not destination search. Each page contains up to 10 matches from the available result set. available\_count is the size of that returned set, not an exhaustive global hotel total; has\_more refers only to that set. A no-match query or page past the end returns HTTP 200 with hotels: []. There are no date, price, sort, language, or page-size controls. Pass hotel\_id directly to details or reviews. Search URLs use the stable /hi/{UUID} form, not a canonical hotel slug; that short URL form is not accepted by URL to Hotel ID. No caching guarantee is advertised. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful call costs one credit. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/holidaycheck/hotels/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Hotel name, 1–200 characters after trimming whitespace. | | page | integer | Optional | Page number, at least 1. Default: 1. Fixed maximum of 10 matches per page. | ## Response schema The response example is illustrative. Optional source values can be null. Review counts and ratings change over time. | Field | Type | Description | | --- | --- | --- | | query | string | Trimmed hotel-name query. | | hotels | array | Available hotel-name matches for this page; empty for no matches or a page past the end. | | hotels[].hotel\_id / hotel\_name | string | Hotel UUID and published name. Use hotel\_id directly for details and reviews. | | hotels[].location / destination\_id / destination\_name | string or null | Published location context and destination metadata, when available. These fields do not enable destination search. | | hotels[].url | string | Stable https://www.holidaycheck.de/hi/{UUID} hotel URL; not the canonical slug URL or an accepted resolver input. | | page / per\_page | integer | Requested page and fixed page size of 10. | | available\_count / has\_more | integer / boolean | Count of available matches and whether another page exists within that returned set. Not a global total. | | retrieved\_at | string | ISO timestamp for this response. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "holidaycheck"` and a correlation id. - **400** : query is empty or exceeds 200 characters after trimming. - **422** : missing query or invalid page; page must be an integer of at least 1. - **500** : the response could not be interpreted. - **502** : HolidayCheck data is unavailable or access was blocked. - **503** : temporarily rate-limited or unavailable; honor `Retry-After` when supplied. - **504** : the request timed out. - **401 / 402 / 429** : check your API key, available credits, and account rate limit. ## Related HolidayCheck endpoints [Find hotels by name](/docs/endpoints/holidaycheck/hotels-search)[Read hotel details](/docs/endpoints/holidaycheck/hotel-details)[Extract a hotel UUID from a URL](/docs/endpoints/holidaycheck/url-to-id)[Read hotel reviews and rating summaries](/docs/endpoints/holidaycheck/hotel-reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/holidaycheck/hotels/search?query=Alexa+Hotel&page=1" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ``` { "query": "Alexa Hotel", "hotels": [ { "hotel_id": "c6b63919-17b1-317d-a9e7-e69dbe195f2e", "hotel_name": "Alexa Hotel", "location": "Göhren auf Rügen", "destination_id": null, "destination_name": null, "url": "https://www.holidaycheck.de/hi/c6b63919-17b1-317d-a9e7-e69dbe195f2e" } ], "page": 1, "per_page": 10, "available_count": 1, "has_more": false, "retrieved_at": "2026-09-28T10:00:00Z" } ``` ```json { "type": "about:blank", "title": "Invalid Input", "status": 400, "detail": "Invalid HolidayCheck input.", "provider": "holidaycheck", "instance": "/v1/holidaycheck/hotels/search", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/holidaycheck/hotel-details GET # HolidayCheck Hotel Details API - Property Information Read hotel information, descriptions, grouped amenities, and rating summaries by UUID. ## Overview Read HolidayCheck hotel details with StayAPI: address, location, contact information, descriptions, amenity groups, check-in times, star classification, and ratings. #### Scope Use the hotel UUID directly, including IDs returned by Hotel Name Search or URL to Hotel ID. star\_rating is the property's star classification and star\_rating\_source identifies its published source; neither is the guest rating. summary.rating stays on the native six-point scale and recommendation\_percent is a percentage. Missing values remain null and missing descriptions or amenities are empty arrays. Text and check-in/check-out values retain their published wording; no translation or language control is offered. There are no dates, prices, room availability, or photo gallery fields. No caching guarantee is advertised. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful call costs one credit. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/holidaycheck/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Hotel UUID from name search, a supported hotel URL, or URL to Hotel ID. | ## Response schema The response example is illustrative. Optional source values can be null. Review counts and ratings change over time. | Field | Type | Description | | --- | --- | --- | | hotel\_id / hotel\_name / url | string | Hotel UUID, published name, and canonical /hi/{slug}/{UUID} hotel URL. | | star\_rating / star\_rating\_source | number or null / string or null | Published star classification and its source; separate from the guest rating. | | address | string or null | Published address as text. | | location.city / region / country / continent | string or null | Published geographic context. | | location.latitude / longitude | number or null | Coordinates when available. | | contact.phone / email | string or null | Published hotel contact information. | | description\_sections | array | Published descriptions with source, key, and text strings. Empty when unavailable. | | amenity\_groups | array | Structured amenity groups with category\_key, category\_name, subcategory\_name, group\_id, name, and items. | | amenity\_groups[].items | array | Amenities with string id and nullable name. A null item name is not replaced with the group name; the group name may carry the meaning. | | check\_in / check\_out | string or null | Published arrival and departure text; may include wording, not just a time. | | summary.rating / rating\_scale | number or null / integer | Native guest rating when available; rating\_scale is always 6. | | summary.recommendation\_percent / total\_reviews | number or null / integer | Recommendation percentage and total published reviews. | | retrieved\_at | string | ISO timestamp for this response. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "holidaycheck"` and a correlation id. - **422** : missing or invalid hotel UUID. - **404** : the hotel is confirmed missing. - **500** : the response could not be interpreted. - **502** : HolidayCheck data is unavailable or access was blocked. - **503** : temporarily rate-limited or unavailable; honor `Retry-After` when supplied. - **504** : the request timed out. - **401 / 402 / 429** : check your API key, available credits, and account rate limit. ## Related HolidayCheck endpoints [Find hotels by name](/docs/endpoints/holidaycheck/hotels-search)[Read hotel details](/docs/endpoints/holidaycheck/hotel-details)[Extract a hotel UUID from a URL](/docs/endpoints/holidaycheck/url-to-id)[Read hotel reviews and rating summaries](/docs/endpoints/holidaycheck/hotel-reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/holidaycheck/hotel/details?hotel_id=c6b63919-17b1-317d-a9e7-e69dbe195f2e" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ``` { "hotel_id": "c6b63919-17b1-317d-a9e7-e69dbe195f2e", "hotel_name": "Alexa Hotel", "url": "https://www.holidaycheck.de/hi/alexa-hotel/c6b63919-17b1-317d-a9e7-e69dbe195f2e", "star_rating": 3.5, "star_rating_source": "HSU", "address": "Poststraße 10\r\n18586\r\nOstseebad Göhren\r\nDeutschland", "location": { "city": "Göhren auf Rügen", "region": "Mecklenburg-Vorpommern", "country": "Deutschland", "continent": "Europa", "latitude": 54.34173, "longitude": 13.73761 }, "contact": { "phone": "+49 3830 86663100", "email": "info@alexahotel.de" }, "description_sections": [ { "source": "OWNER", "key": "LOCATION", "text": "zentral, am Ortseingang, ca. 650 Meter vom Strand" } ], "amenity_groups": [ { "category_key": "CATEGORY_FACILITIES", "category_name": "Ausstattung", "subcategory_name": "Wellness", "group_id": "c9271100-7ad1-39bd-a77f-ac0987d97812", "name": "Sauna", "items": [ { "id": "4c56b06a-caec-35f8-bbf0-22d4fdb6c9f9", "name": null } ] } ], "check_in": "ab 15:00 Uhr", "check_out": "bis 11:00 Uhr", "summary": { "rating": 4.779031254194159, "rating_scale": 6, "recommendation_percent": 88.30421228502881, "total_reviews": 336 }, "retrieved_at": "2026-09-28T15:02:56.307137Z" } ``` ```json { "type": "about:blank", "title": "Invalid Input", "status": 422, "detail": "Invalid HolidayCheck input.", "provider": "holidaycheck", "instance": "/v1/holidaycheck/hotel/details", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/holidaycheck/url-to-id GET # HolidayCheck URL to Hotel ID API - Extract Hotel UUIDs Extract the hotel UUID from a HolidayCheck property or review-listing URL. ## Overview Extract a HolidayCheck hotel UUID from a hotel or review-listing URL with StayAPI. Get the lowercase ID and normalized URL for paginated hotel review requests. #### Scope Extraction does not verify that the hotel exists. Accepts exact holidaycheck.de, holidaycheck.com, holidaycheck.at, or holidaycheck.ch hosts, with optional www, and paths /hi/{slug}/{uuid}, /hr/{slug}/{uuid}, or /hr/{uuid}. Individual /hrd/ review URLs are not supported. Query parameters and fragments are removed. Pass the returned hotel\_id directly to Hotel Details or Hotel Reviews. The short /hi/{uuid} URLs returned by name search are not accepted here; use their hotel\_id directly. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful call costs one credit. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/holidaycheck/hotel/url-to-id ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full supported HolidayCheck HTTPS URL containing a hotel UUID. Credentials and explicit ports, including 443, are rejected. | ## Response schema The response example is illustrative. Optional source values can be null. Review counts and ratings change over time. | Field | Type | Description | | --- | --- | --- | | hotel\_id | string | Lowercase hotel UUID; extraction does not establish hotel existence. | | url | string | Normalized supplied URL with query parameters and fragment removed. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "holidaycheck"` and a correlation id. - **400** : unsupported or malformed HolidayCheck URL. - **422** : missing required URL parameter. - **401 / 402 / 429** : check your API key, available credits, and account rate limit. ## Related HolidayCheck endpoints [Find hotels by name](/docs/endpoints/holidaycheck/hotels-search)[Read hotel details](/docs/endpoints/holidaycheck/hotel-details)[Extract a hotel UUID from a URL](/docs/endpoints/holidaycheck/url-to-id)[Read hotel reviews and rating summaries](/docs/endpoints/holidaycheck/hotel-reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/holidaycheck/hotel/url-to-id?url=https%3A%2F%2Fwww.holidaycheck.de%2Fhi%2Falexa-hotel%2Fc6b63919-17b1-317d-a9e7-e69dbe195f2e" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ``` { "hotel_id": "c6b63919-17b1-317d-a9e7-e69dbe195f2e", "url": "https://www.holidaycheck.de/hi/alexa-hotel/c6b63919-17b1-317d-a9e7-e69dbe195f2e" } ``` ```json { "type": "about:blank", "title": "Invalid Input", "status": 400, "detail": "Invalid HolidayCheck input.", "provider": "holidaycheck", "instance": "/v1/holidaycheck/hotel/url-to-id", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/holidaycheck/hotel-reviews GET # HolidayCheck Hotel Reviews API - Guest Feedback and Ratings Get paginated guest reviews and the hotel's native six-point rating summary. ## Overview Read HolidayCheck hotel reviews with StayAPI: six-point ratings, text sections, recommendation percentage, review timestamps, stay months, and paginated feedback. #### Scope A hotel UUID works directly; URL resolution is optional. Each page returns up to 10 reviews. There is no per\_page or language control. Text is returned as supplied by HolidayCheck; language and original\_language report source metadata. There is no requested translation or language filter. Ratings remain on HolidayCheck's six-point scale, while recommendation\_percent is a percentage. Owner responses are not included. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful call costs one credit. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/holidaycheck/hotel/reviews ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Hotel UUID from Hotel Name Search, a supported HolidayCheck URL, or URL to Hotel ID. | | page | integer | Optional | Page number, at least 1. Default: 1. Fixed maximum of 10 reviews per page. | | sort | enum | Optional | most\_relevant (default) or recent\_desc (newest first). | ## Response schema The response example is illustrative. Optional source values can be null. Review counts and ratings change over time. | Field | Type | Description | | --- | --- | --- | | hotel\_id / hotel\_name / url | string | Hotel UUID, published hotel name, and canonical HolidayCheck review-listing URL. | | summary.rating / summary.rating\_scale | number or null / integer | Published hotel rating, nullable when unavailable; rating\_scale is always 6. | | summary.recommendation\_percent | number or null | Published recommendation percentage, not a six-point rating. | | summary.total\_reviews / total\_count | integer | Total published reviews used for pagination. | | reviews | array | Up to 10 reviews. A confirmed zero-review hotel or a page past the end returns an empty array with HTTP 200. | | reviews[].id | string | Stable review identifier. | | reviews[].title / text | string or null | Published review title and main text, when available. | | reviews[].text\_sections | array | Structured text sections, each with key, label, and text. Empty when no sections are supplied. | | reviews[].rating / rating\_scale | number or null / integer | Native review rating when supplied; rating\_scale is always 6. | | reviews[].review\_date | string or null | ISO timestamp of the upstream review entry; not the stay date. | | reviews[].stay\_date | string or null | Stay month in YYYY-MM format; no invented day. | | reviews[].original\_language / language | string or null | original\_language is the original locale; language is the returned locale. They may differ. No translation or language filter can be requested. | | reviews[].reviewer\_name / traveler\_type | string or null | Published reviewer name and traveler category, when supplied. | | reviews[].recommended / verified\_stay | boolean or null | Published recommendation and verified-stay indicators. Null means unavailable, not false. | | page / per\_page / has\_more | integer / integer / boolean | Requested page, fixed page size of 10, and whether another page exists. | | retrieved\_at | string | ISO timestamp for this response. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "holidaycheck"` and a correlation id. - **422** : missing or invalid hotel UUID, invalid page, or unsupported sort. - **404** : the hotel is confirmed missing. - **500** : the response could not be interpreted. - **502** : HolidayCheck data is unavailable or access was blocked. - **503** : temporarily rate-limited or unavailable; honor `Retry-After` when supplied. - **504** : the request timed out. - **401 / 402 / 429** : check your API key, available credits, and account rate limit. ## Related HolidayCheck endpoints [Find hotels by name](/docs/endpoints/holidaycheck/hotels-search)[Read hotel details](/docs/endpoints/holidaycheck/hotel-details)[Extract a hotel UUID from a URL](/docs/endpoints/holidaycheck/url-to-id)[Read hotel reviews and rating summaries](/docs/endpoints/holidaycheck/hotel-reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/holidaycheck/hotel/reviews?hotel_id=c6b63919-17b1-317d-a9e7-e69dbe195f2e&page=1&sort=recent_desc" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ``` { "hotel_id": "c6b63919-17b1-317d-a9e7-e69dbe195f2e", "hotel_name": "Alexa Hotel", "url": "https://www.holidaycheck.de/hr/bewertungen-alexa-hotel/c6b63919-17b1-317d-a9e7-e69dbe195f2e", "summary": { "rating": 5.2, "rating_scale": 6, "recommendation_percent": 91, "total_reviews": 1 }, "reviews": [ { "id": "example-review", "title": "Angenehmer Aufenthalt", "text": "Freundlicher Service.", "text_sections": [ { "key": "SERVICE_OPINION", "label": "Service", "text": "Freundlicher Service." } ], "rating": 5, "rating_scale": 6, "review_date": "2026-08-20T10:00:00Z", "stay_date": "2026-08", "original_language": "de", "language": "de", "reviewer_name": "Gast", "traveler_type": null, "recommended": true, "verified_stay": null } ], "page": 1, "per_page": 10, "total_count": 1, "has_more": false, "retrieved_at": "2026-09-28T10:00:00Z" } ``` ```json { "type": "about:blank", "title": "Invalid Input", "status": 422, "detail": "Invalid HolidayCheck input.", "provider": "holidaycheck", "instance": "/v1/holidaycheck/hotel/reviews", "correlation_id": "example-correlation-id" } ``` --- Source: https://stayapi.com/docs/endpoints/expedia/hotel-reviews GET # Expedia Hotel Reviews API Extract guest reviews from Expedia hotels using the property ID. ## Overview #### Real-time Review Data Get complete review content, ratings, and reviewer information with real-time data updates. The Expedia Hotel Reviews endpoint returns up to 5 guest reviews per request for a hotel. Each review includes the rating, review text, reviewer name, and review date. Use pagination to fetch more reviews. ### Endpoint URL GET https://api.stayapi.com/v1/expedia/hotel/reviews ## Management replies `reviews[].owner_response` is null when no reply is available, or an object with nullable string fields `text`, `published_date`, and `author`. Only the first management reply is returned. Reply dates preserve source formatting; ISO format and timezone are not guaranteed. Date and author may be null even when text is present. ``` {"text":"Thank you for your feedback.","published_date":null,"author":"Hotel management"} ``` ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Expedia property ID (numeric string, e.g., "1582716") | | page | integer | Optional | Page index, 0-indexed (default: 0) | | per\_page | integer | Optional | Reviews per page, 1-5 (default: 5, max: 5) | | sort | string | Optional | Review ordering. Omit (or `recommended`) for Expedia's default order. Use `recent_desc` for newest-first (best for date-range backfill). Also accepts `score_desc`, `score_asc`, `most_relevant`. | #### Sorting for date ranges Pass sort=recent\_desc to return reviews newest-first, then paginate until review\_date passes your cutoff. This is the reliable way to pull a specific date range, such as a single month of reviews. ## Response Structure ### Review Information - `id` - Unique review identifier - `rating` - Rating as raw string (e.g., "10/10 Excellent") - `text` - Full review text - `reviewer_name` - Name of the reviewer - `review_date` - Date of the review ### Pagination Data - `total_count` - Number of reviews returned - `has_more` - Whether more reviews exist ## Finding the Property ID #### Finding the Property ID The property ID can be found in Expedia hotel URLs after the "h" prefix. The property ID appears in Expedia URLs. For example: ` https://www.expedia.com/h1582716.Hotel-Information ` The property ID is `1582716` (the number after "h"). Request ```curl curl -X GET "https://api.stayapi.com/v1/expedia/hotel/reviews?property_id=1582716" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "property_id": "1582716", "reviews": [ { "id": "review_123456", "rating": "10/10 Excellent", "text": "The room was clean and nice. The staff was very friendly and helpful. Great location near the city center.", "reviewer_name": "Andrew", "review_date": "Nov 2024", "owner_response": { "text": "Dear Andrew, thank you for your wonderful review! We're so glad you enjoyed our location and service. Best regards, Hotel Management", "published_date": "Nov 2024", "author": "The Hotel" } }, { "id": "review_123457", "rating": "8/10 Good", "text": "Good place for a short rest. Clean room and comfortable bed.", "reviewer_name": "Marek", "review_date": "Oct 2024", "owner_response": null } ], "total_count": 5, "page": 0, "per_page": 5, "has_more": true } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-property-id", "title": "Invalid Property ID", "status": 400, "detail": "Property ID must be numeric", "error_code": "INVALID_PROPERTY_ID" } ``` --- Source: https://stayapi.com/docs/endpoints/expedia/hotel-rates GET # Expedia Hotel Rates API Get real-time room rates and availability for an Expedia hotel. #### MCP tool Use expedia\_hotel\_rates with the same property ID and stay dates. MCP children\_ages is a JSON integer array (for example [5, 8]), not the REST comma-separated string. Omit it or use [] for adults-only rates. Expedia lookup, search, details and reviews have their own MCP tools. ## Overview #### Real-time Pricing Returns live room rates, rate plans, nightly and total prices, strikeout prices, and availability status. A sold\_out: false response includes at least one available priced offer. Explicit sold-out stays are successful results; malformed availability returns a non-2xx error. The Expedia Hotel Rates endpoint returns room types with rate plans for a given property and date range. Each room includes features, and each rate plan includes nightly rate, total price, strikeout price, payment model, and availability. ### Endpoint URL GET https://api.stayapi.com/v1/expedia/hotel/rates ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Expedia property ID (numeric string, e.g., "10507369") | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format (must be after check-in) | | adults | integer | Optional | Number of adults, 1-10 (default: 2) | | children\_ages | string | Optional | Comma-separated ages for up to 6 children, each from 0 to 17 (for example, `5,8`). Spaces around ages are accepted. Omit or leave blank for adults only. | | currency | string | Optional | Supported currencies: USD, EUR, GBP, AUD, CAD, JPY, THB, SGD, HKD, INR, NZD, BRL, MXN, CHF, DKK, NOK, SEK, KRW, MYR, IDR, PHP, SAR, TWD, VND, AED, PEN, CLP, COP, EGP, ARS, CNY, ISK and ZAR (default: USD). Whitespace is trimmed and letters are uppercased. Returned prices use the requested currency. Prices are native regional quotes and can vary by market, not a fixed exchange-rate conversion. Property and room text may be localized for that market. Unsupported currency codes return HTTP 400 Problem Details. Availability varies by currency; if a priced offer cannot be confirmed in that currency, the request returns an upstream error. | ## Errors Invalid child ages return HTTP 400 Problem Details with `error_code` set to `INVALID_CHILDREN_AGES`. This includes negative ages, ages above 17, non-integers, empty comma-separated items, or more than 6 ages. ## Response Structure ### Top-Level Fields - `property_id` - Expedia property ID - `check_in` - Check-in date - `check_out` - Check-out date - `adults` - Number of adults - `currency` - Currency code - `sold_out` - Whether the property is sold out - `lowest_price` - Lowest confirmed whole-stay price (formatted string), or null when only a nightly minimum is available - `lowest_price_amount` - Lowest confirmed whole-stay price as a number, or null - `rooms` - Array of room types ### Room Object - `room_id` - Room type identifier - `room_name` - Room type name - `features` - Array of room features (e.g., "Free WiFi", "Breakfast included") - `rate_plans` - Array of rate plans for this room ### Rate Plan Object - `rate_plan_id` - Rate plan identifier - `deal` - Localized deal badge text (e.g., "Member Price"); use is\_member\_rate for language-independent classification - `is_member_rate` - Nullable boolean: true for a confirmed member offer; null means unknown, not public eligibility - `requires_sign_in` - Nullable boolean: sign-in requirement when explicitly known; a member badge alone does not prove a sign-in gate - `reservation_amount` - Nullable number associated with the reservation; may exclude mandatory property charges. Not the amount due now, including with PAY\_LATER - `payment_model` - Payment model (e.g., "PAY\_LATER", "PAY\_NOW") - `nightly_rate` - Displayed nightly rate (formatted string), or null when not supplied; never derived by dividing the stay total - `nightly_rate_amount` - Displayed nightly rate as a number, or null - `total_price` - Explicit displayed whole-stay total (formatted string), possibly rounded - `total_price_amount` - Displayed whole-stay total as a number, possibly rounded; not an exact tax breakdown - `strikeout_price` - Original price before discount - `strikeout_price_amount` - Original price as a number - `total_with_taxes_and_fees` - Deprecated alias of reservation\_amount; not a guaranteed all-inclusive total - `available` - Whether this rate plan is available - `rooms_left` - Scarcity message (e.g., "Only 3 left") #### Compare like-for-like offers Exclude known member offers using is\_member\_rate=true, not requires\_sign\_in alone. Null eligibility is unknown. Match dates, occupancy, currency, eligibility and tax basis across channels; do not compare a nightly or before-tax amount with a whole-stay total. Compare total\_price\_amount for the displayed whole stay; it may be rounded. reservation\_amount and its deprecated alias total\_with\_taxes\_and\_fees may exclude mandatory property charges and do not provide an all-inclusive total or tax breakdown. ## Finding the Property ID #### Finding the Property ID The property ID can be found in Expedia hotel URLs after the "h" prefix. The property ID appears in Expedia URLs. For example: ` https://www.expedia.com/h10507369.Hotel-Information ` The property ID is `10507369` (the number after "h"). Vrbo listings work too: pass the internal `property_id` from [Vrbo search](/docs/endpoints/vrbo/search) or [extract-id](/docs/endpoints/vrbo/extract-id) (for example `124565672`), not the public listing ID in the Vrbo URL. Use the rate plan's total price for the stay; it can include rental fees, so do not compute it as nightly rate times nights. Request ```curl curl -X GET "https://api.stayapi.com/v1/expedia/hotel/rates?property_id=10507369&check_in=2027-05-01&check_out=2027-05-03&adults=2&children_ages=5%2C8" \ -H "x-api-key: YOUR_API_KEY" ``` Response ```json { "property_id": "10507369", "check_in": "2027-05-01", "check_out": "2027-05-03", "adults": 2, "currency": "USD", "sold_out": false, "lowest_price": "$439", "lowest_price_amount": 439.0, "rooms": [ { "room_id": "314898187", "room_name": "Aloft King Room", "features": [ "1 King Bed", "Free WiFi", "City view" ], "rate_plans": [ { "rate_plan_id": "381851541", "deal": "Member Price", "payment_model": "PAY_LATER", "nightly_rate": "$189 per night", "nightly_rate_amount": 189.0, "total_price": "$439", "total_price_amount": 439.0, "strikeout_price": "$480", "strikeout_price_amount": 480.0, "is_member_rate": true, "requires_sign_in": null, "reservation_amount": 438.48, "total_with_taxes_and_fees": 438.48, "available": true, "rooms_left": "Only 3 left" } ] } ] } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-dates", "title": "Invalid Dates", "status": 400, "detail": "Check-out date must be after check-in date", "error_code": "INVALID_DATES" } ``` --- Source: https://stayapi.com/docs/endpoints/hyatt/url-to-id GET # Hyatt URL to Hotel ID API Extract a hotel code for a Hyatt room request. ## Overview Extracts the code from a supported URL without verifying that the hotel exists. Authenticate with `X-API-Key`; normal StayAPI quota applies. Also available through MCP as `hyatt_hotel_url_to_id(url)`. ### Endpoint URL `GET https://api.stayapi.com/v1/hyatt/hotel/url-to-id` ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Canonical HTTPS hyatt.com or www.hyatt.com URL, 1–2048 characters; optional port 443. No other parameters are supported. | Supported paths: branded `/brand/ll-CC/code-slug`, legacy `/ll-CC/hotel/location/name/code`, `/shop/rooms/code` with an optional locale prefix, and `/mr-and-mrs-smith/code-slug`. Branded and legacy paths may end in `/rooms`, `/gallery`, or `/policies`. The code is exactly five ASCII letters or digits. Query strings, fragments, and a trailing slash are removed. The returned host is www.hyatt.com; path case is preserved. Percent encoding, whitespace, control characters, non-ASCII characters, backslashes, and repeated query names (case-insensitive) are rejected. Any spiritCode, hotelCode, or hotel\_code query value must match the path code. Unsupported URL paths return 400. ## Response | Field | Type | Meaning | | --- | --- | --- | | success | boolean | true on success | | hotel\_code | string | Five lowercase ASCII letters or digits | | url | string | Normalized HTTPS www.hyatt.com URL without query or fragment | | existence\_verified | boolean | Always false; extraction does not establish hotel existence | No pagination, date, locale, currency, or filtering parameters apply. Use hotel\_code with the rooms endpoint; URL resolution does not establish room availability. ## Errors and limitations Invalid URL semantics return 400; missing or invalid parameter types return 422. Authentication and quota errors use the normal StayAPI status codes. Errors follow RFC 7807 Problem Details; a failed resolution never returns a successful response. ## Related resources [Hyatt rooms](/docs/endpoints/hyatt/rooms) · [Hyatt API](/apis/hyatt) · [MCP tools](/docs/mcp) Request ```curl curl 'https://api.stayapi.com/v1/hyatt/hotel/url-to-id?url=https%3A%2F%2Fwww.hyatt.com%2Fhyatt-centric%2Fen-US%2Fmiact-hyatt-centric-brickell-miami' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_code": "miact", "url": "https://www.hyatt.com/hyatt-centric/en-US/miact-hyatt-centric-brickell-miami", "existence_verified": false } ``` ```json { "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "Invalid request parameters", "instance": "/v1/hyatt/hotel/url-to-id", "provider": "hyatt" } ``` --- Source: https://stayapi.com/docs/endpoints/hyatt/points-calendar GET # Hyatt Points Calendar API Compare award arrivals for one room in a chosen room category. ## Overview The calendar covers exactly one room in one category: `STANDARD_ROOM` by default, or `CLUB`, `STANDARD_SUITE` or `PREMIUM_SUITE`. It does not quote Points + Cash; request detailed mixed offers through [Hotel Rooms](/docs/endpoints/hyatt/rooms) with `rate_mode=awards`. Authenticate with `X-API-Key`. Normal StayAPI quota applies; MCP tool: `hyatt_hotel_points_calendar`. ### Endpoint URL `GET https://api.stayapi.com/v1/hyatt/points-calendar` ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_code | string | Required | Exactly five ASCII letters or digits; returned lowercase. | | start\_date | date | Required | First arrival, YYYY-MM-DD, today or later in UTC. | | end\_date | date | Required | Last arrival, inclusive. Window must contain 1–31 dates. | | nights | integer | Optional | Stay length for every arrival: 1–30. Default 1. | | adults | integer | Optional | 1–9. Default 1. | | children | integer | Optional | 0–4. Default 0. | | child\_ages | integer array | When children \> 0 | One age 0–17 per child. Repeat REST keys: child\_ages=5&child\_ages=10. MCP uses a JSON integer array. | | room\_category | string | Optional | STANDARD\_ROOM (default), CLUB, STANDARD\_SUITE or PREMIUM\_SUITE. Echoed in the response. A hotel that does not offer the category returns every date unavailable. | There is no rooms selector, pagination, currency selection, or Points + Cash calendar field. Occupancy applies to the single room. Not every hotel offers every category, and a category can be available on some dates only. ## Response | Field | Meaning | | --- | --- | | success | true on success | | hotel\_code, start\_date, end\_date, nights, adults, children, child\_ages | Normalized hotel code and requested context | | rooms, room\_category, pricing\_scope | Always 1, the requested category, and per\_room | | total | Number of arrival dates, including unavailable days | | points\_total\_basis | sum\_of\_nightly\_points | | days[] | Sorted, complete inclusive arrival window | | days[].check\_in, check\_out, available | Arrival, departure, and boolean availability for that stay | | days[].points | First night's points, or null when unavailable | | days[].points\_total | Sum of the complete nightly\_points array; null when unavailable | | days[].points\_level | Raw first-night points tier when supplied; otherwise null | | days[].nightly\_points[] | Each actual stay date and its points. Complete for available stays; [] when unavailable | Never multiply first-night points by nights. For example, 20,000 and 25,000 nightly points total 45,000. An unavailable day has null points, points\_total, and points\_level, with an empty nightly\_points array. Availability is for the requested room-category stay; it does not establish that the whole hotel is sold out. ## Errors and limitations Invalid date windows, hotel codes, room categories, or occupancy combinations return 400; missing or unparseable typed parameters return 422. Normal authentication, quota, and rate limits apply. Invalid or ambiguous results return 502; temporary unavailability returns 503 (honor Retry-After when present); timeouts return 504. Errors use RFC 7807 Problem Details. Points and availability can change before booking. ## Related resources [Resolve a hotel URL](/docs/endpoints/hyatt/url-to-id) · [Room and Points + Cash offers](/docs/endpoints/hyatt/rooms) · [Hyatt API](/apis/hyatt) · [MCP](/docs/mcp) Illustrative quote, not current pricing. Request ```curl curl 'https://api.stayapi.com/v1/hyatt/points-calendar?hotel_code=MIACT&start_date=2027-02-10&end_date=2027-02-10&nights=2&adults=1' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_code": "miact", "start_date": "2027-02-10", "end_date": "2027-02-10", "nights": 2, "adults": 1, "children": 0, "child_ages": [], "rooms": 1, "room_category": "STANDARD_ROOM", "pricing_scope": "per_room", "total": 1, "points_total_basis": "sum_of_nightly_points", "days": [ { "check_in": "2027-02-10", "check_out": "2027-02-12", "available": true, "points": 20000, "points_total": 45000, "points_level": null, "nightly_points": [ { "date": "2027-02-10", "points": 20000 }, { "date": "2027-02-11", "points": 25000 } ] } ] } ``` --- Source: https://stayapi.com/docs/endpoints/hyatt/rooms # Hyatt Rooms API Room types and returned cash, points, or mixed offers for a dated stay. ## Endpoint `GET https://api.stayapi.com/v1/hyatt/rooms` Authenticate with `X-API-Key`. Normal StayAPI quota applies. This limited-capacity beta endpoint is also available as `hyatt_hotel_rooms` through [MCP](/docs/mcp). Resolve a hotel URL first with [URL to Hotel ID](/docs/endpoints/hyatt/url-to-id). Temporary unavailability returns 503 with Retry-After. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | rate\_mode | string | Optional | standard (default) or awards. Choose awards for award and Points + Cash offers. | | hotel\_code | string | Required | Exactly five ASCII letters or digits, for example MIACT. Normalized lowercase in the response. Use a known Hyatt code; this endpoint does not discover hotels or resolve URLs. | | check\_in | date | Required | YYYY-MM-DD, today or later in UTC. | | check\_out | date | Required | YYYY-MM-DD, 1–30 nights after check\_in. | | adults | integer | Optional | 1–9 per room. Default 2. | | rooms | integer | Optional | 1–2 identical rooms. Default 1. The same occupancy applies to each room. | | children | integer | Optional | 0–4 per room. Default 0. | | child\_ages | integer array | Conditional | Exactly one age 0–17 per child per room. Repeat the key: child\_ages=5&child\_ages=10. With two rooms, supply the party once, not twice. | ## Response | Field | Type | Meaning | | --- | --- | --- | | success | boolean | true on a successful response. | | hotel\_code, check\_in, check\_out, rate\_mode | strings | Normalized code, requested dates, and selected rate mode, including empty successes. | | adults, rooms, children, child\_ages, nights | integers / array | Requested occupancy, child ages, and stay length. | | total | integer | Number of returned room types, including award-only rooms. | | pricing\_scope | string | Always per\_room. Do not treat two-room amounts as combined totals. | | cash\_available, awards\_available | booleans | cash\_available means a returned CASH rate. awards\_available means a returned POINTS, POINTS\_CASH, or CASH\_POINTS rate. Neither is exhaustive. | | room\_types[] | array | room\_type\_code, name, nullable description/category/available\_rooms/accessible, photos (url and nullable caption), and rates. | | room\_types[].rates[] | array | rate\_plan\_code, name, category (CASH, POINTS, POINTS\_CASH, CASH\_POINTS), nullable rate\_plan\_type, flags, taxes, and pricing fields. | | rates[].per\_night, per\_night\_after\_tax, per\_night\_including\_fees\_before\_tax | number or null | Average nightly cash components per room when supplied. per\_night\_basis is average\_per\_room. | | rates[].total, base\_total, currency | number / string or null | Explicit whole-stay cash and base cash amounts per room, with currency when supplied. Preserve null; never infer zero. | | rates[].points, points\_average, points\_total | integer / number or null | Published nightly points, average nightly points, and explicit whole-stay points, respectively. Never multiply points by nights to invent points\_total. | | rates[].points\_basis | string or null | upstream\_nightly\_quote for noncash rates; null for cash rates. | | rates[].taxes[] | array | Nullable code, description, amount, and percentage. | | rates[].description, payment\_description, cancellation\_description, cancellation\_code, penalty\_code, meal\_plan, guarantee\_type, loyalty\_eligible | nullable strings / boolean | Published rate terms when supplied; loyalty\_eligible is boolean or null. | ## Availability and pricing Set `rate_mode=awards` to request award or Points + Cash offers; `standard` is the default. All cash and points amounts are per room. Missing values remain null. Use exact whole-stay totals when supplied; a nightly quote does not establish a whole-stay points total. Cash and award flags describe only returned offers and do not prove exhaustive availability. Confirmed empty inventory in standard or awards mode returns HTTP 200 with success true, total 0, room\_types [], and both flags false. This does not establish that the hotel is sold out. In awards mode, cash-only offers and ambiguous negative results return 502 rather than a sold-out result. Ambiguous or failed responses remain errors. There is no pagination, sorting, currency selection, locale selection, or cache-control parameter. Rates and availability may change before booking. ## Errors Errors use RFC 7807 Problem Details with type, title, status, detail, instance, provider, and correlation\_id. | Status | Meaning | | --- | --- | | 400 | Invalid hotel code, calendar dates, numeric bounds, rate mode, or occupancy/date combination. | | 422 | Missing required parameters or values that cannot be parsed as the declared integer or array types. | | 401 / 402 / 429 | StayAPI authentication, quota, or rate-limit errors. | | 502 | Hyatt could not provide a valid room-offer response. | | 503 | Temporarily unavailable. Respect the Retry-After response header before retrying. | | 504 | Hyatt request timed out. | [Points Calendar by room category](/docs/endpoints/hyatt/points-calendar) · [Hyatt API overview](/apis/hyatt) Illustrative response. Rates and availability vary. Request ```curl curl 'https://api.stayapi.com/v1/hyatt/rooms?hotel_code=MIACT&check_in=2027-02-10&check_out=2027-02-12&adults=1&rooms=1&rate_mode=standard' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "hotel_code": "miact", "check_in": "2027-02-10", "check_out": "2027-02-12", "adults": 1, "rooms": 1, "children": 0, "child_ages": [], "nights": 2, "total": 1, "pricing_scope": "per_room", "cash_available": true, "awards_available": false, "room_types": [ { "room_type_code": "KING", "name": "1 King Bed", "description": null, "category": null, "available_rooms": null, "accessible": null, "photos": [], "rates": [ { "rate_plan_code": "STANDARD", "name": "Standard Rate", "category": "CASH", "rate_plan_type": null, "flags": [], "per_night": 250.0, "per_night_after_tax": 280.0, "per_night_including_fees_before_tax": 250.0, "per_night_basis": "average_per_room", "total": 560.0, "base_total": 500.0, "currency": "USD", "taxes": [], "description": null, "payment_description": null, "cancellation_description": null, "cancellation_code": null, "penalty_code": null, "meal_plan": null, "guarantee_type": null, "loyalty_eligible": null, "points": null, "points_average": null, "points_total": null, "points_basis": null } ] } ], "rate_mode": "standard" } ``` ``` { "success": true, "hotel_code": "miact", "check_in": "2027-02-10", "check_out": "2027-02-12", "adults": 1, "rooms": 1, "children": 0, "child_ages": [], "nights": 2, "total": 1, "pricing_scope": "per_room", "cash_available": false, "awards_available": true, "room_types": [ { "room_type_code": "KING", "name": "1 King Bed", "description": null, "category": null, "available_rooms": null, "accessible": null, "photos": [], "rates": [ { "rate_plan_code": "POINTS_CASH", "name": "Points + Cash", "category": "POINTS_CASH", "rate_plan_type": null, "flags": [], "per_night": 100.0, "per_night_after_tax": 112.0, "per_night_including_fees_before_tax": 100.0, "per_night_basis": "average_per_room", "total": 224.0, "base_total": 200.0, "currency": "USD", "taxes": [], "description": null, "payment_description": null, "cancellation_description": null, "cancellation_code": null, "penalty_code": null, "meal_plan": null, "guarantee_type": null, "loyalty_eligible": null, "points": 10000, "points_average": 10000.0, "points_total": 20000, "points_basis": "upstream_nightly_quote" } ] } ], "rate_mode": "awards" } ``` ``` { "success": true, "hotel_code": "miact", "check_in": "2027-02-10", "check_out": "2027-02-12", "adults": 1, "rooms": 1, "children": 0, "child_ages": [], "nights": 2, "total": 0, "pricing_scope": "per_room", "cash_available": false, "awards_available": false, "room_types": [], "rate_mode": "standard" } ``` --- Source: https://stayapi.com/docs/endpoints/marriott-bonvoy/search GET # Marriott Bonvoy Search API Search for Marriott Bonvoy hotels by geographic coordinates with real-time availability and pricing. ## Overview #### Coordinate-Based Search This endpoint searches by latitude and longitude, making it ideal for map-based applications and proximity searches. The Marriott Bonvoy Search endpoint returns hotels near a geographic location with real-time pricing, brand information, ratings, and distance from the search center. Supports pagination, sorting, and currency selection. ### Endpoint URL GET https://api.stayapi.com/v1/marriott/bonvoy/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | latitude | float | Required | Latitude of search center (-90 to 90) | | longitude | float | Required | Longitude of search center (-180 to 180) | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Number of adults (1-10). Default: 2 | | rooms | integer | Optional | Number of rooms (1-8). Default: 1 | | currency | string | Optional | Currency code (e.g., USD, EUR, GBP). Default: USD | | offset | integer | Optional | Pagination offset. Default: 0. For the next page, use page\_info.next\_offset from the previous response. | | limit | integer | Optional | Results per page (max 20). Default: 20 | | sort\_by | string | Optional | Sort field (DISTANCE or PRICE). Default: DISTANCE | | corporate\_code | string | Optional | Corporate or promotional rate code (e.g., MMP, AAA). Marriott silently ignores invalid codes. See [Corporate rates](#corporate-rates). | | corporate\_only | boolean | Optional | Return only hotels that have a rate under `corporate_code`, priced at that rate. Requires `corporate_code`. Default: false | #### Finding Coordinates Use Google Maps or a geocoding service to get latitude and longitude for your target location. For example, Bangkok is approximately 13.7563, 100.5018. ## Corporate Rates - **`corporate_code` alone:** hotels with a rate under the code are priced at that rate, but hotels without one still appear at their regular lowest price. The response does not say which hotels the code applied to. - **`corporate_code` with `corporate_only=true`:** only hotels with a rate under the code are returned, and `price` is that rate. Hotels without a rate under the code are left out. The response shape is unchanged. - `corporate_only=true` without `corporate_code` returns 400 `INVALID_PARAMETERS`. - When a code covers several rate plans, `price` is the lowest of them and the response does not say which plan it came from. See [Codes that cover several rate plans](/docs/endpoints/marriott-bonvoy/price-calendar#multi-plan-codes). #### Flexible dates To find the cheapest dates rather than the cheapest hotel for fixed dates, collect property\_id values here and request a Price Calendar for each one with the same corporate\_code. See the [flexible dates recipe](/docs/endpoints/marriott-bonvoy/price-calendar#flexible-dates) on the Price Calendar page. ## Response Format The response includes a list of Marriott hotels with pricing, brand details, ratings, and distance from the search coordinates. ### Response Structure - **success** : Boolean indicating request success - **hotels** : Array of hotel objects - **total** : Total number of matching hotels - **page\_info** : Pagination metadata (has\_next\_page, has\_previous\_page, next\_offset, current\_offset) ### Pagination - **has\_next\_page** (boolean): Whether another page is available - **has\_previous\_page** (boolean): Whether a previous page is available - **next\_offset** (integer or null): Offset for the next request; null on the last page - **current\_offset** (integer): Offset of the current page Start with `offset=0` and a `limit` of up to 20. While `page_info.has_next_page` is true, pass `page_info.next_offset` as the next request's `offset`, keeping the other search parameters unchanged. Stop when `has_next_page` is false. The `offset` and `limit` fields are request parameters. ## Hotel Object Fields | Field | Type | Description | | --- | --- | --- | | property\_id | string | Marriott property code (e.g., "BKKDT", "LAXJW") | | name | string | Hotel name | | brand | object | Brand details (id, name) e.g., "JW Marriott", "The Ritz-Carlton" | | location | object | GPS coordinates (latitude, longitude) | | description | string | Hotel description | | rating | float | Guest rating score | | review\_count | integer | Total number of reviews | | image | string | Primary hotel image URL | | url | string | Marriott.com hotel page URL | | bookable | boolean | Whether the property has available rooms | | price | object | Pricing details (per\_night, total, taxes, fees, currency, points\_per\_night) | | distance\_meters | float | Distance from search center in meters | ## Error Responses The API returns standard HTTP error codes with detailed error messages following the RFC 7807 Problem Details format. ### 400 Bad Request Invalid request parameters (e.g., invalid dates, out-of-range coordinates, or `corporate_only` without `corporate_code`) ``` { "type": "https://api.stayapi.com/errors/invalid-dates", "title": "Invalid Dates", "status": 400, "detail": "Check-out date must be after check-in date" } ``` ### 502 Bad Gateway Upstream service error from Marriott ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request." } ``` ## Usage Tips ### Best Practices - Use precise coordinates for best results (e.g., city center or airport location) - Dates must be in YYYY-MM-DD format and check-in cannot be in the past - Use `offset` and `limit` for pagination through large result sets - The `property_id` field can be used with the Rooms endpoint to get detailed rates - Sort by PRICE to find the cheapest options first - Pass a `property_id` to the Price Calendar endpoint to compare the lowest rate across up to 36 check-in dates - The `distance_meters` field helps rank results by proximity #### Rate Limiting This endpoint is subject to your plan's rate limits. Each search counts as one API call regardless of the number of results returned. ## Related Endpoints ### Marriott Bonvoy Rooms Get room types and rates for a specific Marriott property [View Documentation →](/docs/endpoints/marriott-bonvoy/rooms) ### Marriott Bonvoy Price Calendar Lowest rate per check-in date for one property, including corporate and points calendars [View Documentation →](/docs/endpoints/marriott-bonvoy/price-calendar) ### Meta Search Search across multiple booking platforms [View Documentation →](/docs/endpoints/meta-search) Request ```curl curl -X GET "https://api.stayapi.com/v1/marriott/bonvoy/search?latitude=13.7563&longitude=100.5018&check_in=2026-11-10&check_out=2026-11-13&adults=2¤cy=USD" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotels": [ { "property_id": "BKKDT", "name": "JW Marriott Hotel Bangkok", "brand": { "id": "JW", "name": "JW Marriott" }, "location": { "latitude": 13.7440, "longitude": 100.5494 }, "description": "Luxury hotel in the heart of Bangkok with world-class dining and spa facilities.", "rating": 4.5, "review_count": 2847, "image": "https://cache.marriott.com/content/dam/marriott-renditions/BKKDT/bkkdt-exterior-0001-hor-wide.jpg", "url": "https://www.marriott.com/hotels/travel/bkkdt-jw-marriott-hotel-bangkok/", "bookable": true, "price": { "per_night": 185.00, "total": 555.00, "taxes": 55.50, "fees": 0, "currency": "USD", "points_per_night": 35000 }, "distance_meters": 1250.5 } ], "total": 42, "page_info": { "has_next_page": true, "has_previous_page": false, "next_offset": 20, "current_offset": 0 } } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-date-format", "title": "Invalid Date Format", "status": 400, "detail": "Date must be in YYYY-MM-DD format", "instance": "/v1/marriott/bonvoy/search", "provider": "marriott", "product": "bonvoy", "error_code": "INVALID_DATE_FORMAT", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/marriott-bonvoy/rooms GET # Marriott Bonvoy Rooms API Get room types and rates for a specific Marriott Bonvoy property with real-time availability. ## Overview #### Property Code Required Use the property\_id from the Search endpoint (e.g., "BKKDT", "LAXJW") to fetch rooms for a specific hotel. The Marriott Bonvoy Rooms endpoint returns available room types with detailed rate plans, bed types, cancellation policies, and Bonvoy member-only pricing. Use this after the Search endpoint to get complete room-level details for a property. ### Endpoint URL GET https://api.stayapi.com/v1/marriott/bonvoy/rooms Adults and children are per room and apply to cash and award rates. Send exactly one age per child; do not substitute children with adults. Availability and prices can differ for the same total guest count. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | children | integer | Optional | 0–10 children per room. Default: 0. | | child\_ages | integer array | Conditional | Required when children \> 0; exactly one age 0–17 per child. Repeat the query key: child\_ages=5&child\_ages=10. | | property\_id | string | Required | Marriott property code (e.g., "BKKDT", "LAXJW") | | check\_in | string | Required | Check-in date in YYYY-MM-DD format | | check\_out | string | Required | Check-out date in YYYY-MM-DD format | | adults | integer | Optional | Adults per room (1–10). Default: 2 | | rooms | integer | Optional | Number of rooms (1-8). Default: 1 | | currency | string | Optional | Currency code (e.g., USD, EUR, GBP). Default: USD | | corporate\_code | string | Optional | Corporate or promotional rate code (e.g., MMP, AAA). | #### Property Codes Get property codes from the Search endpoint. Each hotel in the search response includes a property\_id field you can use here. ## Response Format The response includes room types grouped by category, each containing one or more rate plans with pricing and cancellation details. ### Response Structure - **success** : Boolean indicating request success - **property\_id** : The requested property code - **room\_types** : Array of room type objects - **total** : Total number of room types available ## Room Type Fields | Field | Type | Description | | --- | --- | --- | | name | string | Room type name (e.g., "Deluxe Room", "Executive Suite") | | bed\_type | string | Bed configuration (e.g., "1 King", "2 Double") | | view | string | Room view (e.g., "City View", "Pool View") | | category | string | Room category (e.g., "STANDARD", "SUITE") | | available\_rooms | integer or null | Number of rooms still available, or null when not provided | | rates | array | Array of rate plan objects (see below) | ## Rate Plan Fields | Field | Type | Description | | --- | --- | --- | | name | string | Rate plan name (e.g., "Best Available Rate", "Member Rate") | | rate\_plan\_code | string | Rate plan identifier. Use this to distinguish plans within a room type; names may repeat. | | per\_night | float or null | Cash room rate for the check-in night only, or null when unavailable. Nightly rates vary; see `nightly_rates`, and use `total` for the stay. Null for ACRS rates on multi-night stays | | total | float | Total cash price for the stay including taxes and fees (cash rates). Award rates also carry a cash figure Marriott attaches to the product; it is not the award price, use `points_total` | | fees | float | Additional fees | | currency | string | Currency code | | members\_only | boolean | Whether rate requires Bonvoy membership | | free\_cancellation\_until | string or null | Free cancellation deadline (ISO 8601 datetime), or null when not provided | | points | integer or null | Bonvoy points for the check-in night only; null for cash-only rates. Not a stay total; use `points_total`. Null for ACRS rates on multi-night stays | | points\_total | integer or null | Bonvoy points for the whole stay; null for cash-only rates. Equals the sum of `nightly_rates[].points` when the breakdown is present | | points\_saved | integer or null | Points saved vs standard redemption (when available) | | free\_nights | integer or null | Number of free nights included in points redemption | | nightly\_rates | array | Per-night breakdown in stay order, one object per night: `date` (YYYY-MM-DD), `cash` (room rate before taxes and fees, or null), `points` (integer or null), `free_night` (boolean). Empty for ACRS rates | | source\_of\_rate | string or null | Marriott reservation system behind the rate: `MARSHA` (legacy) or `ACRS` (new) | ### ACRS hotels Marriott is moving hotels from its legacy MARSHA reservation system to ACRS. ACRS hotels are returned the same way, with `source_of_rate: "ACRS"` and these differences: - Rate plan and room codes differ from MARSHA ones and are longer (for example `RETAIL`, `MEM5TT76`, `MAREXP`) - There is no per-night breakdown: `nightly_rates` is empty. On multi-night stays `per_night` and `points` are null; use `total` and `points_total` - Room names include the room description (for example "1 King Bed, Hearing Accessible"), so accessible variants are distinguishable ## Error Responses The API returns standard HTTP error codes with detailed error messages following the RFC 7807 Problem Details format. ### 400 Bad Request Invalid dates or child age/count mismatches (INVALID\_OCCUPANCY). Missing required fields, invalid parameter types, and numeric bounds return 422. ``` { "type": "https://api.stayapi.com/errors/invalid-dates", "title": "Invalid Dates", "status": 400, "detail": "Check-out date must be after check-in date" } ``` ### 404 Not Found `PROPERTY_NOT_FOUND`: no Marriott property matches the `property_id`. ``` { "type": "https://api.stayapi.com/errors/property-not-found", "title": "Property Not Found", "status": 404, "detail": "Marriott property ZZZQX not found", "error_code": "PROPERTY_NOT_FOUND" } ``` ### 502 Bad Gateway Upstream service error from Marriott; usually transient, worth one retry after a few seconds ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_ERROR" } ``` ### 502 Upstream Property Rejected Marriott's room-rate services rejected the `property_id` ("Invalid Property Code") and Marriott could not complete the lookup. Retry later; the [price calendar](/docs/endpoints/marriott-bonvoy/price-calendar) may still price the property ``` { "type": "https://api.stayapi.com/errors/upstream-property-rejected", "title": "Upstream Property Rejected", "status": 502, "detail": "The upstream service could not complete the request.", "error_code": "UPSTREAM_PROPERTY_REJECTED" } ``` ## Usage Tips ### Best Practices - Get the `property_id` from the Search endpoint first - Each room type may have multiple rate plans with different prices and policies - Check `members_only` to identify Bonvoy member-exclusive rates - Use `free_cancellation_until` to show flexible booking options - Rates bookable with Bonvoy points include `points`, `points_total`, `points_saved`, and `free_nights` fields - For multi-night stays use `points_total` or sum `nightly_rates`. `points` and `per_night` are the check-in night only and nightly prices vary by day of week - The same room can list several award rate plans (for example two "Redemption with Points Upgrade" plans at different prices), so key on `rate_plan_code`, not on the rate name - Check `available_rooms` when provided; null means inventory counts are unavailable. - For ACRS hotels (`source_of_rate: "ACRS"`) use `total` and `points_total` for multi-night stays; there is no per-night breakdown #### Rate Limiting This endpoint is subject to your plan's rate limits. Each request counts as one API call regardless of the number of room types returned. ## Related Endpoints ### Marriott Bonvoy Search Search for Marriott hotels by coordinates to get property codes [View Documentation →](/docs/endpoints/marriott-bonvoy/search) ### Marriott Bonvoy Price Calendar Find the cheapest check-in dates before requesting rooms [View Documentation →](/docs/endpoints/marriott-bonvoy/price-calendar) ### Meta Search Search across multiple booking platforms [View Documentation →](/docs/endpoints/meta-search) Request ```curl curl 'https://api.stayapi.com/v1/marriott/bonvoy/rooms?property_id=BKKDT&check_in=2026-12-14&check_out=2026-12-17&adults=1&children=2&child_ages=5&child_ages=10&rooms=1¤cy=USD' -H 'X-API-Key: YOUR_API_KEY' ``` Response ```json { "success": true, "property_id": "BKKDT", "room_types": [ { "name": "Deluxe Room", "bed_type": "1 King", "view": "City View", "category": "STANDARD", "available_rooms": 5, "rates": [ { "name": "Best Available Rate", "rate_plan_code": "BAR", "per_night": 185.00, "total": 555.00, "fees": 0, "currency": "USD", "members_only": false, "free_cancellation_until": "2026-12-12T18:00:00", "points": null, "points_total": null, "points_saved": null, "free_nights": null, "nightly_rates": [ {"date": "2026-12-14", "cash": 185.00, "points": null, "free_night": false}, {"date": "2026-12-15", "cash": 185.00, "points": null, "free_night": false}, {"date": "2026-12-16", "cash": 185.00, "points": null, "free_night": false} ], "source_of_rate": "MARSHA" }, { "name": "Member Rate", "rate_plan_code": "MBR", "per_night": 166.50, "total": 499.50, "fees": 0, "currency": "USD", "members_only": true, "free_cancellation_until": "2026-12-12T18:00:00", "points": null, "points_total": null, "points_saved": null, "free_nights": null, "nightly_rates": [ {"date": "2026-12-14", "cash": 166.50, "points": null, "free_night": false}, {"date": "2026-12-15", "cash": 166.50, "points": null, "free_night": false}, {"date": "2026-12-16", "cash": 166.50, "points": null, "free_night": false} ], "source_of_rate": "MARSHA" } ] }, { "name": "Executive Suite", "bed_type": "1 King", "view": "City View", "category": "SUITE", "available_rooms": 2, "rates": [ { "name": "Redemption", "rate_plan_code": "MRYA", "per_night": null, "total": 555.00, "fees": 0, "currency": "USD", "members_only": true, "free_cancellation_until": "2026-12-12T18:00:00", "points": 45000, "points_total": 125000, "points_saved": 0, "free_nights": 0, "nightly_rates": [ {"date": "2026-12-14", "cash": null, "points": 45000, "free_night": false}, {"date": "2026-12-15", "cash": null, "points": 45000, "free_night": false}, {"date": "2026-12-16", "cash": null, "points": 35000, "free_night": false} ], "source_of_rate": "MARSHA" } ] } ], "total": 2 } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-date-format", "title": "Invalid Date Format", "status": 400, "detail": "Date must be in YYYY-MM-DD format", "instance": "/v1/marriott/bonvoy/rooms", "provider": "marriott", "product": "bonvoy", "error_code": "INVALID_DATE_FORMAT", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/marriott-bonvoy/price-calendar GET # Marriott Bonvoy Price Calendar API See the lowest available rate for every check-in date at one Marriott property, in a single request. ## Overview #### One price per check-in date For each date from date\_from to date\_to (inclusive), this returns the lowest rate for a stay of nights nights starting that date. Dates with no bookable rate are returned with available set to false and null prices. Take the `property_id` from a [Search](/docs/endpoints/marriott-bonvoy/search) result (for example `LAXJW`) and request a window of up to 36 check-in dates. Pass a `corporate_code` to price only rates under that code, or set `use_points=true` for a Bonvoy points calendar. ### Endpoint URL GET https://api.stayapi.com/v1/marriott/bonvoy/price-calendar ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Marriott property code from the Search endpoint (e.g., "LAXJW", "NYCXR") | | date\_from | date | Required | First check-in date (YYYY-MM-DD). Today or later. | | date\_to | date | Required | Last check-in date (YYYY-MM-DD), inclusive. On or after `date_from` and at most 35 days after it (up to 36 dates). | | nights | integer | Optional | Length of stay priced for each check-in date (1-9). Default: 1 | | adults | integer | Optional | Adults per room (1-10). Default: 2 | | rooms | integer | Optional | Number of rooms (1-8). Default: 1 | | corporate\_code | string | Optional | Corporate or promotional rate code, 1-16 letters or digits (e.g., MMP). When set, only rates under that code are returned: every available date is priced at a rate under the code. | | use\_points | boolean | Optional | Return a Bonvoy points (award) calendar instead of cash. Cannot be combined with `corporate_code`. Default: false | #### Window limit date\_to must be at most 35 days after date\_from, otherwise the API returns 400 RANGE\_TOO\_LARGE. Cover longer periods with consecutive windows. ## Response Format ### Response Structure - **success** : Boolean indicating request success - **property\_id** , **date\_from** , **date\_to** , **nights** : Echo of the request - **corporate\_code** : The code you sent, or null - **use\_points** : Whether this is a points calendar - **currency** : The property's currency (first non-null date currency), or null when no date is available - **available\_count** : Number of dates with `available: true` - **dates** : One entry for every date from `date_from` to `date_to`, in order ### Date Fields | Field | Type | Description | | --- | --- | --- | | date | string | Check-in date (YYYY-MM-DD) | | check\_out | string | Check-out date: `date` plus `nights` | | available | boolean | False when Marriott offers no bookable rate for that check-in date and stay length (with `corporate_code`: no rate under that code; with `use_points`: no award availability). All price fields are null then. | | per\_night | float | null | Lowest average nightly cash rate for the stay, before taxes and fees | | stay\_total | float | null | Cash total for the stay before taxes and fees (`per_night` × `nights`, as Marriott reports it) | | currency | string | null | The property's own currency as Marriott reports it (e.g., GBP for a London hotel). Prices are not converted. | | points\_total | integer | null | Bonvoy points for the whole stay. Only set with `use_points=true`, where the cash fields are null. | #### Corporate codes Marriott does not reject a code it does not recognise. A valid request with an unknown code returns 200 with every date available=false. The calendar carries no rate plan code: with corporate\_code set, every available date is priced at a rate under that code, which is your signal that the code applied. ## Codes That Cover Several Rate Plans One code can unlock several rate plans, and the calendar returns only the lowest price across all of them. For example, `MMP` covers both the associate Family plans (`MARH`, `MARI`) and the Friends plans (`MARF`, `MARG`, `MARM`), while `MMF` covers only the Friends plans. At `MIABR`, 4-night check-ins from Oct 28 to Dec 2 2026, the `MMP` calendar showed every date available, but only Nov 23 (57 USD) was a Family rate; every other date matched the `MMF` calendar exactly. [Search](/docs/endpoints/marriott-bonvoy/search) works the same way. - `corporate_code` takes a code like `MMP`, not a rate plan code. A rate plan code such as `MARH` returns every date unavailable. - To see one group of plans, pass a code that covers only that group, if Marriott has one. - Otherwise, compare two calendars, for example `MMP` and `MMF`: a date whose prices differ is priced under a plan only the broader code includes. This finds only dates where that plan is the cheapest. A date where it exists but costs more shows the same price in both calendars. - [Rooms](/docs/endpoints/marriott-bonvoy/rooms) returns `rate_plan_code` on every rate, so it shows every plan for one stay. ## Recipe: Flexible Dates To find the cheapest dates across several Marriott hotels in an area, combine Search with this endpoint. There is no separate flexible-dates endpoint. 1. Call [Search](/docs/endpoints/marriott-bonvoy/search) for the area with one representative stay and collect each hotel's `property_id`. If you negotiate a corporate rate, pass your `corporate_code` with `corporate_only=true` to keep only hotels that offer it. 2. For each `property_id`, call this endpoint with your date window, `nights`, and the same `corporate_code`. 3. Keep the entries with `available: true` and pick the lowest `stay_total`. Compare totals only within one currency, since each property reports its own. 4. Confirm the chosen dates with [Rooms](/docs/endpoints/marriott-bonvoy/rooms) to get room types, rate plans, and cancellation terms. Each call costs one credit, so a search plus calendars for ten hotels costs eleven credits. ## Error Responses Errors follow the RFC 7807 Problem Details format with `provider: "marriott"` and `product: "bonvoy"`. ### 400 Bad Request - `INVALID_DATE_FORMAT`: a date is not YYYY-MM-DD - `INVALID_DATES`: `date_to` is before `date_from` - `PAST_DATES`: `date_from` is in the past - `RANGE_TOO_LARGE`: `date_to` is more than 35 days after `date_from` - `INVALID_PARAMETERS`: `corporate_code` and `use_points` were sent together ``` { "type": "https://api.stayapi.com/errors/range-too-large", "title": "Range Too Large", "status": 400, "detail": "date_to must be within 35 days of date_from", "provider": "marriott", "product": "bonvoy", "error_code": "RANGE_TOO_LARGE" } ``` ### 404 Not Found `PROPERTY_NOT_FOUND`: no Marriott property matches the `property_id`. ### 502 / 503 Marriott returned an error or could not be reached (502 `UPSTREAM_ERROR`), or the service is temporarily at capacity (503 `SERVICE_OVERLOADED`). For a 503, wait for the `Retry-After` header before trying again. ## Related Endpoints ### Marriott Bonvoy Search Find Marriott hotels near a coordinate and get their property codes [View Documentation →](/docs/endpoints/marriott-bonvoy/search) ### Marriott Bonvoy Rooms Get room types, rate plans, and cancellation terms for the dates you pick [View Documentation →](/docs/endpoints/marriott-bonvoy/rooms) Request ```curl curl -X GET "https://api.stayapi.com/v1/marriott/bonvoy/price-calendar?property_id=LAXJW&date_from=2026-11-01&date_to=2026-11-05&nights=1&corporate_code=MMP" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "property_id": "LAXJW", "date_from": "2026-11-01", "date_to": "2026-11-05", "nights": 1, "corporate_code": "MMP", "use_points": false, "currency": "USD", "available_count": 4, "dates": [ { "date": "2026-11-01", "check_out": "2026-11-02", "available": true, "per_night": 129.0, "stay_total": 129.0, "currency": "USD", "points_total": null }, { "date": "2026-11-02", "check_out": "2026-11-03", "available": true, "per_night": 471.0, "stay_total": 471.0, "currency": "USD", "points_total": null }, { "date": "2026-11-03", "check_out": "2026-11-04", "available": true, "per_night": 535.0, "stay_total": 535.0, "currency": "USD", "points_total": null }, { "date": "2026-11-04", "check_out": "2026-11-05", "available": false, "per_night": null, "stay_total": null, "currency": null, "points_total": null }, { "date": "2026-11-05", "check_out": "2026-11-06", "available": true, "per_night": 129.0, "stay_total": 129.0, "currency": "USD", "points_total": null } ] } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-parameters", "title": "Invalid Parameters", "status": 400, "detail": "corporate_code and use_points cannot be combined", "instance": "/v1/marriott/bonvoy/price-calendar", "provider": "marriott", "product": "bonvoy", "error_code": "INVALID_PARAMETERS", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/makemytrip/search GET # MakeMyTrip Hotel Search API Find Indian hotels with date-specific INR listing prices. ## Overview Search MakeMyTrip hotels in India for your dates and occupancy. Get hotel IDs, INR listing prices, tax fields, coupon conditions, photos, and review summaries. #### Scope India destinations and INR only. Read listing\_price.display\_basis before comparing amounts; do not assume a stay total. Coupon and bank-offer conditions can affect the displayed price. Continue with next\_cursor using exactly the same search parameters and limit; null means no continuation is available. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/makemytrip/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | city\_code | string | Required | MakeMyTrip India city code, 2 to 32 letters or digits. For example CTBLR (Bengaluru) or CTGOI (Goa). | | check\_in | date | Required | Check-in date, YYYY-MM-DD; today or later. | | check\_out | date | Required | Check-out date, YYYY-MM-DD; after check-in, with a maximum stay of 30 nights. | | adults | integer | Optional | Adults, 1 to 8. Default: 2. | | rooms | integer | Optional | One room only. Default and only accepted value: 1. | | child\_ages | integer[] | Optional | At most four child ages, each 0 to 17. Repeat the parameter: child\_ages=6&child\_ages=10. Omit for no children. | | limit | integer | Optional | Requested page size, 1 to 20. Default: 10. | | cursor | string | Optional | Opaque next\_cursor from the same search and limit, at most 8,192 characters. Omit for the first page; do not edit it. | ## Response schema Examples are illustrative. Prices and available content depend on the requested stay and property. | Field | Type | Description | | --- | --- | --- | | success | boolean | True for a successful response. | | hotels | array | Hotel IDs, names, nullable stars, locality, coordinates, sold\_out, rating, review\_count, rating\_count, and photo URLs. | | hotels[].listing\_price | object | Nullable amount, amount\_including\_taxes\_and\_fees, taxes\_and\_fees, currency, display\_basis, and coupon. These are listing price fields, not a booking quote. | | hotels[].listing\_price.coupon | object|null | Published code, description, amount, auto\_applicable, and bank\_offer conditions. | | hotel\_count | integer|null | Provider-reported hotel count; distinct from the number returned on this page. | | next\_cursor | string|null | Opaque continuation for this exact search and limit. | | currency | string|null | INR when supplied; the sales channel is fixed to India. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "makemytrip"`, and a correlation id when supplied. - **400 INVALID\_INPUT** : invalid endpoint parameters, including stay dates, city code, or occupancy where accepted. - **401 / 402 / 429** : check your API key, available quota, and account limits. - **422** : a required parameter is missing or outside its declared type, range, or enum. - **502 UPSTREAM\_ERROR** : MakeMyTrip could not complete the request. - **503** : service temporarily unavailable. Honor `Retry-After` when supplied. - **504 UPSTREAM\_TIMEOUT** : the provider request timed out. ## Related MakeMyTrip endpoints [MakeMyTrip Hotel Search API](/docs/endpoints/makemytrip/search)[MakeMyTrip Hotel Details API](/docs/endpoints/makemytrip/details)[MakeMyTrip Hotel Rates API](/docs/endpoints/makemytrip/rates)[MakeMyTrip Hotel Reviews API](/docs/endpoints/makemytrip/reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/makemytrip/search?city_code=CTBLR&check_in=2026-12-10&check_out=2026-12-12&adults=2&rooms=1&limit=10" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotels": [ { "hotel_id": "20140905171351557", "name": "Example Bengaluru Hotel", "stars": 4.0, "locality": "Bengaluru", "latitude": 12.97, "longitude": 77.59, "sold_out": false, "listing_price": { "amount": 4500.0, "amount_including_taxes_and_fees": 5040.0, "taxes_and_fees": 540.0, "currency": "INR", "display_basis": "Per Night", "coupon": null }, "rating": 4.2, "review_count": 120, "rating_count": 150, "photos": [] } ], "hotel_count": 1, "next_cursor": null, "currency": "INR" } ``` ```json { "type": "about:blank", "title": "MakeMyTrip request failed", "status": 502, "detail": "The upstream service could not complete the request.", "provider": "makemytrip", "error_code": "UPSTREAM_ERROR" } ``` --- Source: https://stayapi.com/docs/endpoints/makemytrip/details GET # MakeMyTrip Hotel Details API Get a property's description, location, amenities, and photos. ## Overview Get MakeMyTrip hotel descriptions, address, coordinates, amenities, arrival times, and public photos for an Indian property using its hotel ID and stay context. #### Scope Use hotel\_id and city\_code from Search with the same stay context. This endpoint returns static hotel content, not room inventory or a booking quote. Missing descriptions, location fields, stars, or arrival times can be null; photo and amenity lists can be empty. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/makemytrip/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Numeric MakeMyTrip hotel ID from Search, 1 to 32 digits. Keep it as a string. | | city\_code | string | Required | MakeMyTrip India city code, 2 to 32 letters or digits. For example CTBLR (Bengaluru) or CTGOI (Goa). | | check\_in | date | Required | Check-in date, YYYY-MM-DD; today or later. | | check\_out | date | Required | Check-out date, YYYY-MM-DD; after check-in, with a maximum stay of 30 nights. | | adults | integer | Optional | Adults, 1 to 8. Default: 2. | | rooms | integer | Optional | One room only. Default and only accepted value: 1. | | child\_ages | integer[] | Optional | At most four child ages, each 0 to 17. Repeat the parameter: child\_ages=6&child\_ages=10. Omit for no children. | ## Response schema Examples are illustrative. Prices and available content depend on the requested stay and property. | Field | Type | Description | | --- | --- | --- | | success | boolean | True for a successful response. | | hotel.hotel\_id / hotel.name | string | Stable numeric hotel ID and property name. | | hotel.short\_description / hotel.description | string|null | Published plain-text descriptions. | | hotel.address | object | Nullable line1 and line2 address fields. | | hotel.city\_code / city / country\_code / country | string|null | Published location identifiers and names. | | hotel.latitude / longitude / stars | number|null | Coordinates and star classification. | | hotel.check\_in\_time / check\_out\_time | string|null | Published arrival and departure times. | | hotel.amenities / hotel.photos | string[] | Amenity names and public image URLs. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "makemytrip"`, and a correlation id when supplied. - **400 INVALID\_INPUT** : invalid endpoint parameters, including stay dates, city code, or occupancy where accepted. - **401 / 402 / 429** : check your API key, available quota, and account limits. - **422** : a required parameter is missing or outside its declared type, range, or enum. - **502 UPSTREAM\_ERROR** : MakeMyTrip could not complete the request. - **503** : service temporarily unavailable. Honor `Retry-After` when supplied. - **504 UPSTREAM\_TIMEOUT** : the provider request timed out. ## Related MakeMyTrip endpoints [MakeMyTrip Hotel Search API](/docs/endpoints/makemytrip/search)[MakeMyTrip Hotel Details API](/docs/endpoints/makemytrip/details)[MakeMyTrip Hotel Rates API](/docs/endpoints/makemytrip/rates)[MakeMyTrip Hotel Reviews API](/docs/endpoints/makemytrip/reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/makemytrip/hotel/details?hotel_id=20140905171351557&city_code=CTBLR&check_in=2026-12-10&check_out=2026-12-12&adults=2&rooms=1" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel": { "hotel_id": "20140905171351557", "name": "Example Bengaluru Hotel", "short_description": "A city hotel in Bengaluru.", "description": "A city hotel with guest amenities.", "address": { "line1": "Bengaluru", "line2": null }, "city_code": "CTBLR", "city": "Bengaluru", "country_code": "IN", "country": "India", "latitude": 12.97, "longitude": 77.59, "stars": 4.0, "check_in_time": "14:00", "check_out_time": "12:00", "amenities": [ "Wi-Fi" ], "photos": [] } } ``` ```json { "type": "about:blank", "title": "MakeMyTrip request failed", "status": 502, "detail": "The upstream service could not complete the request.", "provider": "makemytrip", "error_code": "UPSTREAM_ERROR" } ``` --- Source: https://stayapi.com/docs/endpoints/makemytrip/rates GET # MakeMyTrip Hotel Rates API Read nightly room rate plans for one MakeMyTrip hotel. ## Overview Get dated MakeMyTrip room rate plans in INR for an Indian property using its hotel ID, city code, and stay context. #### Scope Use hotel\_id and city\_code from Search with the same stay context. Prices are nightly fields for the returned rate plan, not stay totals. Do not multiply a nightly value or infer a whole-stay total. An empty rooms list is returned only when the upstream confirms no availability; upstream failures remain non-2xx Problem Details responses. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/makemytrip/hotel/rates ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Numeric MakeMyTrip hotel ID from Search, 1 to 32 digits. Keep it as a string. | | city\_code | string | Required | MakeMyTrip India city code, 2 to 32 letters or digits. For example CTBLR (Bengaluru) or CTGOI (Goa). | | check\_in | date | Required | Check-in date, YYYY-MM-DD; today or later. | | check\_out | date | Required | Check-out date, YYYY-MM-DD; after check-in, with a maximum stay of 30 nights. | | adults | integer | Optional | Adults, 1 to 8. Default: 2. | | rooms | integer | Optional | One room only. Default and only accepted value: 1. | | child\_ages | integer[] | Optional | At most four child ages, each 0 to 17. Repeat the parameter: child\_ages=6&child\_ages=10. Omit for no children. | ## Response schema Examples are illustrative. Prices and available content depend on the requested stay and property. | Field | Type | Description | | --- | --- | --- | | success / hotel\_id / currency | boolean / string / string | Success flag, requested hotel ID, and fixed INR currency. | | rooms | array | Available room entries; empty only when the upstream confirms no availability. | | rooms[].room\_id / rooms[].name | string / string | Provider room identifier and published room name. | | rooms[].rate\_plans | array | One or more available rate plans for this room. | | rooms[].rate\_plans[].name / cancellation\_policy | string|null | Nullable published rate-plan name and cancellation-policy text. | | rooms[].rate\_plans[].nightly\_price\_before\_taxes | number | Required positive, finite per-night amount before taxes and fees. | | rooms[].rate\_plans[].nightly\_taxes\_and\_fees | number|null | Nullable nonnegative per-night taxes and fees; null exactly when the tax-inclusive amount is null. | | rooms[].rate\_plans[].nightly\_price\_including\_taxes | number|null | Nullable per-night amount including taxes and fees; null exactly when taxes are null, otherwise the before-tax amount plus fees rounded to two decimals. Never a stay total. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "makemytrip"`, and a correlation id when supplied. - **400 INVALID\_INPUT** : invalid endpoint parameters, including stay dates, city code, or occupancy where accepted. - **401 / 402 / 429** : check your API key, available quota, and account limits. - **422** : a required parameter is missing or outside its declared type, range, or enum. - **502 UPSTREAM\_ERROR** : MakeMyTrip could not complete the request. - **503** : service temporarily unavailable. Honor `Retry-After` when supplied. - **504 UPSTREAM\_TIMEOUT** : the provider request timed out. ## Related MakeMyTrip endpoints [MakeMyTrip Hotel Search API](/docs/endpoints/makemytrip/search)[MakeMyTrip Hotel Details API](/docs/endpoints/makemytrip/details)[MakeMyTrip Hotel Rates API](/docs/endpoints/makemytrip/rates)[MakeMyTrip Hotel Reviews API](/docs/endpoints/makemytrip/reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/makemytrip/hotel/rates?hotel_id=20140905171351557&city_code=CTBLR&check_in=2026-12-10&check_out=2026-12-12&adults=2&rooms=1" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "20140905171351557", "currency": "INR", "rooms": [ { "room_id": "DLXK", "name": "Deluxe King Room", "rate_plans": [ { "name": "Breakfast included", "nightly_price_before_taxes": 4500.0, "nightly_taxes_and_fees": 540.0, "nightly_price_including_taxes": 5040.0, "cancellation_policy": null } ] } ] } ``` ```json { "type": "about:blank", "title": "MakeMyTrip request failed", "status": 502, "detail": "The upstream service could not complete the request.", "provider": "makemytrip", "error_code": "UPSTREAM_ERROR" } ``` --- Source: https://stayapi.com/docs/endpoints/makemytrip/reviews GET # MakeMyTrip Hotel Reviews API Read guest reviews and preserve their original source and pagination context. ## Overview Read MakeMyTrip hotel reviews with published text, ratings, stay context, source labels, and source-aware pagination. Use a numeric hotel ID returned by Search. #### Scope Only Most relevant sorting is supported. Within the same source, continue with next\_start and next\_ota while has\_more is true. When source\_changed is true, next\_start is null: a safe cross-source offset is not supplied. Stop automatic pagination instead of inventing an offset. Keep the source with each review. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/makemytrip/hotel/reviews ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Numeric MakeMyTrip hotel ID from Search, 1 to 32 digits. Keep it as a string. | | start | integer | Optional | Source-specific offset, 0 to 100,000. Default: 0. | | limit | integer | Optional | Requested reviews, 1 to 50. Default: 10. | | sort | string | Optional | Default and only accepted value: Most relevant. | | next\_ota | string | Optional | Source selector: MMT (default), MMT\_RATING, EXT, or MANUAL. Use the returned next\_ota with next\_start for same-source continuation. | ## Response schema Examples are illustrative. Prices and available content depend on the requested stay and property. | Field | Type | Description | | --- | --- | --- | | success / hotel\_id | boolean / string | Success flag and requested hotel ID. | | reviews | array | Nullable review\_id, date, rating, title, text, reviewer\_name, travel\_type, stay\_details, and source. | | has\_more / start / source | boolean / integer / string|null | Provider continuation flag, requested offset, and current review source. | | source\_changed | boolean | Whether the next source differs from the current source. | | next\_start / next\_ota | integer|null / string|null | Same-source next offset and provider next-source value. next\_start is null on source changes or at the end. | | review\_counts | object | Nullable counts for makemytrip, expedia, vrbo, goibibo, and indian review groups. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "makemytrip"`, and a correlation id when supplied. - **400 INVALID\_INPUT** : invalid endpoint parameters, including stay dates, city code, or occupancy where accepted. - **401 / 402 / 429** : check your API key, available quota, and account limits. - **422** : a required parameter is missing or outside its declared type, range, or enum. - **502 UPSTREAM\_ERROR** : MakeMyTrip could not complete the request. - **503** : service temporarily unavailable. Honor `Retry-After` when supplied. - **504 UPSTREAM\_TIMEOUT** : the provider request timed out. ## Related MakeMyTrip endpoints [MakeMyTrip Hotel Search API](/docs/endpoints/makemytrip/search)[MakeMyTrip Hotel Details API](/docs/endpoints/makemytrip/details)[MakeMyTrip Hotel Rates API](/docs/endpoints/makemytrip/rates)[MakeMyTrip Hotel Reviews API](/docs/endpoints/makemytrip/reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/makemytrip/hotel/reviews?hotel_id=20140905171351557&start=0&limit=10&sort=Most+relevant&next_ota=MMT" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "20140905171351557", "reviews": [ { "review_id": "example-review", "date": "2026-09-01", "rating": 4.0, "title": "Comfortable stay", "text": "Comfortable room and helpful staff.", "reviewer_name": "Guest", "travel_type": "Couple", "stay_details": null, "source": "MMT" } ], "has_more": false, "start": 0, "source": "MMT", "source_changed": false, "next_start": null, "next_ota": null, "review_counts": { "makemytrip": 1, "expedia": null, "vrbo": null, "goibibo": null, "indian": 1 } } ``` ```json { "type": "about:blank", "title": "MakeMyTrip request failed", "status": 502, "detail": "The upstream service could not complete the request.", "provider": "makemytrip", "error_code": "UPSTREAM_ERROR" } ``` --- Source: https://stayapi.com/docs/endpoints/hilton/search GET # Hilton Search API - Hotel Metadata Find undated Hilton hotel inventory by destination or coordinates. ## Overview Search Hilton hotels by destination, address, or coordinates with StayAPI. Get hotel codes, location, photos, amenities, and opening status as English JSON. #### Scope Supply query OR both latitude and longitude. English content only. No dates, prices, room inventory, or stay availability. Results can include unopened or seasonally closed properties: inspect status. There is no pagination or sort parameter; total counts returned hotels only. Use hotel\_code with Rooms for dated starting cash and full-points offers. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/hilton/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Optional | Destination or address, 2–200 characters after trimming. Required unless both coordinates are supplied; mutually exclusive with coordinates. | | latitude | number | Optional | Finite latitude, -90 to 90 inclusive. Requires longitude and no query. | | longitude | number | Optional | Finite longitude, -180 to 180 inclusive. Requires latitude and no query. | | limit | integer | Optional | Maximum hotels returned, 1 to 150. Default: 20. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on a successful response. | | hotels | array | Hotel metadata; no prices or dated availability. | | hotels[].hotel\_code | string | Seven-character Hilton ctyhocn identifier, for example LONHITW. | | hotels[].name / brand\_code / phone / url | string | Hotel name and nullable brand code, telephone, and public URL. | | hotels[].address | object | Nullable street, city, state, and country\_code. | | hotels[].location | object | Nullable latitude and longitude. | | hotels[].photos / amenity\_ids | array | Photos with url and nullable caption; published amenity identifiers. | | hotels[].rating / review\_count | number | Nullable published score and review count. | | hotels[].status | object | Nullable open, open\_date, reservations\_enabled, reservations\_enabled\_date, seasonally\_closed, and seasonal\_reopen\_date. These describe property status, not availability for a stay. | | total | integer | Number of hotels returned, not a global inventory count. | | location\_match | object or null | Matched destination name, type, and location coordinates when provided. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "hilton"` and a correlation id. - **400 INVALID\_INPUT** : invalid search form, hotel code, dates, occupancy, or currency. - **400 INVALID\_URL** : supply a canonical HTTPS Hilton hotel or reservation rooms URL. - **422** : a required parameter is missing or a typed parameter is outside its declared contract. - **502 UPSTREAM\_ERROR** : Hilton data could not be retrieved or verified, or a quote changed while checking the requested room quantity. Unverified availability returns an error, never partial room results. - **504** : the request timed out. - **503** : service temporarily unavailable; honor Retry-After when supplied. ## Related Hilton endpoints [Search hotel metadata and codes](/docs/endpoints/hilton/search)[Dated rooms, cash rates, and full-points rewards](/docs/endpoints/hilton/rooms)[Extract a Hilton hotel code](/docs/endpoints/hilton/url-to-id) Request ```curl curl -X GET "https://api.stayapi.com/v1/hilton/search?query=London&limit=20" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotels": [ { "hotel_code": "LONHITW", "name": "London Hilton on Park Lane", "brand_code": "HI", "address": { "street": "22 Park Lane", "city": "London", "state": null, "country_code": "GB" }, "location": { "latitude": 51.505, "longitude": -0.15 }, "phone": null, "photos": [], "url": "https://www.hilton.com/en/hotels/lonhitw-london-hilton-on-park-lane/", "status": { "open": true, "open_date": null, "reservations_enabled": true, "reservations_enabled_date": null, "seasonally_closed": false, "seasonal_reopen_date": null }, "amenity_ids": [], "rating": null, "review_count": null } ], "total": 1, "location_match": null } ``` ```json { "type": "about:blank", "title": "Invalid Input", "status": 400, "detail": "Invalid Hilton input.", "provider": "hilton", "error_code": "INVALID_INPUT" } ``` --- Source: https://stayapi.com/docs/endpoints/hilton/rooms GET # Hilton Rooms API - Cash Rates and Reward Points Get dated room types with starting cash offers and available full-points rewards. ## Overview Get Hilton room types, starting cash rates, and full-points rewards with StayAPI. Compare exact stay totals and dated nightly points for standard and premium rewards. #### Scope Use hotel\_code from Search or URL to ID. Request 1–9 identical rooms (default 1), with the same room type, rate plan, adults, children, and child ages in each room. Each returned starting cash or full-points offer supports the requested quantity of identical rooms. Mixed room categories or different parties per room are not supported. price\_basis is per\_room: all cash and points amounts are per room, not aggregated across rooms. Provide the actual adults, children, and child ages for both cash and reward availability. pricing\_scope is starting\_rates for cash offers, not a full cash rate-plan list. reward\_rates contains available standard and premium full-points offers, not Points & Money quotes. Quotes are available without a Hilton login; members\_only and login\_required describe booking requirements. Amounts and availability can change before booking. Confirmed unavailability returns HTTP 200 with availability\_status unavailable, room\_types [], and total 0. Unavailability can mean no rates are available or the property is not bookable for the requested stay; it does not establish that the hotel is sold out. Unknown or failed responses remain non-2xx errors. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/hilton/rooms ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_code | string | Required | Exactly seven letters or digits, from Search or URL to ID. Returned uppercase. | | check\_in | date | Required | Valid YYYY-MM-DD date, today or later. | | check\_out | date | Required | Valid YYYY-MM-DD date after check\_in. | | adults | integer | Optional | 1 to 4 adults per room. Default: 2. | | children | integer | Optional | 0 to 6 children per room. Default: 0. | | child\_ages | integer array | Optional | Exactly one age 0–17 per child; required when children \> 0. Repeat the query key: child\_ages=5&child\_ages=10. | | rooms | integer | Optional | 1 to 9 identical rooms. Default: 1. The same room type, rate plan, and occupancy apply to every room. | | currency | enum | Optional | USD, GBP, or EUR display currency. Default: USD. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success / hotel\_code / check\_in / check\_out / adults / children / child\_ages / rooms | mixed | Successful request and normalized stay context. | | currency / native\_currency | string / nullable string | Requested display currency and Hilton source currency, respectively. native\_currency may be null when unavailable. | | availability\_status | enum | available or unavailable. Confirmed unavailability is a successful response with no room types. | | availability\_message | nullable string | Null when available. When unavailable: No rooms are available for the requested dates., No rates are available for the requested stay., This property is not bookable for the requested stay., or No matching starting cash or points offers are available for the requested number of rooms. | | price\_basis | string | Always per\_room, including single-room searches. All cash and points amounts are per room, never multiplied by rooms. | | pricing\_scope | string | Always starting\_rates: cash offers are starting rates; reward\_rates is a separate full-points list. | | total | integer | Number of available room types returned, not a room count. | | room\_types | array | Available room code, name, description, nullable occupancy, beds, accessible and suite flags, photos, rates, and reward\_rates. A reward-only room can have rates: []. | | room\_types[].rates[].rate\_plan\_code | string | Identifier of the starting cash offer. | | room\_types[].rates[].name | nullable string | Published cash rate name; null when unavailable. | | room\_types[].rates[].members\_only / login\_required | nullable boolean | Published membership and login requirements for booking; null means unknown. A member label alone does not establish a login requirement. Quotes do not require a Hilton login. | | room\_types[].rates[].per\_night | number | Average nightly display amount per room for the stay. | | room\_types[].rates[].total / total\_formatted | number / string | Exact published stay total per room. Do not multiply the rounded per\_night amount to calculate it. | | room\_types[].rates[].currency | string | Display currency of the offer. | | room\_types[].rates[].includes\_taxes\_and\_service\_charges | boolean | Published tax-and-service-charge indicator; does not establish treatment of every possible property fee. | | room\_types[].rates[].rate\_changes\_during\_stay | boolean | Whether the published rate changes during the stay. | | room\_types[].reward\_rates | array | Available full-points offers. An empty array means no full-points offers were returned for this room in a successful response. | | room\_types[].reward\_rates[].rate\_plan\_code / name | string | Reward offer identifier and published name. | | room\_types[].reward\_rates[].reward\_type | string | standard or premium. | | room\_types[].reward\_rates[].points | integer | First-night points per room, not a nightly average. Do not multiply by the number of nights. | | room\_types[].reward\_rates[].points\_total | integer | Exact full-stay points total per room. | | room\_types[].reward\_rates[].nightly\_rates | array | Dated nightly points per room: each entry contains date (YYYY-MM-DD) and points. Nights can have different points prices. | | room\_types[].reward\_rates[].members\_only / login\_required | boolean | Hilton membership and login requirements for booking; these do not require a Hilton login to obtain the quote. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "hilton"` and a correlation id. - **400 INVALID\_INPUT** : invalid search form, hotel code, dates, occupancy, or currency. - **400 INVALID\_URL** : supply a canonical HTTPS Hilton hotel or reservation rooms URL. - **422** : a required parameter is missing or a typed parameter is outside its declared contract. - **502 UPSTREAM\_ERROR** : Hilton data could not be retrieved or verified, or a quote changed while checking the requested room quantity. Unverified availability returns an error, never partial room results. - **504** : the request timed out. - **503** : service temporarily unavailable; honor Retry-After when supplied. ## Related Hilton endpoints [Search hotel metadata and codes](/docs/endpoints/hilton/search)[Dated rooms, cash rates, and full-points rewards](/docs/endpoints/hilton/rooms)[Extract a Hilton hotel code](/docs/endpoints/hilton/url-to-id) Request ```curl curl -X GET "https://api.stayapi.com/v1/hilton/rooms?hotel_code=LONHITW&check_in=2026-10-15&check_out=2026-10-17&adults=2¤cy=GBP" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "availability_status": "available", "availability_message": null, "hotel_code": "LONHITW", "check_in": "2026-10-15", "check_out": "2026-10-17", "adults": 2, "children": 0, "child_ages": [], "rooms": 1, "currency": "GBP", "native_currency": "GBP", "pricing_scope": "starting_rates", "price_basis": "per_room", "total": 2, "room_types": [ { "code": "T2", "name": "Twin Guest Room", "description": "Classically styled, air conditioning, work desk, bathroom, standard WiFi", "occupancy": 2, "beds": 2, "accessible": false, "suite": false, "photos": [], "rates": [ { "rate_plan_code": "HPPAP4", "name": null, "members_only": null, "login_required": null, "per_night": 411.02, "total": 822.04, "total_formatted": "£822.04", "currency": "GBP", "includes_taxes_and_service_charges": true, "rate_changes_during_stay": true } ], "reward_rates": [ { "rate_plan_code": "HHNSRR", "name": "Standard Room Reward", "reward_type": "standard", "points": 90000, "points_total": 180000, "nightly_rates": [ { "date": "2026-10-15", "points": 90000 }, { "date": "2026-10-16", "points": 90000 } ], "members_only": true, "login_required": true } ] }, { "code": "K1D", "name": "King Deluxe Room", "description": "Park or city views, higher floor, modern style, air conditioning, bathroom, standard WiFi", "occupancy": 2, "beds": 1, "accessible": false, "suite": false, "photos": [], "rates": [ { "rate_plan_code": "HPPAP4", "name": null, "members_only": null, "login_required": null, "per_night": 443.32, "total": 886.64, "total_formatted": "£886.64", "currency": "GBP", "includes_taxes_and_service_charges": true, "rate_changes_during_stay": true } ], "reward_rates": [ { "rate_plan_code": "HHPRR3", "name": "Premium Room Rewards", "reward_type": "premium", "points": 242000, "points_total": 486000, "nightly_rates": [ { "date": "2026-10-15", "points": 242000 }, { "date": "2026-10-16", "points": 244000 } ], "members_only": true, "login_required": true } ] } ] } ``` ```json { "type": "about:blank", "title": "Invalid Input", "status": 400, "detail": "Invalid Hilton input.", "provider": "hilton", "error_code": "INVALID_INPUT" } ``` ``` { "success": true, "availability_status": "unavailable", "availability_message": "No rooms are available for the requested dates.", "hotel_code": "MVVMMLX", "check_in": "2026-12-28", "check_out": "2027-01-02", "adults": 2, "children": 0, "child_ages": [], "rooms": 1, "currency": "USD", "native_currency": null, "pricing_scope": "starting_rates", "price_basis": "per_room", "total": 0, "room_types": [] } ``` --- Source: https://stayapi.com/docs/endpoints/hilton/url-to-id GET # Hilton URL to Hotel ID API - Extract Hotel Codes Extract the seven-character Hilton hotel\_code from a public URL. ## Overview Extract a Hilton hotel code from a canonical HTTPS hotel or reservation rooms URL with StayAPI. Get the seven-character ctyhocn and normalized URL as JSON. #### Scope Local extraction does not check whether a hotel exists. Accepts hilton.com or www.hilton.com over HTTPS: /en/hotels/{code}-{slug}/ or /en/book/reservation/rooms/?ctyhocn={code}, including supported locale prefixes. Tracking parameters and fragments are removed; conflicting or repeated ctyhocn values are rejected. Pass hotel\_code to Rooms for dated starting cash and full-points offers. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/hilton/hotel/url-to-id ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Canonical HTTPS Hilton hotel or reservation rooms URL, at most 2,048 characters; no credentials, whitespace, or nonstandard port. Reservation URLs require exactly one valid ctyhocn. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | True on successful extraction. | | hotel\_code | string | Uppercase seven-character ctyhocn identifier; existence is not validated. | | url | string | Normalized HTTPS www.hilton.com URL, with tracking parameters and fragment removed. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "hilton"` and a correlation id. - **400 INVALID\_INPUT** : invalid search form, hotel code, dates, occupancy, or currency. - **400 INVALID\_URL** : supply a canonical HTTPS Hilton hotel or reservation rooms URL. - **422** : a required parameter is missing or a typed parameter is outside its declared contract. - **502 UPSTREAM\_ERROR** : Hilton data could not be retrieved or verified, or a quote changed while checking the requested room quantity. Unverified availability returns an error, never partial room results. - **504** : the request timed out. - **503** : service temporarily unavailable; honor Retry-After when supplied. ## Related Hilton endpoints [Search hotel metadata and codes](/docs/endpoints/hilton/search)[Dated rooms, cash rates, and full-points rewards](/docs/endpoints/hilton/rooms)[Extract a Hilton hotel code](/docs/endpoints/hilton/url-to-id) Request ```curl curl -X GET "https://api.stayapi.com/v1/hilton/hotel/url-to-id?url=https%3A%2F%2Fwww.hilton.com%2Fen%2Fhotels%2Flonhitw-london-hilton-on-park-lane%2F" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_code": "LONHITW", "url": "https://www.hilton.com/en/hotels/lonhitw-london-hilton-on-park-lane/" } ``` ```json { "type": "about:blank", "title": "Invalid Input", "status": 400, "detail": "Invalid Hilton input.", "provider": "hilton", "error_code": "INVALID_URL" } ``` --- Source: https://stayapi.com/docs/endpoints/bestwe/search ![WeHotel (Jin Jiang) logo](/assets/logos/jinjiang_logo-25390c19abd44e9d447d5784d1733f8ec0409bee060d6d61d765f3ff6e9ccd9a.png)GET # WeHotel (Jin Jiang) Search API Find WeHotel (Jin Jiang) properties in a Chinese destination. ## Overview Search dated WeHotel (Jin Jiang) inventory by city code, with property identifiers and lowest advertised nightly prices. #### Scope Search names come from the upstream Chinese search API. property\_id is the stable identifier for Details and Rooms. Prices are anonymous web prices in CNY and may include publicly exposed club plans. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/bestwe/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | city\_code | string | Required | WeHotel (Jin Jiang) city identifier, 3 to 32 alphanumeric characters; AR04567 is Shanghai. | | check\_in | date | Required | Check-in date (YYYY-MM-DD). Cannot be in the past. | | check\_out | date | Required | Check-out date (YYYY-MM-DD), after check-in. | | latitude | number | Optional | Optional search-center latitude (-90 to 90). Must be supplied with longitude. | | longitude | number | Optional | Optional search-center longitude (-180 to 180). Must be supplied with latitude. | | page | integer | Optional | Upstream page number, at least 1. Default: 1. | | limit | integer | Optional | Results per page, 1 to 20. Default: 10. | | sort | enum | Optional | recommended, distance, price\_asc, or price\_desc. Default: recommended. | ## Response schema | Field | Type | Description | | --- | --- | --- | | hotels | array | Properties with property\_id, hotel code, Chinese name, brand, address, coordinates, ratings, photo, room signal, labels, and lowest CNY price. | | total | integer | Total upstream records for the city search. | | page\_info | object | Page, page size, total pages, and has\_next\_page. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "bestwe"`, a product name, and a correlation id. - **400** : invalid dates, an incomplete coordinate pair, or child ages that do not match the child count. - **404** : the WeHotel (Jin Jiang) property identifier is not recognized. - **422** : a parameter is outside its declared range or enum. - **502** : WeHotel (Jin Jiang) rejected or failed the upstream request. - **503** : service temporarily unavailable; honor `Retry-After`. ## Related WeHotel (Jin Jiang) endpoints [Search and get a property id](/docs/endpoints/bestwe/search)[Resolve a WeHotel (Jin Jiang) property URL locally](/docs/endpoints/bestwe/url-to-id)[Property content and static room metadata](/docs/endpoints/bestwe/details)[Guest reviews, photos, tags, and hotel replies](/docs/endpoints/bestwe/reviews)[Live room rates and availability](/docs/endpoints/bestwe/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/bestwe/search" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "city_code=AR04567" \ --data-urlencode "check_in=2026-08-10" \ --data-urlencode "check_out=2026-08-11" \ --data-urlencode "latitude=31.2304" \ --data-urlencode "longitude=121.4737" \ --data-urlencode "sort=distance" ``` Response ```json { "success": true, "hotels": [ { "property_id": "JJ1089", "hotel_code": "1089", "name": "上海新锦江大酒店", "brand_code": "JINJIANG", "address": "上海市黄浦区长乐路161号", "location": { "latitude": 31.226964, "longitude": 121.46954 }, "distance_km": 0.6, "rating": 4.8, "star_rating": 4.0, "has_rooms": true, "foreign_guests_supported": true, "price": { "per_night": 610.0, "currency": "CNY" } } ], "total": 252, "page_info": { "page": 1, "page_size": 10, "total_pages": 26, "has_next_page": true } } ``` --- Source: https://stayapi.com/docs/endpoints/bestwe/url-to-id ![WeHotel (Jin Jiang) logo](/assets/logos/jinjiang_logo-25390c19abd44e9d447d5784d1733f8ec0409bee060d6d61d765f3ff6e9ccd9a.png)GET # WeHotel (Jin Jiang) URL to Hotel ID API Turn a WeHotel (Jin Jiang) hotel URL into the property\_id used by Details and Rooms. ## Overview Extract the stable WeHotel (Jin Jiang) property identifier from a canonical hotel.bestwehotel.com property URL without making an upstream request. #### Scope The resolver is local-only. It accepts the canonical /HotelDetail?hotelId=... form, removes tracking parameters and fragments, and returns a normalized HTTPS URL. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/bestwe/hotel/url-to-id ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Canonical http(s) hotel.bestwehotel.com/HotelDetail URL containing exactly one valid hotelId. | ## Response schema | Field | Type | Description | | --- | --- | --- | | url | string | Normalized HTTPS property URL with tracking data removed. | | property\_id | string | Stable WeHotel (Jin Jiang) identifier used by Details and Rooms. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "bestwe"`, a product name, and a correlation id. - **400 INVALID\_URL** : the URL is not a canonical WeHotel (Jin Jiang) property page. - **400 PROPERTY\_ID\_NOT\_FOUND** : the URL does not contain exactly one valid `hotelId`. - **422** : the URL parameter is missing or longer than 2,048 characters. ## Related WeHotel (Jin Jiang) endpoints [Search and get a property id](/docs/endpoints/bestwe/search)[Resolve a WeHotel (Jin Jiang) property URL locally](/docs/endpoints/bestwe/url-to-id)[Property content and static room metadata](/docs/endpoints/bestwe/details)[Guest reviews, photos, tags, and hotel replies](/docs/endpoints/bestwe/reviews)[Live room rates and availability](/docs/endpoints/bestwe/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/bestwe/hotel/url-to-id" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "url=https://hotel.bestwehotel.com/HotelDetail?hotelId=JJ1089&utm_source=example" ``` Response ```json { "success": true, "url": "https://hotel.bestwehotel.com/HotelDetail?hotelId=JJ1089", "property_id": "JJ1089" } ``` --- Source: https://stayapi.com/docs/endpoints/bestwe/details ![WeHotel (Jin Jiang) logo](/assets/logos/jinjiang_logo-25390c19abd44e9d447d5784d1733f8ec0409bee060d6d61d765f3ff6e9ccd9a.png)GET # WeHotel (Jin Jiang) Hotel Details API Hydrate one WeHotel (Jin Jiang) property in Chinese or English. ## Overview Get public WeHotel (Jin Jiang) property content, policies, location, contact information, review summary, photos, facilities, services, and static room metadata. #### Scope Details is content-only. Use Rooms with stay dates for live availability and rates. English values fall back to Chinese when the upstream field has no English translation. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/bestwe/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Stable WeHotel (Jin Jiang) property identifier returned by Search, for example JJ1089. | | language | enum | Optional | Localized content language: zh or en. Default: zh; missing fields fall back to the other language. | ## Response schema | Field | Type | Description | | --- | --- | --- | | property\_id / hotel\_code | string | Stable drilldown identifier and upstream chain code. | | name / brand / description / policy | mixed | Localized property identity and published content. | | address / city / province / country / location | mixed | Postal and coordinate data. | | rating / review\_count / star\_rating | number | Published guest score and classification. | | images / facilities / services | array | Unique public image URLs and localized amenity names. | | room\_types | array | Static room code, name, description, area, and maximum occupancy. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "bestwe"`, a product name, and a correlation id. - **400** : invalid dates, an incomplete coordinate pair, or child ages that do not match the child count. - **404** : the WeHotel (Jin Jiang) property identifier is not recognized. - **422** : a parameter is outside its declared range or enum. - **502** : WeHotel (Jin Jiang) rejected or failed the upstream request. - **503** : service temporarily unavailable; honor `Retry-After`. ## Related WeHotel (Jin Jiang) endpoints [Search and get a property id](/docs/endpoints/bestwe/search)[Resolve a WeHotel (Jin Jiang) property URL locally](/docs/endpoints/bestwe/url-to-id)[Property content and static room metadata](/docs/endpoints/bestwe/details)[Guest reviews, photos, tags, and hotel replies](/docs/endpoints/bestwe/reviews)[Live room rates and availability](/docs/endpoints/bestwe/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/bestwe/hotel/details" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "property_id=JJ1089" \ --data-urlencode "language=en" ``` Response ```json { "success": true, "property_id": "JJ1089", "hotel_code": "JJ", "name": "Jin Jiang Tower Shanghai", "brand": { "code": "JINJIANG", "name": "Jin Jiang Hotels" }, "address": "161 Changle Road, Shanghai", "city": "Shanghai", "country": "China", "country_code": "CN", "location": { "latitude": 31.226964, "longitude": 121.46954 }, "currency": "CNY", "foreign_guests_supported": true, "pets_allowed": false, "images": [ "https://images.bestwehotel.com/example.jpg" ], "facilities": [ "Swimming pool" ], "services": [ "Front desk" ], "room_types": [ { "code": "DBL", "name": "Deluxe Room", "area_sqm": "30", "max_occupancy": 2 } ] } ``` --- Source: https://stayapi.com/docs/endpoints/bestwe/reviews ![WeHotel (Jin Jiang) logo](/assets/logos/jinjiang_logo-25390c19abd44e9d447d5784d1733f8ec0409bee060d6d61d765f3ff6e9ccd9a.png)GET # WeHotel (Jin Jiang) Hotel Reviews API Pull rich guest feedback for one WeHotel (Jin Jiang) property. ## Overview Get public WeHotel (Jin Jiang) guest reviews with pagination, score dimensions, photos, popular tags, room breakdowns, and hotel responses. #### Scope Reviews are returned as published by WeHotel (Jin Jiang), normally in Chinese. page is one-based. The filter selects all, good, bad, or photo reviews without extra upstream calls. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/bestwe/hotel/reviews ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Stable WeHotel (Jin Jiang) property identifier returned by Search, for example JJ1089. | | page | integer | Optional | Page number, at least 1. Default: 1. | | page\_size | integer | Optional | Reviews per page, 1 to 20. Default: 10. | | filter | enum | Optional | all, good, bad, or photos. Default: all. | ## Response schema | Field | Type | Description | | --- | --- | --- | | rating / total | number | Overall property score and total published review count. | | filter / filter\_counts | mixed | Active review subset and counts for all, good, bad, and photo reviews. | | tags / room\_types | array | Popular review-tag counts and review counts by room type. | | reviews | array | Review id, score, text, timestamp, masked reviewer, room, trip type, helpful count, photos, dimension scores, and hotel responses. | | page\_info | object | One-based page, page size, total pages for the active filter, and has\_next\_page. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "bestwe"`, a product name, and a correlation id. - **422** : property\_id, page, page\_size, or filter is outside its declared contract. - **502** : WeHotel (Jin Jiang) rejected or failed the upstream review request. - **503** : service temporarily unavailable; honor `Retry-After`. ## Related WeHotel (Jin Jiang) endpoints [Search and get a property id](/docs/endpoints/bestwe/search)[Resolve a WeHotel (Jin Jiang) property URL locally](/docs/endpoints/bestwe/url-to-id)[Property content and static room metadata](/docs/endpoints/bestwe/details)[Guest reviews, photos, tags, and hotel replies](/docs/endpoints/bestwe/reviews)[Live room rates and availability](/docs/endpoints/bestwe/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/bestwe/hotel/reviews" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "property_id=JJ1089" \ --data-urlencode "page=1" \ --data-urlencode "page_size=10" \ --data-urlencode "filter=photos" ``` Response ```json { "success": true, "property_id": "JJ1089", "rating": 4.8, "total": 1420, "filter": "photos", "filter_counts": { "all": 1420, "good": 1323, "bad": 43, "photos": 89 }, "tags": [ { "id": "10", "name": "位置极佳", "count": 731 } ], "room_types": [ { "code": "FT", "name": "高级双床房", "count": 182 } ], "reviews": [ { "id": "68d3a27addc4bb51baa32ccd", "rating": 3.0, "content": "太破旧了!", "reviewed_at": "2025-09-24T05:09:14.086Z", "reviewer_name": "31***33", "room_type_code": "FT", "room_type_name": "高级双床房", "travel_type": "其他", "helpful_count": 0, "photos": [ "https://imgs.bestwehotel.com/images/comment/example" ], "scores": [ { "category_code": 1001, "category": "服务评分", "score": 3.0 } ], "hotel_responses": [] } ], "page_info": { "page": 1, "page_size": 10, "total_pages": 9, "has_next_page": true } } ``` --- Source: https://stayapi.com/docs/endpoints/bestwe/rooms ![WeHotel (Jin Jiang) logo](/assets/logos/jinjiang_logo-25390c19abd44e9d447d5784d1733f8ec0409bee060d6d61d765f3ff6e9ccd9a.png)GET # WeHotel (Jin Jiang) Hotel Rooms API Pull room-level CNY rates and availability for one property. ## Overview Get live WeHotel (Jin Jiang) room types, anonymous public and club rate plans, inventory, breakfast, and cancellation rules for a dated stay. #### Scope Rates use the hotel's native CNY pricing. stay\_total equals per\_night × nights × requested rooms. Taxes and service fees are not separately itemized by this web surface. #### Authentication Send your StayAPI key in the X-API-Key header. Successful requests return JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/bestwe/hotel/rooms ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | property\_id | string | Required | Stable WeHotel (Jin Jiang) property identifier returned by Search, for example JJ1089. | | check\_in | date | Required | Check-in date (YYYY-MM-DD). Cannot be in the past. | | check\_out | date | Required | Check-out date (YYYY-MM-DD), after check-in. | | adults | integer | Optional | Total adults, 1 to 8. Default: 2. | | children | integer | Optional | Total children, 0 to 3. Default: 0. | | child\_ages | integer[] | Optional | Exactly one age from 0 to 17 per child. Repeat the query parameter for multiple children. | | rooms | integer | Optional | Requested room count, 1 to 3. Default: 1. | | language | enum | Optional | Localized content language: zh or en. Default: zh; missing fields fall back to the other language. | ## Response schema | Field | Type | Description | | --- | --- | --- | | property\_id / check\_in / check\_out / nights | mixed | Normalized property and stay context. | | currency | string | Authoritative rate currency; currently CNY. | | room\_types | array | Room metadata, beds, image, available-room count, and rate plans. | | room\_types[].rates | array | Per-night and stay-total prices, bookability, inventory, breakfast, cancellation, prepayment, and member-rate signals. | | total | integer | Number of room types returned. | ## Errors and limitations Errors use RFC 7807 Problem Details with `provider: "bestwe"`, a product name, and a correlation id. - **400** : invalid dates, an incomplete coordinate pair, or child ages that do not match the child count. - **404** : the WeHotel (Jin Jiang) property identifier is not recognized. - **422** : a parameter is outside its declared range or enum. - **502** : WeHotel (Jin Jiang) rejected or failed the upstream request. - **503** : service temporarily unavailable; honor `Retry-After`. ## Related WeHotel (Jin Jiang) endpoints [Search and get a property id](/docs/endpoints/bestwe/search)[Resolve a WeHotel (Jin Jiang) property URL locally](/docs/endpoints/bestwe/url-to-id)[Property content and static room metadata](/docs/endpoints/bestwe/details)[Guest reviews, photos, tags, and hotel replies](/docs/endpoints/bestwe/reviews)[Live room rates and availability](/docs/endpoints/bestwe/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/bestwe/hotel/rooms" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "property_id=JJ1089" \ --data-urlencode "check_in=2026-08-10" \ --data-urlencode "check_out=2026-08-11" \ --data-urlencode "adults=2" \ --data-urlencode "children=1" \ --data-urlencode "child_ages=6" \ --data-urlencode "rooms=1" \ --data-urlencode "language=en" ``` Response ```json { "success": true, "property_id": "JJ1089", "check_in": "2026-08-10", "check_out": "2026-08-11", "nights": 1, "currency": "CNY", "room_types": [ { "code": "DBL", "name": "Deluxe Room", "area_sqm": "30", "max_occupancy": 2, "available_rooms": 3, "bed_types": [ "King bed" ], "bed_widths": [ "1.8 m" ], "rates": [ { "code": "BAR", "name": "Flexible Rate", "per_night": 610.0, "stay_total": 610.0, "currency": "CNY", "prepaid": false, "bookable": true, "available_rooms": 3, "breakfast_included": true, "breakfast_count": 2, "member_rate": false } ] } ], "total": 1 } ``` --- Source: https://stayapi.com/docs/endpoints/ihg/search GET # IHG Search API Find IHG hotels near a set of coordinates, sorted by distance, with full property metadata. ## Overview #### Metadata only — no pricing or availability This endpoint returns property metadata (name, brand, address, coordinates, photos, ratings) sorted by distance. It does not return rates or availability, so there are no date parameters. Take the hotel\_code from each result and call the IHG Rooms endpoint to get rates and availability. The IHG Search endpoint covers all IHG-branded properties (InterContinental, Holiday Inn, Crowne Plaza, Kimpton, voco, Hotel Indigo, Staybridge Suites, Candlewood Suites, and more). It returns hotels near a geographic location with brand information, structured address, coordinates, photos, a guest-review summary, and distance from the search center. ### Endpoint URL GET https://api.stayapi.com/v1/ihg/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | latitude | float | Required | Latitude of search center (-90 to 90) | | longitude | float | Required | Longitude of search center (-180 to 180) | | radius\_miles | integer | Optional | Search radius in miles (1-100). Default: 50 | | limit | integer | Optional | Maximum properties to return (1-120). Default: 50 | #### Coordinates only This endpoint searches by latitude/longitude — it does not accept a city or country name. Use Google Maps or a geocoding service to convert a place name to coordinates first. For example, Manhattan is approximately 40.7231, -73.9309. ## Response Format The response includes a list of IHG hotels with brand details, structured address, coordinates, photos, a guest-review summary, and distance from the search coordinates, nearest first. ### Response Structure - **success** : Boolean indicating request success - **hotels** : Array of hotel objects (sorted by distance) - **total** : Number of hotels returned An empty `hotels` array with `success: true` means no IHG properties fall within the radius — it is not an error. ## Hotel Object Fields | Field | Type | Description | | --- | --- | --- | | hotel\_code | string | IHG hotel mnemonic (e.g., "NYCEX", "USMKM"). Use with the Rooms endpoint to get rates. | | name | string | Hotel name | | brand | object | Brand details (code, name, chain\_code) e.g., "Holiday Inn Express" | | location | object | GPS coordinates (latitude, longitude) | | address | object | Structured address (street, city, state, postal\_code, country, country\_code) | | distance\_miles | float | Straight-line distance from the search center, in miles | | distance\_km | float | Straight-line distance from the search center, in kilometers | | image | string | Primary hotel image URL | | photos | array | Additional photos, each with url and caption | | rating | float | Average guest review (IHG's own 1-5 scale) | | review\_count | integer | Total number of guest reviews | | status | string | Property status (e.g., "OPEN") | | url | string | Deeplink to the property page on ihg.com | ## Error Responses The API returns standard HTTP error codes with detailed error messages following the RFC 7807 Problem Details format. ### 422 Unprocessable Entity Invalid request parameters (e.g., out-of-range coordinates, missing latitude/longitude) ``` { "detail": [ { "loc": ["query", "latitude"], "msg": "Input should be less than or equal to 90", "type": "less_than_equal" } ] } ``` ### 502 Bad Gateway Upstream service error from IHG ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "provider": "ihg", "product": "search" } ``` ## Usage Tips ### Best Practices - Use precise coordinates for best results (e.g., city center or airport location) - This endpoint is metadata only — pass the `hotel_code` to the Rooms endpoint to get rates and availability for specific dates - Results are sorted by distance (nearest first); use `radius_miles` to bound the search area - Geocode city/country names to coordinates before calling this endpoint - The `distance_miles` field helps rank results by proximity #### Rate Limiting This endpoint is subject to your plan's rate limits. Each search counts as one API call regardless of the number of results returned. ## Related Endpoints ### IHG Rooms Get room types and rates for a specific IHG property [View Documentation →](/docs/endpoints/ihg/rooms) ### IHG URL to Hotel ID Extract an IHG hotel mnemonic from an ihg.com URL [View Documentation →](/docs/endpoints/ihg/url-to-id) Request ```curl curl -X GET "https://api.stayapi.com/v1/ihg/search?latitude=40.7231&longitude=-73.9309&radius_miles=25&limit=10" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "total": 70, "hotels": [ { "hotel_code": "NYCEX", "name": "Long Island City E - New York", "brand": { "code": "HIEX", "name": "Holiday Inn Express", "chain_code": "EX" }, "location": { "latitude": 40.73748, "longitude": -73.93607 }, "address": { "street": "52-09 31st Place", "city": "Long Island City", "state": "NY", "postal_code": "11101", "country": "United States", "country_code": "US" }, "distance_miles": 1.03, "distance_km": 1.65, "image": "https://digital.ihg.com/is/image/ihg/holiday-inn-express-long-island-city-original", "photos": [ { "url": "https://digital.ihg.com/is/image/ihg/holiday-inn-express-long-island-city-1", "caption": "Lobby" } ], "rating": 3.91, "review_count": 270, "status": "OPEN", "url": "https://www.ihg.com/hotels/us/en/find-hotels/hotel/rooms?qDest=&qHotelCode=NYCEX" } ] } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "instance": "/v1/ihg/search", "provider": "ihg", "product": "search", "error_code": "UPSTREAM_ERROR", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/ihg/rooms GET # IHG Rooms API Real-time room availability, cash rates, and IHG One Rewards points pricing for any property in the IHG portfolio — returned in a single response. ## Overview #### Two parallel pricings per room Each room returns both `rates[]` (cash bookings, in the property's local currency) and `reward_options[]` (IHG One Rewards: points-only and points+cash combinations). Use whichever fits your application. The IHG Rooms endpoint queries IHG's live availability service and returns every bookable room type at a property for the requested dates, with full pricing breakdowns for cash and reward stays. The response includes room metadata (occupancy caps, descriptions), per-rate-plan cash totals with taxes and fees, and a points/cash redemption ladder when IHG One Rewards inventory is available. #### No rooms available is a successful lookup When IHG confirms no rooms for the exact dates and occupancy you requested, including a closed restriction, the endpoint returns HTTP 200 with `success: true`, `room_types: []`, and `total: 0`. Keep the requested dates and occupancy unchanged when interpreting this result. ### Endpoint URL GET https://api.stayapi.com/v1/ihg/rooms ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_code | string (3–10 chars) | Required | IHG hotel mnemonic. Examples: `USMKM` (Kimpton Maa-Lai Bangkok), `LONHB` (InterContinental London), `ATLPS` (InterContinental Atlanta). | | check\_in | string (YYYY-MM-DD) | Required | Check-in date. Must not be in the past. | | check\_out | string (YYYY-MM-DD) | Required | Check-out date. Must be strictly after `check_in`. | | adults | integer (1–8) | Optional | Number of adult guests per room. Default: `2`. | | children | integer (0–6) | Optional | Number of children per room. Default: `0`. | | rooms | integer (1–9) | Optional | Number of rooms requested. Default: `1`. | #### Finding the hotel code IHG mnemonics appear in every ihg.com booking URL. For example, `https://www.ihg.com/kimptonhotels/hotels/us/en/maikhao/usmkm/hoteldetail` exposes `usmkm` as the hotel code (case-insensitive, normalized to uppercase server-side). ## Brand coverage The endpoint covers every IHG-branded property worldwide: InterContinentalKimptonSix SensesHotel IndigovocoCrowne PlazaHoliday InnHoliday Inn ExpressEVEN HotelsavidStaybridge SuitesCandlewood Suites ## Response Format ### Top-level fields | Field | Type | Description | | --- | --- | --- | | success | boolean | Always `true` on a 2xx response. | | hotel\_code | string | Echoes the IHG mnemonic from the request. | | currency | string | Property's local billing currency. Applies to every entry in `rates[]`; it is empty when IHG confirms no availability, including a closed restriction. | | brand\_code | string | IHG brand code (e.g. `KIKI` Kimpton, `ICON` InterContinental, `HEXS` Holiday Inn Express). | | country\_code | string | ISO 3166-1 alpha-2 country code. | | total | integer | Number of `room_types` returned. | | room\_types | array of object | One entry per IHG inventory code. See below. | A confirmed closed restriction for the requested stay returns HTTP 200 with `success: true`, `total: 0`, `room_types: []`, `currency: ""`, and null brand/country metadata. Dates and occupancy are unchanged; other validation failures remain errors. Empty successful lookups follow the existing successful-request billing policy. ### `room_types[]` entry | Field | Type | Description | | --- | --- | --- | | code | string | IHG inventory code (e.g. `CPUG`, `KOTN`). Stable identifier for the room type at this property. | | name | string | Display name from IHG's PMS (e.g. "Essential Room", "1 King Sea View"). | | description | string | null | Long-form room description. | | max\_adults | integer | null | Adult occupancy cap for this room type. | | max\_children | integer | null | Child occupancy cap for this room type. | | available\_rooms | integer | null | Number of bookable rooms IHG reports for the requested dates. | | rates | array of object | Cash rate plans available for this room. See below. | | reward\_options | array of object | IHG One Rewards redemption options for this room. May be `[]` when IHG doesn't price reward inventory for the room/dates. See below. | ### `rates[]` entry — cash bookings | Field | Type | Unit | Description | | --- | --- | --- | --- | | name | string | — | Display name (e.g. "Best Flexible Rate"). | | rate\_plan\_code | string | — | IHG rate plan code (e.g. `IGCOR`, `IDME0`, `IDAPF`). | | per\_night | number | null | per night, pre-tax | Average nightly rate before taxes and fees. | | per\_night\_after\_tax | number | null | per night, post-tax | Average nightly rate including taxes and fees. | | base\_total | number | null | stay total, pre-tax | Stay total before taxes and fees. | | fees\_taxes | number | null | stay total | Combined taxes and fees for the stay. | | total | number | null | stay total, post-tax | Final stay total. Equals `base_total + fees_taxes`. | | currency | string | — | Always equals the top-level `currency`. | | is\_member\_rate | boolean | — | `true` if booking requires an IHG One Rewards account. | | is\_advance\_purchase | boolean | — | `true` for non-refundable prepay rates. | | long\_description | string | null | — | Human-readable rate description from IHG. | | policy\_description | string | null | — | Cancellation/prepayment policy text. | ### `reward_options[]` entry — IHG One Rewards | Field | Type | Unit | Description | | --- | --- | --- | --- | | points | integer | per night | IHG One Rewards points required per night. | | cash | number | null | per night | Cash component per night. `null` for points-only options. | | cash\_currency | string | null | — | Currency code for the `cash` field. `null` when `cash` is null. Always read this field per entry — IHG may return a different currency than the property's `rates[]` currency. | | points\_total | integer | null | stay total | Total points required for the entire stay. | | cash\_total | number | null | stay total | Total cash for the entire stay. `null` for points-only options. | #### Currency varies between rates and reward options The top-level `currency` field applies to every entry in `rates[]`. For `reward_options[]`, IHG returns its own currency on each entry — read `cash_currency` per option. In current observations IHG returns `"USD"` for the cash component of reward options regardless of the property's local currency, but always use the value from the response rather than hard-coding it. ### Example response (200 OK) Trimmed for brevity (one room, two cash rates). Real responses contain every available room type at the property, each with its own `rates[]` and `reward_options[]`. ``` { "success": true, "hotel_code": "USMKM", "currency": "THB", "brand_code": "KIKI", "country_code": "TH", "total": 13, "room_types": [ { "code": "CPUG", "name": "Essential Room", "description": "You deserve a room as unique as you are. ...", "max_adults": 2, "max_children": 1, "available_rooms": 9, "rates": [ { "name": "Best Flexible Rate", "rate_plan_code": "IGCOR", "per_night": 15562.43, "per_night_after_tax": 18472.61, "base_total": 31124.85, "fees_taxes": 5820.36, "total": 36945.21, "currency": "THB", "is_member_rate": false, "is_advance_purchase": false, "long_description": "Best Flexible Rate.", "policy_description": "Restrictions may apply." } // ... more cash rate plans ], "reward_options": [ { "points": 79500, "cash": null, "cash_currency": null, "points_total": 159000, "cash_total": null }, { "points": 59500, "cash": 149.0, "cash_currency": "USD", "points_total": 119000, "cash_total": 298.0 }, { "points": 49500, "cash": 219.0, "cash_currency": "USD", "points_total": 99000, "cash_total": 438.0 }, { "points": 39500, "cash": 279.0, "cash_currency": "USD", "points_total": 79000, "cash_total": 558.0 }, { "points": 29500, "cash": 334.0, "cash_currency": "USD", "points_total": 59000, "cash_total": 668.0 }, { "points": 19500, "cash": 384.0, "cash_currency": "USD", "points_total": 39000, "cash_total": 768.0 }, { "points": 9500, "cash": 419.0, "cash_currency": "USD", "points_total": 19000, "cash_total": 838.0 } ] } // ... more room types ] } ``` ## Working with the response ### Find the cheapest cash rate for a room Sort or reduce `rates` by `total` (whole-stay including taxes and fees): ``` cheapest = min(room["rates"], key=lambda r: r["total"]) print(f"{cheapest['rate_plan_code']}: {cheapest['total']} {cheapest['currency']}") ``` ### Find the points-only redemption option Filter `reward_options` for the entry where `cash` is null. There is at most one points-only entry, and it may not exist for every room/date combination: ``` points_only = next( (o for o in room["reward_options"] if o["cash"] is None), None, ) if points_only: print(f"{points_only['points']} points/night") else: print("no points-only option") ``` #### Empty reward\_options is expected When IHG can't price reward inventory for a room+dates combination, that room's `reward_options` array is `[]`. This is a normal response, not an error — other rooms in the same response may still have full ladders. ## Common Use Cases ### Real-time availability Display current room availability, prices, and inventory counts for IHG properties. Live cash + reward pricing ### Multi-room comparison Show every room type at a property side-by-side with full price breakdowns and policy details. Compare rooms in one request ### Loyalty-aware booking flows Surface IHG One Rewards points and points+cash redemption options alongside cash rates in your booking flow. Cash and reward pricing together ### Hotel data enrichment Enrich your hotel records with IHG-side room metadata, occupancy caps, and rate-plan details. Authoritative IHG room data ## Error Responses All endpoint-level errors follow [RFC 7807 Problem Details](https://datatracker.ietf.org/doc/html/rfc7807) with content type `application/problem+json`. Each response carries `provider: "ihg"`, `product: "rooms"`, and a unique `correlation_id` for support requests. ### 400 Bad Request — invalid date format `check_in` or `check_out` isn't `YYYY-MM-DD`. ``` { "type": "https://api.stayapi.com/errors/invalid-date-format", "title": "Invalid Date Format", "status": 400, "detail": "Date must be in YYYY-MM-DD format", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "INVALID_DATE_FORMAT", "correlation_id": "ad0607ed-c7b0-4a7a-b17e-ac49dec27a94" } ``` ### 400 Bad Request — past dates `check_in` is before today. ``` { "type": "https://api.stayapi.com/errors/past-dates", "title": "Past Dates", "status": 400, "detail": "Check-in date cannot be in the past", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "PAST_DATES", "correlation_id": "745b8a26-d79e-4a99-8b31-dc2122022f8c" } ``` ### 400 Bad Request — invalid date order `check_out` isn't strictly after `check_in`. ``` { "type": "https://api.stayapi.com/errors/invalid-dates", "title": "Invalid Dates", "status": 400, "detail": "Check-out date must be after check-in date", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "INVALID_DATES", "correlation_id": "bb4fec53-19b8-4056-a456-d4ec8202018b" } ``` ### 404 Not Found — unknown hotel code IHG doesn't recognize the supplied `hotel_code`. ``` { "type": "https://api.stayapi.com/errors/hotel-not-found", "title": "Hotel Not Found", "status": 404, "detail": "Hotel code not recognized by IHG: ZZZZZ", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "HOTEL_NOT_FOUND", "correlation_id": "29caac72-47db-4316-ab26-3aeb8c8c1264" } ``` ### 502 Bad Gateway — upstream error IHG's availability service could not complete or validate the request. Explicitly confirmed no availability returns the successful empty result above; other upstream failures return this error. ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "UPSTREAM_ERROR", "correlation_id": "6bc0f955-18c9-4567-9183-75d5c01117b6" } ``` ### Authentication errors A missing or invalid `x-api-key` header returns a global authentication error (HTTP 401 or 422). The body shape differs from the endpoint-level errors above and is documented on the [Authentication](/docs/authentication) page. Request ```curl # Replace check-in/check-out with your own dates curl -X GET "https://api.stayapi.com/v1/ihg/rooms?hotel_code=USMKM&check_in=2026-12-15&check_out=2026-12-17&adults=2" \ -H "x-api-key: YOUR_API_KEY" ``` Response ``` { "success": true, "hotel_code": "USMKM", "currency": "THB", "brand_code": "KIKI", "country_code": "TH", "total": 13, "room_types": [ { "code": "CPUG", "name": "Essential Room", "max_adults": 2, "max_children": 1, "available_rooms": 9, "rates": [ { "name": "Best Flexible Rate", "rate_plan_code": "IGCOR", "per_night": 15562.43, "per_night_after_tax": 18472.61, "base_total": 31124.85, "fees_taxes": 5820.36, "total": 36945.21, "currency": "THB", "is_member_rate": false, "is_advance_purchase": false } ], "reward_options": [ { "points": 79500, "cash": null, "cash_currency": null, "points_total": 159000, "cash_total": null }, { "points": 59500, "cash": 149.0, "cash_currency": "USD", "points_total": 119000, "cash_total": 298.0 }, { "points": 9500, "cash": 419.0, "cash_currency": "USD", "points_total": 19000, "cash_total": 838.0 } ] } ] } ``` ``` { "type": "https://api.stayapi.com/errors/hotel-not-found", "title": "Hotel Not Found", "status": 404, "detail": "Hotel code not recognized by IHG: ZZZZZ", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "HOTEL_NOT_FOUND", "correlation_id": "29caac72-47db-4316-ab26-3aeb8c8c1264" } ``` ``` { "type": "https://api.stayapi.com/errors/invalid-dates", "title": "Invalid Dates", "status": 400, "detail": "Check-out date must be after check-in date", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "INVALID_DATES", "correlation_id": "bb4fec53-19b8-4056-a456-d4ec8202018b" } ``` ``` { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "instance": "/v1/ihg/rooms", "provider": "ihg", "product": "rooms", "error_code": "UPSTREAM_ERROR", "correlation_id": "6bc0f955-18c9-4567-9183-75d5c01117b6" } ``` --- Source: https://stayapi.com/docs/endpoints/ihg/url-to-id GET # IHG URL to Hotel ID API Convert any ihg.com URL into the hotel mnemonic (`USMKM`, `LONHB`, etc.) you need to call the IHG Rooms API. ## Overview The endpoint accepts a URL on `ihg.com` (or any `*.ihg.com` subdomain) and extracts the IHG hotel mnemonic. It supports both hotel-detail URLs (where the code is in the path) and booking-flow URLs (where the code is in the `qSlH` or `qHotelCode` query param). ### Endpoint URL GET https://api.stayapi.com/v1/ihg/hotel/url-to-id ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Any `http(s)` URL on `ihg.com` or a `*.ihg.com` subdomain. Examples: a hotel-detail URL like `https://www.ihg.com/kimptonhotels/hotels/us/en/maikhao/usmkm/hoteldetail`, or a booking-flow URL like `https://www.ihg.com/hotels/us/en/find-hotels/select-roomrate?qSlH=USMKM&...`. | #### URL-encode the value The `url` parameter must be URL-encoded when included in the query string. Most HTTP clients handle this automatically when you pass it as a params/query object rather than concatenating strings. ## Response Format ### Success (200 OK) | Field | Type | Description | | --- | --- | --- | | success | boolean | Always `true` on a 2xx response. | | url | string | The input URL, normalized: query string and fragment stripped, host lowercased. | | hotel\_code | string | The extracted IHG hotel mnemonic, uppercased. Pass this directly to `/v1/ihg/rooms?hotel_code=...`. | ### Example response ``` { "success": true, "url": "https://www.ihg.com/kimptonhotels/hotels/us/en/maikhao/usmkm/hoteldetail", "hotel_code": "USMKM" } ``` ## Extraction sources The extractor checks four locations in priority order and returns the first match. Both hotel-detail URLs and booking-flow URLs are supported because IHG places the mnemonic in different positions depending on the page. | Priority | Source | Example | | --- | --- | --- | | 1 | qHotelCode | `?qHotelCode=USMKM` | | 2 | qSlH | `?qSlH=USMKM` (booking-flow URLs) | | 3 | Path segment | `.../usmkm/hoteldetail` (also `dining`, `rooms`, `amenities`, etc.) | | 4 | qDest | Best-effort fallback. Accepted only when alphanumeric — free-text destinations like `qDest=Phuket, Thailand` are rejected. | ## Common Use Cases ### URL-to-rates pipeline Customers paste an IHG URL into your app; you call this endpoint, then call `/v1/ihg/rooms` with the extracted code. Two-step lookup ### Normalize affiliate links Strip tracking params from IHG URLs and surface a canonical hotel reference in your database. Clean URL + hotel ID ## Error Responses All endpoint-level errors follow [RFC 7807 Problem Details](https://datatracker.ietf.org/doc/html/rfc7807) with content type `application/problem+json`. Each carries `provider: "ihg"`, `product: "url-to-id"`, and a unique `correlation_id` for support requests. ### 400 Bad Request — invalid URL The URL isn't on `ihg.com` / `*.ihg.com`, the scheme isn't `http(s)`, or the URL is malformed. ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "URL must be an http(s) URL on ihg.com or a *.ihg.com subdomain", "instance": "/v1/ihg/hotel/url-to-id", "provider": "ihg", "product": "url-to-id", "error_code": "INVALID_URL", "provided_url": "https://www.booking.com/hotel/us/foo.html", "correlation_id": "..." } ``` ### 400 Bad Request — hotel code not found The URL is on `ihg.com`, but no mnemonic could be extracted from any of the four sources (path, `qHotelCode`, `qSlH`, `qDest`). ``` { "type": "https://api.stayapi.com/errors/hotel-code-not-found", "title": "Hotel Code Not Found", "status": 400, "detail": "Could not extract an IHG hotel mnemonic from the URL", "instance": "/v1/ihg/hotel/url-to-id", "provider": "ihg", "product": "url-to-id", "error_code": "HOTEL_CODE_NOT_FOUND", "provided_url": "https://www.ihg.com/", "correlation_id": "..." } ``` Request ```curl curl -G "https://api.stayapi.com/v1/ihg/hotel/url-to-id" \ -H "x-api-key: YOUR_API_KEY" \ --data-urlencode "url=https://www.ihg.com/kimptonhotels/hotels/us/en/maikhao/usmkm/hoteldetail" ``` Response ```json { "success": true, "url": "https://www.ihg.com/kimptonhotels/hotels/us/en/maikhao/usmkm/hoteldetail", "hotel_code": "USMKM" } ``` ``` { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "detail": "URL must be an http(s) URL on ihg.com or a *.ihg.com subdomain", "instance": "/v1/ihg/hotel/url-to-id", "provider": "ihg", "product": "url-to-id", "error_code": "INVALID_URL", "provided_url": "https://www.booking.com/hotel/us/foo.html", "correlation_id": "..." } ``` ``` { "type": "https://api.stayapi.com/errors/hotel-code-not-found", "title": "Hotel Code Not Found", "status": 400, "detail": "Could not extract an IHG hotel mnemonic from the URL", "instance": "/v1/ihg/hotel/url-to-id", "provider": "ihg", "product": "url-to-id", "error_code": "HOTEL_CODE_NOT_FOUND", "provided_url": "https://www.ihg.com/", "correlation_id": "..." } ``` --- Source: https://stayapi.com/docs/endpoints/wyndham/search GET # Wyndham Search API Find Wyndham properties near a latitude and longitude, nearest first. ## Overview #### Property metadata only Search does not accept dates and does not return availability. Pass a returned `property_id` to the [Wyndham Rooms endpoint](/docs/endpoints/wyndham/rooms) for live cash and reward rates. Results cover the brands returned by Wyndham's property service, including Wyndham, La Quinta, Ramada, Days Inn, Super 8, Travelodge, Wingate, Microtel, Baymont, Registry Collection, and Dolce. ### Endpoint URL GET https://api.stayapi.com/v1/wyndham/search Authenticate with `X-API-Key: YOUR_API_KEY`. ## Query parameters | Parameter | Type | Required | Rules | | --- | --- | --- | --- | | latitude | float | Yes | Search center, -90 through 90. | | longitude | float | Yes | Search center, -180 through 180. | | radius\_miles | integer | No | 1 through 100. Default: `50`. | | limit | integer | No | 1 through 100. Default: `50`. | ## Response schema `hotels` is sorted by straight-line distance and `total` is the number returned after applying `limit`. There is no offset or continuation token. An empty array with `success: true` means no properties matched the radius. - `property_id`: stable numeric Wyndham ID used by Rooms. - `brand_code`, `name`, `location`, and structured `address`. - `distance_miles`, `distance_km`, `rating`, and `review_count`. - `amenities`, `reward_points_per_night`, `adults_only`, `image`, and canonical `url`. - Upstream-optional values are nullable; `amenities` is always an array. ## Errors and limitations Validation errors are non-2xx. Endpoint errors use RFC 7807 Problem Details with `provider: "wyndham"`, `product: "search"`, and a `correlation_id`. An unavailable or invalid Wyndham service response returns `502 UPSTREAM_ERROR`. This call returns the live upstream result and is not a cached catalog. Request ```curl curl -G "https://api.stayapi.com/v1/wyndham/search" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "latitude=33.044017" \ --data-urlencode "longitude=-83.940985" \ --data-urlencode "radius_miles=25" \ --data-urlencode "limit=10" ``` Response ```json { "success": true, "hotels": [ { "property_id": "53089", "name": "La Quinta Inn & Suites by Wyndham Forsyth", "brand_code": "LQ", "location": { "latitude": 33.044017, "longitude": -83.940985 }, "address": { "street": "400 Russell Pkwy", "city": "Forsyth", "state": "Georgia", "state_code": "GA", "postal_code": "31029", "country": "United States", "country_code": "US" }, "distance_miles": 0.0, "distance_km": 0.0, "rating": 3.8, "review_count": 718, "rating_status": "Active", "amenities": ["BRKFST", "POOL"], "reward_points_per_night": 15000, "adults_only": false, "image": null, "url": "https://www.wyndhamhotels.com/laquinta/forsyth-georgia/la-quinta-forsyth/overview" } ], "total": 1 } ``` ```json { "type": "https://api.stayapi.com/errors/upstream-error", "title": "Upstream Error", "status": 502, "detail": "The upstream service could not complete the request.", "instance": "/v1/wyndham/search", "provider": "wyndham", "product": "search", "error_code": "UPSTREAM_ERROR", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/wyndham/rooms GET # Wyndham Rooms API Return live room inventory, cash rates, member rates, and Wyndham Rewards redemption rates. ## Overview #### Cash and rewards in one response Every available plan is normalized into `room_types[].rates[]`. Use `points_plus_cash` and `free_night` to distinguish Wyndham Rewards redemptions from cash rates. The endpoint returns Wyndham's live rooms and rates. Obtain the numeric `property_id` from [Search](/docs/endpoints/wyndham/search) or [URL to Hotel ID](/docs/endpoints/wyndham/url-to-id). ### Endpoint URL GET https://api.stayapi.com/v1/wyndham/rooms Authenticate with `X-API-Key: YOUR_API_KEY`. ## Query parameters | Parameter | Type | Required | Rules | | --- | --- | --- | --- | | property\_id | numeric string | Yes | 1 to 12 digits, for example `53089`. | | check\_in | YYYY-MM-DD | Yes | Today or later. | | check\_out | YYYY-MM-DD | Yes | Strictly after `check_in`. | | adults | integer | No | 1 through 8. Default: `2`. | | children | integer | No | 0 through 6. Default: `0`. | | rooms | integer | No | 1 through 9. Default: `1`. | | corporate\_code | string | No | Alphanumeric, 1 to 16 characters. | ## Response schema `room_types` contains room metadata and its available `rates`. `total` counts room types, not rate plans. An empty array with `success: true` means Wyndham returned no bookable rooms for the requested stay. - Top level: `property_id`, nullable `currency`, `free_stay_available`, `room_types`, and `total`. - Room: `code`, `name`, description, occupancy, inventory, bed types, smoking, and accessibility fields. - Cash: `per_night`, `per_night_after_tax`, `base_total`, `total`, and `fees_taxes`. - Rewards: `points_plus_cash`, `free_night`, `points_per_night`, `points_total`, and `points_earned`. - Terms: daily rates, taxes, cancellation, deposit, guarantee, member-rate, qualification, and non-refundable flags. Wyndham names the upstream formatted tax amount `taxPercent`; StayAPI preserves that value as the nullable string `taxes[].amount`. ## Errors and limitations Invalid dates return `400 INVALID_DATE_FORMAT`, `400 INVALID_DATES`, or `400 PAST_DATES`. Query-shape violations are also non-2xx. Endpoint errors use RFC 7807 Problem Details with `provider: "wyndham"`, `product: "rooms"`, and a `correlation_id`. A `property_id` that matches no Wyndham property returns `404 PROPERTY_NOT_FOUND` and uses one credit, like other not-found results. Other Wyndham failures return `502 UPSTREAM_ERROR` and use no credits. Currency follows Wyndham's returned rate; there is no currency override or pagination. Request ```curl curl -G "https://api.stayapi.com/v1/wyndham/rooms" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "property_id=53089" \ --data-urlencode "check_in=2026-08-15" \ --data-urlencode "check_out=2026-08-17" \ --data-urlencode "adults=2" \ --data-urlencode "children=0" \ --data-urlencode "rooms=1" ``` Response ```json { "success": true, "property_id": "53089", "currency": "USD", "free_stay_available": true, "room_types": [ { "code": "NDD2", "name": "2 Queen Beds, Non-Smoking", "description": "Free WiFi and breakfast", "max_occupancy": 4, "available_rooms": 22, "bed_type": "Queen", "bed_types": [{ "code": "5", "name": "Queen", "quantity": 2 }], "non_smoking": true, "accessible": false, "rates": [ { "name": "Wyndham Rewards Rate", "rate_plan_code": "SWR1", "description": "Members save on our Standard Rate.", "per_night": 105.79, "per_night_after_tax": 126.66, "total": 253.32, "base_total": 211.58, "fees_taxes": 41.74, "currency": "USD", "daily_rates": [{ "date": "8/15/2026", "rate": 110.79, "fee": 5.0 }], "taxes": [{ "name": "State Tax 8%", "amount": "8.86USD", "type": "TAX", "effective_date": "2026-08-15", "expire_date": "2026-08-15" }], "cancellation_code": "6PM", "cancellation_policy": "Cancel before 6PM.", "deposit_policy": "Credit card guarantee", "guarantee_code": "CC", "non_refundable": false, "is_member_rate": true, "qualified_for_points": true, "points_earned": 2116, "points_plus_cash": false, "free_night": false, "points_per_night": null, "points_total": null } ] } ], "total": 1 } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-dates", "title": "Invalid Dates", "status": 400, "detail": "Check-out date must be after check-in date", "instance": "/v1/wyndham/rooms", "provider": "wyndham", "product": "rooms", "error_code": "INVALID_DATES", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/wyndham/url-to-id GET # Wyndham URL to Hotel ID API Resolve a public Wyndham hotel URL to its numeric property ID. ## Overview #### Resolve a URL to a property ID StayAPI reads the hotel slug from the URL and resolves it to Wyndham's numeric property ID. Use this endpoint when you have a canonical `wyndhamhotels.com` URL but need the numeric `property_id` accepted by [Wyndham Rooms](/docs/endpoints/wyndham/rooms). [Wyndham Search](/docs/endpoints/wyndham/search) also returns the same identifier. ### Endpoint URL GET https://api.stayapi.com/v1/wyndham/hotel/url-to-id Authenticate with `X-API-Key: YOUR_API_KEY`. ## Query parameter | Parameter | Type | Required | Rules | | --- | --- | --- | --- | | url | URL string | Yes | HTTP or HTTPS URL on `wyndhamhotels.com` or a subdomain. It must contain a hotel-specific slug, for example `/laquinta/forsyth-georgia/la-quinta-forsyth/overview`. | ## Response schema - `url`: normalized input URL with a lowercase host and no query string or fragment. - `property_id`: numeric Wyndham identifier used by Rooms. - `name` and `brand_code`: nullable property metadata. ## Errors and limitations Errors follow RFC 7807 Problem Details with `provider: "wyndham"`, `product: "url-to-id"`, the supplied `provided_url`, and a `correlation_id`. - `400 INVALID_URL`: invalid scheme or non-Wyndham host. - `400 PROPERTY_SLUG_NOT_FOUND`: valid Wyndham host without a hotel slug. - `404 PROPERTY_NOT_FOUND`: Wyndham has no property matching the slug. - `502 UPSTREAM_ERROR`: Wyndham could not complete the lookup or returned an ambiguous result. This resolver accepts canonical Wyndham hotel URLs, not city pages or free-form hotel names. It is not paginated or cached. Request ```curl curl -G "https://api.stayapi.com/v1/wyndham/hotel/url-to-id" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "url=https://www.wyndhamhotels.com/laquinta/forsyth-georgia/la-quinta-forsyth/overview" ``` Response ```json { "success": true, "url": "https://www.wyndhamhotels.com/laquinta/forsyth-georgia/la-quinta-forsyth/overview", "property_id": "53089", "name": "La Quinta Inn & Suites by Wyndham Forsyth", "brand_code": "LQ" } ``` ``` { "type": "https://api.stayapi.com/errors/property-not-found", "title": "Property Not Found", "status": 404, "detail": "No Wyndham property matched the hotel URL", "instance": "/v1/wyndham/hotel/url-to-id", "provider": "wyndham", "product": "url-to-id", "error_code": "PROPERTY_NOT_FOUND", "provided_url": "https://www.wyndhamhotels.com/laquinta/example/example/overview", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/accor/search GET # Accor Search API Find Accor (ALL) hotels near a location, each with its best available offer for your dates. ## Overview #### Search returns live pricing Unlike a metadata-only search, this endpoint returns each property's best available offer (price, meal plan, availability) for the requested dates in the same call. It therefore takes check-in / check-out dates, which default to today and tomorrow if you omit them. The Accor Search endpoint covers all ALL — Accor Live Limitless properties (Sofitel, Fairmont, Raffles, Pullman, Novotel, Mercure, Ibis, Mövenpick, Swissôtel, plus partner hotels like Hard Rock). It returns distance-sorted properties with brand details, star classification, a guest-review summary, structured address, top amenities, distance from the search center, and the property's best offer. ### Endpoint URL GET https://api.stayapi.com/v1/accor/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | latitude | float | One of | Latitude of search center (-90 to 90). Provide with `longitude`, or use `destination_slug` instead. | | longitude | float | One of | Longitude of search center (-180 to 180). | | destination\_slug | string | One of | Accor destination slug, e.g. `new-york-ny-usa`. Alternative to latitude/longitude. | | radius\_km | integer | Optional | Search radius in km (1-200), geo mode only. Default: 50 | | check\_in | date | Optional | Check-in date (YYYY-MM-DD). Default: today | | check\_out | date | Optional | Check-out date (YYYY-MM-DD). Default: check-in + 1 night | | adults | integer | Optional | Number of adults (1-8). Default: 1 | | currency | string | Optional | ISO-4217 currency code. Default: USD | | country\_market | string | Optional | ISO-3166 alpha-2 market country (affects price/availability). Default: US | | limit | integer | Optional | Maximum properties to return (1-50). Default: 20 | | offset | integer | Optional | Pagination offset (≥ 0). Default: 0 | #### Pick one location mode Provide either latitude + longitude (with optional radius\_km) or a destination\_slug. Omitting both returns a 400 MISSING\_LOCATION error. For coordinates, geocode a place name first — for example, Times Square is approximately 40.758, -73.985. ## Response Format The response lists Accor hotels nearest-first, each with brand details, star rating, a guest-review summary, structured address, top amenities, distance from the search center, and the property's best available offer for the dates. ### Response Structure - **success** : Boolean indicating request success - **hotels** : Array of hotel objects (sorted by distance) - **total** : Number of hotels returned - **place** : Resolved place (slug + center coordinates; populated in slug mode) - **price\_range** : Min/max nightly price across the results ## Hotel Object Fields | Field | Type | Description | | --- | --- | --- | | id | string | Accor hotel id (a code like "C5U9" or "2185"). Use with every `/hotel/*` endpoint. | | name | string | Hotel name | | brand | object | Brand details (code, name) e.g., "Sofitel", "Fairmont" | | lodging | object | Lodging type (code, name) e.g., "Hotel" | | stars | float | Official star classification | | rating | float | Guest-review score (0-5). May be null for some partner properties. | | review\_count | integer | Number of guest reviews | | amenities | array | Top amenity codes (e.g., "PARKING", "PET", "RESTAURANT") | | address | object | Structured address (street, city, postal\_code, country, country\_code) | | distance\_meters | integer | Distance from the search center, in meters (also `distance_feet`) | | availability\_status | string | "AVAILABLE" or "UNAVAILABLE" for the requested dates | | best\_offer | object | Cheapest offer for the dates: currency, amount, per\_night, total, aggregation\_type, formatted, tax\_summary, meal\_plan, nights. Null when the property has no priced offer. | #### No per-hotel coordinates This upstream does not expose per-property latitude/longitude on search results — only distance\_meters from the search center. Use the address fields for mapping, or the place.location center in slug mode. ## Error Responses The API returns standard HTTP error codes with detailed messages following the RFC 7807 Problem Details format. ### 400 Bad Request Missing location (neither lat/lng nor destination\_slug), or invalid/past dates. ``` { "type": "https://api.stayapi.com/errors/missing-location", "title": "Missing Location", "status": 400, "detail": "Provide either latitude+longitude or destination_slug", "provider": "accor", "product": "search", "error_code": "MISSING_LOCATION" } ``` ### 422 Unprocessable Entity A parameter is out of range (e.g., bad coordinates, limit \> 50). ### 502 Bad Gateway Upstream service error from Accor. ## Usage Tips ### Best Practices - Take the `id` from each result and call Details, Amenities, Reviews, Rooms, Photos, or Price Calendar — the id works on all of them - Set `currency` and `country_market` to your guest's market — both affect price and availability - Results are sorted by distance (nearest first); bound the area with `radius_km` - A property with `best_offer: null` has no priced offer for those dates — try different dates #### Rate Limiting This endpoint is subject to your plan's rate limits. Each search counts as one API call regardless of the number of results returned. ## Related Endpoints ### Accor Rooms Get bookable room offers and rate plans for a property [View Documentation →](/docs/endpoints/accor/rooms) ### Accor Price Calendar See the cheapest offer per date across a window [View Documentation →](/docs/endpoints/accor/price-calendar) ### Accor Hotel Details Get property content, named accommodations, facilities, and rating data [View Documentation →](/docs/endpoints/accor/details) ### Accor URL to Hotel ID Resolve a public Accor URL without making an upstream request [View Documentation →](/docs/endpoints/accor/url-to-id) Request ```curl curl -X GET "https://api.stayapi.com/v1/accor/search?latitude=40.758&longitude=-73.985&radius_km=15¤cy=USD&limit=3" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "total": 3, "place": { "slug": null, "location": { "latitude": null, "longitude": null } }, "price_range": { "min": 36, "max": 1620 }, "hotels": [ { "id": "C5U9", "name": "Hard Rock Hotel New York - Partner of ALL Accor", "brand": { "code": "HAR", "name": "Hard Rock" }, "lodging": { "code": "HTL", "name": "Hotel" }, "stars": 4.5, "rating": null, "review_count": null, "amenities": ["PARKING", "PET", "RESTAURANT"], "address": { "street": "159 W 48 Street", "city": "New York", "postal_code": "10036", "country": "United States", "country_code": "US" }, "distance_meters": 304, "distance_feet": 996, "availability_status": "AVAILABLE", "best_offer": { "currency": "USD", "amount": 405, "per_night": 405, "total": 405, "aggregation_type": "TOTAL_STAY", "formatted": "$405", "tax_summary": "Of which Urban Experience Fee : $46, taxes not included : $57.", "meal_plan": "EUROPEAN_PLAN", "nights": 1 } } ] } ``` ```json { "type": "https://api.stayapi.com/errors/missing-location", "title": "Missing Location", "status": 400, "detail": "Provide either latitude+longitude or destination_slug", "instance": "/v1/accor/search", "provider": "accor", "product": "search", "error_code": "MISSING_LOCATION", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/accor/details GET # Accor Hotel Details API Get the full public content record for one Accor property. ## Overview Use this endpoint for the property profile Accor publishes on all.accor.com: identity and brand, descriptions, contact details, address and coordinates, ratings and a review preview, accessibility, payment methods, named accommodations, facilities, media, and room inventory. Match `accommodations[].code` to the accommodation codes returned by the Rooms endpoint. ### Endpoint URL GET https://api.stayapi.com/v1/accor/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Accor hotel id from Search or URL to Hotel ID, for example `2179`. | ## Response structure - **Identity:** `hotel_id`, `name`, `web_url`, `brand`, `lodging`, and `currency` - **Content:** destination, general and SEO descriptions, manager message, advantages, labels, and certifications - **Location:** structured address, coordinates, geo code, contact details, and check-in/check-out times - **Reputation:** score, review count, rating origin, stars, and `review_preview` - **Rooms:** named accommodations with descriptions, photos, features, occupancy, bedding, classification, and floor area - **Facilities:** breakfasts, fitness centers, pools, restaurants, bars, and spas - **Operations:** accessibility, payment methods, media totals, room occupancy, and connecting/family-room inventory #### Join details to live rates The Rooms endpoint returns accommodation codes. Join those codes to accommodations[].code here to attach human-readable room names, descriptions, bedding, floor area, and photos to each live rate plan. ## Errors Errors use RFC 7807 Problem Details. Unknown hotel ids return 404 with `provider: "accor"` and `product: "details"`; Accor upstream failures return 502. ## Related endpoints ### Amenities Get the full service hierarchy, fee flags, and room inventory. [View Documentation →](/docs/endpoints/accor/amenities) ### Hotel Reviews Retrieve individual guest reviews and hotel responses. [View Documentation →](/docs/endpoints/accor/reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/accor/hotel/details?hotel_id=2179" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "2179", "name": "ibis Cavaillon Luberon", "brand": { "code": "IBI", "name": "ibis" }, "rating": { "score": 4.2, "review_count": 692, "origin": "ALL" }, "address": { "city": "Cavaillon", "country_code": "FR" }, "location": { "latitude": 43.819, "longitude": 5.038 }, "accommodations": [ { "code": "ROO", "name": "Standard Room", "is_accessible": false } ], "facilities": { "restaurants": [], "bars": [], "pools": [] }, "inventory": { "connecting_rooms": 0, "family_rooms": 0 } } ``` --- Source: https://stayapi.com/docs/endpoints/accor/amenities GET # Accor Amenities API Get detailed hotel services, fee flags, coverage, location, and room inventory. ## Overview Returns Accor's amenity hierarchy rather than a flat list. Categories contain services, and services can contain individual amenities. Fee information can appear at both service and amenity level; selected services also identify whether they are covered or where they are located. ### Endpoint URL GET https://api.stayapi.com/v1/accor/hotel/amenities ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Accor hotel id from Search or URL to Hotel ID. | ## Response fields - **categories** : Amenity categories with `code`, `label`, and nested `services` - **services** : Service code/label plus optional `paying`, `covered`, and `location` metadata - **amenities** : Fine-grained amenity code/label and optional fee metadata - **inventory** : Counts for `connecting_rooms` and `family_rooms` #### Fee flags are nullable paying.value is true or false when Accor publishes a fee classification. A null paying object means the upstream record did not specify one; it should not be treated as free. ## Errors Unknown hotel ids return RFC 7807 404 responses with `product: "amenities"`. Upstream failures return 502. ## Related endpoints ### Hotel Details Get the property profile, accommodations, and facilities. [View Documentation →](/docs/endpoints/accor/details) ### Hotel Photos Get the complete categorized image and video gallery. [View Documentation →](/docs/endpoints/accor/photos) Request ```curl curl -X GET "https://api.stayapi.com/v1/accor/hotel/amenities?hotel_id=2179" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "2179", "categories": [ { "code": "PARKING", "label": "Parking", "services": [ { "code": "PKG", "label": "Car park", "paying": { "value": true, "label": "Paying" }, "amenities": [] } ] } ], "inventory": { "connecting_rooms": 0, "family_rooms": 0 } } ``` --- Source: https://stayapi.com/docs/endpoints/accor/reviews GET # Accor Reviews API Retrieve individual guest reviews and hotel responses for one Accor property. ## Overview Returns the property's aggregate score and review count plus Accor's current review set. Reviews include author, rating, title, text, date, review kind, trip type, avatar, and zero or more hotel responses. ### Endpoint URL GET https://api.stayapi.com/v1/accor/hotel/reviews ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Accor hotel id from Search or URL to Hotel ID. | | limit | integer | Optional | Maximum reviews to return, 1-20. Default: 20. | #### Current upstream window Accor exposes at most 20 reviews on this surface. There is no cursor or page parameter, so this endpoint is not a full historical backfill feed. ## Response fields - **score** , **review\_count** , and **rating\_origin** : Aggregate property reputation - **reviews** : Returned review records - **total** : Number of reviews in this response, not the property's lifetime review count - **responses** : Hotel responses with response text and creation date ## Errors Unknown hotel ids return RFC 7807 404 responses with `product: "reviews"`. A limit outside 1-20 returns 422 validation details; upstream failures return 502. ## Related endpoints ### Hotel Details Get the aggregate rating and review preview alongside property content. [View Documentation →](/docs/endpoints/accor/details) ### URL to Hotel ID Resolve an all.accor.com hotel URL before fetching reviews. [View Documentation →](/docs/endpoints/accor/url-to-id) Request ```curl curl -X GET "https://api.stayapi.com/v1/accor/hotel/reviews?hotel_id=2179&limit=5" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "2179", "score": 4.2, "review_count": 692, "rating_origin": "ALL", "reviews": [ { "author": "Anonymous", "rating": 5, "title": "Very good stay", "text": "Friendly team and a comfortable room.", "date": "2026-07-10", "trip_type": "Couple", "responses": [] } ], "total": 1 } ``` --- Source: https://stayapi.com/docs/endpoints/accor/url-to-id GET # Accor URL to Hotel ID API Convert an Accor hotel URL into the id used by every property endpoint. ## Overview Pass an `accor.com` or `*.accor.com` hotel URL. StayAPI validates the host, extracts the property id locally, and returns a normalized URL without calling Accor upstream. ### Endpoint URL GET https://api.stayapi.com/v1/accor/hotel/url-to-id ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | An HTTP(S) Accor hotel URL, for example `https://all.accor.com/hotel/2179/index.en.shtml`. | #### URL-encode the value Pass the hotel URL through your HTTP client's params/query option. It will safely encode slashes and any tracking parameters for the outer request. ## Response - **success** : Always true on a 2xx response - **url** : Normalized Accor URL - **hotel\_id** : Numeric or alphanumeric property id to use with Details, Amenities, Reviews, Rooms, Photos, and Price Calendar ## Errors ### 400 INVALID\_URL The value is malformed, does not use HTTP(S), or is not on accor.com or an Accor subdomain. ### 400 HOTEL\_ID\_NOT\_FOUND The URL is on an allowed Accor host but does not contain a recognizable hotel id. ## Next steps ### Hotel Details Fetch the complete property content record. [View Documentation →](/docs/endpoints/accor/details) ### Hotel Reviews Fetch guest feedback and hotel responses. [View Documentation →](/docs/endpoints/accor/reviews) Request ```curl curl -G "https://api.stayapi.com/v1/accor/hotel/url-to-id" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "url=https://all.accor.com/hotel/2179/index.en.shtml" ``` Response ```json { "success": true, "url": "https://all.accor.com/hotel/2179/index.en.shtml", "hotel_id": "2179" } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid URL", "status": 400, "provider": "accor", "product": "url-to-id", "error_code": "INVALID_URL" } ``` --- Source: https://stayapi.com/docs/endpoints/accor/rooms GET # Accor Rooms API Get bookable room offers and rate plans for a single Accor property. ## Overview Returns the bookable offers for a property and stay window, grouped by accommodation code into room types. Each rate plan carries its price (per-night and total), meal plan, cancellation and guarantee policy, an optional member/loyalty alternative price, and reward points when present. Take the `id` from a Search result and pass it as `hotel_id`. ### Endpoint URL GET https://api.stayapi.com/v1/accor/hotel/rooms ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Accor hotel id from the Search endpoint (e.g., "C5U9" or "2185") | | check\_in | date | Optional | Check-in date (YYYY-MM-DD). Default: today | | check\_out | date | Optional | Check-out date (YYYY-MM-DD). Default: check-in + 1 night | | adults | integer | Optional | Number of adults (1-8). Default: 2 | | currency | string | Optional | ISO-4217 currency code. Default: USD | | country\_market | string | Optional | ISO-3166 alpha-2 market country. Default: US | ## Response Format ### Response Structure - **success** : Boolean indicating request success - **hotel\_id** : The property id you requested - **currency** : Currency of the returned prices - **availability\_status** : "AVAILABLE" or "UNAVAILABLE" for the dates - **room\_types** : Array of room types, each with an `accommodation_code` and a `rates` array - **total\_offers** : Total number of rate plans across all room types ### Rate Fields | Field | Type | Description | | --- | --- | --- | | rate\_code | string | Rate plan code (also `rate_label` for the human name) | | per\_night / total | float | Per-night and whole-stay price. `aggregation_type` tells you which the upstream amount is. | | reference\_formatted | string | Strikethrough "was" price when the rate is discounted | | meal\_plan | string | Meal plan code (e.g., "EUROPEAN\_PLAN") | | cancellation\_code / label | string | Cancellation policy (e.g., "FREE\_CANCELLATION", "NO\_CANCELLATION") | | guarantee\_code / label | string | Payment/guarantee policy (e.g., "PREPAID", "NO\_PREPAY") | | points | integer | Loyalty reward points for the stay, when offered | | alternative | object | Second price variant (member/loyalty or special offer): amount, formatted, label, bookable | #### Join room codes to Details Accor exposes only the accommodation code on this surface (e.g., "KGD"), not a human-readable room name. Match it to Hotel Details accommodations[].code to add the room name, description, bedding, floor area, and photos. ## Error Responses Errors follow the RFC 7807 Problem Details format with `provider: "accor"` and `product: "rooms"`. ### 404 Not Found No Accor property matches that `hotel_id`. ``` { "type": "https://api.stayapi.com/errors/hotel-not-found", "title": "Hotel Not Found", "status": 404, "detail": "No Accor property matches that hotel id", "provider": "accor", "product": "rooms", "error_code": "HOTEL_NOT_FOUND" } ``` ### 400 / 502 Invalid or past dates (400), or an upstream service error from Accor (502). ## Related Endpoints ### Accor Search Find properties and their best offer; get a hotel id [View Documentation →](/docs/endpoints/accor/search) ### Accor Price Calendar See the cheapest offer per date across a window [View Documentation →](/docs/endpoints/accor/price-calendar) ### Accor Hotel Details Resolve accommodation codes to room names and content [View Documentation →](/docs/endpoints/accor/details) Request ```curl curl -X GET "https://api.stayapi.com/v1/accor/hotel/rooms?hotel_id=C5U9&check_in=2026-06-20&check_out=2026-06-22&adults=2" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "C5U9", "currency": "USD", "availability_status": "AVAILABLE", "total_offers": 21, "room_types": [ { "accommodation_code": "KGD", "rates": [ { "offer_id": "W8es3KiP5A91y5OkR9", "rate_code": "1RA4", "rate_label": "ADVANCE SAVER RATE", "meal_plan": "EUROPEAN_PLAN", "currency": "USD", "per_night": 513.78, "total": 1027.55, "aggregation_type": "TOTAL_STAY", "formatted": "$1,027.55", "reference_formatted": null, "cancellation_code": "NO_CANCELLATION", "cancellation_label": "Non-refundable", "guarantee_code": "PREPAID", "guarantee_label": "Online payment", "points": null, "alternative": { "amount": 1076.8, "formatted": "$1,076.80", "label": null, "bookable": true }, "nights": 2 } ] } ] } ``` ```json { "type": "https://api.stayapi.com/errors/hotel-not-found", "title": "Hotel Not Found", "status": 404, "detail": "No Accor property matches that hotel id", "instance": "/v1/accor/hotel/rooms", "provider": "accor", "product": "rooms", "error_code": "HOTEL_NOT_FOUND", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/accor/photos GET # Accor Photos API Get the full photo and video gallery for a single Accor property. ## Overview #### Ready-to-use image URLs Image URLs are public ahstatic.com links — no signed token or expiry. Each image returns every published size variant in formats, and url is the highest-resolution one. Returns the complete image and video set for a property, organized by category (rooms, restaurant, pool, spa, and more). Take the `id` from a Search result and pass it as `hotel_id`. ### Endpoint URL GET https://api.stayapi.com/v1/accor/hotel/photos ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Accor hotel id from the Search endpoint (e.g., "2185") | | categories | string | Optional | Comma-separated category filter (e.g., `BEDROOM,POOL`). Default: all categories | | include\_videos | boolean | Optional | Include video media alongside photos. Default: true | ## Response Format ### Response Structure - **success** : Boolean indicating request success - **hotel\_id** / **name** : The property id and name - **photos** : Array of media items - **total** : Number of media items returned - **categories** : Legend of category codes present, with labels ### Media Item Fields | Field | Type | Description | | --- | --- | --- | | category | string | Media category (e.g., "HOTEL", "BEDROOM", "POOL") | | type | string | "IMAGE" or "VIDEO" | | url | string | Highest-resolution image URL (the first/largest entry in `formats`) | | formats | array | Every published size variant, each with url, width, height | | video | object | For video items: embedded\_url, download\_url, preview\_url. Null for images. | ## Error Responses Errors follow the RFC 7807 Problem Details format with `provider: "accor"` and `product: "photos"`. ### 404 Not Found No Accor property matches that `hotel_id`. ### 502 Bad Gateway Upstream service error from Accor. ## Related Endpoints ### Accor Search Find properties and their best offer; get a hotel id [View Documentation →](/docs/endpoints/accor/search) ### Accor Rooms Get bookable room offers and rate plans for a property [View Documentation →](/docs/endpoints/accor/rooms) ### Accor Hotel Details Get property content and accommodation-level photo previews [View Documentation →](/docs/endpoints/accor/details) Request ```curl curl -X GET "https://api.stayapi.com/v1/accor/hotel/photos?hotel_id=2185&categories=BEDROOM,POOL" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "2185", "name": "Sofitel New York", "total": 6, "photos": [ { "category": "BEDROOM", "type": "IMAGE", "url": "https://www.ahstatic.com/photos/2185_ro_00_p_3000x2250.jpg", "formats": [ { "url": "https://www.ahstatic.com/photos/2185_ro_00_p_3000x2250.jpg", "width": 3000, "height": 2250 }, { "url": "https://www.ahstatic.com/photos/2185_ro_00_p_1024x768.jpg", "width": 1024, "height": 768 }, { "url": "https://www.ahstatic.com/photos/2185_ro_00_p_120x90.jpg", "width": 120, "height": 90 } ], "video": null } ], "categories": [ { "code": "BEDROOM", "label": "Rooms" } ] } ``` ```json { "type": "https://api.stayapi.com/errors/hotel-not-found", "title": "Hotel Not Found", "status": 404, "detail": "No Accor property matches that hotel id", "instance": "/v1/accor/hotel/photos", "provider": "accor", "product": "photos", "error_code": "HOTEL_NOT_FOUND", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/accor/price-calendar GET # Accor Price Calendar API See the cheapest available offer for each date across a window — ideal for finding the best dates to stay. ## Overview #### One price per date For each date in [date\_from, date\_to] this returns the cheapest available offer for a stay of nights nights starting that date, plus an availability status. Dates marked UNAVAILABLE carry a null price. A distinct feature with no equivalent on the other platforms. Take the `id` from a Search result and pass it as `hotel_id`. The window between `date_from` and `date_to` can span up to 60 days. ### Endpoint URL GET https://api.stayapi.com/v1/accor/hotel/price-calendar ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Accor hotel id from the Search endpoint (e.g., "2185") | | date\_from | date | Required | Window start date (YYYY-MM-DD) | | date\_to | date | Required | Window end date (YYYY-MM-DD). Max 60 days after `date_from` | | nights | integer | Optional | Length of stay priced for each date (1-30). Default: 1 | | adults | integer | Optional | Number of adults (1-8). Default: 1 | | currency | string | Optional | ISO-4217 currency code. Default: USD | | country\_market | string | Optional | ISO-3166 alpha-2 market country. Default: US | #### Window limit date\_to must be within 60 days of date\_from, otherwise the API returns 400 RANGE\_TOO\_LARGE. Page through longer ranges with successive calls. ## Response Format ### Response Structure - **success** : Boolean indicating request success - **hotel\_id** / **name** / **brand** : Property identity - **currency** : Currency of the calendar prices - **calendar** : Array of one entry per date in the window - **total** : Number of dates returned ### Calendar Day Fields | Field | Type | Description | | --- | --- | --- | | date | string | The calendar date (YYYY-MM-DD) | | status | string | "AVAILABLE" or "UNAVAILABLE" | | amount / formatted | float / string | Cheapest price for a stay starting that date. Null on UNAVAILABLE days. | | aggregation\_type | string | Whether the amount is per-night or whole-stay (e.g., "TOTAL\_STAY") | | nights | integer | Length of stay the price covers | | best\_rate\_label | string | Label of the cheapest rate, when provided | ## Error Responses Errors follow the RFC 7807 Problem Details format with `provider: "accor"` and `product: "price-calendar"`. ### 400 Bad Request The window exceeds 60 days (`RANGE_TOO_LARGE`), or dates are invalid/in the past. ``` { "type": "https://api.stayapi.com/errors/range-too-large", "title": "Range Too Large", "status": 400, "detail": "date_to must be within 60 days of date_from", "provider": "accor", "product": "price-calendar", "error_code": "RANGE_TOO_LARGE" } ``` ### 404 / 502 No property matches the `hotel_id` (404), or an upstream service error from Accor (502). ## Related Endpoints ### Accor Search Find properties and their best offer; get a hotel id [View Documentation →](/docs/endpoints/accor/search) ### Accor Rooms Get bookable room offers and rate plans for a property [View Documentation →](/docs/endpoints/accor/rooms) ### Accor Hotel Details Pair price history with property and room content [View Documentation →](/docs/endpoints/accor/details) Request ```curl curl -X GET "https://api.stayapi.com/v1/accor/hotel/price-calendar?hotel_id=2185&date_from=2026-06-20&date_to=2026-06-27" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "hotel_id": "2185", "name": "Sofitel New York", "brand": { "code": "SOF", "name": "Sofitel" }, "currency": "USD", "total": 8, "calendar": [ { "date": "2026-06-20", "status": "AVAILABLE", "amount": 479, "formatted": "$479", "currency": "USD", "aggregation_type": "TOTAL_STAY", "nights": 1, "best_rate_label": null }, { "date": "2026-06-22", "status": "UNAVAILABLE", "amount": null, "formatted": null, "currency": null, "aggregation_type": null, "nights": null, "best_rate_label": null } ] } ``` ```json { "type": "https://api.stayapi.com/errors/range-too-large", "title": "Range Too Large", "status": 400, "detail": "date_to must be within 60 days of date_from", "instance": "/v1/accor/hotel/price-calendar", "provider": "accor", "product": "price-calendar", "error_code": "RANGE_TOO_LARGE", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/search GET # Radisson Hotel Search API Find Radisson properties by city, destination, or hotel name. ## Overview Search Radisson hotels by destination or hotel name. Returns normalized property metadata and hotel codes for follow-up calls. #### Scope Search is metadata-only. Prices are intentionally excluded; call Hotel Rates or Room Rates with a returned hotel\_id and stay dates. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Destination or hotel name, 2 to 100 characters. | | limit | integer | Optional | Maximum hotels to return, 1 to 50. Default: 20. | | offset | integer | Optional | Pagination offset. Default: 0. | ## Response schema | Field | Type | Description | | --- | --- | --- | | hotels | array | Hotels with hotel\_id, name, brand, stars, address, coordinates, distance, photo, status, tags, and services. | | place | object|null | Resolved destination metadata when Radisson identifies a place. | | prices\_included | boolean | Always false on search; use a dated pricing endpoint. | | total / offset / limit | integer | Pagination metadata. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/search" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "query=Reykjavik" \ --data-urlencode "limit=3" ``` Response ```json { "success": true, "query": "Reykjavik", "prices_included": false, "total": 1, "offset": 0, "limit": 3, "hotels": [ { "hotel_id": "ISREKAIR", "name": "Park Inn by Radisson Reykjavik Keflavik Airport", "brand_code": "pii", "stars": 4, "address": { "city": "Keflavik", "postal_code": "230", "country": "Iceland", "country_code": "IS" }, "location": { "latitude": 64.0, "longitude": -22.5 }, "distance_km": 0.4 } ] } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/details GET # Radisson Hotel Details API Get the full public content record for one Radisson property. ## Overview Get Radisson property identity, description, address, coordinates, contact details, check-in times, services, and status. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/details ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | ## Response schema | Field | Type | Description | | --- | --- | --- | | hotel\_id / alternative\_id | string | Radisson property identifiers. | | name / brand\_code / stars | string / number | Property identity and classification. | | description | object | Published title and description fields. | | address / location | object | Structured postal address and latitude/longitude. | | phone / email / check\_in / check\_out | string|null | Published contact and arrival details. | | main\_photo / services / tags / status | mixed | Summary content and current property status. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/details" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=ISREKAIR" ``` Response ```json { "success": true, "hotel_id": "ISREKAIR", "alternative_id": "ISREKAIR", "name": "Park Inn by Radisson Reykjavik Keflavik Airport", "brand_code": "pii", "stars": 4, "address": { "street": "Hafnargata 57", "city": "Keflavik", "postal_code": "230", "country": "Iceland", "country_code": "IS" }, "location": { "latitude": 64.0, "longitude": -22.5 }, "check_in": "14:00", "check_out": "12:00", "status": "active" } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/amenities GET # Radisson Hotel Amenities API Pull the structured services and property classifications Radisson publishes. ## Overview Get Radisson hotel services, property types, location types, and tags by hotel code. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/amenities ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | ## Response schema | Field | Type | Description | | --- | --- | --- | | services | array | Amenity objects with code and display name. | | hotel\_types | array | Published hotel classification objects. | | location\_types | array | Published location classification objects. | | tags | array | Property tags published by Radisson. | | total | integer | Number of service records returned. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/amenities" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=ISREKAIR" ``` Response ```json { "success": true, "hotel_id": "ISREKAIR", "services": [ { "code": "wifi", "name": "Free Wi-Fi" } ], "hotel_types": [], "location_types": [], "tags": [ "Close to the airport" ], "total": 13 } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/reviews GET # Radisson Hotel Reviews API Combine the Radisson review list and review summary in one response. ## Overview Get Radisson's TripAdvisor review summary, traveler breakdowns, ranking, and the review sample published upstream. #### Scope Radisson currently publishes five review records on this surface. The endpoint returns that upstream sample, not an arbitrary pagination window. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/reviews ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | ## Response schema | Field | Type | Description | | --- | --- | --- | | rating / review\_count | number / integer | TripAdvisor aggregate rating and total review count. | | ranking | object|null | Property rank and comparison set when published. | | traveler\_ratings / traveler\_types / subratings | array | Review distribution and category breakdowns. | | reviews | array | Published reviews with title, text, rating, date, traveler type, author, location, and subratings. | | returned | integer | Number of review records in this response. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/reviews" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=ISREKAIR" ``` Response ```json { "success": true, "hotel_id": "ISREKAIR", "rating": 3.5, "review_count": 495, "ranking": { "position": 8, "total": 13 }, "reviews": [ { "title": "Great stay", "text": "Friendly team", "rating": 5.0, "date": "2026-07-15", "author": "Guest" } ], "returned": 5 } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/url-to-id GET # Radisson URL to Hotel ID API Turn a public Radisson hotel URL into its hotel\_id. ## Overview Resolve a canonical radissonhotels.com hotel URL to the Radisson hotel code used by content and pricing endpoints. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/url-to-id ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | HTTP(S) radissonhotels.com URL containing a canonical /hotels/{slug} path. | ## Response schema | Field | Type | Description | | --- | --- | --- | | url | string | Normalized canonical URL with tracking parameters removed. | | hotel\_id | string | Radisson hotel code for all follow-up endpoints. | | name | string|null | Property name returned by the resolver. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/url-to-id" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "url=https://www.radissonhotels.com/en-us/hotels/park-inn-reykjavik-keflavik-airport" ``` Response ```json { "success": true, "url": "https://www.radissonhotels.com/en-us/hotels/park-inn-reykjavik-keflavik-airport", "hotel_id": "ISREKAIR", "name": "Park Inn by Radisson Reykjavik Keflavik Airport" } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/rooms GET # Radisson Hotel Rooms API Pull the property's published room catalogue and media. ## Overview Get static Radisson room types with descriptions, capacity, dimensions, services, and media. #### Scope This is static room content. availability\_included is false. Use Room Rates for dated inventory and bookable stays. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/rooms ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | ## Response schema | Field | Type | Description | | --- | --- | --- | | room\_types | array | Room code, name, description, bed type, size, capacity, services, main photo, and gallery. | | total | integer | Number of published room types. | | availability\_included | boolean | Always false on this static endpoint. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/rooms" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=ISREKAIR" ``` Response ```json { "success": true, "hotel_id": "ISREKAIR", "room_types": [ { "code": "BSTD------", "name": "Standard Room", "area_square_metres": 24.0, "max_adults": 2, "max_children": 1, "services": [ { "code": "wifi", "name": "Wi-Fi", "description": "Included" } ] } ], "total": 4, "availability_included": false } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/photos GET # Radisson Hotel Photos API Pull every unique image from the property's published galleries. ## Overview Get the full categorized Radisson hotel gallery with public image URLs and available media metadata. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/photos ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | ## Response schema | Field | Type | Description | | --- | --- | --- | | photos | array | Unique media objects with URL, alt text, dimensions, MIME type, category code, and category name. | | total | integer | Number of unique photos returned. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/photos" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=ISREKAIR" ``` Response ```json { "success": true, "hotel_id": "ISREKAIR", "photos": [ { "url": "https://media.radissonhotels.net/image/park-inn-reykjavik/hotel/16256-114514-f64878611_3xl.jpg", "alt_text": "Hotel exterior", "width": 1600, "height": 900, "category_code": "gallery-overview", "category": "Overview" } ], "total": 106 } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/price-calendar GET # Radisson Price Calendar API Compare the lowest available arrival-date price across a date window. ## Overview Get Radisson's lowest public price per arrival date across a window of up to 60 days. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/price-calendar ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | | date\_from | date | Required | First arrival date (YYYY-MM-DD). Cannot be in the past. | | date\_to | date | Required | Last arrival date, on or after date\_from and no more than 60 days later. | | nights | integer | Optional | Length of stay priced for each arrival date, 1 to 30. Default: 1. | | adults | integer | Optional | Adults per room, 1 to 8. Default: 2. | | rooms | integer | Optional | Number of rooms, 1 to 9. Default: 1. | | currency | string | Optional | Three-letter currency code. Default: USD. | ## Response schema | Field | Type | Description | | --- | --- | --- | | average\_price | object | Average amount, formatted amount, and tax-inclusive flag for the returned window. | | calendar | array | One record per date with availability, amount, currency, tax flag, minimum nights, and lowest marker. | | total | integer | Number of calendar dates returned. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/price-calendar" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=ISREKAIR" \ --data-urlencode "date_from=2026-08-19" \ --data-urlencode "date_to=2026-08-20" \ --data-urlencode "nights=1" \ --data-urlencode "adults=2" \ --data-urlencode "rooms=1" \ --data-urlencode "currency=USD" ``` Response ```json { "success": true, "hotel_id": "ISREKAIR", "currency": "USD", "average_price": { "amount": 200, "formatted_amount": "USD 200", "tax_inclusive": true }, "calendar": [ { "date": "2026-08-19", "available": true, "amount": 190, "currency": "USD", "formatted_amount": "USD 190", "tax_inclusive": true, "minimum_nights": 0, "lowest": true } ], "total": 2 } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/rates GET # Radisson Hotel Rates API Check whether a property is bookable and return its live minimum cash rate. ## Overview Get the live lowest available Radisson cash rate for one hotel, stay, occupancy, and currency. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/rates ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | | check\_in | date | Required | Check-in date (YYYY-MM-DD). Cannot be in the past. | | check\_out | date | Required | Check-out date (YYYY-MM-DD), after check-in. Maximum stay: 30 nights. | | adults | integer | Optional | Adults per room, 1 to 8. Default: 2. | | rooms | integer | Optional | Number of rooms, 1 to 9. Default: 1. | | children\_ages | integer[] | Optional | Child ages per room, 0 to 17. Repeat the query parameter for multiple children. | | currency | string | Optional | Three-letter currency code. Default: USD. | | include\_member\_rates | boolean | Optional | Include Radisson member pricing when published. Default: true. | ## Response schema | Field | Type | Description | | --- | --- | --- | | available | boolean | Whether Radisson returned a minimum cash rate. | | minimum\_rate | object|null | Lowest upstream rate object, including rate code, remaining-room signal, and pricing. | | minimum\_nights / search\_applicable / active\_crs | mixed | Radisson search constraints and CRS metadata. | | nights / rooms / adults\_per\_room / children\_ages\_per\_room | mixed | Normalized request context. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/rates" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=GBEDLONMER" \ --data-urlencode "check_in=2026-08-19" \ --data-urlencode "check_out=2026-08-21" \ --data-urlencode "adults=2" \ --data-urlencode "rooms=1" \ --data-urlencode "currency=USD" \ --data-urlencode "include_member_rates=true" ``` Response ```json { "success": true, "hotel_id": "GBEDLONMER", "check_in": "2026-08-19", "check_out": "2026-08-21", "nights": 2, "rooms": 1, "adults_per_room": 2, "children_ages_per_room": [], "currency": "USD", "available": true, "minimum_rate": { "code": "F_FLEXRRAP", "numberOfRoomsLeft": 2, "averagePricing": { "price": { "amount": 500.12, "currency": "USD" } } } } ``` --- Source: https://stayapi.com/docs/endpoints/radisson/room-rates GET # Radisson Hotel Room Rates API Return dated room-level inventory instead of the hotel's single minimum rate. ## Overview Compare dated Radisson cash alternatives and reward quotes alongside original public and member offers. ### Endpoint URL GET https://api.stayapi.com/v1/radisson/hotel/room-rates ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | hotel\_id | string | Required | Radisson hotel code from Search or URL to ID, for example ISREKAIR. | | check\_in | date | Required | Check-in date (YYYY-MM-DD). Cannot be in the past. | | check\_out | date | Required | Check-out date (YYYY-MM-DD), after check-in. Maximum stay: 30 nights. | | adults | integer | Optional | Adults per room, 1 to 8. Default: 2. | | rooms | integer | Optional | Number of rooms, 1 to 9. Default: 1. | | children\_ages | integer[] | Optional | Child ages per room, 0 to 17. Repeat the query parameter for multiple children. | | currency | string | Optional | Three-letter currency code. Default: USD. | ## Response schema | Field | Type | Description | | --- | --- | --- | | normalized\_rates | array | One entry per full identifier and source (public/member), with room\_code, rate\_plan\_code, meal\_plan\_code, and nullable members\_only. Duplicate identities are marked ambiguous rather than merged. | | normalized\_rates[].cash\_rate | object / null | Full-stay cash alternative: currency, total, includes\_tax. Returned only for a complete consistent tax-inclusive quote; never a redemption copay. | | normalized\_rates[].reward\_rate | object / null | points is the first dated night; points\_total sums all dated quotes; points\_total\_source is sum\_of\_nightly\_quotes. cash\_payable\_status is unverified. A positive complete stay-points sum is required; a zero-point night can occur within it. | | normalized\_rates[].nightly\_rates | array | Dated cash (currency, amount, includes\_tax) and nullable points from check-in through the night before check-out. | | normalized\_rates[].cash\_status | string | available, incomplete, inconsistent\_total, or ambiguous\_identity. Only available has cash\_rate. | | normalized\_rates[].reward\_status | string | available, not\_redeemable, incomplete, unverified, unsupported\_mixed\_payment, or ambiguous\_identity. Only available has reward\_rate. | | normalization\_status | string | complete, partial, or unsupported\_multi\_room. Partial preserves supported offers and raw data. Empty availability is complete with an empty list. Multiple rooms return an empty normalized list and unchanged raw inventory. | | room\_rates | object | Map keyed by room code. Each room contains groups with staysPublic and staysMember rate arrays. | | available / returned | boolean / integer | Whether room groups exist and how many room codes were returned. | | search\_type / search\_applicable / matches\_search | mixed | Radisson search-result metadata. | | minimum\_nights / max\_upsell\_difference / max\_discount | mixed | Stay constraints and offer metadata. | | active\_crs / free\_upgrade\_bb / pay\_upon\_arrival | mixed | CRS and booking-condition flags. | ## Errors Errors use RFC 7807 Problem Details with `provider: "radisson"`, a product name, and a correlation id. - **400** : invalid URL, hotel code, dates, range, occupancy, child age, or currency. - **404** : no Radisson property matched the supplied id or URL. - **502** : Radisson returned an upstream failure. - **503** : the service is temporarily busy; retry shortly. ## Related Radisson endpoints [Search and get a hotel id](/docs/endpoints/radisson/search)[Lowest live hotel rate](/docs/endpoints/radisson/rates)[Static room content](/docs/endpoints/radisson/rooms) Request ```curl curl -G "https://api.stayapi.com/v1/radisson/hotel/room-rates" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "hotel_id=GBEDLONHAM" \ --data-urlencode "check_in=2026-10-15" \ --data-urlencode "check_out=2026-10-17" \ --data-urlencode "adults=2" \ --data-urlencode "rooms=1" \ --data-urlencode "currency=GBP" ``` Response ```json { "success": true, "hotel_id": "GBEDLONHAM", "check_in": "2026-10-15", "check_out": "2026-10-17", "nights": 2, "requested_rooms": 1, "adults_per_room": 2, "children_ages_per_room": [], "currency": "GBP", "available": true, "room_rates": { "PSUP2T----": { "groups": [ { "staysPublic": [], "staysMember": [ { "identifier": "RR_MEMAP|PSUP2T----|P_PP01RRAP|RO", "code": "P_PP01RRAP", "memberOnly": true, "redeemable": true, "mealPlanDto": { "code": "RO", "description": "Room Only", "index": 0 }, "totalPriceWithTax": { "amount": 716.55, "currency": "GBP", "formattedAmount": "GBP 716.55", "formattedTotalTaxAndFee": "GBP 0.00", "totalTaxAndFee": 0.0 }, "nights": [ { "date": "2026-10-15", "pricing": { "cashWithPoints": { "currency": "GBP", "extraCashAmount": 0.0, "points": 160804, "undiscountedAmount": 21.34, "undiscountedPoints": 160804 }, "pointsExtended": { "points": 0 }, "price": { "amount": 402.9, "currency": "GBP", "formattedAmount": "GBP 402.90", "isTaxInclusive": true }, "taxIncluded": true }, "rate": { "identifier": "RR_MEMAP|PSUP2T----|P_PP01RRAP|RO" } }, { "date": "2026-10-16", "pricing": { "cashWithPoints": { "currency": "GBP", "extraCashAmount": 0.0, "points": 131852, "undiscountedAmount": 0.0, "undiscountedPoints": 131852 }, "pointsExtended": { "points": 0 }, "price": { "amount": 313.65, "currency": "GBP", "formattedAmount": "GBP 313.65", "isTaxInclusive": true }, "taxIncluded": true }, "rate": { "identifier": "RR_MEMAP|PSUP2T----|P_PP01RRAP|RO" } } ] } ] } ] } }, "normalized_rates": [ { "room_code": "PSUP2T----", "rate_plan_code": "P_PP01RRAP", "identifier": "RR_MEMAP|PSUP2T----|P_PP01RRAP|RO", "source": "member", "meal_plan_code": "RO", "members_only": true, "cash_status": "available", "reward_status": "available", "cash_rate": { "currency": "GBP", "total": 716.55, "includes_tax": true }, "reward_rate": { "points": 160804, "points_total": 292656, "points_total_source": "sum_of_nightly_quotes", "cash_payable_status": "unverified" }, "nightly_rates": [ { "date": "2026-10-15", "cash": { "currency": "GBP", "amount": 402.9, "includes_tax": true }, "points": 160804 }, { "date": "2026-10-16", "cash": { "currency": "GBP", "amount": 313.65, "includes_tax": true }, "points": 131852 } ] } ], "normalization_status": "complete", "returned": 1 } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/search GET # OpenTable Restaurant Search API Find restaurants near a location for a given date, time, and party size. ## Overview #### Restaurant list, not time slots This endpoint returns matching restaurants with rich metadata. After choosing a restaurant, use Exact Availability for a yes/no check or Nearby Availability Slots for bookable alternatives. The OpenTable Search endpoint discovers restaurants around a latitude/longitude for a specific reservation date, time, and party size. It returns up to 50 restaurants per call with cuisine, price band, guest rating, photos, structured address, phone, and feature flags (takeout, private dining, online ordering). ### Endpoint URL GET https://api.stayapi.com/v1/opentable/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | latitude | float | Required | Search-center latitude (-90 to 90). | | longitude | float | Required | Search-center longitude (-180 to 180). | | date | string | Required | Reservation date in `YYYY-MM-DD`. Cannot be in the past. | | time | string | Required | Reservation time in `HH:MM` (24-hour), e.g. `19:00`. | | party\_size | integer | Optional | Number of diners (1-30). Default: 2 | | prices | integer[] | Optional | Price-band filter (1=$ … 4=$$$$). Repeatable — e.g. `prices=2&prices=3`. | | metro\_id | integer | Optional | OpenTable metro id; narrows the search to a metro area. | | limit | integer | Optional | Maximum restaurants to return (1-50). Default: 50 | | offset | integer | Optional | Pagination offset (≥ 0). Default: 0 | #### Search needs coordinates OpenTable search is coordinate-based — there is no city-name search. Resolve a place name to latitude/longitude first, for example with the Meta Coordinates Lookup endpoint (GET /v1/meta/coordinates-lookup). ## Response Format The response returns the list of matching restaurants for the search, each with cuisine, price band, rating, photos, address, phone, and feature flags. ### Response Structure - **success** : Boolean indicating request success - **total** : OpenTable's total match count for the search (may exceed the number returned) - **restaurants** : Array of restaurant objects ## Restaurant Object Fields | Field | Type | Description | | --- | --- | --- | | id | integer | OpenTable restaurant id. Stable. | | name | string | Restaurant name | | url | string | OpenTable restaurant page URL | | primary\_cuisine | string | Primary cuisine, e.g. "French American" | | dining\_style | string | Dining style, e.g. "Casual Elegant" | | price\_band | object | Price band: `id` (1-4, maps to the `prices` filter), `name` (e.g. "$31 to $50"), `currency_symbol` | | rating | float | Guest-review score (0-5). May be `null` for newly listed restaurants. | | review\_count | integer | Same number as `text_review_count`; kept for backward compatibility. Prefer `text_review_count`. May be `null`. | | text\_review\_count | integer | All-time count of reviews with written text. Matches `text_review_count` on Restaurant Details. May be `null`. | | recent\_reservation\_count | integer | Recent reservations booked through OpenTable | | neighborhood | string | Neighborhood name | | coordinates | object | Restaurant `latitude` / `longitude` | | address | object | Structured address: `line1`, `line2`, `city`, `state`, `postal_code` | | phone | string | Restaurant phone number | | photos | array | Ready-to-use CDN photo URLs | | description | string | Plain-text restaurant description | | max\_party\_size | integer | Largest party the restaurant accepts online | | has\_takeout | boolean | Whether takeout is offered | | order\_online\_link | string | Online-ordering link (may be `null`) | | has\_private\_dining | boolean | Whether the restaurant offers private dining (see the Private Dining endpoint) | #### total vs. returned count total is OpenTable's full match count for the search and can exceed the number of restaurants returned (capped by limit, max 50). Page through additional matches with offset. ## Error Responses The API returns standard HTTP error codes with detailed messages following the RFC 7807 Problem Details format. Failures carry `provider: "opentable"` and `product: "search"`. ### 400 Bad Request An input failed validation. Possible `error_code` values: `INVALID_DATE_FORMAT` (date not `YYYY-MM-DD`), `PAST_DATE` (date before today), `INVALID_TIME_FORMAT` (time not `HH:MM`), `INVALID_PRICE_BAND` (a `prices` value outside 1-4). ``` { "type": "https://api.stayapi.com/errors/invalid-date-format", "title": "Invalid Date Format", "status": 400, "detail": "date must be in YYYY-MM-DD format", "provider": "opentable", "product": "search", "error_code": "INVALID_DATE_FORMAT" } ``` ### 422 Unprocessable Entity A parameter is missing or out of range (e.g. bad coordinates, `limit` \> 50, `party_size` \> 30). ### 502 Bad Gateway Upstream service error from OpenTable (`UPSTREAM_ERROR`). ## Usage Tips ### Best Practices - Geocode a place name to coordinates first — pair this with the Meta Coordinates Lookup endpoint - Filter by budget with one or more `prices` values (1-4); repeat the param to combine bands - Use `limit` + `offset` to page; `total` tells you how many matches exist beyond the page - Treat `rating`, `review_count` and `text_review_count` as nullable — newly listed restaurants may have none of them #### Rate Limiting This endpoint is subject to your plan's rate limits. Each search counts as one API call regardless of the number of results returned. ## Related Endpoints ### OpenTable Restaurant Menu Fetch structured menus, item descriptions, string prices, and variations for a selected restaurant [View Documentation →](/docs/endpoints/opentable/menu) ### OpenTable Exact Availability Check whether one exact reservation time is currently available [View Documentation →](/docs/endpoints/opentable/availability) ### OpenTable Nearby Slots Return bookable alternatives around a preferred reservation time [View Documentation →](/docs/endpoints/opentable/availability-slots) ### OpenTable Private Dining Find venues that offer private dining, with contact and capacity details [View Documentation →](/docs/endpoints/opentable/private-dining) ### Meta Coordinates Lookup Resolve a place name into latitude/longitude for the search [View Documentation →](/docs/endpoints/meta-coordinates-lookup) Request ```curl curl -X GET "https://api.stayapi.com/v1/opentable/search?latitude=34.0634&longitude=-118.2806&date=2026-06-23&time=19:00&party_size=2&prices=2&prices=3" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "total": 250, "restaurants": [ { "id": 67720, "name": "Perch LA", "url": "https://www.opentable.com/perch", "primary_cuisine": "French American", "dining_style": "Casual Elegant", "price_band": { "id": 3, "name": "$31 to $50", "currency_symbol": "$" }, "rating": 4.5, "review_count": 12360, "text_review_count": 12360, "recent_reservation_count": 1000, "neighborhood": "Downtown", "coordinates": { "latitude": 34.0480, "longitude": -118.2517 }, "address": { "line1": "448 S Hill St", "line2": "", "city": "Los Angeles", "state": "CA", "postal_code": "90013" }, "phone": "(213) 802-1770", "photos": [ "https://resizer.otstatic.com/v4/photos/00000000-1?width=640&height=360" ], "description": "A rooftop bistro with French-inspired plates and skyline views.", "max_party_size": 20, "has_takeout": false, "order_online_link": null, "has_private_dining": true } ] } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-date-format", "title": "Invalid Date Format", "status": 400, "detail": "date must be in YYYY-MM-DD format", "instance": "/v1/opentable/search", "provider": "opentable", "product": "search", "error_code": "INVALID_DATE_FORMAT", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/url-to-id GET # OpenTable URL to Restaurant ID API Turn a full OpenTable `/r/{slug}` profile URL into the stable restaurant ID used by reviews and availability. ## Overview #### Exact match for any profile URL Any valid OpenTable /r/{slug} profile URL resolves to its exact restaurant, including older URLs whose slug no longer matches the current restaurant name or location. Use this endpoint when your input is an OpenTable restaurant URL instead of a numeric ID. The response also includes enough location context to verify the match before using `restaurant_id` with reviews, exact availability, or nearby slots. ### Endpoint URL GET https://api.stayapi.com/v1/opentable/restaurant/url-to-id ## Query Parameter | Parameter | Type | Required | Description | | --- | --- | --- | --- | | url | string | Required | Full OpenTable restaurant profile URL in the form `https://www.opentable.com/r/{slug}`. Country domains such as `opentable.fr` and `opentable.co.uk` are supported. | ## Response Fields | Field | Description | | --- | --- | | restaurant\_id | Positive numeric OpenTable restaurant ID. | | name | Restaurant name returned by OpenTable. | | country | Country associated with the matched restaurant. | | macro | OpenTable's broader dining area, such as South West London. | | neighborhood | OpenTable neighborhood when available. | #### Keep the ID Store restaurant\_id after the first resolution. Future review and availability calls can use it directly without repeating the URL lookup. ## Error Responses Errors follow RFC 7807 Problem Details with `provider: "opentable"` and `product: "url-to-id"`. ### 400 Invalid URL `INVALID_URL` when the value is not a supported OpenTable restaurant profile URL. ### 404 Restaurant not found `RESTAURANT_NOT_FOUND` when no OpenTable restaurant exists at that profile URL. ### 502 Upstream error `UPSTREAM_ERROR` when OpenTable can't be reached or doesn't return the restaurant profile. ## Related Endpoints ### Restaurant Menu Fetch structured menus and prices with the resolved ID. [View Documentation →](/docs/endpoints/opentable/menu) ### Restaurant Reviews Fetch newest, highest-rated, or lowest-rated reviews with the resolved ID. [View Documentation →](/docs/endpoints/opentable/restaurant-reviews) ### Exact Availability Check one restaurant, date, time, and party size. [View Documentation →](/docs/endpoints/opentable/availability) Request ```curl curl -G "https://api.stayapi.com/v1/opentable/restaurant/url-to-id" \ --data-urlencode "url=https://www.opentable.com/r/the-ivy-victoria-brasserie-london-2" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "restaurant_id": 180654, "name": "The Ivy Victoria Brasserie", "country": "United Kingdom", "macro": "South West London", "neighborhood": "Victoria" } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-url", "title": "Invalid OpenTable URL", "status": 400, "detail": "url must be a full OpenTable restaurant URL in the form https://www.opentable.com/r/{slug}.", "instance": "/v1/opentable/restaurant/url-to-id", "provider": "opentable", "product": "url-to-id", "error_code": "INVALID_URL", "correlation_id": "request-id" } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/restaurant-details GET # OpenTable Restaurant Details API Get a live, normalized OpenTable restaurant profile from one numeric restaurant ID. ## Overview #### No session required Callers do not need cookies or an OpenTable session. Supply the stable `restaurant_id` returned by [Restaurant Search](/docs/endpoints/opentable/search) or [URL to Restaurant ID](/docs/endpoints/opentable/url-to-id). The response combines identity, editorial content, ratings, location, contact information, operating details, photos, policies, and OpenTable feature flags in one JSON object. ### Endpoint URL GET https://api.stayapi.com/v1/opentable/restaurants/{restaurant\_id} ## Path Parameter | Parameter | Type | Required | Description | | --- | --- | --- | --- | | restaurant\_id | integer | Required | Positive numeric OpenTable restaurant ID, such as `404046`. | ## Response Fields | Field | Description | | --- | --- | | id, name, url | Restaurant identity and canonical OpenTable profile URL. | | description, review\_summary | Restaurant description and OpenTable's editorial review summary. | | primary\_cuisine, cuisines, dining\_style, price\_band | Cuisine taxonomy, dining style, and localized price information. | | rating, ratings | Overall rating plus food, service, ambience, and value ratings. | | review\_count | OpenTable's total review count as shown on the restaurant page. Can differ a lot from `text_review_count` in either direction, and does not match a search result's `review_count`. | | text\_review\_count | All-time count of reviews with written text. Matches `review_count` and `text_review_count` in Search Restaurants results. | | recent\_reservation\_count | Recent reservation activity. | | address, coordinates, neighborhood, metro, macro | Street address, latitude/longitude, and OpenTable location hierarchy. | | contact, website, hours | Phone, email, website, and opening-hours text. | | dress\_code, parking, public\_transit, cross\_street | Arrival and venue guidance when supplied by the restaurant. | | payment\_options, additional\_details | Accepted payments and restaurant amenities. | | photos, photo\_count | OpenTable-hosted photo URLs and the profile's photo count. | | max\_advance\_days, max\_party\_size | Reservation-window and party-size limits. | | has\_takeout, order\_online\_link, private\_dining | Takeout, online ordering, and private-dining details. | | dining\_areas, time\_zone, features | Bookable areas, timezone metadata, and seating or availability flags. | #### Stable null and list handling Fields OpenTable does not supply remain null, while collection fields such as cuisines, photos, payment\_options, and dining\_areas remain empty arrays. ## Error Responses Errors follow RFC 7807 Problem Details with `provider: "opentable"` and `product: "details"`. ### 404 Restaurant not found `RESTAURANT_NOT_FOUND` when OpenTable has no profile for the supplied ID. ### 502 Upstream error `UPSTREAM_ERROR` when OpenTable cannot be fetched or parsed. ## Related Endpoints ### Restaurant Menu Fetch structured menus and prices for the same restaurant ID. [View Documentation →](/docs/endpoints/opentable/menu) ### URL to Restaurant ID Resolve a profile URL before requesting details. [View Documentation →](/docs/endpoints/opentable/url-to-id) ### Restaurant Reviews Fetch paginated guest reviews for the same restaurant ID. [View Documentation →](/docs/endpoints/opentable/restaurant-reviews) Request ```curl curl "https://api.stayapi.com/v1/opentable/restaurants/404046" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "restaurant": { "id": 404046, "name": "Le Petit Saint Honoré", "url": "https://www.opentable.com/r/le-petit-saint-honore-paris", "description": "Le Petit Saint-Honoré welcomes you …", "review_summary": "Le Petit Saint Honoré offers a charming dining experience …", "website": "http://www.lepetitsainthonore.fr/", "primary_cuisine": "French", "cuisines": ["French", "Traditional French"], "dining_style": "Casual Dining", "price_band": {"id": 2, "name": "€30 and under", "currency_symbol": "€"}, "rating": 4.4, "ratings": {"overall": 4.4, "food": 4.4, "service": 4.4, "ambience": 4.5, "value": 4.3}, "review_count": 201, "text_review_count": 80, "recent_reservation_count": 12, "address": { "line1": "158 Rue Saint-Honoré", "line2": "", "city": "Paris", "state": "Ile-de-France", "postal_code": "75001", "country": "France" }, "coordinates": {"latitude": 48.8623994, "longitude": 2.3450701}, "contact": {"phone": "01 42 60 08 06", "email": null}, "hours": "Daily 9:00 am–12:00 am", "photos": ["https://resizer.otstatic.com/v3/photos/86428591-3"], "photo_count": 47, "max_advance_days": 90, "max_party_size": 9, "private_dining": {"available": false, "largest_capacity": 0}, "neighborhood": {"id": 16454, "name": "Châtelet"}, "metro": {"id": 3408, "name": "Paris"}, "macro": {"id": 9080}, "features": {"outdoor": true, "waitlist": false} } } ``` ```json { "type": "https://api.stayapi.com/errors/restaurant-not-found", "title": "Restaurant Not Found", "status": 404, "detail": "OpenTable restaurant was not found", "instance": "/v1/opentable/restaurants/404046", "provider": "opentable", "product": "details", "error_code": "RESTAURANT_NOT_FOUND", "correlation_id": "request-id", "restaurant_id": 404046 } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/menu GET # OpenTable Restaurant Menu API Get every structured menu OpenTable publishes for one restaurant ID. ## Overview #### Authentication Send your StayAPI key in the X-API-Key request header. The endpoint is available through the authenticated playground and uses the same request credits as the other OpenTable endpoints. Pass the stable `restaurant_id` returned by [Restaurant Search](/docs/endpoints/opentable/search) or [URL to Restaurant ID](/docs/endpoints/opentable/url-to-id). The response preserves menu metadata, currency, sections, items, descriptions, price strings, and size or portion variations. ### Endpoint URL GET https://api.stayapi.com/v1/opentable/restaurant/menu ## Query Parameter | Parameter | Type | Required | Description | | --- | --- | --- | --- | | restaurant\_id | integer | Required | Positive OpenTable restaurant ID greater than zero, such as `12526`. | There are no optional query parameters, defaults, pagination, sorting, locale, or currency overrides. ## Response Fields | Field | Description | | --- | --- | | success | True for a successful menu fetch, including a restaurant with no structured menu. | | restaurant\_id, restaurant\_name | OpenTable identity. The name may be null when OpenTable does not publish it. | | source\_url | OpenTable restaurant profile URL fetched for this ID. | | external\_menu\_url | Restaurant-supplied menu link when OpenTable provides one, otherwise null. | | shows\_third\_party\_menu | Whether OpenTable advertises a third-party menu. May be null. | | menu\_count, section\_count | Aggregate numbers of menus and nested sections. | | item\_count, variation\_count | Top-level dishes and nested size or portion choices, counted separately. | | menus | Every structured menu OpenTable publishes for the restaurant. | | Object | Fields | | --- | --- | | menu | `name`, `description`, `currency_code`, `sections` | | section | `name`, `description`, `items` | | item | `name`, `description`, `price`, `variations` | | variation | `name`, `price` | #### Prices remain strings OpenTable can publish numeric prices, null, or nonnumeric values such as MKT. Keep item and variation prices as strings and read currency\_code from each menu. ## Empty Menus and Limitations ### No structured menu is still HTTP 200 A valid restaurant without a structured OpenTable menu returns `menus: []` with `menu_count`, `section_count`, `item_count`, and `variation_count` set to zero. ### Structured OpenTable data only The nested `menus` array reflects the structured data OpenTable publishes. A restaurant-supplied menu link is returned separately in `external_menu_url` when available. ### Nullable upstream fields stay nullable Names, descriptions, prices, currency codes, external links, and the third-party-menu flag can be null when OpenTable omits them. ## Error Responses Errors use RFC 7807 Problem Details with `application/problem+json`, `provider: "opentable"`, and `product: "menu"`. ### 404 Restaurant not found `RESTAURANT_NOT_FOUND` when OpenTable has no restaurant with that ID. ### 422 Validation error Returned when `restaurant_id` is missing, zero, negative, or not an integer. ### 502 Upstream error `UPSTREAM_ERROR` when OpenTable fails or returns an invalid profile. ### 500 Internal error `INTERNAL_ERROR` for an unexpected server error. ## Related Workflow ### URL to Restaurant ID Resolve a public OpenTable profile URL before requesting its menus. [View Documentation →](/docs/endpoints/opentable/url-to-id) ### Restaurant Search Find restaurants and carry each result's stable ID into the menu endpoint. [View Documentation →](/docs/endpoints/opentable/search) ### Restaurant Details Combine menu data with cuisine, hours, address, photos, and restaurant features. [View Documentation →](/docs/endpoints/opentable/restaurant-details) ### Restaurant Reviews Pair published menus with paginated guest feedback for the same restaurant ID. [View Documentation →](/docs/endpoints/opentable/restaurant-reviews) Request ```curl curl -G "https://api.stayapi.com/v1/opentable/restaurant/menu" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "restaurant_id=12526" ``` Response ```json { "success": true, "restaurant_id": 12526, "restaurant_name": "Takami Sushi & Robata Restaurant", "source_url": "https://www.opentable.com/restaurant/profile/12526", "external_menu_url": "http://www.takamisushi.com/dinnermenu.pdf", "shows_third_party_menu": true, "menu_count": 2, "section_count": 35, "item_count": 222, "variation_count": 123, "menus": [ { "name": "Lunch", "description": null, "currency_code": "USD", "sections": [ { "name": "Hot Appetizer", "description": null, "items": [ { "name": "Miso Soup", "description": "White miso broth with tofu, green onion, and seaweed", "price": "7.00", "variations": [] }, { "name": "Bluefin Tuna (Hon-Maguro)*", "description": null, "price": null, "variations": [ {"name": "2pcs", "price": "11.00"}, {"name": "4pcs", "price": "20.00"} ] } ] } ] } ] } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/restaurant-reviews GET # OpenTable Restaurant Reviews API Get normalized guest reviews for an OpenTable restaurant, ordered by date or rating and paginated up to 25 reviews per call. ## Overview #### Newest by default Reviews are returned newest-first unless you select highest or lowest. Pages are 1-indexed and page\_size defaults to the maximum of 25. Use the stable `restaurant_id` returned by Restaurant Search or [URL to Restaurant ID](/docs/endpoints/opentable/url-to-id). Each review includes overall, food, service, ambience, and value ratings; reviewer details; dining and submission times; verification; helpfulness; and reviewer-uploaded photos when available. ### Endpoint URL GET https://api.stayapi.com/v1/opentable/restaurant/reviews ## Query Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | restaurant\_id | integer | Required | Positive OpenTable restaurant ID from [Restaurant Search](/docs/endpoints/opentable/search) or [URL to Restaurant ID](/docs/endpoints/opentable/url-to-id). | | sort | string | Optional | `newest` (default), `highest`, or `lowest`. | | page | integer | Optional | 1-indexed page number. Default: `1`. | | page\_size | integer | Optional | Reviews per page, from 1 to 25. Default and maximum: `25`. | ## Sorting ### newest Most recently submitted reviews first. This is the default. ### highest Highest overall rating first. ### lowest Lowest overall rating first. ## Response Format ### Pagination - `total_count` is the restaurant's total review count. - `total_pages` reflects the selected page size. - `has_more` is true when another page is available. - `sort` echoes the normalized sort value used for the request. | Review field | Description | | --- | --- | | id, text | Stable review ID and the guest's review text. | | ratings | Overall, food, service, ambience, value, and normalized noise level. | | reviewer | Name, initials, location, approved review count, and VIP status when available. | | dined\_at, submitted\_at | ISO 8601 dining and submission timestamps. | | verified | True when OpenTable marks the review as verified. | | helpfulness | Up votes, down votes, and score. | | photos | Reviewer photos with caption and nullable CDN URLs for five sizes. | #### Sparse fields stay predictable Optional upstream values are returned as null, while photos is always an array. Your client can keep one response shape across restaurants. ## Error Responses Errors follow RFC 7807 Problem Details. OpenTable review failures include `provider: "opentable"` and `product: "reviews"`. ### 400 Invalid sort `INVALID_SORT` when sort is not `newest`, `highest`, or `lowest`. ### 422 Validation error Missing or invalid `restaurant_id`, `page`, or `page_size`, including page sizes above 25. ### 502 Upstream error `UPSTREAM_ERROR` when OpenTable does not return a usable response. ## Best Practices - Use `newest` for incremental collection and stop when you reach a review already stored. - Follow `has_more` instead of guessing how many pages remain. - Keep the same sort value while paging to preserve a consistent ordering. - Use `highest` and `lowest` for targeted sentiment samples. ## Related Endpoints ### Restaurant Search Find restaurants and obtain the ID required by this endpoint. [View Documentation →](/docs/endpoints/opentable/search) ### Private Dining Find venues with event contacts and capacity details. [View Documentation →](/docs/endpoints/opentable/private-dining) Request ```curl curl -X GET "https://api.stayapi.com/v1/opentable/restaurant/reviews?restaurant_id=404046&sort=newest&page=1&page_size=25" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "restaurant_id": 404046, "total_count": 80, "page": 1, "page_size": 25, "total_pages": 4, "has_more": true, "sort": "newest", "reviews": [ { "id": "OT-404046-3819-180028644728", "text": "Enjoyed our meal very much.", "ratings": { "overall": 5, "food": 5, "service": 5, "ambience": 5, "value": 4, "noise": "moderate" }, "reviewer": { "name": "Nancy", "initials": "N", "location": "Calgary", "review_count": 11, "is_vip": null }, "dined_at": "2026-07-02T18:30:00+02:00", "submitted_at": "2026-07-05T10:39:45Z", "verified": true, "from_previous_concept": false, "helpfulness": { "up": 0, "down": 0, "score": 0 }, "photos": [] } ] } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-sort", "title": "Invalid Sort", "status": 400, "detail": "sort must be one of: newest, highest, lowest", "instance": "/v1/opentable/restaurant/reviews", "provider": "opentable", "product": "reviews", "error_code": "INVALID_SORT", "correlation_id": "request-id" } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/private-dining GET # OpenTable Private Dining API Find venues that offer private dining near a location, with contact and capacity details. ## Overview #### Directory search — no date or party size This targets OpenTable's private-dining sub-site, so it is a directory search, not an availability search: there is no date, time, or party size. There is also no city-name search — resolve a place to coordinates first, e.g. with the Meta Coordinates Lookup endpoint (GET /v1/meta/coordinates-lookup). The OpenTable Private Dining endpoint finds restaurants that offer private dining around a latitude/longitude. Each result carries the private-dining event contact (name, phone, email), the largest-space capacity, the number of spaces, and an instant-bookable flag — alongside cuisine, price band, rating, neighborhood, coordinates, and photos. ### Endpoint URL GET https://api.stayapi.com/v1/opentable/private-dining ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | latitude | float | Required | Search-center latitude (-90 to 90). | | longitude | float | Required | Search-center longitude (-180 to 180). | | cuisine\_ids | string[] (UUID) | Optional | OpenTable cuisine UUIDs. **Discover them** by calling once with `with_facets=true`. Repeatable for multiple cuisines. | | instant\_book | boolean | Optional | If `true`, return only instantly-bookable venues. | | radius | integer | Optional | Search radius in miles (1-100). Default: 50 | | min\_capacity | integer | Optional | Only venues whose largest space seats at least this many (≥ 1). Applied by StayAPI — see the capacity note below. | | scan\_offset | integer | Optional | Continue a `min_capacity` search: pass the `next_scan_offset` from the previous response (≥ 0). Ignored without `min_capacity`. Default: 0 | | metro\_id | integer | Optional | OpenTable metro id; narrows the search to a metro area. | | with\_facets | boolean | Optional | If `true`, include `facets.cuisines` (name → `cuisine_id` → count). Default: false | | limit | integer | Optional | Maximum restaurants to return (1-50). Default: 50 | | offset | integer | Optional | Pagination offset (≥ 0). Default: 0 | #### Discover cuisine IDs with facets cuisine\_ids are opaque OpenTable cuisine UUIDs (not the 1-4 price values). Call once with with\_facets=true to get facets.cuisines — each entry maps a cuisine name to its cuisine\_id and a count — then pass the UUIDs you want back as cuisine\_ids. ## Response Format The response returns matching private-dining venues, plus counters describing the capacity filter and optional cuisine facets. ### Response Structure - **success** : Boolean indicating request success - **total** : Match count — metro-wide when `min_capacity` is omitted, or, when it is set, the count of matches _within the venues checked by this request_ - **server\_total** : Metro-wide pre-filter total (non-null only when `min_capacity` is set) - **searched\_count** : Number of venues scanned for the capacity filter (≤ 250) - **capacity\_filter\_truncated** : `true` if the metro exceeded the 250-venue scan cap - **next\_scan\_offset** : Integer to pass as `scan_offset` to check the next venues when `capacity_filter_truncated` is `true`; `null` once every venue in the area has been checked, and always `null` without `min_capacity` - **restaurants** : Array of venue objects - **facets** : Cuisine facets — `null` unless `with_facets=true` ## Venue Object Fields | Field | Type | Description | | --- | --- | --- | | id | integer | OpenTable restaurant id. Stable. | | name | string | Restaurant name | | url | string | OpenTable private-dining profile URL | | primary\_cuisine | string | Primary cuisine, e.g. "Pan-Asian" | | price\_band | object | Price band: `id` (1-4), `name` (e.g. "$31 to $50"), `currency_symbol` | | rating | float | Guest-review score (0-5). May be `null`. | | review\_count | integer | All-time text-review count. May be `null`. | | neighborhood | string | Neighborhood name | | coordinates | object | Restaurant `latitude` / `longitude` | | photos | array | Ready-to-use CDN photo URLs | | is\_instant\_bookable | boolean | Whether the venue is instantly bookable | | space\_count | integer | Number of private-dining spaces | | private\_dining | object | Private-dining details: `contact`, `phone`, `email`, `largest_capacity` (seats in the biggest space), `description` | #### How the capacity filter works OpenTable has no native capacity filter, so StayAPI applies min\_capacity itself. It scans up to 250 venues, filters them, and reports server\_total (metro-wide pre-filter total), searched\_count (how many it scanned), and capacity\_filter\_truncated (true when the metro had more than 250 venues, so matches beyond the scanned window may exist — continue with scan\_offset=next\_scan\_offset, see below). facets are metro-wide and are NOT recomputed against min\_capacity — when both are set, facet counts will exceed total. ## Searching large areas with min\_capacity Each request checks up to 250 venues for `min_capacity`. Large metros such as New York can have more, so the first response may set `capacity_filter_truncated: true` and return a `next_scan_offset`. Call again with the same parameters plus `scan_offset=` to check the next venues, and repeat until `next_scan_offset` is `null`. ### 1. First request ``` curl -X GET "https://api.stayapi.com/v1/opentable/private-dining?latitude=40.7580&longitude=-73.9855&min_capacity=100" \ -H "X-API-Key: YOUR_API_KEY" ``` Read `next_scan_offset` from the response: ``` { "success": true, "total": 38, "searched_count": 250, "capacity_filter_truncated": true, "next_scan_offset": 250, "restaurants": [...] } ``` ### 2. Continue with scan\_offset ``` curl -X GET "https://api.stayapi.com/v1/opentable/private-dining?latitude=40.7580&longitude=-73.9855&min_capacity=100&scan_offset=250" \ -H "X-API-Key: YOUR_API_KEY" ``` When `next_scan_offset` comes back `null`, every venue in the area has been checked. - `total` counts matches within the venues checked by that request; `offset`/`limit` page through those matches. - Keep every other parameter the same between calls. A `scan_offset` past the end returns an empty list with `next_scan_offset: null`. - Venue ordering can shift between requests, so dedupe results by `id` across calls. - Each continuation call is billed as a separate request. ## Error Responses The API returns standard HTTP error codes with detailed messages following the RFC 7807 Problem Details format. Failures carry `provider: "opentable"` and `product: "private-dining"`. ### 400 Bad Request A `cuisine_ids` value is not a valid UUID (`INVALID_CUISINE_ID`). ``` { "type": "https://api.stayapi.com/errors/invalid-cuisine-id", "title": "Invalid Cuisine ID", "status": 400, "detail": "cuisine_ids must be valid UUIDs", "provider": "opentable", "product": "private-dining", "error_code": "INVALID_CUISINE_ID" } ``` ### 422 Unprocessable Entity A parameter is missing or out of range (e.g. bad coordinates, `radius` \> 100, `min_capacity` \< 1, `scan_offset` \< 0, `limit` \> 50). ### 502 Bad Gateway Upstream service error from OpenTable (`UPSTREAM_ERROR`). ## Usage Tips ### Best Practices - Geocode a place name to coordinates first — pair this with the Meta Coordinates Lookup endpoint - Do a first call with `with_facets=true` to discover the `cuisine_id` UUIDs, then filter with `cuisine_ids` - When using `min_capacity`, check `capacity_filter_truncated` — if `true`, call again with `scan_offset=next_scan_offset` to check the next venues - Use `private_dining.largest_capacity` and `space_count` to match the venue to your event size #### Rate Limiting This endpoint is subject to your plan's rate limits. Each search counts as one API call regardless of the number of results returned. ## Related Endpoints ### OpenTable Restaurant Search Find restaurants by location for a date, time, and party size [View Documentation →](/docs/endpoints/opentable/search) ### Meta Coordinates Lookup Resolve a place name into latitude/longitude for the search [View Documentation →](/docs/endpoints/meta-coordinates-lookup) Request ```curl curl -X GET "https://api.stayapi.com/v1/opentable/private-dining?latitude=32.8959&longitude=-97.0671&with_facets=true&min_capacity=100" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "total": 117, "server_total": 178, "searched_count": 178, "capacity_filter_truncated": false, "next_scan_offset": null, "restaurants": [ { "id": 1331095, "name": "Soy Cowboy", "url": "https://www.opentable.com/private-dining/profile/soy-cowboy", "primary_cuisine": "Pan-Asian", "price_band": { "id": 3, "name": "$31 to $50", "currency_symbol": "$" }, "rating": 4.6, "review_count": 212, "neighborhood": "Arlington", "coordinates": { "latitude": 32.7503, "longitude": -97.0847 }, "photos": [ "https://resizer.otstatic.com/v4/photos/65907279-1?width=480&height=270" ], "is_instant_bookable": true, "space_count": 4, "private_dining": { "contact": "The Sales Event Manager", "phone": "(713) 804-3317", "email": "events@example.com", "largest_capacity": 200, "description": "Soy Cowboy offers a vibrant yet intimate setting for private events." } } ], "facets": { "cuisines": [ { "cuisine_id": "8afc7adc-de3b-439d-91f2-ce568c1a653b", "name": "American", "count": 75 } ] } } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-cuisine-id", "title": "Invalid Cuisine ID", "status": 400, "detail": "cuisine_ids must be valid UUIDs", "instance": "/v1/opentable/private-dining", "provider": "opentable", "product": "private-dining", "error_code": "INVALID_CUISINE_ID", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/availability GET # OpenTable Exact Availability API Check whether a restaurant can seat a party at one exact reservation time. The response is a single availability boolean. ## Overview Use this endpoint after selecting a restaurant from OpenTable search. Supply the restaurant ID in the path, then send the reservation date, exact time, and party size as query parameters. StayAPI handles OpenTable's internal availability data; callers do not send or receive availability tokens. ### Endpoint URL GET https://api.stayapi.com/v1/opentable/restaurants/{restaurant\_id}/availability ## Parameters | Parameter | Location | Type | Required | Description | | --- | --- | --- | --- | --- | | restaurant\_id | path | integer | Required | Positive OpenTable restaurant ID returned by restaurant search or URL-to-ID resolution. | | date | query | string | Required | Reservation date in `YYYY-MM-DD` format. It cannot be in the past. | | time | query | string | Required | Exact reservation time in 24-hour `HH:MM` format. | | party\_size | query | integer | Required | Number of diners, from 1 to 30. | #### Need alternative times? Use the Nearby Availability Slots endpoint with `preferred_time` to return OpenTable's bookable window around the requested time. ## Response Format ### Success (200 OK) ``` { "success": true, "available": true } ``` ### Response Data | Field | Type | Description | | --- | --- | --- | | success | boolean | Always `true` on a 2xx response. | | available | boolean | `true` only when the exact supplied time appears in OpenTable's current nearby availability. | #### A false result is still successful `available: false` means the exact time is not currently offered. It is a normal 200 response, not an API error. ## Error Responses Endpoint errors use RFC 7807 Problem Details with `provider: "opentable"` and `product: "availability"`. ### 400 Bad Request Invalid date or time format, or a date in the past. Error codes include `INVALID_DATE_FORMAT`, `INVALID_TIME_FORMAT`, and `PAST_DATE`. ### 422 Unprocessable Entity A required parameter is missing, `restaurant_id` is not positive, or `party_size` is outside 1-30. ### 502 Bad Gateway OpenTable did not return usable availability. The error code is `UPSTREAM_ERROR`. ``` { "type": "https://api.stayapi.com/errors/invalid-time-format", "title": "Invalid Time Format", "status": 400, "detail": "time must be in HH:MM 24-hour format", "instance": "/v1/opentable/restaurants/404046/availability", "provider": "opentable", "product": "availability", "error_code": "INVALID_TIME_FORMAT", "correlation_id": "req_abc123" } ``` ## Usage Tips - Get `restaurant_id` from Restaurant Search or [URL to Restaurant ID](/docs/endpoints/opentable/url-to-id). - Use 24-hour times such as `19:00`; do not send values such as `7pm`. - If `available` is false, call Nearby Availability Slots to offer alternatives. #### Rate Limiting Each availability check counts as one API call and is subject to your plan's rate limits. ## Related Endpoints ### Nearby Availability Slots Return the bookable times OpenTable offers around a preferred time. [View Documentation →](/docs/endpoints/opentable/availability-slots) ### Restaurant Search Find restaurants and collect the restaurant IDs used by this endpoint. [View Documentation →](/docs/endpoints/opentable/search) Request ```curl curl -X GET "https://api.stayapi.com/v1/opentable/restaurants/404046/availability?date=2026-07-15&time=19:00&party_size=2" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "available": true } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-time-format", "title": "Invalid Time Format", "status": 400, "detail": "time must be in HH:MM 24-hour format", "instance": "/v1/opentable/restaurants/404046/availability", "provider": "opentable", "product": "availability", "error_code": "INVALID_TIME_FORMAT", "correlation_id": "req_abc123" } ``` ``` { "success": true, "available": false } ``` --- Source: https://stayapi.com/docs/endpoints/opentable/availability-slots GET # OpenTable Nearby Availability Slots API Return the bookable reservation times OpenTable offers around a preferred time for one restaurant, date, and party size. ## Overview Use this endpoint when an exact time is unavailable or when you want to present nearby choices. The supplied `preferred_time` anchors OpenTable's availability window; the response does not represent every slot for the full calendar day. StayAPI removes OpenTable's internal slot metadata and returns only normalized `HH:MM` values. ### Endpoint URL GET https://api.stayapi.com/v1/opentable/restaurants/{restaurant\_id}/availability/slots ## Parameters | Parameter | Location | Type | Required | Description | | --- | --- | --- | --- | --- | | restaurant\_id | path | integer | Required | Positive OpenTable restaurant ID returned by restaurant search or URL-to-ID resolution. | | date | query | string | Required | Reservation date in `YYYY-MM-DD` format. It cannot be in the past. | | preferred\_time | query | string | Required | Preferred reservation time in 24-hour `HH:MM` format. OpenTable returns nearby options around it. | | party\_size | query | integer | Required | Number of diners, from 1 to 30. | #### Why preferred\_time is required OpenTable returns a nearby reservation window rather than full-day inventory. `preferred_time` tells it where to center that window. ## Response Format ### Success (200 OK) ``` { "success": true, "slots": ["18:30", "18:45", "19:00", "19:15", "19:30"] } ``` ### Response Data | Field | Type | Description | | --- | --- | --- | | success | boolean | Always `true` on a 2xx response. | | slots | array\ | Distinct nearby bookable times, sorted chronologically and formatted as 24-hour `HH:MM`. | #### Empty slots are not an error An empty `slots` array is a successful 200 response meaning OpenTable returned no nearby availability for that restaurant, date, preferred time, and party size. ## Error Responses Endpoint errors use RFC 7807 Problem Details with `provider: "opentable"` and `product: "availability"`. ### 400 Bad Request Invalid date or preferred-time format, or a date in the past. Error codes include `INVALID_DATE_FORMAT`, `INVALID_TIME_FORMAT`, and `PAST_DATE`. ### 422 Unprocessable Entity A required parameter is missing, `restaurant_id` is not positive, or `party_size` is outside 1-30. ### 502 Bad Gateway OpenTable did not return usable availability. The error code is `UPSTREAM_ERROR`. ``` { "type": "https://api.stayapi.com/errors/invalid-time-format", "title": "Invalid Time Format", "status": 400, "detail": "preferred_time must be in HH:MM 24-hour format", "instance": "/v1/opentable/restaurants/404046/availability/slots", "provider": "opentable", "product": "availability", "error_code": "INVALID_TIME_FORMAT", "correlation_id": "req_abc123" } ``` ## Usage Tips - Use the diner's intended time as `preferred_time`, then present the returned alternatives in order. - Do not treat this response as full-day inventory; call again with a different preferred time to inspect another part of the day. - Use the Exact Availability endpoint when your UI only needs a yes or no answer for one time. #### Rate Limiting Each nearby-slot lookup counts as one API call and is subject to your plan's rate limits. ## Related Endpoints ### Exact Availability Return a simple yes or no for one exact reservation time. [View Documentation →](/docs/endpoints/opentable/availability) ### Restaurant Search Find restaurants and collect the restaurant IDs used by this endpoint. [View Documentation →](/docs/endpoints/opentable/search) Request ```curl curl -X GET "https://api.stayapi.com/v1/opentable/restaurants/404046/availability/slots?date=2026-07-15&preferred_time=19:00&party_size=2" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "slots": ["18:30", "18:45", "19:00", "19:15", "19:30"] } ``` ``` { "success": true, "slots": [] } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-time-format", "title": "Invalid Time Format", "status": 400, "detail": "preferred_time must be in HH:MM 24-hour format", "instance": "/v1/opentable/restaurants/404046/availability/slots", "provider": "opentable", "product": "availability", "error_code": "INVALID_TIME_FORMAT", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/google-reviews GET # Google Reviews API Get Google Maps reviews for any business using their data\_id with token-based pagination. ## Overview #### Token-Based Pagination Each response includes a next\_page\_token for fetching additional reviews. Continue requesting until has\_more is false. The Google Reviews endpoint provides access to customer reviews from Google Maps. Each request returns up to 10 reviews along with a pagination token for fetching more. Use the `data_id` parameter (Google's internal identifier) to specify which business to get reviews for. ### Endpoint URL GET https://api.stayapi.com/v1/google\_reviews/reviews #### Finding data\_id Use the /search-and-review endpoint to find the data\_id for any business. It searches by name and returns the data\_id you can use for subsequent requests. `reviews[].owner_response` is a nullable string containing management reply text. `owner_response_date` is a separate nullable source date string. These are not nested objects; missing replies remain null. ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | data\_id | string | Required | Google Maps data\_id for the place (e.g., 0x80c8c430cb5147bd:0x82f2c7c5d9d10d84): two hexadecimal numbers of up to 16 digits, each starting with `0x`, joined by a colon. Anything else returns 400. | | next\_page\_token | string | Optional | **Token for fetching the next page of reviews.** Obtained from the previous response's next\_page\_token field. The token is opaque (it starts with `gt:`): pass it back unchanged, with the same `data_id` and `sort_by`. A token from an earlier version (one that does not start with `gt:`) returns 400; start again from the first page. | | sort\_by | string | Optional | Sort order for reviews. Options: most\_relevant (default), newest, highest\_rating, lowest\_rating | | hl | string | Optional | Language code for reviews (e.g., en, es, fr). Default: en | ## Response Structure ### Success Response (200 OK) ``` { "success": true, "data_id": "0x80c8c430cb5147bd:0x82f2c7c5d9d10d84", "place_name": "Bellagio Hotel & Casino", "place_address": "3600 S Las Vegas Blvd, Las Vegas, NV 89109, United States", "total_reviews": 144222, "average_rating": 4.7, "reviews": [ { "review_id": "ChdDSUhNMG9nS0VJQ0FnSURiOTlySm1RRRAB", "rating": 5.0, "text": "Amazing hotel with fantastic fountains and excellent service...", "date": "a week ago", "iso_date": "2026-10-13T18:00:00Z", "iso_date_source": "photo", "iso_date_of_last_edit": null, "photos": [ "https://lh3.googleusercontent.com/grass-cs/..." ], "reviewer": { "name": "John Smith", "profile_picture": "https://lh3.googleusercontent.com/...", "reviews_count": null, "local_guide": false }, "likes": 0, "owner_response": "Thank you for your wonderful review...", "owner_response_date": "3 days ago" } // ... up to 10 reviews per page ], "next_page_token": "gt:Ci8IARInCgoAP72F9UtFIG__EhDNB2mzUoLEeIXrHW4AAAAAGgf_Al9UtFIGGAAiAA:10", "has_more": true, "search_metadata": { "search_url": null, "datetime": "2026-10-20T14:35:42.788642", "total_time_taken": null } } ``` ### Response Fields - data\_id:Google Maps data\_id for the place - place\_name:Name of the business - place\_address:Address of the business - total\_reviews:Total number of reviews for the place on Google - average\_rating:Overall rating of the business (1-5) - reviews:Array of review objects (up to 10 per page) - reviews[].date / iso\_date:`date` is Google's relative label in the `hl` language ("a week ago") and is always present. `iso_date` is UTC and may be `null`; `iso_date_source` gives its precision (see Review Dates below). - next\_page\_token: **Pagination token** - Use this to fetch the next page of reviews. Opaque: pass it back unchanged. `null` when there are no further pages. - has\_more:Whether more reviews are available (continue pagination if true). Some places, for example a harbour or a park, return only their first 5 reviews with `has_more: false`. ### Review Dates and Reviewer Details Every review has `date`, Google's relative label. `iso_date` (UTC) depends on `iso_date_source`: - `"review"`: the exact review time (`YYYY-MM-DDTHH:MM:SSZ`), and `iso_date_of_last_edit` is set too. Available on every page, including paginated responses; best-effort, so individual reviews may instead have a photo-derived date or `null`. - `"photo"`: the upload time of the reviewer's earliest attached photo, at hour precision (`YYYY-MM-DDTHH:00:00Z`), or the day (`YYYY-MM-DD`) when only the day is known. - `null`: no date is available; `iso_date` is `null`. `iso_date_of_last_edit` is the exact time of the last edit and is set only when `iso_date_source` is `"review"`. Exact `likes`, `reviewer.reviews_count` and `reviewer.local_guide` remain available for up to 5 reviews on the first page only, independently of date availability; on other reviews these are `0`, `null` and `false`. `photos` and owner replies are filled on every page. `place_name`, `place_address`, `total_reviews` and `average_rating` are filled on the first page only; later pages return `null` or `0` for them. ## Pagination Each request returns up to 10 reviews along with a `next_page_token`. To get more reviews, include this token, unchanged, in your next request with the same `data_id` and `sort_by`. Continue until `has_more` is false or `next_page_token` is null. ``` # Fetch all reviews using pagination import requests data_id = '0x80c8c430cb5147bd:0x82f2c7c5d9d10d84' all_reviews = [] next_token = None while True: params = {'data_id': data_id, 'sort_by': 'newest'} if next_token: params['next_page_token'] = next_token response = requests.get( 'https://api.stayapi.com/v1/google_reviews/reviews', params=params, headers={'X-API-Key': 'YOUR_API_KEY'} ) data = response.json() all_reviews.extend(data['reviews']) if not data.get('has_more') or not data.get('next_page_token'): break next_token = data['next_page_token'] print(f"Fetched {len(all_reviews)} total reviews") ``` #### Pagination Tips: - •Each page returns up to 10 reviews - •Keep the same `sort_by` on every page of one pagination run - •Tokens are valid for a limited time - don't store them long-term ## Common Use Cases ### 📊 Reputation Management Monitor and analyze customer feedback across your hotel portfolio. Track sentiment trends, identify common complaints, and respond to reviews promptly. ``` # Get recent reviews to monitor feedback reviews = get_google_reviews(data_id, sort='newest') negative_reviews = [r for r in reviews if r['rating'] <= 2] # Alert management about negative reviews requiring response ``` ### 🔍 Competitive Analysis Compare review ratings and feedback between competing hotels. Identify strengths and weaknesses to improve your service offering. ### 💬 Content Enhancement Display authentic Google Reviews on your website to build trust with potential customers and improve conversion rates. ## Error Handling | Code | Type | Description | | --- | --- | --- | | 400 | INVALID\_PARAMETERS | Malformed data\_id (see the format above), or a `next_page_token` that does not start with `gt:` (from an earlier version; restart from the first page) | | 404 | NO\_RESULTS | No reviews found for the provided data\_id | | 429 | RATE\_LIMITED | Too many requests. Please retry after the specified time | | 500 | INTERNAL\_ERROR | Server error. Please try again later | | 502 | UPSTREAM\_ERROR | Error fetching data from Google Reviews | | 503 | SERVICE\_UNAVAILABLE | Google reviews are temporarily unavailable. Retry after the `Retry-After` header. | | 504 | UPSTREAM\_TIMEOUT | Google did not answer in time. Retry the request | ## Related Endpoints [ ### Google Search and Review Look up any place by name and get its first page of reviews in one request. Returns the data\_id for use with this endpoint. ](/docs/endpoints/google-search-and-review)[ ### Google Reviews Paginated Fetch up to 10 pages (about 100 reviews) for a data\_id in one request ](/docs/endpoints/google-reviews-paginated)[ ### Google Travel Search Search hotels by destination with nightly and total prices for your dates ](/docs/endpoints/google-travel/search)[ ### TripAdvisor Reviews Get comprehensive reviews from TripAdvisor ](/docs/endpoints/tripadvisor/hotel-reviews) Request ```curl curl -X GET "https://api.stayapi.com/v1/google_reviews/reviews?data_id=0x80c8c430cb5147bd:0x82f2c7c5d9d10d84&sort_by=newest" \ -H "X-API-Key: YOUR_API_KEY" # To get the next page, use the next_page_token: curl -X GET "https://api.stayapi.com/v1/google_reviews/reviews?data_id=0x80c8c430cb5147bd:0x82f2c7c5d9d10d84&sort_by=newest&next_page_token=gt%3ACi8IARInCgoAP72F9UtFIG__EhDNB2mzUoLEeIXrHW4AAAAAGgf_Al9UtFIGGAAiAA%3A10" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "data_id": "0x80c8c430cb5147bd:0x82f2c7c5d9d10d84", "place_name": "Bellagio Hotel & Casino", "place_address": "3600 S Las Vegas Blvd, Las Vegas, NV 89109, United States", "total_reviews": 144222, "average_rating": 4.7, "reviews": [ { "review_id": "ChdDSUhNMG9nS0VJQ0FnSURiOTlySm1RRRAB", "rating": 5.0, "text": "Amazing hotel with fantastic fountains. The rooms are beautiful and the staff is incredibly friendly...", "date": "a week ago", "iso_date": "2026-10-13T18:42:10Z", "iso_date_source": "review", "iso_date_of_last_edit": "2026-10-13T18:42:10Z", "photos": [], "reviewer": { "name": "John Smith", "profile_picture": "https://lh3.googleusercontent.com/...", "reviews_count": 25, "local_guide": false }, "likes": 3, "owner_response": "Thank you for your wonderful review!", "owner_response_date": "3 days ago" } ], "next_page_token": "gt:Ci8IARInCgoAP72F9UtFIG__EhDNB2mzUoLEeIXrHW4AAAAAGgf_Al9UtFIGGAAiAA:10", "has_more": true, "search_metadata": { "search_url": null, "datetime": "2026-10-20T14:35:42.788642", "total_time_taken": null } } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-parameters", "title": "Invalid Parameters", "status": 400, "detail": "data_id must be a Google Maps data_id like 0x80c8c430cb5147bd:0x82f2c7c5d9d10d84", "instance": "/v1/google_reviews/reviews", "provider": "google_reviews", "error_code": "INVALID_PARAMETERS", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/google-search-and-review GET # Google Search and Review API Look up any place on Google Maps by name and get its first page of Google reviews, plus the `data_id` you need to paginate, in one request. ## Overview #### No data\_id needed Pass a place name. The endpoint resolves it on Google, returns the first page of reviews, and hands back the data\_id so you can paginate with the Google Reviews endpoint. The Google Search and Review endpoint is the entry point to Google Maps reviews when all you have is a name. It resolves the best-matching place for your query, fetches its first page of reviews (up to 10), and returns the place identity: name, address, total review count, average rating and `data_id`. It works for any place type on Google Maps, not only hotels. Further pages come from the [Google Reviews endpoint](/docs/endpoints/google-reviews) using that `data_id`. ### Endpoint URL GET https://api.stayapi.com/v1/google\_reviews/search-and-review ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Place name, ideally with the city (e.g. "Bellagio Las Vegas", "Grand Yavuz Hotel Istanbul", "Joe's Pizza Broadway") | | location | string | Optional | Latitude,longitude to bias the lookup to that area when the name is ambiguous (e.g. "36.1069,-115.1728"). Any other format returns 400. | | sort\_by | string | Optional | Sort order for the returned reviews: most\_relevant (default), newest, highest\_rating, lowest\_rating | | hl | string | Optional | Language code for review text and relative dates. Default: en | ## Response Structure ### Success Response (200 OK) ``` { "success": true, "search_query": "Bellagio Las Vegas", "search_location": null, "data_id": "0x80c8c430cb5147bd:0x82f2c7c5d9d10d84", "place_id": "ChIJvUdRyzDEyIARhA3R2cXH8oI", "place_name": "Bellagio Hotel & Casino", "place_address": "3600 S Las Vegas Blvd, Las Vegas, NV 89109, United States", "total_reviews": 144222, "average_rating": 4.7, "reviews": [ { "review_id": "Ci9DQUlRQUNvZENodHljRjlvT25OelJFeEdaMlJ5ZEhWS2NsbExhMGRSYXpSdGNsRRAB", "rating": 5.0, "text": "I came prepared to explain myself twice. I barely needed to explain myself once.", "date": "4 hours ago", "iso_date": "2026-09-17T02:46:38Z", "iso_date_source": "review", "iso_date_of_last_edit": "2026-09-17T02:46:38Z", "photos": [], "reviewer": { "name": "Ellie Montoya", "profile_picture": "https://lh3.googleusercontent.com/a-/...", "reviews_count": 13, "local_guide": true }, "likes": 0, "owner_response": null, "owner_response_date": null } ], "next_page_token": "gt:CjEIARIpCgoAP7_LADXn ____ EhA4jslEyt_rOYahKTQAAAAAGgn92QACYJiwtg4YACIA:10", "has_more": true, "search_metadata": { "search_url": null, "datetime": "2026-10-20T14:35:40.112233", "total_time_taken": null } } ``` ### Response Fields - data\_id:Google Maps data\_id of the resolved place. Pass it to the Google Reviews endpoint to fetch further pages. - place\_id:Google Place ID (ChIJ...) for cross-referencing with other Google products. Not accepted as an input here; use data\_id. - place\_name / place\_address:Identity of the place that was matched. Check these to confirm the right place was resolved. - total\_reviews / average\_rating:Review count and star rating for the whole place, not only the returned page. - reviews:First page of reviews (up to 10). Each has rating, text (null for star-only reviews), date (Google's relative label, always present), iso\_date (UTC; may be null), iso\_date\_source and iso\_date\_of\_last\_edit, reviewer, likes, owner\_response and reviewer-attached photos. iso\_date\_source is "review" for an exact review time (best-effort for every review, including subsequent pages fetched by data\_id), "photo" for the reviewer's photo upload time (hour or day precision), or null. Exact likes and reviewer stats remain available for up to 5 reviews on the first page only. On other reviews likes is 0, reviewer.reviews\_count is null and reviewer.local\_guide is false. The [Google Reviews endpoint](/docs/endpoints/google-reviews) documents these fields in full. - next\_page\_token / has\_more:Opaque cursor for the next page (it starts with `gt:`). Send it unchanged, with data\_id and the same sort\_by, to the Google Reviews endpoint; pagination is not available on this endpoint. Some places, for example a harbour or a park, return only their first 5 reviews, with `has_more: false` and no token. ## Common Use Cases ### 🔍 Reviews From Just a Name Start from the names you already have in your CRM or spreadsheet. No Google Maps IDs to collect first. ``` # One call per property name data = search_and_review(query="Bellagio Las Vegas") print(data["place_name"], data["average_rating"], data["total_reviews"]) for review in data["reviews"]: print(review["rating"], review["text"]) ``` ### 📈 Reputation Monitoring Resolve each place once, store its data\_id, then poll the Google Reviews endpoint sorted by newest to catch new feedback. ``` // Day 0: resolve and cache const first = await searchAndReview({ query: "Bellagio Las Vegas" }); db.save({ name: first.place_name, data_id: first.data_id }); // Every day after: newest reviews by data_id const latest = await googleReviews({ data_id: first.data_id, sort_by: "newest" }); ``` ### 🍽️ Any Place Type Hotels, restaurants, bars, attractions, spas: anything with a Google Maps listing. Combine with Booking.com and TripAdvisor reviews for a cross-channel view. ``` for name in ["Bellagio Las Vegas", "Joe's Pizza Broadway", "Louvre Museum Paris"]: data = search_and_review(query=name, sort_by="newest") store(name, data["data_id"], data["reviews"]) ``` ## How It Works 1. 1 #### Resolve the place Your query (and optional location bias) is matched against Google's places and the best-matching place is selected. 2. 2 #### Fetch the first page of reviews Reviews for that place are fetched in the requested sort order and language. 3. 3 #### Return identity and reviews You get place\_name, place\_address, total\_reviews, average\_rating, data\_id and the first page of reviews in one response. 4. 4 #### Paginate by data\_id Send data\_id, next\_page\_token and the same sort\_by to the Google Reviews endpoint for the following pages, or fetch up to 10 pages at once with [Paginated Reviews](/docs/endpoints/google-reviews-paginated). ## Error Handling | Code | Type | Description | | --- | --- | --- | | 422 | VALIDATION\_ERROR | query is missing, or sort\_by is not one of the allowed values | | 404 | NO\_RESULTS | No place on Google Maps matched the query | | 404 | NO\_REVIEWS | The place was found but has no reviews yet | | 400 | INVALID\_PARAMETERS | location is not a latitude,longitude pair | | 502 | UPSTREAM\_ERROR | Error fetching data from Google | | 504 | UPSTREAM\_TIMEOUT | Google did not answer in time. Retry the request | | 503 | SERVICE\_UNAVAILABLE | Google reviews are temporarily unavailable. Retry after the `Retry-After` header | ## Pro Tips - 💡 **Include the city:**"Bellagio Las Vegas" resolves reliably; "Bellagio" alone may match a different place. Check place\_name and place\_address in the response. - 💡 **Bias with coordinates:** For chains and common names, pass location as latitude,longitude to pick the branch you mean. - 💡 **Cache the data\_id:** Resolve once, then paginate and re-poll through the Google Reviews endpoint. Do not call this endpoint on every page. - 💡 **Need a photo of the place?** This endpoint returns no property image; the photos array on each review holds reviewer-attached pictures only. For a hotel image use [Google Travel Photos](/docs/endpoints/google-travel/photos). ## Related Endpoints [ ### Google Reviews Paginate reviews by data\_id with next\_page\_token, or fetch up to 10 pages at once ](/docs/endpoints/google-reviews)[ ### Google Travel Hotel Info Hotel identity, address, contact details, Maps identifiers and labeled amenities ](/docs/endpoints/google-travel/info)[ ### Google Travel Photos Hotel photo gallery with dimensions, no dates required ](/docs/endpoints/google-travel/photos) Request ```curl curl -G "https://api.stayapi.com/v1/google_reviews/search-and-review" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "query=Bellagio Las Vegas" \ --data-urlencode "sort_by=newest" ``` Response ```json { "success": true, "search_query": "Bellagio Las Vegas", "search_location": null, "data_id": "0x80c8c430cb5147bd:0x82f2c7c5d9d10d84", "place_id": "ChIJvUdRyzDEyIARhA3R2cXH8oI", "place_name": "Bellagio Hotel & Casino", "place_address": "3600 S Las Vegas Blvd, Las Vegas, NV 89109, United States", "total_reviews": 144222, "average_rating": 4.7, "reviews": [ { "review_id": "Ci9DQUlRQUNvZENodHljRjlvT25OelJFeEdaMlJ5ZEhWS2NsbExhMGRSYXpSdGNsRRAB", "rating": 5.0, "text": "I came prepared to explain myself twice. I barely needed to explain myself once.", "date": "4 hours ago", "iso_date": "2026-09-17T02:46:38Z", "iso_date_source": "review", "iso_date_of_last_edit": "2026-09-17T02:46:38Z", "photos": [], "reviewer": { "name": "Ellie Montoya", "profile_picture": "https://lh3.googleusercontent.com/a-/...", "reviews_count": 13, "local_guide": true }, "likes": 0, "owner_response": null, "owner_response_date": null } ], "next_page_token": "gt:CjEIARIpCgoAP7_LADXn ____ EhA4jslEyt_rOYahKTQAAAAAGgn92QACYJiwtg4YACIA:10", "has_more": true, "search_metadata": { "search_url": null, "datetime": "2026-10-20T14:35:40.112233", "total_time_taken": null } } ``` ```json { "type": "https://api.stayapi.com/errors/no-results", "title": "No Results", "status": 404, "detail": "No places found for query: Xyzzy Hotel Nowhere", "instance": "/v1/google_reviews/search-and-review", "provider": "google_reviews", "error_code": "NO_RESULTS", "correlation_id": "47826aa0-b877-489a-8ff2-0282169bb76b", "query": "Xyzzy Hotel Nowhere", "location": null } ``` --- Source: https://stayapi.com/docs/endpoints/google-reviews-paginated GET # Google Reviews Paginated API Get up to 10 pages of Google Maps reviews for a data\_id in one request. ## Overview This endpoint walks the pages of the [Google Reviews endpoint](/docs/endpoints/google-reviews) for you and returns them as one list. Each page holds up to 10 reviews, so `pages=10` returns about 100 reviews. The review objects, sorting and language are the same as on the Google Reviews endpoint. #### Authentication Send your StayAPI key in the X-API-Key header. Each successful request uses one credit, whatever the number of pages, and returns JSON; failures use RFC 7807 Problem Details. ### Endpoint URL GET https://api.stayapi.com/v1/google\_reviews/reviews-paginated ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | data\_id | string | Required | Google Maps data\_id for the place (e.g., 0x80c8c430cb5147bd:0x82f2c7c5d9d10d84): two hexadecimal numbers, each starting with 0x, joined by a colon. Get it from Search & Review or Google Maps Search. Anything else returns 400. | | pages | integer | Optional | Number of pages to fetch, 1 to 10. Default: 1. Each page returns up to 10 reviews. | | sort\_by | string | Optional | Sort order: most\_relevant (default), newest, highest\_rating, lowest\_rating. | | hl | string | Optional | Language code for reviews (e.g., en, es, fr). Default: en. | ## Response fields | Field | Type | Description | | --- | --- | --- | | data\_id | string | The data\_id you sent. | | place\_name, place\_address | string or null | Name and address of the place. | | total\_reviews | integer | Total number of reviews for the place on Google. | | average\_rating | number or null | Overall rating of the place (1-5). | | reviews | array | Reviews from every fetched page, in order. Same review object as the Google Reviews endpoint (rating, text, date, iso\_date, iso\_date\_source, photos, reviewer, likes, owner\_response). | | total\_fetched\_reviews | integer | Number of reviews in this response. | | pages\_requested | integer | The pages value you sent. | | pages\_fetched | integer | Pages actually returned. Lower than pages\_requested when the place has no more reviews or a later page was unavailable. | | has\_more | boolean | true when more reviews are available after the last fetched page. | | next\_page\_token | string or null | Opaque token (starts with gt:) for the next page. Pass it unchanged to the Google Reviews endpoint with the same data\_id, sort\_by and hl. null when there are no further pages. | | search\_metadata | object | Request timestamp (datetime). | Some places, for example a harbour or a park, have only their first 5 reviews available; they return one page with `has_more: false`. Exact `likes`, `reviewer.reviews_count` and `reviewer.local_guide` are filled for up to 5 reviews on the first page only, as on the Google Reviews endpoint. ## More than 10 pages While `has_more` is true, continue with `GET /v1/google_reviews/reviews`: send the same `data_id`, `sort_by` and `hl` plus the returned `next_page_token`, one page per request. See [Google Reviews pagination](/docs/endpoints/google-reviews). ## Error Handling | Code | Type | Description | | --- | --- | --- | | 400 | INVALID\_PARAMETERS | Malformed data\_id (see the format above). | | 404 | NO\_RESULTS | No reviews found for the provided data\_id. | | 422 | VALIDATION\_ERROR | Missing data\_id, pages outside 1-10, or an unknown sort\_by. | | 500 | INTERNAL\_ERROR | Server error. Please try again later. | | 502 | UPSTREAM\_ERROR | Error fetching the first page from Google. | | 503 | SERVICE\_UNAVAILABLE | Google reviews are temporarily unavailable. Retry after the Retry-After header. | | 504 | UPSTREAM\_TIMEOUT, GATEWAY\_TIMEOUT | Google did not answer in time. Retry the request. | ## Related Endpoints [ ### Google Reviews One page of reviews per request; continue here with next\_page\_token. ](/docs/endpoints/google-reviews)[ ### Google Search and Review Look up any place by name and get its data\_id plus the first page of reviews. ](/docs/endpoints/google-search-and-review) Request ```curl curl -X GET "https://api.stayapi.com/v1/google_reviews/reviews-paginated?data_id=0x80c8c430cb5147bd:0x82f2c7c5d9d10d84&pages=3&sort_by=newest" \ -H "X-API-Key: YOUR_API_KEY" ``` Response ```json { "success": true, "data_id": "0x80c8c430cb5147bd:0x82f2c7c5d9d10d84", "place_name": "Bellagio Hotel & Casino", "place_address": "3600 S Las Vegas Blvd, Las Vegas, NV 89109, United States", "total_reviews": 144222, "average_rating": 4.7, "reviews": [ { "review_id": "ChdDSUhNMG9nS0VJQ0FnSURiOTlySm1RRRAB", "rating": 5.0, "text": "Amazing hotel with fantastic fountains. The rooms are beautiful and the staff is incredibly friendly...", "date": "a week ago", "iso_date": "2026-10-13T18:42:10Z", "iso_date_source": "review", "iso_date_of_last_edit": "2026-10-13T18:42:10Z", "photos": [], "reviewer": { "name": "John Smith", "profile_picture": "https://lh3.googleusercontent.com/...", "reviews_count": 25, "local_guide": false }, "likes": 3, "owner_response": "Thank you for your wonderful review!", "owner_response_date": "3 days ago" } ], "total_fetched_reviews": 30, "pages_requested": 3, "pages_fetched": 3, "has_more": true, "next_page_token": "gt:Ci8IARInCgoAP72F9UtFIG__EhDNB2mzUoLEeIXrHW4AAAAAGgf_Al9UtFIGGAAiAA:30", "search_metadata": { "search_url": null, "datetime": "2026-12-02T10:15:42.788642", "total_time_taken": null } } ``` ```json { "type": "https://api.stayapi.com/errors/invalid-parameters", "title": "Invalid Parameters", "status": 400, "detail": "data_id must be a Google Maps data_id like 0x80c8c430cb5147bd:0x82f2c7c5d9d10d84", "instance": "/v1/google_reviews/reviews-paginated", "provider": "google_reviews", "error_code": "INVALID_PARAMETERS", "correlation_id": "req_abc123" } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/resolve GET # Google Travel Resolve API Resolve a named hotel once, then reuse its durable token across Google Travel. ## Overview Turn a hotel name and city into Google Travel entity\_token candidates for property-level requests. #### Contract note Pick the best place\_name match when Google returns multiple candidates. Cache its entity\_token for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby calls. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/resolve ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Hotel name plus city, for example Barceló Fortina Sliema Malta. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | success | boolean | Whether the resolver completed successfully. | | query | string | The submitted hotel query. | | results | array | Candidate matches with place\_name and the entity\_token used by property endpoints. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/resolve" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "query=Barcelo Fortina Sliema Malta" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "query": "Barcelo Fortina Sliema Malta", "results": [ { "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "place_name": "Barceló Fortina Malta" } ] } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/search GET # Google Travel Search API Find hotel cards by destination or query and get tokens for property drilldowns. ## Overview Search Google Travel by free text, dates, occupancy, currency, and Google's native guest-rating thresholds. #### Contract note Supply check\_in and check\_out together in YYYY-MM-DD format. Check-in must be today or later and check-out must be after check-in. Pages can overlap slightly, so de-duplicate results by entity\_token. Use entity\_token, not hotel\_id, for follow-up calls. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Free-text search, for example hotels in Lisbon. | | check\_in | date | Optional | Check-in date (YYYY-MM-DD). Must be today or later and supplied with check\_out. | | check\_out | date | Optional | Check-out date (YYYY-MM-DD). Must be after check\_in and supplied with it. | | adults | integer | Optional | Number of adults, 1 to 10. Default: 2. | | min\_rating | number | Optional | Google guest-rating threshold: 3.5, 4.0, or 4.5. | | currency | string | Optional | ISO 4217 currency code. Default: USD. | | page | integer | Optional | 1-indexed results page. Default: 1. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | results | array | About 20 hotel cards per page. Each card has name, entity\_token, hotel\_id, rating, review\_count, hotel\_class, price (nightly), total\_price (whole stay), latitude and longitude, description, photo and photos, amenities (English labels), check\_in\_time / check\_out\_time, deal, location\_rating, website, and feature\_id. Fields Google does not show for a card are null or empty. | | total\_count | integer|null | Google's total number of results for the query. | | page / has\_more | integer / boolean | Pagination state. An empty page or has\_more: false marks the end. | | check\_in / check\_out / adults | mixed | Normalized search context used by Google Travel. | | min\_rating / currency | number / string | Applied rating threshold and money currency. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/search" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "query=Phuket" \ --data-urlencode "check_in=2026-11-17" \ --data-urlencode "check_out=2026-11-19" \ --data-urlencode "adults=2" \ --data-urlencode "currency=USD" \ --data-urlencode "page=1" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "query": "Phuket", "check_in": "2026-11-17", "check_out": "2026-11-19", "adults": 2, "min_rating": null, "currency": "USD", "page": 1, "has_more": true, "total_count": 659, "results": [ { "name": "Novotel Phuket City Phokeethra", "entity_token": "ChkIkLXQw8vq4LAEGg0vZy8xMWNucGtzNWx5EAE", "hotel_id": "14030998222986703608", "rating": 4.6, "review_count": 2282, "hotel_class": { "label": "5-star hotel", "stars": 5 }, "price": { "formatted": "$121", "value": 121.27267 }, "total_price": { "formatted": "$243", "value": 243.0 }, "latitude": 7.8790511, "longitude": 98.3949927, "description": "Sleek quarters in a refined hotel offering a restaurant, 2 bars & an outdoor pool, plus sea views.", "photo": "https://lh3.googleusercontent.com/grass-cs/AABkmLdWr_GQNaDiiKK0On7YEdPOu0Mo5l-YU9bUEELEft9Fz8peeA86yEhskfjQvE3xzOLyqptY-zElmpmFd7X0Uq5SMxU_ZGkhi4O9O2UJQGg-VLtqHxRfSv2g2vFWpC1J1-lhnQChMYw8kDrx=s150-w92-h150-n-k-no", "feature_id": "0x305031ff3fc9358b:0x4618354b8741a90", "photos": [ "https://lh3.googleusercontent.com/grass-cs/AABkmLdWr_GQNaDiiKK0On7YEdPOu0Mo5l-YU9bUEELEft9Fz8peeA86yEhskfjQvE3xzOLyqptY-zElmpmFd7X0Uq5SMxU_ZGkhi4O9O2UJQGg-VLtqHxRfSv2g2vFWpC1J1-lhnQChMYw8kDrx=s287-w287-h192-n-k-no-v1" ], "amenities": [ "Breakfast ($)", "Free Wi-Fi", "Free parking", "Outdoor pool", "Air conditioning", "Fitness center" ], "check_in_time": "3:00 PM", "check_out_time": "12:00 PM", "deal": null, "location_rating": 4.2, "website": "https://all.accor.com/lien_externe.svlt?goto=fiche_hotel&code_hotel=9932&merchantid=seo-maps-TH-9932&sourceid=aw-cen&utm_medium=seo%20maps&utm_source=google%20Maps&utm_campaign=seo%20maps" } ] } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/summary GET # Google Travel Review Summary API Pull the review roll-up Google Travel shows for one hotel. ## Overview Get a hotel's aggregate rating, review count, star histogram, topic sentiment, and review-source breakdown. #### Contract note Google Travel does not publish 1 to 5 category ratings here. Topics carry positive and negative mention counts plus signed sentiment from -1 to 1. A hotel Google shows no review summary for returns 404: no reviews yet, reviews hidden, or a rating made only of partner-site reviews (most vacation rentals). ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/summary ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | entity\_token | string | Required | Opaque Google Travel token returned by Resolve, Search, or Similar. Tokens can be short or long (for example, a short token is CgoI0PjV-Zzk1JpgEAE). Use this token, not hotel\_id, for property drilldowns. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | average\_rating / total\_reviews | number / integer | Overall guest rating and review volume. | | histogram | array | Counts and percentages for each star value. | | topics | array | Topic labels, mention counts, and signed sentiment. | | sources | array | Review sources. review\_count is the partner site's number of reviews of this hotel; null for Google and when the site shows none. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/summary" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "entity_token=ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "place_name": "Barceló Fortina Malta", "average_rating": 4.4, "total_reviews": 526, "histogram": [ { "stars": 5, "count": 380, "percent": 74 }, { "stars": 4, "count": 62, "percent": 11 } ], "topics": [ { "category": "Service", "label": "Service", "mentions": 118, "positive": 88, "negative": 25, "sentiment": 0.3 } ], "sources": [ { "name": "Google", "review_count": null }, { "name": "Trip.com", "review_count": 84 } ] } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/info GET # Google Travel Hotel Info API Fetch the full identity and location record for one hotel. ## Overview Get Google Travel property identity, class, coordinates, address, contact details, descriptions, website, location score, Maps identifiers, and labeled amenities. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/info ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | entity\_token | string | Required | Opaque Google Travel token returned by Resolve, Search, or Similar. Tokens can be short or long (for example, a short token is CgoI0PjV-Zzk1JpgEAE). Use this token, not hotel\_id, for property drilldowns. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | hotel\_id / place\_name | string | Google hotel identifier and display name. | | hotel\_class | object | Published star-class label and numeric stars. | | latitude / longitude / address | mixed | Property coordinates and postal address. | | phone / phone\_link / check\_in / check\_out / website | string|null | Published contact and arrival details; phone\_link is a tel: link. | | description / neighborhood\_description | string|null | Google's hotel description (paragraphs separated by newlines) and surrounding-area blurb, when available. | | location\_rating | number|null | Google's location score, 0 to 5. | | amenities / excluded\_amenities | array | Available amenities and amenities Google lists as absent, as English labels. | | amenity\_groups | array | The amenities by section: title plus items with name, note (free, extra charge, 24 hour, or daily; null otherwise), and available. | | eco\_certified | boolean|null | Google's eco-certified flag; null when Google has no sustainability data. | | localities / feature\_id / google\_maps\_place\_id | mixed | Google locality and Maps identifiers. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/info" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "entity_token=ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "hotel_id": "8049280470908318103", "place_name": "Barceló Fortina Malta", "hotel_class": { "label": "5-star hotel", "stars": 5 }, "latitude": 35.9071922, "longitude": 14.5092363, "address": "Tigné Seafront, Tas-Sliema, Malta", "phone": "+356 2605 0000", "phone_link": "tel:+35626050000", "check_in": "3:00 PM", "check_out": "12:00 PM", "website": "https://www.barcelo.com/en-gb/barcelo-fortina-malta/?utm_source=google&utm_medium=organic&utm_campaign=my_business&utm_content=42327", "feature_id": "0x130e45582a65cd61:0x3bc5a1301b046a7a", "google_maps_place_id": "ChIJYc1lKlhFDhMRemoEGzChxTs", "location_rating": 4.4, "amenities": [ "Wi-Fi", "Wi-Fi in public areas", "Public internet workstation", "Restaurant", "Bar", "Buffet dinner" ], "excluded_amenities": [ "Hot tub", "Pet-friendly" ], "amenity_groups": [ { "title": "Internet", "items": [ { "name": "Wi-Fi", "note": "free", "available": true }, { "name": "Wi-Fi in public areas", "note": null, "available": true } ] } ], "eco_certified": true } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/photos GET # Google Travel Photos API Pull the published image gallery for one hotel. ## Overview Get a de-duplicated Google Travel hero and gallery photo set with dimensions and available caption highlights. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/photos ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | entity\_token | string | Required | Opaque Google Travel token returned by Resolve, Search, or Similar. Tokens can be short or long (for example, a short token is CgoI0PjV-Zzk1JpgEAE). Use this token, not hotel\_id, for property drilldowns. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | count | integer | Number of de-duplicated photos returned. | | photos | array | HTTPS image URLs with width, height, photo\_id, and optional caption. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/photos" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "entity_token=ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "count": 22, "photos": [ { "url": "https://lh3.googleusercontent.com/gps-cs-s/example=s287-w287-h192-k-no", "width": 287, "height": 192, "photo_id": "CIHM0ogKEICAgICexample", "caption": "Panoramic views of the Mediterranean Sea and Valletta" } ] } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/prices GET # Google Travel Prices API Pull a date-specific Google Travel rate and booking partners in one currency. ## Overview Get Google's nightly price, usual-price band, and partner booking offers for one hotel and stay. #### Contract note Supply check\_in and check\_out together in YYYY-MM-DD format to target an explicit stay. Check-in must be today or later and check-out must be after check-in; omit both to let Google choose defaults. price\_range.typical can fall below low or above high, and a hotel without a bookable rate returns 404. For room types, cancellation terms, and breakfast per rate, use Rooms with the same parameters. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/prices ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | entity\_token | string | Required | Opaque Google Travel token returned by Resolve, Search, or Similar. Tokens can be short or long (for example, a short token is CgoI0PjV-Zzk1JpgEAE). Use this token, not hotel\_id, for property drilldowns. | | check\_in | date | Optional | Check-in date (YYYY-MM-DD). Must be today or later and supplied with check\_out. | | check\_out | date | Optional | Check-out date (YYYY-MM-DD). Must be after check\_in and supplied with it. | | adults | integer | Optional | Number of adults, 1 to 10. Default: 2. | | currency | string | Optional | ISO 4217 code shaping every money field. Default: USD. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | check\_in / check\_out | date | Requested stay dates, or Google's selected defaults when omitted. | | currency / price | mixed | Requested currency and current nightly price. | | price\_range | object | Low, typical, and high price-band values. | | offers | array | Booking partner, redirect link, and displayed price. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/prices" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "entity_token=ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE" \ --data-urlencode "check_in=2026-10-10" \ --data-urlencode "check_out=2026-10-13" \ --data-urlencode "adults=2" \ --data-urlencode "currency=EUR" \ --data-urlencode "hl=en" \ --data-urlencode "gl=mt" ``` Response ```json { "success": true, "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "check_in": "2026-10-10", "check_out": "2026-10-13", "currency": "EUR", "price": { "formatted": "€269", "value": 269.0 }, "price_range": { "low": 232.0, "typical": 269.0, "high": 278.0 }, "offers": [ { "partner": "Barcelo.com", "booking_link": "https://www.google.com/travel/clk?pc=example", "price": "€256" } ] } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/rooms GET # Google Travel Rooms API See which rooms each booking site sells for a stay, with cancellation terms and breakfast per rate. ## Overview Get room-level offers per booking site for one hotel and stay: room names, photos, bed and view features, and per rate the nightly and whole-stay price, free cancellation, and breakfast. #### Contract note Same parameters, validation, and default dates as Prices: supply check\_in and check\_out together in YYYY-MM-DD format, check-in today or later and check-out after check-in, or omit both to let Google choose. Google shows room detail only for booking sites with a sponsored listing on the hotel, usually a few, so Prices lists more sites than Rooms. A hotel with no bookable rate, or no room-level offers for the stay (vacation rentals have none), returns 404. No booking links are returned; use the partner's offer in Prices for a link. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/rooms ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | entity\_token | string | Required | Opaque Google Travel token returned by Resolve, Search, or Similar. Tokens can be short or long (for example, a short token is CgoI0PjV-Zzk1JpgEAE). Use this token, not hotel\_id, for property drilldowns. | | check\_in | date | Optional | Check-in date (YYYY-MM-DD). Must be today or later and supplied with check\_out. | | check\_out | date | Optional | Check-out date (YYYY-MM-DD). Must be after check\_in and supplied with it. | | adults | integer | Optional | Number of adults, 1 to 10. Default: 2. | | currency | string | Optional | ISO 4217 code shaping every money field. Default: USD. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | check\_in / check\_out / currency | mixed | Requested stay dates (or Google's defaults when omitted) and the money currency. | | partners | array | Booking sites with room-level offers: name, logo, official (true for the hotel's own website), perks, and rooms. | | partners[].rooms | array | Room types as that site names them, with photos and features (beds, occupancy, view). Rooms are not matched across sites. | | partners[].rooms[].rates | array | Per rate: price (nightly) and total\_price (whole stay) as formatted and value, free\_cancellation, cancellation\_policy (Google's text), free\_cancellation\_until (ISO date, null when the year is ambiguous or the text is not English), and breakfast\_included. | | search\_metadata.provider | string | Always google\_travel. | ## Errors Errors use RFC 7807 Problem Details (`application/problem+json`) with an `error_code`. Successful responses are always 2xx. | Status | error\_code | When | | --- | --- | --- | | 400 | INVALID\_PARAMETERS | Invalid stay dates: only one of check\_in and check\_out, check-in before today, or check-out not after check-in. | | 404 | NO\_RESULTS | No bookable rate, or no room-level offers for the stay. | | 422 | VALIDATION\_ERROR | entity\_token is missing, or adults is outside 1 to 10. | | 502 | SCHEMA\_DRIFT / UPSTREAM\_ERROR | Google's answer could not be read. Retry later. | | 503 | SERVICE\_UNAVAILABLE | Temporarily unavailable. Honour the Retry-After header. | | 504 | UPSTREAM\_TIMEOUT | Google did not answer in time. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/rooms" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "entity_token=ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE" \ --data-urlencode "check_in=2026-11-10" \ --data-urlencode "check_out=2026-11-12" \ --data-urlencode "adults=2" \ --data-urlencode "currency=USD" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "check_in": "2026-11-10", "check_out": "2026-11-12", "currency": "USD", "partners": [ { "name": "Booking.com", "logo": "https://www.gstatic.com/travel-hotels/branding/icon_184.png", "official": false, "perks": [ "Read Real Guest Reviews", "24/7 Customer service" ], "rooms": [ { "name": "Superior Double or Twin Room", "photos": [ "https://lh3.googleusercontent.com/hrppk/example" ], "features": [ "1 double bed", "Balcony" ], "rates": [ { "price": { "formatted": "$178", "value": 178.0 }, "total_price": { "formatted": "$355", "value": 355.0 }, "free_cancellation": false, "cancellation_policy": null, "free_cancellation_until": null, "breakfast_included": false }, { "price": { "formatted": "$197", "value": 197.0 }, "total_price": { "formatted": "$394", "value": 394.0 }, "free_cancellation": true, "cancellation_policy": "Free cancellation until Nov 9", "free_cancellation_until": "2026-11-09", "breakfast_included": false } ] } ] } ], "search_metadata": { "provider": "google_travel" } } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/similar GET # Google Travel Similar Hotels API Build a nearby comparison set around one Google Travel property. ## Overview Get similar hotels and nearby vacation rentals, including a reusable entity\_token for each result. #### Contract note Every neighboring hotel or rental can carry its own entity\_token. Feed that token into any property-level Google Travel endpoint to pivot. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/similar ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | entity\_token | string | Required | Opaque Google Travel token returned by Resolve, Search, or Similar. Tokens can be short or long (for example, a short token is CgoI0PjV-Zzk1JpgEAE). Use this token, not hotel\_id, for property drilldowns. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | similar\_hotels | array | Nearby hotel matches with token, rating, class, distance, price, comparison copy, and photo. | | vacation\_rentals | array | Nearby rentals with identity, token, and available price. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Nearby Places](/docs/endpoints/google-travel/nearby) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/similar" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "entity_token=ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE" \ --data-urlencode "hl=en" \ --data-urlencode "gl=mt" ``` Response ```json { "success": true, "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "similar_hotels": [ { "name": "Grand Hotel Excelsior Malta", "entity_token": "ChcIzuWhytbGxuwsGgsvZy8xdmY1NHI0ehAB", "rating": 4.4, "review_count": 4595, "distance": "1.2 km away", "price": { "formatted": "$266", "value": 265.54 } } ], "vacation_rentals": [ { "name": "Seaside Bliss, Sliema", "entity_token": "CiQIo5WPjrHdExample", "price": { "formatted": "$486", "value": 485.73 } } ] } ``` --- Source: https://stayapi.com/docs/endpoints/google-travel/nearby GET # Google Travel Nearby Places API Pull the points of interest Google Travel associates with one hotel. ## Overview Get attractions, transit, airports, and restaurants near a hotel with ratings, coordinates, and travel times. ### Endpoint URL GET https://api.stayapi.com/v1/google\_travel/nearby ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | entity\_token | string | Required | Opaque Google Travel token returned by Resolve, Search, or Similar. Tokens can be short or long (for example, a short token is CgoI0PjV-Zzk1JpgEAE). Use this token, not hotel\_id, for property drilldowns. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | groups | array | Points of interest grouped by category and display label. | | groups[].pois | array | Places with rating, review count, description, coordinates, and drive or walk time. | ## Identifier workflow #### Resolve once, reuse the token Resolve a hotel name or run Search to get an entity\_token. Cache that token and use it for Summary, Info, Photos, Prices, Rooms, Similar, and Nearby requests. ## Related Google Travel endpoints [Google Travel Resolve](/docs/endpoints/google-travel/resolve)[Google Travel Search](/docs/endpoints/google-travel/search)[Google Travel Review Summary](/docs/endpoints/google-travel/summary)[Google Travel Hotel Info](/docs/endpoints/google-travel/info)[Google Travel Photos](/docs/endpoints/google-travel/photos)[Google Travel Prices](/docs/endpoints/google-travel/prices)[Google Travel Rooms](/docs/endpoints/google-travel/rooms)[Google Travel Similar Hotels](/docs/endpoints/google-travel/similar) Request ```curl curl -G "https://api.stayapi.com/v1/google_travel/nearby" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "entity_token=ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE" \ --data-urlencode "hl=en" \ --data-urlencode "gl=mt" ``` Response ```json { "success": true, "entity_token": "ChkI-tSR2IGm6OI7Gg0vZy8xMWg4NThxeGJ0EAE", "groups": [ { "category": "nearby_poi", "label": "Points of interest", "pois": [ { "name": "St. John's Co-Cathedral", "rating": 4.8, "review_count": 25044, "description": "Elaborately adorned place of worship, completed in 1578.", "latitude": 35.8975921, "longitude": 14.5124951, "drive_time": "15 min", "walk_time": null } ] } ] } ``` --- Source: https://stayapi.com/docs/endpoints/google-maps/search GET # Google Maps Search API Find places by category and area or by name, and get a data\_id for each one. ## Overview Search Google Maps for places of any kind (restaurants, cafes, attractions, shops, hotels) by free text, 20 ranked places per page. #### Contract note Sponsored results are not returned. position is the rank across pages (page 2 starts at 21). has\_more is true when the page was full; a page past the end returns results: [] and has\_more: false, and page 1 with no match returns 404. Pages can overlap slightly (Google re-ranks between calls), so de-duplicate results by data\_id if you merge pages. open\_state is Google's live status line at request time, and hours\_today is today's hours in the place's local time. ### Endpoint URL GET https://api.stayapi.com/v1/google\_maps/search ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | query | string | Required | Free text: a category and area (pizza near Times Square) or a name (Eiffel Tower). | | location | string | Optional | lat,lng to search around, a city-sized area (for example 40.758,-73.9855). Without it the query text decides the area. Invalid values return 400. | | page | integer | Optional | 1 to 10. Default: 1. 20 results per page. | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | query / location / page | mixed | The submitted search and page. | | has\_more | boolean | True when this page was full and Google likely has more. | | results | array | Up to 20 places, each with position, data\_id, place\_id, name, categories, address, latitude, longitude, rating, reviews\_count, phone, website, hours\_today, open\_state, and thumbnail. Fields Google does not show are null (lists are []). | | results[].data\_id | string | Google Maps data\_id (0x…:0x…) for Place details or Google reviews. | | search\_metadata.provider | string | Always google\_maps. | ## Errors Errors use RFC 7807 Problem Details (`application/problem+json`) with an `error_code`. Successful responses are always 2xx. | Status | error\_code | When | | --- | --- | --- | | 400 | INVALID\_PARAMETERS | data\_id is not a Google Maps data\_id, query is empty, or location is not lat,lng. | | 404 | NO\_RESULTS | Unknown data\_id, or no place matches the query (page 1). | | 422 | VALIDATION\_ERROR | A required parameter is missing, or page is outside 1 to 10. | | 502 | SCHEMA\_DRIFT / UPSTREAM\_ERROR | Google's answer could not be read. Retry later. | | 503 | SERVICE\_UNAVAILABLE | Temporarily unavailable. Honour the Retry-After header. | | 504 | GATEWAY\_TIMEOUT / UPSTREAM\_TIMEOUT | Google did not answer in time. | ## Identifier workflow #### Search once, reuse the data\_id Every Search result carries a data\_id. Pass it to Place for details, or to the Google Reviews endpoint (/v1/google\_reviews/reviews) for the place's reviews. ## Related Google Maps endpoints [Google Maps Place](/docs/endpoints/google-maps/place) Request ```curl curl -G "https://api.stayapi.com/v1/google_maps/search" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "query=pizza near Times Square" \ --data-urlencode "location=40.758,-73.9855" \ --data-urlencode "page=1" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "query": "pizza near Times Square", "location": "40.758,-73.9855", "page": 1, "has_more": true, "results": [ { "position": 1, "data_id": "0x89c259ab3c1ef289:0x3b67a41175949f55", "place_id": "ChIJifIePKtZwokRVZ-UdRGkZzs", "name": "Joe's Pizza Broadway", "categories": [ "Pizza restaurant", "Pizza delivery", "Restaurant" ], "address": "1435 Broadway, New York, NY 10018", "latitude": 40.7546795, "longitude": -73.9870291, "rating": 4.4, "reviews_count": 27370, "phone": "(646) 559-4878", "website": "https://www.joespizzanyc.com/", "hours_today": "10 AM–3 AM", "open_state": "Closed · Opens 10 AM", "thumbnail": "https://lh3.googleusercontent.com/grass-cs/example=w131-h86-k-no" } ], "search_metadata": { "datetime": "2026-10-21T09:56:28", "provider": "google_maps" } } ``` --- Source: https://stayapi.com/docs/endpoints/google-maps/place GET # Google Maps Place API Pull a full Google Maps place profile by data\_id, for any kind of place. ## Overview Get Google Maps details for one place (restaurant, attraction, hotel, shop) by data\_id: identity, categories, address, contact, rating histogram, review topics, hours, attributes, order links, photos, places inside, and hotel extras. #### Contract note Fields Google has no data for are null (lists are []). Reviews are not part of this response: use /v1/google\_reviews/reviews with the same data\_id. A Google place\_id (ChIJ…) is not accepted as input. ### Endpoint URL GET https://api.stayapi.com/v1/google\_maps/place ## Parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | data\_id | string | Required | Google Maps data\_id (0x…:0x…), for example 0x89c259ab3c1ef289:0x3b67a41175949f55. Get it from Search, from /v1/google\_reviews/search-and-review, or from a Google Maps URL (the part after !1s). | | hl | string | Optional | UI language code. Default: en. | | gl | string | Optional | Region or country code. Default: us. | ## Response schema | Field | Type | Description | | --- | --- | --- | | data\_id / place\_id / kg\_id / maps\_url | string | Google Maps data\_id, Google place id (ChIJ…), Knowledge Graph id (/g/… or /m/…), and a Google Maps link. | | name / categories / summary / description | mixed | Name, categories (primary first), Google's short tagline, and its editorial summary. | | address / address\_components / neighborhood | mixed | Display address; street, locality, region, postal code, and ISO 3166-1 alpha-2 country (any part may be null); neighborhood. | | latitude / longitude / timezone | mixed | Coordinates and IANA time zone. | | phone / phone\_international / phone\_e164 / website | string | Phone in local, international, and E.164 formats, and the website. | | rating / reviews\_count / rating\_histogram | mixed | Average rating, review count, and review counts for 1 to 5 stars. | | review\_topics | array | Google's "people often mention" topics, with the number of reviews mentioning each. | | open\_state / hours / other\_hours | mixed | Live status line; the next 7 days of hours, today first, with each day's date; and separate hours for services such as Delivery or Takeout. | | attributes | array | Attribute groups (for example Accessibility). available: false means Google lists the attribute as absent. | | action\_links | array | Order or reservation actions. label is set for Google's own button, provider for a partner link. | | photos | array | Photos embedded in the place page (usually a few): photo\_id, url sized to fit 1024×768, and the original width and height. | | owner\_name | string | The verified owner's display name. | | places\_inside | array | Places inside this one (a hotel's restaurants, a tower's brasserie), each with its own data\_id. | | hotel | object|null | Hotels only: hotel\_class, check\_in and check\_out local times, amenities ([{name, available}]), and a long description. null for other places. | | search\_metadata.provider | string | Always google\_maps. | ## Errors Errors use RFC 7807 Problem Details (`application/problem+json`) with an `error_code`. Successful responses are always 2xx. | Status | error\_code | When | | --- | --- | --- | | 400 | INVALID\_PARAMETERS | data\_id is not a Google Maps data\_id, query is empty, or location is not lat,lng. | | 404 | NO\_RESULTS | Unknown data\_id, or no place matches the query (page 1). | | 422 | VALIDATION\_ERROR | A required parameter is missing, or page is outside 1 to 10. | | 502 | SCHEMA\_DRIFT / UPSTREAM\_ERROR | Google's answer could not be read. Retry later. | | 503 | SERVICE\_UNAVAILABLE | Temporarily unavailable. Honour the Retry-After header. | | 504 | GATEWAY\_TIMEOUT / UPSTREAM\_TIMEOUT | Google did not answer in time. | ## Identifier workflow #### Search once, reuse the data\_id Every Search result carries a data\_id. Pass it to Place for details, or to the Google Reviews endpoint (/v1/google\_reviews/reviews) for the place's reviews. ## Related Google Maps endpoints [Google Maps Search](/docs/endpoints/google-maps/search) Request ```curl curl -G "https://api.stayapi.com/v1/google_maps/place" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "data_id=0x89c259ab3c1ef289:0x3b67a41175949f55" \ --data-urlencode "hl=en" \ --data-urlencode "gl=us" ``` Response ```json { "success": true, "data_id": "0x89c259ab3c1ef289:0x3b67a41175949f55", "place_id": "ChIJifIePKtZwokRVZ-UdRGkZzs", "kg_id": "/g/11bw4ws2mt", "name": "Joe's Pizza Broadway", "maps_url": "https://www.google.com/maps/place/Joe's+Pizza+Broadway,+1435+Broadway,+New+York,+NY+10018/@40.7546795,-73.9870291,3022a,13.1y/data=!4m2!3m1!1s0x89c259ab3c1ef289:0x3b67a41175949f55", "categories": [ "Pizza restaurant", "Pizza delivery", "Restaurant" ], "summary": "Classic NYC slice shop", "description": "Modern outpost of a longtime counter-serve pizza joint prepping New York-style slices and pies.", "address": "1435 Broadway, New York, NY 10018", "address_components": { "street": "1435 Broadway", "locality": "New York", "region": "New York", "postal_code": "10018", "country_code": "US" }, "neighborhood": "Manhattan", "latitude": 40.7546795, "longitude": -73.9870291, "timezone": "America/New_York", "phone": "(646) 559-4878", "phone_international": "+1 646-559-4878", "phone_e164": "+16465594878", "website": "https://www.joespizzanyc.com/", "rating": 4.4, "reviews_count": 27370, "rating_histogram": [ { "stars": 1, "count": 856 }, { "stars": 2, "count": 681 }, { "stars": 3, "count": 2291 }, { "stars": 4, "count": 5282 }, { "stars": 5, "count": 18260 } ], "review_topics": [ { "label": "ny pizza", "mentions": 691 }, { "label": "long line", "mentions": 1744 } ], "open_state": "Closed · Opens 10 AM", "hours": [ { "day": "Wednesday", "date": "2026-10-21", "hours": [ "10 AM–3 AM" ] }, { "day": "Thursday", "date": "2026-10-22", "hours": [ "10 AM–4 AM" ] } ], "other_hours": [ { "type": "Delivery", "hours": [ { "day": "Wednesday", "date": "2026-10-21", "hours": [ "10 AM–3 AM" ] } ] } ], "attributes": [ { "group": "Accessibility", "items": [ { "name": "Wheelchair accessible entrance", "available": true }, { "name": "Wheelchair accessible parking lot", "available": false } ] } ], "action_links": [ { "label": "Order online", "provider": null, "url": "https://www.google.com/searchviewer/example" }, { "label": null, "provider": "fooddiscoveryapp.com", "url": "https://www.fooddiscoveryapp.com/new-york-city/joes-pizza" } ], "photos": [ { "photo_id": "CIABIhBtYzZdDxqjOoB16q9nhwvA", "url": "https://lh3.googleusercontent.com/grass-cs/example=w1024-h768-k-no", "width": 3024, "height": 4032 } ], "owner_name": "Joe's Pizza Broadway", "places_inside": [], "hotel": null, "search_metadata": { "datetime": "2026-10-21T09:56:26", "provider": "google_maps" } } ```