All scrapers

Travel

Trip.com

trip.com

100% Success rate
5.2s Avg response
Bot detection + rate limiting Protection
1,000 calls Measured over

Trip.com covers flights, hotels and rail in a single catalogue, which makes it useful when you want several travel verticals without maintaining three separate scrapers.

What you can extract

  • Flight and hotel search results
  • Price, currency and fare class
  • Property rating and review score
  • Availability by date
  • Deep links to the booking page

How to scrape it

curl -X POST \
  -H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
  "https://api.scrapeunblocker.com/getPageSource?url=https%3A%2F%2Fwww.trip.com%2F&parsed_data=true"
import requests

resp = requests.post(
    "https://api.scrapeunblocker.com/getPageSource",
    headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
    params={"url": "https://www.trip.com/", "parsed_data": True},
)
print(resp.text)
import { ScrapeUnblockerClient } from 'scrapeunblocker';

const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });

const results = await su.getPageSource({
  url: 'https://www.trip.com/',
  parsedData: true,
});
console.log(results);

Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.

Read the API docs

Related scrapers

Start scraping this site today

Free tier included. No credit card required to test it.