Hotel Brand Sites
Rates from the hotel brands' own websites: Marriott, IHG, Hyatt, Wyndham, Choice Hotels and Best Western. Each brand's site is priced the way a guest booking direct sees it, in the property's own currency, with the brand's own rate plans and the tax it states. You address the hotel by the brand's own property code, and the result is the same room-and-rate grid as an OTA price job, so brand.com and OTA prices for the same stay can be compared directly.
/api/v1/scraper/brand-price/— submit: every room and rate/api/v1/scraper/brand-price/{job_id}/— poll/api/v1/scraper/brand-cheapest-room/— submit: the cheapest room only/api/v1/scraper/brand-cheapest-room/{job_id}/— poll/api/v1/scraper/brands/— the brand sites and what your key may useBase URL: https://api.scrapeguys.com · Auth: X-API-Key: gsk_… with the brand:<brand> scope of the brand you name · See the Overview.
ota, ota_hotel_id, /ota-price/, /rate-shop/ and /otas/ do not take them, and a brand job is not visible on /ota-price/{job_id}/. Everything around the scrape is shared: the same gsk_… key, the same submit-and-poll job, the same rate limit and quotas, and 1 unit per job.Brands
One row per brand site. All are live except Hilton. brand takes any of the values listed for a brand: the first is its slug, the rest are aliases. The live list, including whether each brand is switched on and whether your key holds its scope, is GET /brands/.
Brand · brand values | property_code | Children | Rooms | Check-in up to |
|---|---|---|---|---|
Marriottmarriott marriott.com | Marriott's five-letter property (MARSHA) code, e.g. SACFL | No | 1 | 330 days |
IHGihg ihg.com | IHG's five-character hotel mnemonic, e.g. MCOOS | No | 1 | 330 days |
Hyatthyatt hyatt.com | Hyatt's five-character spirit code, e.g. houzg | No | 1 | 330 days |
Wyndhamwyndham wyndhamhotels.com | Wyndham's two-letter brand id followed by the five-digit property id, e.g. LQ53147 (La Quinta, property 53147). The property id is the number in the hotel's page address: wyndhamhotels.com/hotels/53147 | Yes | 8 | 360 days |
Choice Hotelschoice choicehotels choicehotels.com | Choice's five-character property code, e.g. CA559 | No | 1 | 330 days |
Best Westernbestwestern best_western bestwestern.com bw | Best Western's numeric property id, e.g. 11235 | No | 1 | 365 days |
| Hilton Not yet available: a submit answers 400hilton hilton.com | Hilton's seven-character property code (ctyhocn), e.g. JBRARHX | No | 1 | 330 days |
Rooms and Check-in up to are the lower of the brand site's own limit and this endpoint's (8 rooms, 365 days). Children says whether children_ages is accepted; on every other brand it is a 400, because the site would be asked for an adults-only party.
brand:marriott, brand:ihg, brand:hyatt, brand:wyndham, brand:choice, brand:bestwestern and brand:hilton are on no key until they are added to it, and an OTA scope never implies one. Ask your ScrapeGuys contact for the brands you need. GET /brands/ shows which ones your key holds.Submit a job
One property on one brand's site for one stay. /brand-price/ and /brand-cheapest-room/ take the same body and validate it the same way; they differ only in what their poll returns.
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
brand | string | Required | — | A slug or alias from the table above. Anything else, an OTA name included, is a 400. |
property_code | string | Required | — | The brand's own code for the hotel. Its shape is checked at submit: a malformed code is a 400 naming the shape that brand expects, before any job exists. It is echoed back in the brand's canonical form. There is no name search behind a brand site: the code is the hotel. |
check_in | date | Required | — | YYYY-MM-DD. Not in the past, and within the brand's horizon (Check-in up to above). |
check_out | date | Required | — | After check_in; at most 30 nights. |
adults | int | Optional | 2 | 1–10. The party total across all rooms, not per room. |
rooms | int | Optional | 1 | Up to the brand's Rooms above, and not more than adults: each room needs an adult. |
children_ages | int[] | Optional | [] | One age per child, 0–17, at most 8. Only for a brand whose Children column says yes (Wyndham); otherwise a 400. |
hotel_name | string | Optional | "" | A label of yours, ≤ 300 chars, echoed back. Nothing is looked up from it. |
currency | string | Optional | "" | ISO 4217, 3 letters (upper-cased for you). Accepted only for a brand whose site publishes its own exchange-rate table (Wyndham); any other brand returns a 400 under currency. It never converts a price: amounts stay in the property's own currency, and it names the rate result.exchange_rate should carry. Omit it and no rate is returned. |
There is no device_type, place_id, city or member-login field: a brand site quotes each property in its own currency, to a guest who is not signed in. currency is optional, only for the brands noted above, and never converts a price.
Errors: 400 (validation; an unknown brand; a malformed property_code; a check-in beyond the brand's horizon; rooms above the brand's limit or above adults; children_ages on a brand that cannot price children; a stay over 30 nights; or {"error": "brand '…' is not currently enabled"}), 401 (missing, unknown or deactivated key), 403 (key lacks brand:<brand> for the brand named; checked before the rest of the body), 429 (per-minute limit, or daily / monthly quota exhausted), 503 (the job could not be queued; nothing ran or was billed, so retry shortly). No job is created on any of these.
Poll for results
Poll the poll_url every ~2 seconds until status is completed or failed. Statuses: pending → processing → completed | failed. Polling is free.
/api/v1/scraper/brand-price/{job_id}/Errors: 404 ("Job not found.": an unknown id, another client's job, or an OTA job, which polls on /ota-price/), 401, 403 (key lacks the scope of the job's brand). Either brand poll reads a job submitted through either brand endpoint.
Response schema
The job envelope, with result holding the normalized room-and-rate grid. Abridged from a real Wyndham answer: one room type and one rate shown of 7 room types.
| Field | Type | Description |
|---|---|---|
id, status | string | The job and its state. |
brand, property_code | string | The brand's canonical slug (never the alias you sent) and the property code in canonical form. |
hotel_name, check_in, check_out, adults, children_ages, rooms | Your request, echoed back. | |
result | object / null | The room-and-rate grid once the job completes; the same shape as an OTA job's result (full schema in the Agoda guide), except that it names its source brand where an OTA result says ota, and has no ota_code. |
result.hotel_id | string | The property code the site was asked for. |
result.hotel_name | string | What the brand's site calls the property, when its answer names it; often empty, because several sites' rate answers do not. |
result.origin_hotel_name | string | What the brand's site calls the property (Wyndham: from a best-effort lookup on the same session, filled even on a sold-out stay). Empty when the site did not answer; that never fails the price. hotel_name stays your own label. |
result.currency | string | The property's own currency. Every offer says quote_basis: "native"; nothing is ever converted. currency_requested echoes the currency you sent, and is empty when you sent none. |
result.exchange_rate | object | Only when you asked for a currency (Wyndham). The brand site's own published rate, so you can convert a native price yourself: {"base": "USD", "source": "wyndham", "as_of", "native": {"code", "per_usd"}, "requested": {"code", "per_usd"}, "native_to_requested"}. Multiply a native amount by native_to_requested to get your currency. The key is absent when no currency was asked. If the table has no rate for the property's own currency, native and native_to_requested are missing and the block carries the requested rate alone. |
result.room_types[] | array | One entry per room type the site lists, each with name and offers[], one offer per cash rate plan. |
offers[].price, price_basis | number, string | The rate as the site states it, and what that number covers: per_night_before_taxes (one room, one night, before tax), total_stay_before_taxes (one room, the whole stay, before tax) or unknown. Always read price_basis; it varies by brand (below). |
offers[].tax_amount, fee_amount, tax_and_fees, tax_basis | number / null, string / null | The site's own tax and fee figures for the rate, on the same basis as price. null when the site states none. Never computed by us. |
offers[].tax_breakdown[] | array | Where the site itemizes them (Wyndham): its own named tax and fee lines, each {"name", "type": "tax"|"fee", "included", "percentage", "amount"} on the same per-night basis as price, e.g. "City Tax 4.66, State Tax 4.00". Present on the full result's offers only; cheapest_room keeps the totals. |
offers[].pay_at_property_amount | number / null | A charge the site says is collected at the hotel (a resort fee), where it states one apart from the rate. |
offers[].rate_token, raw_label | string | The brand's own rate-plan code and the name it gives the rate. |
offers[].badges | string[] | What kind of rate it is, e.g. Member rate, Advance purchase, Prepaid. Member-only rates that the site shows a visitor who is not signed in are returned, badged as such. |
offers[].board, meal_plan_code | string / null | The meal plan the brand states for the rate (EP, CP, MAP, AP, AI); null when it states none. |
offers[].refundable, free_cancellation, cancellation_text | bool / null, string / null | The rate's cancellation terms, from the brand's own policy text. null when no policy was stated. |
offers[].pay_later, payment_text | bool / null, string / null | Whether the guest pays at the hotel or up front, and the site's own wording. |
offers[].source_url | string / null | The brand's page for this property and stay, where the site has one. |
result.cheapest_fitting_price, cheapest_room | number, object / null | The cheapest rate that seats your party, as on every hotel source. cheapest_room is the block /brand-cheapest-room/ returns. |
result.sold_out, unavailable_reason | bool, string | A stay with nothing to sell is a result, not a failure: the job completes with sold_out: true, no rooms, and the site's own reason when it gives one. |
result.listing_url | string / null | The brand's page for the property. |
error_message | string | Empty unless the job failed; it then starts with a prefix that says what went wrong (Errors). |
created_at, started_at, completed_at, duration_seconds, bandwidth_kb | The job's timing and transfer size. |
How each brand states its prices
Prices and taxes are read from the site, never derived. Where a site states a per-night price before tax, that is price, with the site's tax beside it. Where a site states only a stay total, price_basis says so. Where the period of an amount has not been confirmed for a stay of several nights, it says unknown rather than guess.
| Brand | price is | Tax and fees |
|---|---|---|
| Marriott | The whole stay for one room, before tax (price_basis: "total_stay_before_taxes"). Marriott states its tax and fees only as stay totals. | Beside it, as a stay total too (tax_and_fees). |
| IHG | One room, one night, before tax. | Beside it (tax_and_fees). |
| Hyatt | One room, one night, before tax, on a one-night stay. On a longer stay price_basis is unknown. | Beside it (tax_and_fees). |
| Wyndham | One room, one night, before tax. | Beside it (tax_amount, fee_amount, tax_and_fees). |
| Choice Hotels | One room, one night (the stay's average), before tax and fees. | Itemized: tax_amount and fee_amount, summed in tax_and_fees. |
| Best Western | One room, one night (the stay's average), before tax. | Usually not stated: Best Western's rate call has published no tax figure in any answer seen so far, so tax_and_fees is normally null. When the site does state a rate with tax, tax_and_fees is filled from it. A fee collected at the hotel is in pay_at_property_amount when the site shows one. An answer from Best Western's older booking path says price_basis: "unknown". |
- Points and reward-night rates are left out. They are not cash prices. A rate that mixes cash and points is left out too.
- Compare like with like. To set a brand rate beside an OTA rate, use the all-in figure:
price + tax_and_feeson a per-night basis, only wheretax_and_feesis notnull; orcheapest_room.price, which is one room, one night, all-in whenprice_includes_taxesistrue. An offer whoseprice_basisis a before-tax basis (per_night_before_taxesortotal_stay_before_taxes) and whosetax_and_feesisnull(so far, every Best Western rate), or a cheapest room withprice_includes_taxes: false, is a pre-tax price: compare it with an OTA's pre-tax price, never with an all-in one. An offer whoseprice_basisisunknownhas no known period and, on Best Western's older booking path, no known tax status: do not compare it, as pre-tax or as all-in. Decide by those fields, not by the brand.
Cheapest room only
POST /brand-cheapest-room/ takes the same body, runs the same job and costs the same 1 unit. Its poll returns your request echoed back and one cheapest_room block instead of the grid.
/api/v1/scraper/brand-cheapest-room/{job_id}/cheapest_room.priceis one room, one night, all-in whenprice_includes_taxesistrue: the rate plus the tax and fees the site stated. Check that flag before treating the price as all-in (see Best Western below). A Marriott stay total is divided by the nights, so it is the stay's average night. The rate is chosen on that all-in figure, so it can differ fromcheapest_fitting_price, which ranks the pre-tax price. The block's fields mean what they do on the OTA Cheapest Room API.- Best Western has stated no tax in any answer seen so far, so its cheapest room is normally the cheapest pre-tax rate with
price_includes_taxes: false. Read the flag rather than assume it: when Best Western states a tax, the block is all-in and the flag istrue. No tax is ever added by us. - Hyatt, several nights: offers whose basis is
unknowncannot be ranked, so no cheapest room is derived andreasonisno_room_fits_party. Price Hyatt one night at a time. exchange_rateis the same block as on the full result, present when you asked for acurrencyand the brand publishes a rate.cheapest_room.priceitself stays in the property's currency.currencyis the property's own;hotel_nameis what the site called the property when it said, otherwise your label.
reason | Meaning |
|---|---|
null | cheapest_room is filled. |
pending | The job has not finished. Poll again. |
failed | The job failed; see error_message. |
sold_out | The property has nothing to sell for the dates; unavailable_reason has the site's wording when it gave any. |
no_room_fits_party | The job completed and is not sold out, but no rate is confirmed to seat the party with a usable price. |
The full grid of the same job is at GET /brand-price/{job_id}/, whichever endpoint submitted it.
Brand directory
Every brand site this API prices, what a request may ask of it, whether it is switched on and whether your key holds its scope. Any active key may call it, and it costs 0 units.
/api/v1/scraper/brands/| Field | Description |
|---|---|
brand, name, aliases | The slug, the display name, and every other value brand accepts for it. |
property_code | The shape of the brand's property code, in words, with an example. |
enabled | Whether the brand is switched on. A brand that is off answers a submit with 400. |
children, max_rooms, max_check_in_days_ahead | What the brand's site can price: children, rooms per request and how far ahead. The endpoint's own limits (8 rooms, 365 days) still apply. |
scopes | The brand's scope and whether the calling key holds it. |
Errors and billing
A failed job's error_message starts with a prefix that says what went wrong, so you can act on it without parsing the text after it.
| Prefix | Meaning | Retry? |
|---|---|---|
not_found: | The brand has no property under that code. | No. Fix the code. |
unsupported: | The request cannot be expressed on that site (a party or stay length the site will not price). | No. |
blocked: | The brand site refused every attempt this job was allowed. | Later. |
clearance: | The job could not get a working session on the source site. | Later. |
proxy:, no_exit: | No working network route for the request. | Later. |
upstream: | The brand's own service faulted. | Yes. |
parse: | The site answered with something this version does not read. It is ours to fix. | No. Tell us. |
blocked:, clearance:, proxy:, no_exit:, upstream:, parse:) are not billed and do not use quota (see what is billed on failure). Polling and GET /brands/ are free. Brand polls carry no error_category; read the prefix instead.Next: Destination Search →