Booking Scraper

  • voyager/booking-scraper
  • Modified
  • Users 40
  • Runs 312
  • Created by Author's avatarVoyager

Scrape Booking with this hotels scraper and get data about accommodation on Booking.com. You can crawl by keywords or URLs for hotel prices, ratings, addresses, number of reviews, stars. You can also download all that room and hotel data from Booking.com with a few clicks: CSV, JSON, HTML, and Excel

Pay $5.00 for 1,000 results

Booking Scraper

Pay $5.00 for 1,000 results

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "search": "New York",
    "maxItems": 10,
    "sortBy": "distance_from_search",
    "starsCountFilter": "any",
    "currency": "USD",
    "language": "en-gb",
    "minMaxPrice": "0-999999",
}

# Run the Actor and wait for it to finish
run = client.actor("voyager/booking-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)