# Agoda Hotel Search, Prices & Room Rates Scraper (`wyle/agoda-hotel-prices-scraper`) Actor

Search Agoda hotels by destination, check-in/out dates, or hotel URL. Extract nightly rates, total stay prices, taxes, discounts, and room options worldwide with no browser or login required.

- **URL**: https://apify.com/wyle/agoda-hotel-prices-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** Travel, E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Agoda Hotel Search, Prices & Room Rates Scraper

Extract real-time Agoda hotel listings, nightly and total stay prices, taxes, discounts, cancellation and breakfast policies, and room-level rate plans. Search by destination city, hotel name, explicit ID, or Agoda URL across 17 currencies with flexible guest, date, and rate filters. Fast, lightweight, and runs without launching a browser.

### Modes

| Mode | Input | What you get |
|---|---|---|
| Destination search | `destinationsOrHotels` with city names (`"Bali"`, `"Tokyo"`), `"city:17193"`, or Agoda search URLs | Matching hotels with nightly & total prices (exclusive & inclusive), star ratings, review scores, discounts, cancellation & breakfast flags, coordinates, and photos. |
| Single hotel lookup | `destinationsOrHotels` with hotel names (`"Marina Bay Sands"`), `"hotel:185945"`, or Agoda hotel URLs | Full hotel pricing record plus every available room category, bed type, occupancy, cancellation policy, taxes, and benefits automatically. |
| Enriched room matrix | Destination search with `includeRoomRates: true` | Adds the complete `roomRates` array (all room categories and rate plans) to every hotel in a destination search. |

### Supported Regions & Options

- **Global coverage**: Works for hotels and destinations worldwide, including regional Agoda domains (`agoda.com`, `agoda.co.id`, `agoda.jp`, etc.).
- **17 supported currencies**: `USD`, `EUR`, `GBP`, `SGD`, `JPY`, `AUD`, `IDR`, `THB`, `MYR`, `KRW`, `TWD`, `HKD`, `PHP`, `VND`, `INR`, `AED`, `CNY`.
- **Sorting options**: `recommended`, `price_low_to_high`, `price_high_to_low`, `top_reviewed`, `star_rating`, `distance`.
- **Filters**: `minStarRating` (`0–5`), `minPrice` / `maxPrice`, `freeCancellationOnly`, `breakfastIncludedOnly`, plus occupancy (`adults`, `children`, `rooms`).

### Output Modes & Proxy Tips

- **Fast search vs. enriched room rates**: By default (`includeRoomRates: false`), destination searches return hotel-level summary pricing quickly (`roomRateCount: 0`, `roomRates: []`). Enabling `includeRoomRates: true` fetches every room type and rate plan per hotel, which increases run duration. Direct single-hotel lookups always include full room rates automatically.
- **Stay date defaults**: Leaving `checkIn` blank (or passing a past date) defaults to 30 days from today; leaving `checkOut` blank defaults to 2 nights after check-in (stays are bounded to 1–30 nights).
- **Zero-null schema & proxy tips**: Every output field returns a typed non-null value (`""`, `0`, `0.0`, `false`, `[]`). Standard runs work without a proxy; enable Apify Residential proxies in `proxyConfiguration` for large multi-page destination runs or high `maxConcurrency`.

### Use Cases

- **Hotel Price Monitoring & Parity**: Track daily nightly rates, taxes, and discount percentages across destinations and currencies.
- **OTA Revenue & Rate Intelligence**: Compare refundable vs. non-refundable and breakfast-included room plans for competing properties.
- **Travel Aggregator & AI Trip Planning**: Feed live hotel availability, coordinates, and room rate options into travel apps or AI assistants.
- **Hospitality Market Benchmarking**: Analyze star ratings, review scores, and seasonal pricing shifts across target cities.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `destinationsOrHotels` | Array | `["Bali"]` | Destination city names, hotel names, Agoda search/hotel URLs, or explicit IDs (`city:17193`, `hotel:185945`). |
| `checkIn` | String | `""` | Check-in date in `YYYY-MM-DD` format. Empty defaults to 30 days from today. |
| `checkOut` | String | `""` | Check-out date in `YYYY-MM-DD` format. Empty defaults to 2 nights after check-in. |
| `adults` | Integer | `2` | Number of adult guests (`1` to `16`). |
| `children` | Integer | `0` | Number of child guests (`0` to `8`). |
| `rooms` | Integer | `1` | Number of rooms requested (`1` to `8`). |
| `currency` | String | `"USD"` | 3-letter ISO currency code for returned prices. |
| `sortBy` | String | `"recommended"` | Result order: `recommended`, `price_low_to_high`, `price_high_to_low`, `top_reviewed`, `star_rating`, `distance`. |
| `minStarRating` | Integer | `0` | Minimum star rating filter (`0` = no filter, up to `5`). |
| `minPrice` | Integer | `0` | Minimum nightly base price filter in the selected currency (`0` = no minimum). |
| `maxPrice` | Integer | `0` | Maximum nightly base price filter in the selected currency (`0` = no maximum). |
| `freeCancellationOnly` | Boolean | `false` | Keep only hotels offering free cancellation. |
| `breakfastIncludedOnly` | Boolean | `false` | Keep only hotels offering complimentary breakfast. |
| `includeRoomRates` | Boolean | `false` | Fetch all room types and rate plans for each search result (always enabled for single-hotel lookups). |
| `maxHotelsPerSearch` | Integer | `30` | Maximum hotels to extract per destination query (`0` = unlimited up to available results). |
| `maxConcurrency` | Integer | `5` | Maximum concurrent requests (`1` to `15`). |
| `proxyConfiguration` | Object | `{"useApifyProxy": false}` | Apify Proxy settings (Residential recommended for large runs). |

