# Agoda Scraper: Hotel Prices, Ratings & Deals (`reventadata/agoda-scraper`) Actor

Scrape Agoda hotel search results for any city and stay dates: name, type, stars, review score and count, area, coordinates, price per night with and without taxes, total price, discount, free cancellation, pay-later and sold-out flags, images. Filter by price, stars and score. Unofficial.

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

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Scraper

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to Agoda. "Agoda" is a trademark of its respective owner and is used
> here only to describe what this tool reads. It reads the same search results a browser shows
> to a visitor who is not logged in.

Agoda Hotel Scraper returns one row per hotel for an Agoda city search: price per night and for
the whole stay (with and without taxes), the crossed-out price and discount, cancellation terms,
review score, stars, location and photos, for the dates you pick.

### What does it do?

Give it an Agoda city (the numeric city id, or a search URL copied from agoda.com) and a stay
(dates, adults, rooms, currency). It walks the result pages, 45 hotels each, and saves each hotel
once, even when Agoda's ranking repeats it on the next page.

### Why use it?

- **Price detail, not just a price:** per night and per stay, inclusive and exclusive of taxes and fees, plus the original price before the discount.
- **Booking terms:** free-cancellation flag and date, pay-later eligibility, sold-out status.
- **All pages:** a large city is thousands of hotels; set `maxItems` and `maxPages` as high as you need.
- **Filters:** price per night band, minimum review score, minimum stars.
- **Public data only:** nothing from behind a login; rows carry the same property names, addresses and prices the search page shows.

### How to use it

1. Set `cityId` (Barcelona is 2002), or paste an Agoda search URL containing `?city=<id>` into `cityUrl`.
2. Set `checkIn` and `checkOut` (empty means 30 and 31 days from today), `adults`, `rooms` and `currency`.
3. Set `maxItems` and optionally the filters, run, and download the dataset as JSON, CSV, Excel or NDJSON.

A city name is not resolved to an id: use the id or the URL.

#### Input

| Field | Type | Description |
|---|---|---|
| `cityId` | integer | Agoda city id. |
| `cityUrl` | string | Agoda search URL with `?city=<id>`; used when `cityId` is empty. |
| `checkIn` | string | Check-in date, YYYY-MM-DD. Empty: 30 days from today. |
| `checkOut` | string | Check-out date, YYYY-MM-DD. Empty: the day after check-in. |
| `adults` | integer | Adults (default 2). |
| `rooms` | integer | Rooms (default 1). |
| `currency` | string | Three-letter currency code (default EUR). |
| `maxItems` | integer | Maximum hotels saved. |
| `maxPages` | integer | Maximum result pages read. |
| `minPrice` | number | Minimum all-inclusive price per night. |
| `maxPrice` | number | Maximum all-inclusive price per night. |
| `minReviewScore` | number | Minimum guest review score (0 to 10). |
| `minStars` | number | Minimum star rating. |
| `includeSoldOut` | boolean | Also save hotels listed as sold out (no price). Default off. |
| `proxyConfiguration` | object | Optional proxy; off by default. |

#### Sample Input

```json
{
    "cityId": 2002,
    "checkIn": "2026-11-25",
    "checkOut": "2026-11-27",
    "adults": 2,
    "rooms": 1,
    "currency": "EUR",
    "maxItems": 20
}
```

#### Output

Each dataset item is one hotel:

