Hotels

付费
Verified
通过 Api Dojo | 已更新 לפני 17 ימים | Travel
人气

9.8 / 10

延迟

2,263ms

服务等级

100%

Health Check

N/A

返回所有讨论

Direct Scraping

Rapid account: Lucabaldazzi
lucabaldazzi
לפני שנתיים

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 לפני שנתיים

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 לפני שנתיים

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 לפני שנתיים

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 לפני שנתיים

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 לפני שנתיים

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.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论