### Sample Output

```json
{
  "query": "Marina Bay Sands",
  "searchType": "hotel",
  "hotelId": 185945,
  "hotelName": "Marina Bay Sands",
  "propertyType": "Hotel",
  "accommodationType": "Hotel",
  "starRating": 5.0,
  "reviewScore": 8.9,
  "reviewCount": 48682,
  "cityId": 4064,
  "cityName": "Singapore",
  "areaName": "Marina Bay",
  "countryCode": "",
  "countryName": "Singapore",
  "latitude": 0.0,
  "longitude": 0.0,
  "checkIn": "2026-12-10",
  "checkOut": "2026-12-12",
  "nights": 2,
  "adults": 2,
  "children": 0,
  "roomsRequested": 1,
  "currency": "USD",
  "isAvailable": true,
  "pricePerNightExclusive": 665.47,
  "pricePerNightInclusive": 797.9,
  "crossedOutPricePerNight": 2661.89,
  "totalStayPriceExclusive": 1330.94,
  "totalStayPriceInclusive": 1595.8,
  "discountPercent": 75.0,
  "freeCancellation": true,
  "cancellationType": "FreeCancellation",
  "breakfastIncluded": false,
  "paymentModel": "Merchant",
  "hotelUrl": "https://www.agoda.com/search?hotel=185945&selectedproperty=185945",
  "imageUrls": [
    "https://pix8.agoda.net/hotelImages/185945/0/0387b3a605bdc9d07be4790f2f7bfd7a.jpeg?va=1&ce=2&s=1024x768"
  ],
  "roomRateCount": 72,
  "roomRates": [
    {
      "roomId": 633638715,
      "roomName": "Sands Premier Double Queen Room",
      "roomSize": "45 m²/484 ft²",
      "bedConfiguration": "2 queen beds",
      "maxOccupancy": 3,
      "availableRooms": 8,
      "currency": "USD",
      "pricePerNightExclusive": 665.47,
      "pricePerNightInclusive": 797.9,
      "crossedOutPricePerNight": 2661.89,
      "totalStayPriceInclusive": 1595.8,
      "discountPercent": 75.0,
      "freeCancellation": true,
      "cancellationPolicy": "Cancel for free before December 8, 2026",
      "breakfastIncluded": false,
      "payLaterAvailable": true,
      "payAtHotelAvailable": false,
      "paymentSummary": "Pay later, through Agoda",
      "taxesAndSurcharges": [
        "Tax 9%",
        "Service charge 10%"
      ],
      "benefits": [
        "Coffee & tea",
        "Express check-in",
        "Free WiFi",
        "Free entry to Infinity Pool",
        "Free entry to Sands Sky Park"
      ],
      "roomReviewScore": 9.6
    }
  ]
}
```

# Actor input Schema

## `destinationsOrHotels` (type: `array`):

List of destination city names (e.g. 'Bali', 'Singapore', 'Tokyo'), specific hotel names (e.g. 'Marina Bay Sands'), Agoda hotel or search URLs, or explicit IDs ('city:17193', 'hotel:185945').

## `checkIn` (type: `string`):

Check-in date in YYYY-MM-DD format. Leave empty to automatically search 30 days from today.

## `checkOut` (type: `string`):

Check-out date in YYYY-MM-DD format. Leave empty to automatically use 2 nights after check-in.

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

Number of adult guests (1 to 16).

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

Number of child guests (0 to 8).

## `rooms` (type: `integer`):

Number of rooms requested (1 to 8).

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

3-letter currency code for returned hotel and room prices.

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

How Agoda search results should be sorted before pagination.

## `minStarRating` (type: `integer`):

Filter hotels by minimum star rating (0 = no filter, up to 5).

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

Minimum nightly base price filter in selected currency (0 = no minimum).

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

Maximum nightly base price filter in selected currency (0 = no maximum).

## `freeCancellationOnly` (type: `boolean`):

Keep only hotels offering free cancellation on the selected rate (or hotels whose room rates include free cancellation).

## `breakfastIncludedOnly` (type: `boolean`):

Keep only hotels offering complimentary breakfast on the selected rate (or room plans).

## `includeRoomRates` (type: `boolean`):

When enabled, fetches all room types and rate plans for each search result. Single-hotel lookups always include full room rates automatically.

## `maxHotelsPerSearch` (type: `integer`):

Maximum number of hotel records to extract per destination query (0 = unlimited up to available search results).

## `maxConcurrency` (type: `integer`):

Maximum concurrent requests when fetching room rates or processing multiple inputs.

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

Apify Proxy settings. Residential proxies are recommended for large multi-page runs or high concurrency.

## Actor input object example

```json
{
  "destinationsOrHotels": [
    "Bali"
  ],
  "checkIn": "",
  "checkOut": "",
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "currency": "USD",
  "sortBy": "recommended",
  "minStarRating": 0,
  "minPrice": 0,
  "maxPrice": 0,
  "freeCancellationOnly": false,
  "breakfastIncludedOnly": false,
  "includeRoomRates": false,
  "maxHotelsPerSearch": 30,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "destinationsOrHotels": [
        "Bali"
    ],
    "checkIn": "",
    "checkOut": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/agoda-hotel-prices-scraper").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 = {
    "destinationsOrHotels": ["Bali"],
    "checkIn": "",
    "checkOut": "",
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/agoda-hotel-prices-scraper").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 '{
  "destinationsOrHotels": [
    "Bali"
  ],
  "checkIn": "",
  "checkOut": ""
}' |
apify call wyle/agoda-hotel-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wyle/agoda-hotel-prices-scraper"
        }
    }
}
```

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/FrBAEPZVr1Dh4zoAS/builds/v5elwqbujirJejvgJ/openapi.json
