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": "HK"

chevron-right请求示例hashtag

如果您需要进一步的帮助,请通过电子邮件联系 [email protected]

Last updated