# Madrid Hotel Rate Parity: Official Site vs OTAs, 30 Nights

**Use case:** 

For 5 top hotels in Madrid, compare the hotel's official website price with every OTA (Booking.com, Expedia, Agoda…) for each of the next 30 nights, and flag the dates where an OTA undercuts the official rate. Built for revenue managers: switch to your own hotels with the Hotels to monitor field.

## Input

```json
{
  "searchTerms": [
    "hotels in Madrid"
  ],
  "maxHotelsPerSearch": 5,
  "checkInDate": "1 day",
  "stayNights": 1,
  "dateRangeDays": 30,
  "adults": 2,
  "childrenAges": [],
  "countryCode": "ES",
  "currency": "EUR",
  "language": "en",
  "maxConcurrency": 5,
  "maxAttempts": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "auditTaxes": false
}
```

## Output

```json
{
  "hotel.name": {
    "label": "Hotel",
    "format": "text"
  },
  "stay.checkIn": {
    "label": "Check-in",
    "format": "date"
  },
  "stay.nights": {
    "label": "Nights",
    "format": "number"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "pricingSummary.cheapestPrice": {
    "label": "Cheapest",
    "format": "number"
  },
  "pricingSummary.cheapestProvider": {
    "label": "Cheapest channel",
    "format": "text"
  },
  "pricingSummary.officialPrice": {
    "label": "Official site",
    "format": "number"
  },
  "pricingSummary.disparityAmount": {
    "label": "Disparity",
    "format": "number"
  },
  "pricingSummary.disparityPercent": {
    "label": "Disparity %",
    "format": "number"
  },
  "pricingSummary.hasDisparity": {
    "label": "Parity broken",
    "format": "boolean"
  },
  "searchMetadata.currency": {
    "label": "Currency",
    "format": "text"
  },
  "hotel.stars": {
    "label": "Stars",
    "format": "number"
  },
  "hotel.rating": {
    "label": "Rating",
    "format": "number"
  },
  "hotel.reviewsCount": {
    "label": "Reviews",
    "format": "number"
  },
  "hotel.cid": {
    "label": "Hotel ID (CID)",
    "format": "text"
  },
  "hotel.googleHotelsUrl": {
    "label": "Google Hotels",
    "format": "link"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Google Hotels Scraper: OTA Prices & Rate Parity Actor is ready to run with the inputs already set for "Madrid Hotel Rate Parity: Official Site vs OTAs, 30 Nights". [Sign up or log in](https://console.apify.com/create-task-from-example/M9ZTAH0XEdFmyYRoj) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Madrid Hotel Rate Parity: Official Site vs OTAs, 30 Nights" task

The Google Hotels Scraper: OTA Prices & Rate Parity Actor will start running based on the input automatically. You can also change all the input fields, like search terms (discover hotels), max hotels per search, and more, to match your specific use case.

### 3. Receive the "Madrid Hotel Rate Parity: Official Site vs OTAs, 30 Nights" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as hotel, check-in, nights, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Madrid Hotel Rate Parity: Official Site vs OTAs, 30 Nights" task via API](https://apify.com/splashboard.labs/google-hotels-scraper.md).

## About this Actor

This example demonstrates how to use [Google Hotels Scraper: OTA Prices & Rate Parity](https://apify.com/splashboard.labs/google-hotels-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/splashboard.labs/google-hotels-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/splashboard.labs/google-hotels-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
