Skip to content
Docs

ZenHotels rooms

ZenHotels: every room and rate at one hotel for one stay.

POST/v1/ota/zenhotels
12 creditsTry it

Each rate's total is the stay for every room with the taxes the rate shows (VAT, often city and occupancy taxes). Taxes paid at the hotel (a resort fee, a city tax) are in taxes_at_hotel, sometimes in the hotel's own currency; total_with_hotel_taxes adds them when they are in the stay's currency, else it is null. A hotel with no room for the stay is availability: sold_out; dates ZenHotels does not sell yet (about a year out), past dates and stays over 30 nights are a 422.

Name the hotel by its ZenHotels url, its slug (hotel), or name (+ city), looked up in the site's search box: resolved says which hotel was used.

Request

POSThttps://api.scrapercompany.com/v1/ota/zenhotels

Authenticate with your API key in the x-api-key header (see Authentication).

Run this request on your own API key from this page, with the values you type. Signed out? Sign in or get an API key.

Body

JSON object. Unknown fields are rejected with 422.

  • urlstring | nullmin length 8, max length 2048

    A ZenHotels hotel page (.../mid7801627/<slug>/).

  • hotelstring | nullmin length 2, max length 200

    The hotel's slug, the last part of its URL.

  • namestring | nullmin length 2, max length 200

    Hotel name, looked up in ZenHotels' own search box; the first hotel is used and resolved lists it with the others. Add city.

  • citystringdefault max length 200

    With name: the city, sent with it.

  • check_instring (date)required

    First night of the stay, YYYY-MM-DD.

  • check_outstring (date) | null

    Departure date. An alternative to nights — if both are given, this wins.

  • nightsintegerdefault 1min 1, max 30

    Length of stay. Ignored when check_out is supplied.

  • adultsintegerdefault 2min 1, max 36

    Adults in all rooms, spread over them (1 to 6 per room). Totals cover all.

  • roomsintegerdefault 1min 1, max 6

    Rooms requested.

  • currencystringdefault USDmin length 3, max length 3

    Currency of the totals (a code ZenHotels does not sell in is a 422).

Example request

curl -X POST "https://api.scrapercompany.com/v1/ota/zenhotels" \
  -H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "check_in": "2026-12-25"
  }'

Response

200 — ZenHotels rooms and rates (taxes paid at the hotel listed apart). Metered responses carry x-credits-charged and x-credits-remaining headers (see credit headers).

