# Global Hotel & Luxury Resort Intelligence 🏨 (`khnaami/global-hotel-luxury-resort-intelligence`) Actor

A luxury accommodations & hotel booking engine Actor providing verified pricing, amenities, room specifications, review analytics, and automated multi-currency quotation breakdowns (including VAT, city tourism taxes, and service charges).

- **URL**: https://apify.com/khnaami/global-hotel-luxury-resort-intelligence.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Apify Actor: Global Hotel & Luxury Resort Intelligence 🏨✨

A luxury accommodations & hotel booking engine Actor providing verified pricing, amenities, room specifications, review analytics, and automated multi-currency quotation breakdowns (including VAT, city tourism taxes, and service charges).

***

### 🌟 Key Features

1. **Curated Luxury & Boutique Portfolio**: Detailed records for world-famous palaces, riads, 5-star resorts, and urban luxury suites across Marrakech, Paris, Tokyo, Dubai, Rome, New York, Bali, etc.
2. **Multi-Currency Quote Breakdown**: Real-time conversions in USD ($), EUR (€), MAD (د.م.), SAR (ر.س), AED (د.إ), GBP (£), and JPY (¥).
3. **Transparent Tax & Fee Calculation**: Calculates subtotal, 10% VAT, 3% service charges, and per-room nightly municipal tourism taxes.
4. **Room Inventory & Cancellation Policies**: Scrapes individual room classes, square footage, bed configuration, and refund/cancellation terms.
5. **Distance & Location Metrics**: Exact GPS coordinates, distance to city center, and transit distance to nearest international airport.

***

### 📥 Input Schema

| Field | Type | Default | Description |
|---|---|---|---|
| `destination` | String | `"All Destinations 🌍"` | Target city (e.g. Marrakech, Paris, Tokyo, Dubai, or all). |
| `maxPriceUsd` | Integer | `2000` | Maximum base rate per night in USD. |
| `minStars` | Integer | `4` | Minimum star threshold (1 - 5). |
| `propertyType` | Select | `"All Types"` | Accommodation style (`Historic Palace`, `Boutique Riad`, `Luxury Resort`, etc.). |
| `currency` | Select | `"USD ($)"` | Output currency for pricing calculations. |
| `checkinDaysFromNow` | Integer | `7` | Days offset from today for quote simulation. |
| `stayNights` | Integer | `3` | Total nights of stay. |
| `searchQuery` | String | `""` | Optional text filter on hotel name or features. |

***

### 📤 Output Dataset Format

```json
{
  "id": "RAK-001",
  "name": "La Mamounia Palace Hotel",
  "city": "Marrakech",
  "country": "Morocco 🇲🇦",
  "stars": 5,
  "property_type": "Historic Palace",
  "rating": 9.7,
  "review_count": 3420,
  "rating_badge": "Exceptional 🌟",
  "base_price_usd_per_night": 680,
  "base_price_converted": "$680",
  "room_types_available": [
    {
      "name": "Classic Hivernage King Room",
      "size_sqm": 35,
      "bed": "1 King Bed",
      "cancellation": "Free cancellation until 48h before",
      "nightly_rate": "$680"
    }
  ],
  "sample_quote": {
    "checkin": "2026-10-10",
    "checkout": "2026-10-13",
    "nights": 3,
    "room_name": "Classic Hivernage King Room",
    "nightly_rate": "$680",
    "subtotal": "$2,040",
    "taxes_and_fees": "$280",
    "grand_total": "$2,320",
    "currency": "USD ($)"
  }
}
```

***

### 🚀 How to Run Locally

```bash
cd actor-hotel-booking
pip install -r requirements.txt
python -m src.main
```

# Actor input Schema

## `bookingUrl` (type: `string`):

Direct Booking.com city/region URL to live-scrape real-time hotel records, HD images, reviews, and rates.

## `destination` (type: `string`):

City filter (e.g. Riom, Marrakech, Paris, Tokyo, Dubai, or 'All Destinations 🌍').

## `liveScrape` (type: `boolean`):

If true, connects directly to Booking.com using anti-bot bypass to retrieve live hotel prices, photos, and ratings.

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

Target currency for rate conversion and quotes.

## `maxPriceUsd` (type: `integer`):

Upper budget threshold per night.

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

Minimum hotel star rating (1 to 5 stars).

## `propertyType` (type: `string`):

Filter by style of accommodation.

## `checkinDaysFromNow` (type: `integer`):

Number of days from now for sample reservation simulation.

## `stayNights` (type: `integer`):

Number of consecutive nights to price.

## `searchQuery` (type: `string`):

Search by hotel name, address, or landmark.

## `apiKey` (type: `string`):

Optional Apify API token or custom authentication key for MCP and programmatic triggers.

## Actor input object example

```json
{
  "bookingUrl": "https://www.booking.com/city/fr/riom.fr.html",
  "destination": "Riom",
  "liveScrape": true,
  "currency": "EUR (€)",
  "maxPriceUsd": 2000,
  "minStars": 3,
  "propertyType": "All Types",
  "checkinDaysFromNow": 7,
  "stayNights": 3,
  "searchQuery": ""
}
```

# Actor output Schema

## `results` (type: `string`):

Full hotel inventory, room classes, amenities, and quotes

## `overview` (type: `string`):

Summary report stored in Key-Value store

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/global-hotel-luxury-resort-intelligence").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/global-hotel-luxury-resort-intelligence").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call khnaami/global-hotel-luxury-resort-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khnaami/global-hotel-luxury-resort-intelligence"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/CO7J5BL1vcLg4kXXK/builds/0Cnr7rxXmLTgGPdCk/openapi.json
