> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Booking.com search

> Read a Booking.com search results page with a place in ss as JSON with the booking-search parser. $1 per 1,000 calls. Send the page to scrape.

Reads a Booking.com search results page with a place in ss, like booking.com/searchresults.html?ss=Lisbon, and returns a list of listings as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.booking.com/searchresults.html?ss=Lisbon&checkin=2026-12-10&checkout=2026-12-12&group_adults=2&no_rooms=1","formats":[{"type":"json","parser":"booking-search"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.booking.com/searchresults.html?ss=Lisbon&checkin=2026-12-10&checkout=2026-12-12&group_adults=2&no_rooms=1",
    formats: [{ type: "json", parser: "booking-search" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.booking.com/searchresults.html?ss=Lisbon&checkin=2026-12-10&checkout=2026-12-12&group_adults=2&no_rooms=1",
        "formats": [{"type": "json", "parser": "booking-search"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `results`, `cursor`, `page` and `total`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "id": "9098389",
          "url": "https://www.booking.com/hotel/pt/eurostas-lisboa-baixa.html",
          "title": "Eurostars Lisboa Baixa",
          "description": null,
          "price": {
            "amount": 131.75,
            "currency": "USD"
          },
          "pricePeriod": "night",
          "status": null,
          "address": "Rua de Prata, 88-114",
          "location": {
            "latitude": 38.710131,
            "longitude": -9.136478
          },
          "bedrooms": null,
          "bathrooms": null,
          "area": null,
          "propertyType": null,
          "rating": 4.6,
          "reviewCount": 1834,
          "images": [
            "https://cf.bstatic.com/xdata/images/hotel/square600/425895275.jpg?k=eb4c9000683d7cdc25d9ecd4d321a30c9560b3a6183dde24632…"
          ],
          "host": null,
          "position": 1,
          "stars": 4,
          "city": "Lisboa",
          "countryCode": "pt",
          "distanceText": "0.3 miles from downtown",
          "hasFreeCancellation": false,
          "neighborhood": "Santa Maria Maior, Lisbon",
          "nights": 2,
          "totalPrice": {
            "amount": 263.5,
            "currency": "USD"
          },
          "taxesAndFees": {
            "amount": 33.79,
            "currency": "USD"
          },
          "originalPrice": {
            "amount": 439.16,
            "currency": "USD"
          }
        }
      ],
      "cursor": "eyJvZmZzZXQiOjI1LCJzZWVuIjpbOTA5ODM4OSwyMzY3NjcsMzkzODIsMjM3NTAxLDQ5NjgyLDI4MzcyNTEsMzE1NDQyLDE0MDQ5MzQ2LDM5ODMzLDE5NzQ5MzcsMzc0NzU2NSwxMDQ0NTAxLDQxNzQ4MCw5O...",
      "page": null,
      "total": 3772,
      "place": "Lisbon",
      "checkIn": "2026-12-10",
      "checkOut": "2026-12-12"
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `currency` | ISO 4217 currency code, e.g. USD. |
| `sort` | Booking.com's own Sort by: relevance (Our top picks) or distance (closest to the center of the place first). |
| `cursor` | The cursor from the previous response. Send it as is. |

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Booking.com search results page with a place in ss, like booking.com/searchresults.html?ss=Lisbon. Any other URL fails with `invalidRequest`.
* To read the next page, send the `cursor` from the response as the `cursor` option. Paging needs an API key.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Booking.com hotel](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/booking-hotel.md)
* [Booking.com reviews](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/booking-reviews.md)
* [Google Maps](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/google-maps.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.