Airbnb 抓取參數

Web Scraper API Airbnb 抓取參數

使用 Thordata 的 Web Scraper API 配置 Airbnb 抓取參數,包括Airbnb 房源網址、位置、入住日期、退房日期、預訂人數、貨幣和其他參數。

唯一标識:

chevron-righttoken 訪問令牌(必填)hashtag

此參數用作 API 存取令牌,以確保抓取的合法性。

請求範例:

Authorization: Bearer ********************

curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer ********************" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=airbnb.com" ^
  -d "spider_id=airbnb_product_by-location" ^
  -d "spider_parameters=[{\"location\": \"Nice, France\",\"check_in\": \"2026-06-06\",\"check_out\": \"2026-06-010\",\"num_of_adults\": \"2\",\"num_of_children\": \"2\",\"num_of_infants\": \"0\",\"num_of_pets\": \"0\",\"country\": \"HK\",\"currency\": \"USD\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

產品 - 抓取房源資訊:

1. Airbnb - 透過搜尋 URL 抓取房源信息

chevron-rightspider_id抓取工具(必填)hashtag

定義要使用的抓取工具。

請求範例:

spider_id=airbnb_product_by-searchurl

chevron-rightsearchurl搜尋 URL (必填)hashtag

此參數指定Airbnb網站上的搜尋網址。

請求範例:

"searchurl": "https://www.airbnb.com/s/Greece/homes?query=Greece%26refinement_paths%5B%5D=%2Fhomes%26place_id=ChIJY2xxEcdKWxMRHS2a3HUXOjY%26flexible_trip_lengths%5B%5D=one_week%26monthly_start_date=2025-03-01%26monthly_length=3%26monthly_end_date=2025-06-01%26search_mode=regular_search%26price_filter_input_type=0%26channel=EXPLORE%26date_picker_type=calendar%26source=structured_search_input_header%26search_type=filter_change%26price_filter_num_nights=5%26flexible_date_search_filter_type=1"

chevron-rightcountry國家/地區 (可選)hashtag

此參數指定要從中收集資訊的國家/地區。

請求範例:

"country": "US"

chevron-right請求範例hashtag
  1. Airbnb - 透過位置抓取房源資訊

chevron-rightspider_id抓取工具(必填)hashtag

定義要使用的抓取工具。

請求範例:

spider_id=airbnb_product_by-location

chevron-rightlocation位置(必填)hashtag

此參數指定房源在 Airbnb 網站上的位置。

請求範例:

"location": "Nice, France"

chevron-rightcheck_in入住日期(選填)hashtag

此參數指定入住日期。

請求範例:

"check_in": "2026-06-06"

chevron-rightcheck_out退房日期(选填)hashtag

此參數指定退房日期。

請求範例:

"check_out": "2026-06-10"

chevron-rightnum_of_adults成人人數(選填)hashtag

此參數指定預訂的成人人數。

請求範例:

"num_of_adults": "2"

chevron-rightnum_of_children儿童人数(选填)hashtag

此参数指定预订的儿童人数。

請求範例:

"num_of_children": "2"

chevron-rightnum_of_infants嬰兒數量(選填)hashtag

此參數指定預訂的嬰兒數量。

請求範例:

"num_of_infants": "0"

chevron-rightnum_of_pets寵物數量(選填)hashtag

此參數指定預訂的寵物數量。

請求範例:

"num_of_pets": "1"

chevron-rightcountry國家/地區(選填)hashtag

此參數指定要從中收集資訊的國家/地區。

請求範例:

"country": "HK"

chevron-rightcurrency貨幣(選填)hashtag

此參數指定貨幣。

請求範例:

"currency": "USD"

chevron-right請求範例hashtag
  1. Airbnb - 透過 URL 抓取房源信息

chevron-rightspider_id抓取工具(必填)hashtag

定義要使用的抓取工具。

請求範例:

spider_id=airbnb_product_by-url

chevron-righturlURL (必填)hashtag

此參數指定Airbnb網站上的URL。

請求範例:

"url": "https://www.airbnb.com/rooms/21162039?search_mode=regular_search%26federated_search_id=1b9b58d9-8173-4981-af16-d28a7a3ece76%26locale=en%26currency=USD%26adults=2%26children=1%26infants=1%26pets=1%26check_in=2024-10-10%26source_impression_id=p3_1723723782_P31EcPsPoSdTizeX%26guests=1%26check_out=2024-10-20"

chevron-rightcountry國家/地區(選填)hashtag

此參數指定要從中收集資訊的國家/地區。

請求範例:

"country": "US"

chevron-right請求範例hashtag

如果您需要進一步的協助,請透過電子郵件聯繫 [email protected]

Last updated