200 response
{
  "search_parameters": {
    "engine": "zenhotels_property",
    "hotel": "the_savoy_a_fairmont_managed_hotel",
    "check_in_date": "2027-03-08",
    "check_out_date": "2027-03-10",
    "nights": 2,
    "adults": 2,
    "rooms": 1,
    "currency": "USD"
  },
  "property": {
    "property_id": "the_savoy_a_fairmont_managed_hotel",
    "master_id": 7801627,
    "name": "The Savoy",
    "url": "https://www.zenhotels.com/hotel/united_kingdom/london/mid7801627/the_savoy_a_fairmont_managed_hotel/",
    "price_per_night": 1451,
    "total": 2902,
    "taxes_at_hotel": [
      {
        "name": "city_tax",
        "amount": 80.5,
        "currency": "GBP"
      }
    ],
    "currency": "USD",
    "sold_out": false,
    "availability": "available",
    "is_soldout": false,
    "provenance": {
      "schema_version": 1,
      "observation_id": "rateobs_0123456789abcdef0123456789abcdef",
      "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
      "observed_at": "2026-08-07T01:23:45.678Z",
      "source": "zenhotels",
      "source_kind": "ota_rate_plan",
      "source_property_id": "the_savoy_a_fairmont_managed_hotel",
      "requested_currency": "USD",
      "returned_currency": "USD",
      "price_basis": "stay_shown_taxes_included_hotel_taxes_excluded",
      "derivation": "normalized_upstream",
      "upstream_rate_id": "h-a5ff6ba3-909c-543b-87ec-8c65e797bf8b"
    },
    "rooms": [
      {
        "name": "Deluxe Double room (full double bed) (king size bed)",
        "room_code": "3602302",
        "available": true,
        "cheapest_price": 1451,
        "rate_plans": [
          {
            "rate_id": "h-a5ff6ba3-909c-543b-87ec-8c65e797bf8b",
            "room_code": "3602302",
            "name": "Deluxe Double room (full double bed) (king size bed)",
            "price": 1451,
            "total": 2902,
            "currency": "USD",
            "taxes_included": [
              {
                "name": "vat",
                "amount": 483.67,
                "currency": "USD"
              }
            ],
            "taxes_at_hotel": [
              {
                "name": "city_tax",
                "amount": 80.5,
                "currency": "GBP"
              }
            ],
            "meal": [
              "nomeal"
            ],
            "pay_at_hotel": false,
            "provenance": {
              "schema_version": 1,
              "observation_id": "rateobs_0123456789abcdef0123456789abcdef",
              "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
              "observed_at": "2026-08-07T01:23:45.678Z",
              "source": "zenhotels",
              "source_kind": "ota_rate_plan",
              "source_property_id": "the_savoy_a_fairmont_managed_hotel",
              "requested_currency": "USD",
              "returned_currency": "USD",
              "price_basis": "stay_shown_taxes_included_hotel_taxes_excluded",
              "derivation": "normalized_upstream",
              "upstream_rate_id": "h-a5ff6ba3-909c-543b-87ec-8c65e797bf8b"
            },
            "rate_category": "advance_purchase",
            "rate_category_source": "brand_flag",
            "refundable": false,
            "meal_plan": "room_only"
          }
        ]
      }
    ]
  },
  "resolved": {
    "matched_from": "name",
    "slug": "the_savoy_a_fairmont_managed_hotel",
    "master_id": 7801627,
    "name": "The Savoy",
    "city": "London",
    "country_code": "GB",
    "address": "The Strand  WC2R 0EZ",
    "place": "united_kingdom/london",
    "candidates": [
      {
        "slug": "the_savoy_a_fairmont_managed_hotel",
        "master_id": 7801627,
        "name": "The Savoy",
        "city": "London",
        "country_code": "GB",
        "address": "The Strand  WC2R 0EZ",
        "place": "united_kingdom/london"
      }
    ]
  },
  "meta": {
    "source": "zenhotels",
    "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
    "observed_at": "2026-08-07T01:23:45.678Z",
    "nights": 2,
    "adults": 2,
    "elapsed_s": 1.21,
    "total_rate_plans": 72,
    "notes": "`total` is the stay for every room with the taxes the rate shows. Taxes paid at the hotel (city tax, resort fee) are in `taxes_at_hotel`, sometimes in the hotel's own currency; `total_with_hotel_taxes` adds them when they are in the stay's currency."
  }
}

Response fields

