Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Booking.com hotel prices for a whole city and exact dates, without a browser (Python + n8n)

说明与用途

使用 Apify API 和 n8n 自动化,无需浏览器即可获取整个城市特定日期的 Booking.com 酒店价格。

问题

Scraping Booking.com hotel prices for an entire city on specific dates without triggering AWS WAF challenges and without using a headless browser.

结果

Obtained structured hotel price data for a city on exact dates without browser overhead, enabling daily price monitoring and comparison.

工作流

  • 1. Prepare Apify token and set environment variable APIFY_TOKEN.
  • 2. Construct JSON payload with locationQueries, checkIn, nights, adults, childrenAges, rooms, currency, sortBy, minStars, maxPrice, maxHotelsPerQuery.
  • 3. Send POST request to https://api.apify.com/v2/acts/kestrel~booking-prices-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN.
  • 4. Receive JSON array of hotel rows with price_total, price_nightly, taxes_included, free_cancellation, breakfast_included, etc.
  • 5. Optionally filter or sort results in Python or n8n workflow.
  • 6. Schedule the request to run every morning via n8n cron node.
  • 7. Store or export the data for analysis or pricing dashboards.

证据

Every Booking.com page sits behind AWS WAF. The results page, once loaded, calls a GraphQL operation named FullSearch on Booking's /dml/graphql endpoint, 100 properties per page, and that call is served without the WAF token — on residential IPs.

来源

The Booking.com Scraper on Apify takes destinations as typed into Booking's search box, or property URLs, names and ids, plus a stay (checkIn, nights, adults, childrenAges, rooms, currency), and returns one hotel row per property.

来源

  • 记录日期: 2026-09-10T23:45:29.126Z