Fixes pricing extraction from API endpoint: https://api.airbnb.com/v2/pdp_listing_booking_details.
Changelog
Pricing was extracted from base_price_breakdown field which from my observation stores an empty array. Total price is now extracted from price.total and price per night is calculated from it using the nights value (nightly price is not part of the response). This way it should work properly with minPrice and maxPrice input filters that are associated with the nightly price rate.
Currency from the input was not propagated to the pricing, this is fixed as well.
Some of the deprecated options from Apify.requestAsBrowser were updated (I haven't found a replacement for abortFunction though).
INPUT_SCHEMA.json had no indentation so I added 2-space indentation and used it for actor.json as well. Otherwise there're no changes in these files.
Current pricing
I extended pricing value with nights count, total price and the individual price items such as accommodation, discount or taxes (they're part of the Airbnb UI).
Fixes
pricing
extraction from API endpoint:https://api.airbnb.com/v2/pdp_listing_booking_details
.Changelog
base_price_breakdown
field which from my observation stores an empty array. Total price is now extracted fromprice.total
and price per night is calculated from it using thenights
value (nightly price is not part of the response). This way it should work properly withminPrice
andmaxPrice
input filters that are associated with the nightly price rate.Apify.requestAsBrowser
were updated (I haven't found a replacement forabortFunction
though).INPUT_SCHEMA.json
had no indentation so I added 2-space indentation and used it foractor.json
as well. Otherwise there're no changes in these files.Current pricing
I extended
pricing
value with nights count, total price and the individual price items such as accommodation, discount or taxes (they're part of the Airbnb UI).