Fields marked required are always present; others appear when they apply.

  • search_parametersobjectrequired
    Show 8 child fields
    • search_parameters.enginestringrequired

      One ofzenhotels_property

    • search_parameters.hotelstringrequired

      The hotel slug.

    • search_parameters.check_in_datestring (date)required
    • search_parameters.check_out_datestring (date)required
    • search_parameters.nightsintegerrequired
    • search_parameters.adultsintegerrequired
    • search_parameters.roomsintegerrequired
    • search_parameters.currencystringrequired
  • propertyobjectrequired
    Show 16 child fields
    • property.property_idstringrequired

      The hotel slug.

    • property.master_idinteger | nullrequired
    • property.namestring | nullrequired

      Set when the hotel was named.

    • property.urlstring | nullrequired

      The hotel's ZenHotels page.

    • property.price_per_nightnumber | nullrequired

      Cheapest rate's nightly average.

    • property.totalnumber | nullrequired

      Cheapest rate's total.

    • property.total_with_hotel_taxesnumber | nullrequired
    • property.taxes_at_hotelarray of objectrequired
      Show 3 child fields
      • property.taxes_at_hotel[].namestringrequired

        e.g. vat, city_tax, resort_fee.

      • property.taxes_at_hotel[].amountnumber | nullrequired
      • property.taxes_at_hotel[].currencystringrequired
    • property.currencystringrequired
    • property.sold_outbooleanrequired
    • property.availabilitystringrequired

      One ofavailablesold_out

    • property.is_soldoutboolean | nullrequired
    • property.availability_reasonstring | nullrequired
    • property.min_length_of_stayinteger | nullrequired
    • property.provenanceobject | nullrequired

      Provenance of the cheapest priced row; null when nothing priced.

      Show 13 child fields
      • property.provenance.schema_versionintegerrequired

        Provenance schema version (currently 1).

      • property.provenance.observation_idstringrequired

        Deterministic id of this price observation (rateobs_...).

      • property.provenance.collection_idstringrequired

        Id shared by every price from one upstream fetch (ratecol_...).

      • property.provenance.observed_atstringrequired

        UTC observation time, ISO-8601.

      • property.provenance.sourcestringrequired

        Upstream source, e.g. google_hotels_calendar.

      • property.provenance.source_kindstringrequired

        Kind of source, e.g. calendar, offer, ota_calendar, official.

      • property.provenance.source_property_idstringrequired

        Property identifier at the source.

      • property.provenance.requested_marketstring | nullrequired
      • property.provenance.requested_currencystring | nullrequired
      • property.provenance.returned_currencystring | nullrequired
      • property.provenance.price_basisstringrequired

        What the price represents, e.g. room_base_before_taxes_and_fees.

      • property.provenance.derivationstringrequired

        How the figure was derived, e.g. normalized_upstream.

      • property.provenance.upstream_rate_idstring | nullrequired

        Source-native rate/room id when available.

    • property.roomsarray of objectrequired
      Show 5 child fields
      • property.rooms[].namestringrequired
      • property.rooms[].room_codestringrequired
      • property.rooms[].availablebooleanrequired
      • property.rooms[].cheapest_pricenumber | nullrequired
      • property.rooms[].rate_plansarray of objectrequired
  • resolvedobjectrequired

    Present when the hotel was named: the ZenHotels hotel used.

    Show 9 child fields
    • resolved.matched_fromstringrequired

      One ofname

    • resolved.slugstringrequired
    • resolved.master_idinteger | nullrequired
    • resolved.namestring | nullrequired
    • resolved.citystring | nullrequired
    • resolved.country_codestring | nullrequired
    • resolved.addressstring | nullrequired
    • resolved.placestring | nullrequired
    • resolved.candidatesarray of objectrequired
      Show 7 child fields
      • resolved.candidates[].slugstringrequired
      • resolved.candidates[].master_idinteger | nullrequired
      • resolved.candidates[].namestring | nullrequired
      • resolved.candidates[].citystring | nullrequired
      • resolved.candidates[].country_codestring | nullrequired
      • resolved.candidates[].addressstring | nullrequired
      • resolved.candidates[].placestring | nullrequired
  • metaobjectrequired
    Show 8 child fields
    • meta.sourcestringrequired

      One ofzenhotels

    • meta.collection_idstringrequired
    • meta.observed_atstringrequired
    • meta.nightsintegerrequired
    • meta.adultsintegerrequired
    • meta.elapsed_snumberrequired
    • meta.total_rate_plansintegerrequired
    • meta.notesstringrequired

Errors

Errors return a JSON body with a detail field. Failed requests are not charged. See Errors for the full list and retry advice.

StatusMeaningRetry?
401Unauthorized

Missing or invalid API key.

{"detail":"missing or invalid API key"}
No, fix the request
402Payment Required

Not enough credits for this request: the account's credits mode is enforce (mode in GET /v1/billing) and the request costs more than the available credits. Nothing is run or charged.

{"detail":"insufficient credits: this request costs 5, 0 available. Credits renew 2026-11-01."}
No, fix the request
404Not Found

The property, stay, job or record was not found.

{"detail":"job not found"}
No, fix the request
422Unprocessable Content

Request validation failed. detail is a list of problems for schema errors, or a string for semantic checks performed by the endpoint.

{"detail":[{"loc":["body","name"],"msg":"Field required","type":"missing"}]}
No, fix the request
429Too Many Requests

Too many requests: the key's requests-per-minute limit was exceeded, or (in enforce credits mode) the plan's concurrent-request limit. No rate-limit or Retry-After headers are sent; back off and retry.

{"detail":"rate limit 60/min exceeded"}
Yes, with backoff
503Service Unavailable

Temporarily unavailable: a dependency of this endpoint is down, or the upstream source changed its contract. Retry later.

{"detail":"database unavailable: OperationalError"}
Yes, with backoff

Try it

Press Try it above to run this request on your own key, with the values you type (sign in first). For a no-code walkthrough, use the workspace’s guided Try it.

  1. Export your key: export SCRAPERCOMPANY_API_KEY=sk_... (no key yet? start a free trial).
  2. Copy the cURL example above and run it in a terminal.

Credits

12 credits per successful call. Failed, blocked and empty results are free.

Questions about this page?

Send the page link and your question, and the team will answer.

Email support