Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIBooking.com

    booking.hotel

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

    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; 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.hotel
    FieldTypeDescription
    propertyrequiredstringThe 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.
    checkinstringThe first night, YYYY-MM-DD. Without dates the rooms 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 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.

    Record fields of booking.hotel
    FieldTypeNotes
    property_idintegerBooking's numeric id of the property. booking.reviews takes it.
    namestringThe property's name.
    urlstringThe property's page on booking.com, without tracking parameters.
    property_typestring or nullThe kind of property as Booking classes it, in English and lower case, e.g. hotel, apartment, villa, hostel.
    descriptionstring or nullThe property's description, in the language asked for, one line per paragraph.
    addressstring or nullThe full postal address, as the page writes it.
    postal_codestring or nullThe postal code.
    districtstring or nullThe district or neighbourhood, when Booking names one.
    citystring or nullThe city or town.
    countrystring or nullThe country's name.
    country_codestring or nullThe two-letter country code, in lower case.
    latitudenumber or nullThe latitude of the property's map pin, in decimal degrees.
    longitudenumber or nullThe longitude of the property's map pin, in decimal degrees.
    star_classnumber or nullThe property's class, 1 to 5; 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_scoresarray of objectThe score per review category, as the page lists them.
    category (in review_scores[])stringThe category, in the page's language, e.g. Cleanliness, Location, Value for money.
    score (in review_scores[])numberThe guests' average score for it, 1 to 10.
    popular_facilitiesarray of stringThe facilities the page lists as most popular, in the language asked for.
    checkinstring (date) or nullThe first night of the stay the rooms are priced for; null when no dates were asked.
    checkoutstring (date) or nullThe day of departure.
    availableboolean or nullFor 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.
    roomsarray of objectThe room types: with a stay, the ones the page offers for it and their prices; without, the property's room types with no offers.
    room_id (in rooms[])integer or nullBooking's id of the room type.
    name (in rooms[])stringThe room type's name, as the page shows it.
    offers (in rooms[])array of objectThe 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.
    price (in rooms[].offers[])objectThe 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.
    amount (in rooms[].offers[].price)numberThe amount, as Booking states it.
    currency (in rooms[].offers[].price)stringThe ISO currency code of the amount, e.g. USD.
    max_guests (in rooms[].offers[])integer or nullHow many guests the offer is for.
    cancellation (in rooms[].offers[])string or nullThe cancellation terms as Booking codes them: free_cancellation, non_refundable or special_conditions.
    meal_plan (in rooms[].offers[])string or nullThe meals in the price as Booking codes them, e.g. breakfast, half board; null when none is included.
    member_rate (in rooms[].offers[])booleanTrue when Booking marks the price as its members' rate (Genius), which it shows to every visitor on some properties.Default: false.
    house_rulesarray of objectThe page's "House rules": check-in and check-out times, cancellation, children and beds, pets and the rest, in the page's order.
    name (in house_rules[])stringWhat the rule is about, as the page heads it, e.g. Check-in, Pets, Children & Beds.
    text (in house_rules[])stringWhat the page says about it, one line per paragraph.
    fine_printstring or nullThe page's "fine print": what the property wants guests to know before booking.
    photosarray of stringThe photos of the page's gallery, largest size, in the gallery's order.
    fetched_atstring (date-time)When the page was 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.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"}}'
    
    # 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.hotel", {
        "property": "https://www.booking.com/hotel/pt/browns-downtown.html",
    })
    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.hotel", {
      property: "https://www.booking.com/hotel/pt/browns-downtown.html",
    });
    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.hotel", map[string]any{"property": "https://www.booking.com/hotel/pt/browns-downtown.html"})
    	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.hotel", Map.of("property", "https://www.booking.com/hotel/pt/browns-downtown.html"));
            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.hotel --input property=https://www.booking.com/hotel/pt/browns-downtown.html

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