| Field | Type | Description |
|---|---|---|
| `propertyId` | integer | Agoda property id. |
| `name` | string | Property name. |
| `url` | string | Absolute URL of the property page. |
| `propertyType` | string | Property type (Hotel, Apartment, ...). |
| `stars` | number / null | Star rating. |
| `reviewScore` | number / null | Guest review score, 0 to 10. |
| `reviewCount` | integer / null | Number of reviews. |
| `address` | object | `countryCode`, `country`, `city`, `area`. |
| `lat` | number / null | Latitude. |
| `lng` | number / null | Longitude. |
| `pricePerNight` | number / null | All-inclusive price per night of the first listed offer; null when sold out. |
| `pricePerNightExclTaxes` | number / null | Same offer, per night, excluding taxes and fees. |
| `priceTotal` | number / null | Same offer, all-inclusive for the whole stay. |
| `originalPrice` | number / null | Crossed-out per-night price before the discount. |
| `originalPriceTotal` | number / null | Crossed-out price for the whole stay. |
| `discount` | number / null | Total discount as Agoda reports it for the offer. |
| `currency` | string | Currency of every price in the row. |
| `freeCancellation` | boolean / null | Agoda lists a free-cancellation option for the property. It may not be the offer the price describes: see `cheapestRoomCancellationType`. |
| `cancellationType` | string / null | Property-level type: FreeCancellation, NonRefundable or SpecialConditions. |
| `freeCancellationDate` | string / null | Last date for free cancellation, as Agoda reports it. |
| `cheapestRoomCancellationType` | string / null | Cancellation type of the offer the price fields describe. |
| `payLater` | boolean / null | Eligible for pay later. |
| `soldOut` | boolean | Listed as sold out for the dates. |
| `isSponsored` | boolean | Agoda shows the sponsored flag on the listing. |
| `imageUrls` | array | Absolute image URLs. |
| `checkIn` | string | Check-in date searched. |
| `checkOut` | string | Check-out date searched. |
| `nights` | integer | Length of stay. |
| `adults` | integer | Adults searched. |
| `rooms` | integer | Rooms searched. |
| `cityId` | integer | City id searched. |
| `scrapedAt` | string | ISO 8601 timestamp. |

Prices are what Agoda shows to a visitor without an account, for the dates searched; they can vary with where the request comes from, and they change.

### Pricing

Pay-per-event. For current pricing and details, see the Store page.

### Privacy & Compliance

This Actor reads only publicly accessible search results and sends no login. Check Agoda's terms of use for your own use of the data.

# Actor input Schema

## `cityId` (type: `integer`):

Agoda's numeric city id (Barcelona is 2002). It is the `city` value in an Agoda search URL. Give this or `cityUrl`; a city name is not resolved.

## `cityUrl` (type: `string`):

An agoda.com search URL that contains `?city=<id>` (open a city search on agoda.com and copy the address bar). Used only when `cityId` is empty.

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

Check-in date as YYYY-MM-DD. Empty: 30 days from today.

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

Check-out date as YYYY-MM-DD, after check-in. Empty: the day after check-in (31 days from today when check-in is empty too).

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

Number of adults.

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

Number of rooms.

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

Three-letter currency code for all prices (EUR, USD, GBP...).

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

Maximum number of hotels to save to the dataset.

## `maxPages` (type: `integer`):

Maximum number of result pages to read (up to 45 hotels each).

## `minPrice` (type: `number`):

Keep only hotels whose all-inclusive price per night is at least this, in the chosen currency. Applied after the fetch.

## `maxPrice` (type: `number`):

Keep only hotels whose all-inclusive price per night is at most this, in the chosen currency. Applied after the fetch.

## `minReviewScore` (type: `number`):

Keep only hotels with a guest review score at or above this (0 to 10). Hotels with no score are dropped.

## `minStars` (type: `number`):

Keep only hotels with a star rating at or above this (1 to 5). Hotels with no rating are dropped.

## `includeSoldOut` (type: `boolean`):

Also save hotels Agoda lists as sold out for the dates (no price). Off by default.

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

Optional proxy. Off by default.

## Actor input object example

```json
{
  "cityId": 2002,
  "adults": 2,
  "rooms": 1,
  "currency": "EUR",
  "maxItems": 20,
  "maxPages": 2,
  "includeSoldOut": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Hotels from an Agoda city search.

# 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 = {
    "cityId": 2002,
    "maxItems": 20,
    "maxPages": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/agoda-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 = {
    "cityId": 2002,
    "maxItems": 20,
    "maxPages": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/agoda-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 '{
  "cityId": 2002,
  "maxItems": 20,
  "maxPages": 2
}' |
apify call reventadata/agoda-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reventadata/agoda-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/N7HzpyzmZnJebu1LV/builds/IRVcvP3KVT93fdg58/openapi.json
