Hotels

СПЛАЧЕНО
Verified
(Ким) Api Dojo | Оновлено 17日前 | Travel
Популярність

9.8 / 10

Затримки

2,263ms

Рівень обслуговування

100%

Health Check

N/A

Повернутися до всіх обговорень

Direct Scraping

Rapid account: Lucabaldazzi
lucabaldazzi
2年前

Hi,
Is scraping done directly on hotels.com via my curl call (example)?
or do I recall the data in an external database?
every time I make a call there are always 2/3 reviews made on the same day

Bye

Rapid account: Apidojo
apidojo Commented 2年前

Hello,

Paste your request and response here. I will help you. You may also send it to apidojo@gmail.com for easier discussion.

Regards.

Rapid account: Lucabaldazzi
lucabaldazzi Commented 2年前

Hi, man
if i add paginationURL
return ERROR in my aipi call and in your test api call

best Regards
by

Rapid account: Apidojo
apidojo Commented 2年前

Hello,

You are “paginationURL” optional parameter for paging purpose, the parameter helps you to load the next page.
In addition, you are leaking your token key, what a careless man!

Regards.

Rapid account: Lucabaldazzi
lucabaldazzi Commented 2年前

Hi,
this is my api call
an this is the hotel link
https://it.hotels.com/ho1387456/phi-hotel-canalgrande-modena-italia/?chkin=2022-10-19&chkout=2022-10-20&destType=CURRENT_LOCATION&destination=Modena%2C Emilia Romagna%2C Italia&expediaPropertyId=12108&neighborhoodId=553248634838840515&pwaDialogNested=PropertyDetailsReviewsBreakdownDialog&pwa_ts=1664987093384&referrerUrl=aHR0cHM6Ly9pdC5ob3RlbHMuY29tL0hvdGVsLVNlYXJjaA%3D%3D&regionId=4954&rfrr=HSR&rm1=a2&selected=12108&selectedRatePlan=286230735&selectedRoomType=219932333&semdtl=&sort=RECOMMENDED&top_cur=EUR&top_dp=183&useRewards=false&userIntent=&x_pwa=1

i take all newest reviews but the last 2 reviews not apper inside a json

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => “https://hotels4.p.rapidapi.com/reviews/v2/list?hotelId=1387456&reviewOrder=date_newest_first&tripTypeFilter=all”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => [
“X-RapidAPI-Host: hotels4.p.rapidapi.com”,
"X-RapidAPI-Key: "
],
]);

response=curlexec(response = curl_exec(curl);
err=curlerror(err = curl_error(curl);

curl_close($curl);

if ($err) {
//echo “cURL Error #:” . $err;
} else {
//echo $response;
}

Thanks for all.
Bye
Mirco

Rapid account: Apidojo
apidojo Commented 2年前

Hello,

All of our APIs provide live data. Response data is always synced with the official site/application at request time. We do not cache or store data locally at all.

Regards.

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення