Expedia Hotel Data Aggregator - Organize and Examine Insights avatar
Expedia Hotel Data Aggregator - Organize and Examine Insights
Try for free

14 days trial then $4.99/month - No credit card required now

View all Actors
Expedia Hotel Data Aggregator - Organize and Examine Insights

Expedia Hotel Data Aggregator - Organize and Examine Insights

dainty_screw/expedia-hotel-collector---store-and-analyze-data
Try for free

14 days trial then $4.99/month - No credit card required now

Effortlessly gather and store key details of Expedia hotels, including names, ratings, and prices. Use our tool for competitive analysis and strategic planning in the hospitality sector.

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 mode

Node.js

Python

curl

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    "startUrls": [
11        {
12            "url": "https://www.expedia.com/Prague-Hotels-Hotel-Krystal.h10966026.Hotel-Information",
13            "method": "GET",
14            "userData": {
15                "hotel": "Prague Hotel Krystal",
16                "doWeEndorseIt": "no opinion"
17            }
18        },
19        {
20            "url": "https://www.expedia.it/en/Berchtesgaden-Hotels-Alpensport-Hotel-Seimler.h2692552.Hotel-Information",
21            "method": "GET",
22            "userData": {
23                "your": [
24                    "custom",
25                    "data",
26                    "goes",
27                    "here"
28                ],
29                "doWeEndorseThisHotel": "no opinion"
30            }
31        }
32    ]
33};
34
35(async () => {
36    // Run the Actor and wait for it to finish
37    const run = await client.actor("dainty_screw/expedia-hotel-collector---store-and-analyze-data").call(input);
38
39    // Fetch and print Actor results from the run's dataset (if any)
40    console.log('Results from dataset');
41    const { items } = await client.dataset(run.defaultDatasetId).listItems();
42    items.forEach((item) => {
43        console.dir(item);
44    });
45})();
Developer
Maintained by Community
Actor metrics
  • 3 monthly users
  • 95.2% runs succeeded
  • 0.0 days response time
  • Created in Apr 2024
  • Modified 5 days ago