Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIBooking.com

    booking.search

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

    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; what a run costs is in Usage and units.

    Inputs

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

    Inputs of booking.search
    FieldTypeDescription
    destinationrequiredstringWhere 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.
    checkinstringThe first night, YYYY-MM-DD. Without dates the records carry no prices.Limit: matches ^\d{4}-\d{2}-\d{2}$.
    checkoutstringThe day of departure, YYYY-MM-DD, after checkin and at most 90 nights later.Limit: matches ^\d{4}-\d{2}-\d{2}$.
    adultsintegerThe number of adults.Limit: 1 to 30. Default: 2.
    children_agesarray of integerOne age (0 to 17) per child travelling, e.g. [4, 9].
    roomsintegerThe number of rooms.Limit: 1 to 30. Default: 1.
    currencystringThe currency prices are shown in, as an ISO code, e.g. USD, EUR, GBP.Limit: matches ^[A-Za-z]{3}$. Default: "USD".
    languagestringThe 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"The order of the results; top_picks is Booking's own default order.Default: "top_picks".
    pageintegerThe 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.

    Record fields of booking.search
    FieldTypeNotes
    positionintegerThe property's place on this results page, from 1.Limit: at least 1.
    pageintegerThe results page the property was on.Limit: at least 1.
    property_idintegerBooking's numeric id of the property. booking.reviews takes it.
    namestringThe property's name, as the results show it.
    urlstringThe property's page on booking.com, without tracking parameters. booking.hotel takes it.
    addressstring or nullThe street address.
    citystring or nullThe city, as Booking writes it (often in the local language).
    country_codestring or nullThe two-letter country code, in lower case as Booking gives it.
    areastring or nullThe district and city the card shows, e.g. Santa Maria Maior, Lisbon.
    distancestring or nullThe distance line of the card, in Booking's words, e.g. 0.2 miles from downtown.
    latitudenumber or nullThe latitude of the property, in decimal degrees.
    longitudenumber or nullThe longitude of the property, in decimal degrees.
    star_classnumber or nullThe 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_scorenumber or nullThe guest review score, 1 to 10. Null when the property has no score yet.
    review_countinteger or nullThe number of guest reviews behind the score.
    review_wordstring or nullBooking's word for the score, e.g. Wonderful.
    checkinstring (date) or nullThe first night of the stay the prices are for; null for a search without dates.
    checkoutstring (date) or nullThe day of departure.
    nightsinteger or nullThe length of the stay in nights.
    priceobject or nullThe 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.
    amount (in price)numberThe amount, as Booking states it.
    currency (in price)stringThe ISO currency code of the amount, e.g. USD.
    price_per_nightobject or nullThe same price per night, as Booking averages it.
    amount (in price_per_night)numberThe amount, as Booking states it.
    currency (in price_per_night)stringThe ISO currency code of the amount, e.g. USD.
    price_before_discountobject or nullThe struck-through price of the stay, when the card shows one.
    amount (in price_before_discount)numberThe amount, as Booking states it.
    currency (in price_before_discount)stringThe ISO currency code of the amount, e.g. USD.
    taxes_and_feesobject or nullThe taxes and fees Booking states for the stay that are not in price.
    amount (in taxes_and_fees)numberThe amount, as Booking states it.
    currency (in taxes_and_fees)stringThe ISO currency code of the amount, e.g. USD.
    discountsarray of objectThe 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.
    name (in discounts[])stringWhat Booking calls the discount, e.g. Genius discount or Limited-time Deal.
    amount (in discounts[])object or nullWhat it takes off the price of the stay.
    amount (in discounts[].amount)numberThe amount, as Booking states it.
    currency (in discounts[].amount)stringThe ISO currency code of the amount, e.g. USD.
    description (in discounts[])string or nullBooking's own sentence about the discount, when it gives one.
    roomstring or nullThe room or unit the price is for, e.g. Interior Double Room.
    meal_planstring or nullThe meals in the price, in Booking's words, e.g. Breakfast included; null when it states none.
    free_cancellationboolean or nullTrue when the card says the offer can be cancelled free of charge.
    no_prepaymentboolean or nullTrue when the card says nothing is paid in advance.
    availability_notestring or nullThe card's scarcity line, e.g. We have 3 left at this price.
    sold_outbooleanTrue when Booking lists the property as having nothing left for the stay.Default: false.
    sponsoredbooleanTrue when the card is marked as an advertisement.Default: false.
    imagestring or nullThe card's main photo.
    fetched_atstring (date-time)When the results were read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    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}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("booking.search", {
        "destination": "Lisbon",
        "checkin": "2027-01-12",
        "checkout": "2027-01-14",
        "adults": 2,
    })
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("booking.search", {
      destination: "Lisbon",
      checkin: "2027-01-12",
      checkout: "2027-01-14",
      adults: 2,
    });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "booking.search", map[string]any{"destination": "Lisbon", "checkin": "2027-01-12", "checkout": "2027-01-14", "adults": 2})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("booking.search", Map.of("destination", "Lisbon", "checkin", "2027-01-12", "checkout", "2027-01-14", "adults", 2));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run booking.search --input destination=Lisbon --input checkin=2027-01-12 --input checkout=2027-01-14 --input adults=2

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "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 lists every status and the reasons every scraper shares; the reasons of the Booking.com scrapers are in their own section there.