# AI Travel Agent (`danrizea/ai-travel-agent`) Actor

This Apify actor helps you quickly find accommodation listings from top travel websites like Booking.com and Airbnb. Get the best options that match your preferences—without the hassle of manually searching multiple sites.

- **URL**: https://apify.com/danrizea/ai-travel-agent.md
- **Developed by:** [Dan Rizea](https://apify.com/danrizea) (community)
- **Categories:** Agents, AI, Open source
- **Stats:** 17 total users, 0 monthly users, 0.0% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.13 / 1,000 scraping result charges

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

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

## Find the Best Travel Deals – Fast & Easy!

### What is this tool?

This Apify actor helps you quickly find accommodation listings from top travel websites like **Booking.com** and **Airbnb**. Get the best options that match your preferences—without the hassle of manually searching multiple sites.

### Why use it?

✅ **Search multiple platforms at once** – No need to check different sites separately.\
✅ **Smart filtering** – Use simple or advanced filters to find exactly what you need.\
✅ **AI-powered search** – Uses Google's Gemini AI model to refine your results.\
✅ **Fast & efficient** – Get the best deals in just a few clicks.\
✅ **Easy data access** – Download results in structured formats like JSON for easy use.

### How to Use

1. **Enter your search criteria** – Choose your location, dates, and preferences.
2. **Customize your filters** – Set price range, amenities, and more.
3. **Start the search** – The actor scans Booking.com and Airbnb for the best matches.
4. **Get your results** – See a list of top accommodations tailored to your needs.
5. **Download & use the data** – Export results for reports, planning, or further analysis.

### Input Settings

Simply fill in the Input form:

```json
{
    "geminiApiKey": "YOUR_GEMINI_API_KEY",
    "filter": "Looking for a 2-bedroom accommodation in Barcelona with ratings above 4.0 and a price between $100 and $300 per night",
    "advancedFilter": "I want the property to have a beautiful sea-side view. I also want to only see discounted properties with air conditioning and a private kitchen.",
    "bookingScrapingLimit": 40,
    "airbnbScrapingLimit": 40,
    "matchExactFilter": false
}
```

- **geminiApiKey**\* - You can get this parameter from here: [API Key Link](https://aistudio.google.com/u/1/apikey). The free tier Gemini tier can work well for 50 total scraping requests, but will fail if more are used. To prevent that, please use the **Tier 1** pricing model. You can find more information on pricing [here](https://ai.google.dev/gemini-api/docs/pricing#gemini-2.0-flash-lite) and on rate limits [here](https://ai.google.dev/gemini-api/docs/rate-limits?hl=en#current-rate-limits).
- **filter**\* - You can use this to specify parameters used within the used Airbnb and Booking scrapers.
- **advancedFilter** - You can use this to filter the results received from Airbnb and Booking.
- **bookingScrapingLimit**\* - Specifies how many results the Booking scraper should retrieve
- **airbnbScrapingLimit**\* - Specifies how many results the Airbnb scraper should retrieve
- **matchExactFilter** - If enabled, you can use this parameter to make Gemini give you more accurate/specific outputs, ignoring results that do not exactly match your requests

### What You Get

You'll receive a list of accommodation options with details like:

```json
[
    {
      "url": "https://www.airbnb.com/rooms/42151836?locale=en-US&currency=USD&adults=1&children=0&infants=0&pets=0&check_in=2024-01-01&check_out=2024-01-08",
      "name": "Chic Penthouse in the center with private terrace",
      "description": "HUTB-005661-39Situated in the coolest neighborhood in the world (TIME OUT ranking 2020), this fantastic penthouse has one cosy terrace with direct access from the flat and one private rooftop terrace. It has a comfy table and chairs to work with your computer and super fast reliable internet connection. It is also well located to go sightseeing (15min walk - 2 metro stops from  Placara Catalunya). The apartment was renovated in February 2020 and fully equipped for your maximum comfort.The spaceThe apartment is very bright, it is tastefully decorated and has been prepared for your maximum comfort. Both terraces are super pleasant and have views of different highlights of the city, like Tibidabo, Sangrada Familia or Montjuic.The same level terrace has sofas, umbrella and table to relax. The rooftop terrace has a shower, chill out and sun loungers. In addition, it has a table and umbrella so you can organize your breakfast, lunch or dinner there.Within the apartment you will find:- one bedroom with a double bed and direct exit to the same level terrace- one bedroom with twin separated beds- living room with sofa (where 1 person can sleep), fully equipped kitchen and dinning area- full bathroom with rain showerThe apartment is fully equipped with good quality towels, linens and kitchenware. It has air conditioning for summer and heating system to stay comfortable in winter.Other things to noteIn order to ensure the well-being of other guests and neighbors, we have installed decibel meters in the common areas of the apartment. If the maximum established by law is exceeded, an agent will contact you to ask you to lower the noise level.Please notice that the sofa in the living room is a standard sofa (not a sofa bed) but one person can sleep there as it is super comfortable and spacious (280cm long, 90 cm guide). Bedsheets and towels for that person are under the chaise longue.Registration numberHUTB-005661",
      "location": "Barcelona",
      "rating": 4.852857142857142,
      "numberOfRatings": 284,
      "price": "$214"
    }
]
```

### Pricing

💰 **Affordable & Transparent**

- **AI Travel Agent** – $3.125 per 1,000 results scraped from either **Booking** or **Airbnb**.
- **Bookings** – $5.000 per 1,000 results scraped from **Booking**
- **Airbnb** – $1.250 per 1,000 results scraped from **Airbnb**.
- **Gemini** – All Gemini token costs will be charged through the provided API Key. This scraper uses Gemini's 2.0-flash-lite model which has a cost of 0.075$ per 1 million tokens. This approximates to 0.15$ per 1000 scraped results.
- **Overview** - The total cost for 1000 analyzed accommodations (500 from Booking and 500 from Airbnb) would amount to 6.400$

### Get Started Now!

🚀 **Find the best accommodations today!** Simply enter your search criteria, and let this powerful tool do the work for you.

#### Need Help?

📩 Reach out via [Discord](https://discordapp.com/users/.discouraged) or [e-mail](mailto:rizeadan99@gmail.com) for support. I'm here to help!

***

**Developed by:** Dan Rizea

# Actor input Schema

## `geminiApiKey` (type: `string`):

Your API key Google's Gemini model

## `filter` (type: `string`):

Basic search criteria for accommodations (e.g., location, dates, or keywords)

## `advancedFilter` (type: `string`):

Additional criteria for filtering accommodations (e.g., price range, amenities)

## `bookingScrapingLimit` (type: `integer`):

Maximum number of accommodations to scrape from Booking website

## `airbnbScrapingLimit` (type: `integer`):

Maximum number of accommodations to scrape from Airbnb website

## `matchExactFilter` (type: `boolean`):

If true, only return accommodations that exactly match the filtering criteria

## Actor input object example

```json
{
  "bookingScrapingLimit": 0,
  "airbnbScrapingLimit": 0,
  "matchExactFilter": false
}
```

# 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("danrizea/ai-travel-agent").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("danrizea/ai-travel-agent").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 danrizea/ai-travel-agent --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,danrizea/ai-travel-agent"
        }
    }
}
```

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/7niXb83hFopME4d84/builds/ygFfovVOGNn5rIRB4/openapi.json
