# booking.hotel

A property's page on Booking.com: description, address, class, review scores, facilities, house rules, photos, and room prices for a stay.

Booking.com property, one of the Booking.com scrapers.

| | |
| --- | --- |
| Id | `booking.hotel` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/booking.hotel/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `property` | string | yes | The property's page on booking.com, e.g. `https://www.booking.com/hotel/pt/browns-downtown.html` (the `url` of a `booking.search` record), or just its country and name: `pt/browns-downtown`. Limit: at least 4 characters, at most 500 characters. |
| `checkin` | string | no | The first night, `YYYY-MM-DD`. Without dates the rooms carry no prices. Limit: matches ^\d{4}-\d{2}-\d{2}$. |
| `checkout` | string | no | The day of departure, `YYYY-MM-DD`, after `checkin` and at most 90 nights later. Limit: matches ^\d{4}-\d{2}-\d{2}$. |
| `adults` | integer | no | The number of adults. Limit: 1 to 30. Default: `2`. |
| `children_ages` | array of integer | no | One age (0 to 17) per child travelling, e.g. `[4, 9]`. |
| `rooms` | integer | no | The number of rooms. Limit: 1 to 30. Default: `1`. |
| `currency` | string | no | The currency prices are shown in, as an ISO code, e.g. `USD`, `EUR`, `GBP`. Limit: matches ^[A-Za-z]{3}$. Default: `"USD"`. |
| `language` | string | no | The language of the page, as Booking's code in lower case, e.g. `en-us`, `en-gb`, `de`, `fr`, `pt-br`. Limit: matches ^[a-z]{2}(-[a-z]{2})?$. Default: `"en-us"`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `property_id` | integer | Booking's numeric id of the property. `booking.reviews` takes it. |
| `name` | string | The property's name. |
| `url` | string | The property's page on booking.com, without tracking parameters. |
| `property_type` | string or null | The kind of property as Booking classes it, in English and lower case, e.g. `hotel`, `apartment`, `villa`, `hostel`. |
| `description` | string or null | The property's description, in the language asked for, one line per paragraph. |
| `address` | string or null | The full postal address, as the page writes it. |
| `postal_code` | string or null | The postal code. |
| `district` | string or null | The district or neighbourhood, when Booking names one. |
| `city` | string or null | The city or town. |
| `country` | string or null | The country's name. |
| `country_code` | string or null | The two-letter country code, in lower case. |
| `latitude` | number or null | The latitude of the property's map pin, in decimal degrees. |
| `longitude` | number or null | The longitude of the property's map pin, in decimal degrees. |
| `star_class` | number or null | The property's class, 1 to 5; null when it has none. |
| `review_score` | number or null | The guest review score, 1 to 10; null when the property has no score yet. |
| `review_count` | integer or null | The number of guest reviews behind the score. |
| `review_scores` | array of object | The score per review category, as the page lists them. |
| `review_scores[].category` | string | The category, in the page's language, e.g. `Cleanliness`, `Location`, `Value for money`. |
| `review_scores[].score` | number | The guests' average score for it, 1 to 10. |
| `popular_facilities` | array of string | The facilities the page lists as most popular, in the language asked for. |
| `checkin` | string (date) or null | The first night of the stay the rooms are priced for; null when no dates were asked. |
| `checkout` | string (date) or null | The day of departure. |
| `available` | boolean or null | For a stay: true when the page offers at least one room for it, false when it says it has nothing. Null when no dates were asked. |
| `rooms` | array of object | The room types: with a stay, the ones the page offers for it and their prices; without, the property's room types with no offers. |
| `rooms[].room_id` | integer or null | Booking's id of the room type. |
| `rooms[].name` | string | The room type's name, as the page shows it. |
| `rooms[].offers` | array of object | The ways the room can be booked for the stay, cheapest terms first as the page lists them. Empty without dates, and for a room with nothing left. |
| `rooms[].offers[].price` | object | The price of the stay for one unit of the room on these terms, as the page's table states it to a visitor in the United States: before taxes and fees. |
| `rooms[].offers[].price.amount` | number | The amount, as Booking states it. |
| `rooms[].offers[].price.currency` | string | The ISO currency code of the amount, e.g. USD. |
| `rooms[].offers[].max_guests` | integer or null | How many guests the offer is for. |
| `rooms[].offers[].cancellation` | string or null | The cancellation terms as Booking codes them: `free_cancellation`, `non_refundable` or `special_conditions`. |
| `rooms[].offers[].meal_plan` | string or null | The meals in the price as Booking codes them, e.g. `breakfast`, `half board`; null when none is included. |
| `rooms[].offers[].member_rate` | boolean | True when Booking marks the price as its members' rate (Genius), which it shows to every visitor on some properties. Default: `false`. |
| `house_rules` | array of object | The page's "House rules": check-in and check-out times, cancellation, children and beds, pets and the rest, in the page's order. |
| `house_rules[].name` | string | What the rule is about, as the page heads it, e.g. `Check-in`, `Pets`, `Children & Beds`. |
| `house_rules[].text` | string | What the page says about it, one line per paragraph. |
| `fine_print` | string or null | The page's "fine print": what the property wants guests to know before booking. |
| `photos` | array of string | The photos of the page's gallery, largest size, in the gallery's order. |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/booking.hotel/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"property":"https://www.booking.com/hotel/pt/browns-downtown.html"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "booking.hotel",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "property": "https://www.booking.com/hotel/pt/browns-downtown.html"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "property_id": 315442,
      "name": "Browns Downtown Hotel",
      "url": "https://www.booking.com/hotel/pt/browns-downtown.html",
      "property_type": "hotel",
      "description": "These trendy rooms in the center of Lisbon include hi-tech work stations with iMac computers. All are individually decorated, including coffee station and flat-screen TVs. Wi-Fi is free of charge.\nWith a tasteful mixture of textures and … [truncated]",
      "address": "Rua Dos Sapateiros 69-79, Santa Maria Maior, 1100-579 Lisbon, Portugal",
      "postal_code": "1100-579",
      "district": "Santa Maria Maior",
      "city": "Lisbon",
      "country": "Portugal",
      "country_code": "pt",
      "latitude": 38.71053976958895,
      "longitude": -9.138137251138687,
      "star_class": 3,
      "review_score": 9,
      "review_count": 2672,
      "review_scores": [
        {
          "category": "Staff",
          "score": 9.5
        },
        {
          "category": "Facilities",
          "score": 9
        },
        {
          "category": "Cleanliness",
          "score": 9.3
        }
      ],
      "popular_facilities": [
        "Free Wifi",
        "Airport shuttle",
        "Non-smoking rooms"
      ],
      "checkin": null,
      "checkout": null,
      "available": null,
      "rooms": [
        {
          "room_id": 31544201,
          "name": "Small Double Room",
          "offers": []
        },
        {
          "room_id": 31544202,
          "name": "Superior Double Room",
          "offers": []
        }
      ],
      "house_rules": [
        {
          "name": "Check-in",
          "text": "From 3:00 PM\nGuests are required to show a photo ID and credit card at check-in."
        },
        {
          "name": "Check-out",
          "text": "Until 12:00 PM"
        },
        {
          "name": "Cancellation/ prepayment",
          "text": "Cancellation and prepayment policies vary according to accommodation type. Enter your stay dates and check the conditions of your selected option."
        }
      ],
      "fine_print": "Please note that the buffet breakfast is served every morning at the Brown's Brasserie between 7:30 and 11:00.\nPlease note that reservations for more than 3 rooms, different policies and additional supplements may apply.\nGuests are required … [truncated]",
      "photos": [
        "https://cf.bstatic.com/xdata/images/hotel/max1280x900/594514309.jpg?k=77a82eaeb0e54004da40f660aafa6420c5c03221ea461d0e7e0da285c98f1d99&o=&hp=1",
        "https://cf.bstatic.com/xdata/images/hotel/max1280x900/594240624.jpg?k=74f011db86d50c719d0e8f67b77f55dac09fb8344ea9425a83e32744e2335a5c&o=&hp=1",
        "https://cf.bstatic.com/xdata/images/hotel/max1280x900/594244824.jpg?k=c3bb170caef34fbbaed96d340fdd7dc1bacd30d91c1f20807964e0e8d9b95bb7&o=&hp=1"
      ],
      "fetched_at": "2026-11-19T18:07:39.201815Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `description`: 1,082 characters, the first 236 shown.
- Shortened: `review_scores`: 7 items, the first 3 shown.
- Shortened: `popular_facilities`: 10 items, the first 3 shown.
- Shortened: `rooms`: 4 items, the first 2 shown.
- Shortened: `house_rules`: 8 items, the first 3 shown.
- Shortened: `fine_print`: 416 characters, the first 240 shown.
- Shortened: `photos`: 45 items, the first 3 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Booking.com scrapers](https://docs.enrichednow.com/results-and-statuses.md#booking-com) are in their own section there.
