Hotels.com

Intro

You can get Hotels.com results by providing your own URLs to our service. We can return the HTML of any Hotels.com page you like.

Please note that you will scrape Hotels.com by employing the universal source. To learn about all the various ways you can fine-tune this source, please visit this page.

Input

The example below illustrates how you can get a Hotels.com search results page result in HTML format.

{
    "source": "universal", 
    "url": "https://www.hotels.com/Hotel-Search?adults=1&destination=Barcelona%2C%20Barcelona%2C%20Catalonia%2C%20Spain&endDate=2023-08-18&sort=RECOMMENDED&startDate=2023-08-16"
}

The example uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.

Although we do not have a dedicated parser for Hotels.com, you can write your own parsing instructions with Custom Parser feature and get structured data.

Output

After executing the code example above, you can expect to get an output similar to this:

{
    "results": [
        {
            "content":"<!doctype html>\n<html lang=\"en\">\n<head>
            ...
            </script></body>\n</html>\n",
            "created_at": "2022-11-17 14:53:52",
            "updated_at": "2022-11-17 14:53:54",
            "page": 1,
            "url": "https://www.hotels.com/Hotel-Search?adults=1&destination=Barcelona%2C%20Barcelona%2C%20Catalonia%2C%20Spain&endDate=2023-08-18&sort=RECOMMENDED&startDate=2023-08-16",
            "job_id": "6999021798385787905",
            "status_code": 200
        }
    ]
}

Last updated