# Booking & Airbnb Scraper & Comparator (`pengwius/booking-airbnb-scraper-comparator`) Actor

Scrapes and compares accommodation offers from Airbnb and Booking.com to find the best value stays based on price, rating, and location. Normalizes data, calculates a stay score, and returns the best rental options for given dates and city.

- **URL**: https://apify.com/pengwius/booking-airbnb-scraper-comparator.md
- **Developed by:** [pengwius](https://apify.com/pengwius) (community)
- **Categories:** Travel, Real estate, Automation
- **Stats:** 7 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$19.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Booking & Airbnb Scraper & Comparator

This Actor scrapes accommodation listings from both **Booking.com** and **Airbnb**, compares them based on your specific criteria, and returns the best results in a single, unified dataset.

Its primary goal is to help you find the best value for money by normalizing prices, converting currencies, and scoring listings according to your preferences (e.g., price, rating, distance to center).

### How It Works

The Actor searches both platforms simultaneously using your specified parameters (dates, location, guests). It then processes the results to ensure they are directly comparable:

1. **Standardizes Data**: Maps different data structures from Booking and Airbnb into a common format.
2. **Normalizes Prices**: Calculates the total price for the full stay and converts all prices to your preferred currency using real-time exchange rates.
3. **Scores Results**: Assigns a score to each listing based on your chosen priority (e.g., "Balanced", "Price", "Rating"), allowing you to easily identify the best offers.

### Key Features

#### Unified Comparison

Instead of browsing two separate websites, you get a combined list of accommodations. The Actor standardizes data from both platforms so you can directly compare a hotel on Booking.com with an apartment on Airbnb.

#### Smart Scoring System

The Actor doesn't just list results; it ranks them. You can choose a scoring priority to highlight the offers that match your needs:

- **Balanced**: Considers price and rating equally to find the best overall value.
- **Price**: Prioritizes the lowest total cost.
- **Rating**: Prioritizes the highest guest reviews.
- **Free Cancellation**: Prioritizes listings that offer flexible cancellation policies.

#### Accurate Pricing & Currency Conversion

- **Total Cost**: It calculates the total price for the entire stay, ensuring you compare the final amount you will pay, not just a nightly rate.
- **Currency Normalization**: If a listing is displayed in a local currency (e.g., EUR) but you requested another (e.g., USD), the Actor automatically converts the price using current exchange rates.

### Input Parameters

The input is a JSON object with the following fields:

| Field | Type | Description |
|---|---|---|
| `location` | String | **Required**. Destination city (e.g., "Warsaw, Poland"). |
| `checkInDate` | String | **Required**. Start date (YYYY-MM-DD). |
| `checkOutDate` | String | **Required**. End date (YYYY-MM-DD). |
| `currency` | String | The currency you want to see prices in (e.g., "USD", "EUR"). |
| `maxItems` | Integer | Limit results per platform (e.g., 50 Booking + 50 Airbnb). |
| `scoringPriority` | String | How to rank results: `balanced`, `price`, `rating`, `free_cancellation`. |

*See the Input Schema tab in Apify Console for the full list of available filters.*

### Output Example

The Actor stores results in the default dataset. Each item represents one accommodation listing with a normalized price and calculated score.

```json
{
  "platform": "Airbnb",
  "title": "Modern Studio in City Center",
  "price": "1250.00",
  "rating": "9.5",
  "distanceToCenter": "0.5 km",
  "freeCancellation": true,
  "score": 850,
  "url": "https://www.airbnb.com/rooms/...",
  "scrapedAt": "2025-12-23T18:00:00.000Z"
}
```

# Actor input Schema

## `location` (type: `string`):

City, region, or specific location to search for.

## `checkInDate` (type: `string`):

Format: YYYY-MM-DD. If left empty, defaults to 14 days from today.

## `checkOutDate` (type: `string`):

Format: YYYY-MM-DD. If left empty, defaults to 16 days from today (2 nights).

## `adults` (type: `integer`):

Number of adult guests.

## `children` (type: `integer`):

Number of children.

## `currency` (type: `string`):

Preferred currency code (e.g., USD, EUR, PLN).

## `accommodationTypes` (type: `array`):

Filter by property type

## `minStars` (type: `integer`):

Filter by star rating (1-5)

## `reviewScore` (type: `string`):

Filter by review score

## `facilities` (type: `array`):

Select property facilities

## `roomFacilities` (type: `array`):

Select room facilities

## `meals` (type: `array`):

Select meal plans

## `reservationPolicy` (type: `array`):

Select reservation policies

## `bedPreference` (type: `string`):

Preferred bed type

## `accessibility` (type: `array`):

Accessibility features

## `sortBy` (type: `string`):

How to sort results on the booking platform?

## `scoringPriority` (type: `string`):

Choose what matters most to you. This affects the 'score' field in the output, helping you sort the best deals to the top.

## `scrapeBooking` (type: `boolean`):

Enable scraping from Booking.com

## `scrapeAirbnb` (type: `boolean`):

Enable scraping from Airbnb

## `minPrice` (type: `integer`):

Minimum price per night in the selected currency.

## `maxPrice` (type: `integer`):

Maximum price per night in the selected currency. Leave empty for no limit.

## `maxItems` (type: `integer`):

Limit the number of results scraped from EACH platform (e.g., 50 from Booking + 50 from Airbnb = 100 total). Set to 0 for no limit.

## `proxyConfiguration` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "location": "Warsaw, Poland",
  "adults": 2,
  "children": 0,
  "currency": "USD",
  "accommodationTypes": [],
  "reviewScore": "any",
  "facilities": [],
  "roomFacilities": [],
  "meals": [],
  "reservationPolicy": [],
  "bedPreference": "any",
  "accessibility": [],
  "sortBy": "price",
  "scoringPriority": "balanced",
  "scrapeBooking": true,
  "scrapeAirbnb": true,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `sortedResults` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location": "Warsaw, Poland"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pengwius/booking-airbnb-scraper-comparator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "location": "Warsaw, Poland" }

# Run the Actor and wait for it to finish
run = client.actor("pengwius/booking-airbnb-scraper-comparator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": "Warsaw, Poland"
}' |
apify call pengwius/booking-airbnb-scraper-comparator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=pengwius/booking-airbnb-scraper-comparator",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sNe3Oa1hBHdKWQTxQ/builds/rmI2d9SYsJe6H1Df4/openapi.json
