# booking.search

The properties Booking.com lists for a destination and a stay: prices for the dates, review scores, class, location and photo.

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

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

Start it with `POST /v1/scrapers/booking.search/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 |
| --- | --- | --- | --- |
| `destination` | string | yes | Where to stay, as typed into Booking's search box: a city, a region, a district or a landmark, e.g. `Lisbon` or `Lake Como, Italy`. Add the country when the name is ambiguous. Limit: at least 1 characters, at most 200 characters. |
| `checkin` | string | no | The first night, `YYYY-MM-DD`. Without dates the records 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 names and wording, 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"`. |
| `sort` | "top_picks" \| "price_low_to_high" \| "price_high_to_low" \| "class_high_to_low" \| "class_low_to_high" \| "review_score" \| "distance" \| "homes_first" | no | The order of the results; `top_picks` is Booking's own default order. Default: `"top_picks"`. |
| `page` | integer | no | The results page, from 1; 25 properties a page, and Booking serves at most 40. Limit: 1 to 40. Default: `1`. |

## 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 |
| --- | --- | --- |
| `position` | integer | The property's place on this results page, from 1. Limit: at least 1. |
| `page` | integer | The results page the property was on. Limit: at least 1. |
| `property_id` | integer | Booking's numeric id of the property. `booking.reviews` takes it. |
| `name` | string | The property's name, as the results show it. |
| `url` | string | The property's page on booking.com, without tracking parameters. `booking.hotel` takes it. |
| `address` | string or null | The street address. |
| `city` | string or null | The city, as Booking writes it (often in the local language). |
| `country_code` | string or null | The two-letter country code, in lower case as Booking gives it. |
| `area` | string or null | The district and city the card shows, e.g. `Santa Maria Maior, Lisbon`. |
| `distance` | string or null | The distance line of the card, in Booking's words, e.g. `0.2 miles from downtown`. |
| `latitude` | number or null | The latitude of the property, in decimal degrees. |
| `longitude` | number or null | The longitude of the property, in decimal degrees. |
| `star_class` | number or null | The property's class, 1 to 5: official hotel stars, or Booking's own rating for a home or apartment. 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_word` | string or null | Booking's word for the score, e.g. `Wonderful`. |
| `checkin` | string (date) or null | The first night of the stay the prices are for; null for a search without dates. |
| `checkout` | string (date) or null | The day of departure. |
| `nights` | integer or null | The length of the stay in nights. |
| `price` | object or null | The price the card shows for the whole stay, for the guests and rooms asked for, as Booking shows it to a visitor in the United States: before taxes and fees. It includes the discounts listed in `discounts`. Null for a search without dates, or when the property has nothing left for the stay. |
| `price.amount` | number | The amount, as Booking states it. |
| `price.currency` | string | The ISO currency code of the amount, e.g. USD. |
| `price_per_night` | object or null | The same price per night, as Booking averages it. |
| `price_per_night.amount` | number | The amount, as Booking states it. |
| `price_per_night.currency` | string | The ISO currency code of the amount, e.g. USD. |
| `price_before_discount` | object or null | The struck-through price of the stay, when the card shows one. |
| `price_before_discount.amount` | number | The amount, as Booking states it. |
| `price_before_discount.currency` | string | The ISO currency code of the amount, e.g. USD. |
| `taxes_and_fees` | object or null | The taxes and fees Booking states for the stay that are not in `price`. |
| `taxes_and_fees.amount` | number | The amount, as Booking states it. |
| `taxes_and_fees.currency` | string | The ISO currency code of the amount, e.g. USD. |
| `discounts` | array of object | The discounts already taken off `price`, as Booking lists them. A `Genius` discount is the rate Booking gives its signed-in members and shows to every visitor on some properties. |
| `discounts[].name` | string | What Booking calls the discount, e.g. `Genius discount` or `Limited-time Deal`. |
| `discounts[].amount` | object or null | What it takes off the price of the stay. |
| `discounts[].amount.amount` | number | The amount, as Booking states it. |
| `discounts[].amount.currency` | string | The ISO currency code of the amount, e.g. USD. |
| `discounts[].description` | string or null | Booking's own sentence about the discount, when it gives one. |
| `room` | string or null | The room or unit the price is for, e.g. `Interior Double Room`. |
| `meal_plan` | string or null | The meals in the price, in Booking's words, e.g. `Breakfast included`; null when it states none. |
| `free_cancellation` | boolean or null | True when the card says the offer can be cancelled free of charge. |
| `no_prepayment` | boolean or null | True when the card says nothing is paid in advance. |
| `availability_note` | string or null | The card's scarcity line, e.g. `We have 3 left at this price`. |
| `sold_out` | boolean | True when Booking lists the property as having nothing left for the stay. Default: `false`. |
| `sponsored` | boolean | True when the card is marked as an advertisement. Default: `false`. |
| `image` | string or null | The card's main photo. |
| `fetched_at` | string (date-time) | When the results were 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.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"destination":"Lisbon","checkin":"2027-01-12","checkout":"2027-01-14","adults":2}}'
```

## 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.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "destination": "Lisbon",
    "checkin": "2027-01-12",
    "checkout": "2027-01-14",
    "adults": 2
  },
  "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": [
    {
      "position": 2,
      "page": 1,
      "property_id": 10131840,
      "name": "MASA Hotel & Spa Campo Grande Collection",
      "url": "https://www.booking.com/hotel/pt/masa-campo-grande.html",
      "address": "Campo Grande 56",
      "city": "Lisboa",
      "country_code": "pt",
      "area": "Alvalade, Lisbon",
      "distance": "2.6 miles from downtown",
      "latitude": 38.750851,
      "longitude": -9.148746,
      "star_class": 4,
      "review_score": 8.5,
      "review_count": 11673,
      "review_word": "Very Good",
      "checkin": "2027-01-12",
      "checkout": "2027-01-14",
      "nights": 2,
      "price": {
        "amount": 167.76,
        "currency": "USD"
      },
      "price_per_night": {
        "amount": 83.88,
        "currency": "USD"
      },
      "price_before_discount": {
        "amount": 209.7,
        "currency": "USD"
      },
      "taxes_and_fees": {
        "amount": 27.67,
        "currency": "USD"
      },
      "discounts": [
        {
          "name": "Bonus savings",
          "amount": {
            "amount": 41.94,
            "currency": "USD"
          },
          "description": "You’re getting a reduced rate because this property is offering a discount."
        }
      ],
      "room": "Standard Double or Twin Room",
      "meal_plan": "Breakfast included",
      "free_cancellation": true,
      "no_prepayment": false,
      "availability_note": null,
      "sold_out": false,
      "sponsored": false,
      "image": "https://cf.bstatic.com/xdata/images/hotel/square600/535564893.jpg?k=e7a60ec8e804b0be59a40ec440854ad50d0cfa8dc2316bed0e97f443d03c8412&o=",
      "fetched_at": "2026-11-19T18:07:39.213234Z"
    }
  ],
  "next_cursor": null
}
```

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.
