Booking.com scraper ⚡️ CC avatar
Booking.com scraper ⚡️ CC
Try for free

2 days trial then $25.00/month - No credit card required now

View all Actors
Booking.com scraper ⚡️ CC

Booking.com scraper ⚡️ CC

curious_coder/booking-scraper
Try for free

2 days trial then $25.00/month - No credit card required now

Helps in scraping booking.com including stays, hotels, attractions to extract data like name, description, price, badges, location city, country, address, photos, rating, reviews, meal plans, deals, excluded prices and many more hidden information which you won't get from any other scrapers.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "action": "scrapeStays",
11    "scrapeStays.searchUrl": "https://www.booking.com/searchresults.en-gb.html?label=en-in-booking-desktop-CmH43mrsjzqEEFQPgVycoAS652796016141%3Apl%3Ata%3Ap1%3Ap2%3Aac%3Aap%3Aneg%3Afi%3Atikwd-65526620%3Alp1007772%3Ali%3Adec%3Adm&aid=2311236&ss=Lonavala%2C+India&lang=en-gb&sb=1&src_elem=sb&src=index&dest_id=-2102774&dest_type=city&checkin=2023-08-12&checkout=2023-09-01&group_adults=2&no_rooms=1&group_children=0&sb_travel_purpose=leisure&offset=0",
12    "startPage": 1,
13    "count": 100,
14    "minDelay": 1,
15    "maxDelay": 3
16};
17
18(async () => {
19    // Run the Actor and wait for it to finish
20    const run = await client.actor("curious_coder/booking-scraper").call(input);
21
22    // Fetch and print Actor results from the run's dataset (if any)
23    console.log('Results from dataset');
24    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
25    const { items } = await client.dataset(run.defaultDatasetId).listItems();
26    items.forEach((item) => {
27        console.dir(item);
28    });
29})();
30
31// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 10 monthly users
  • 1 star
  • 88.1% runs succeeded
  • 8.4 days response time
  • Created in Aug 2023
  • Modified 5 months ago