# Agoda Hotels & Live Rates Scraper (`axery/agoda-hotels-scraper`) Actor

Scrape live Agoda hotel listings, room prices, star ratings, guest review scores, cancellation policies & coordinates by city. Fast pure-HTTP with no login.

- **URL**: https://apify.com/axery/agoda-hotels-scraper.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Categories:** Travel, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 hotel listing extracteds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Hotels & Live Rates Scraper

A fast, lightweight, and reliable Apify actor to scrape live hotel listings, room prices, guest ratings, review counts, coordinates, and booking URLs from **Agoda.com**.

Built using direct reverse-engineered HTTP APIs for maximum speed and 100% success rate without expensive browser overhead.

***

### ⚡ Features

- **Destination & City Resolution**: Search by city/destination name (e.g. `Tokyo`, `Bali`, `Paris`, `New York`, `London`) or provide a direct Agoda `cityId`.
- **Live Real-time Pricing**: Extracts nightly room rates before taxes (`pricePerNightExclusive`) and after taxes (`pricePerNightInclusive`).
- **Flexible Stay Dates & Guests**: Customizable check-in/check-out dates, number of adults, rooms, and children.
- **Multicurrency**: Supports any world currency (`USD`, `EUR`, `GBP`, `JPY`, `IDR`, `SGD`, `AUD`, etc.).
- **Cancellation Policies**: Flags `FreeCancellation` vs `NonRefundable`.
- **Rich Hotel Metadata**: Name, star rating, guest review score, review count, exact street address, neighborhood/area, latitude/longitude, and high-resolution thumbnail images.
- **Zero Browser Dependencies**: Lightweight and finishes in seconds with minimal memory footprint.

***

### 📥 Input Parameters

| Field | Type | Description | Default |
|---|---|---|---|
| `destination` | String | City or destination name to search (e.g., `Tokyo`, `Bali`, `Paris`) | `"Tokyo"` |
| `cityId` | Integer | Optional direct Agoda City ID (e.g. `5085`) | *Auto-resolved* |
| `checkIn` | String | Check-in date in `YYYY-MM-DD` format | `+14 days` |
| `checkOut` | String | Check-out date in `YYYY-MM-DD` format | `checkIn + 2 days` |
| `adults` | Integer | Number of adult guests | `2` |
| `rooms` | Integer | Number of rooms | `1` |
| `children` | Integer | Number of children | `0` |
| `currency` | String | Currency code (`USD`, `EUR`, `JPY`, `IDR`, etc.) | `"USD"` |
| `sort` | String | Sorting criteria: `Ranking`, `Price`, `AllGuestsReviewScore` | `"Ranking"` |
| `maxHotels` | Integer | Maximum hotel results to scrape | `50` |

#### Sample Input JSON

```json
{
  "destination": "Tokyo",
  "checkIn": "2026-11-01",
  "checkOut": "2026-11-03",
  "adults": 2,
  "currency": "USD",
  "sort": "Ranking",
  "maxHotels": 50
}
```

***

### 📤 Sample Output Data

```json
{
  "propertyId": 706347,
  "name": "Hotel Gracery Shinjuku",
  "propertyType": "Hotel",
  "starRating": 4.0,
  "reviewScore": 8.7,
  "reviewCount": 30643,
  "pricePerNightExclusive": 177.17,
  "pricePerNightInclusive": 214.38,
  "currency": "USD",
  "cancellationPolicy": "FreeCancellation",
  "address": "1-19-1 Kabukicho, Shinjuku-ku",
  "area": "Shinjuku",
  "city": "Tokyo",
  "countryCode": "JP",
  "latitude": 35.695304,
  "longitude": 139.701989,
  "checkIn": "2026-11-01",
  "checkOut": "2026-11-03",
  "imageUrl": "https://pix8.agoda.net/hotelImages/706347/0/3e65d3aa46fec5e55d81dded640e3990.jpeg?va=1&ce=2",
  "hotelUrl": "https://www.agoda.com/hotel-gracery-shinjuku/hotel/tokyo-jp.html?hotel_id=706347",
  "scrapedAt": "2026-10-16T00:45:00.000Z"
}
```

***

### 💰 Pricing (Pay-Per-Event)

- **Start Price**: $0.005 per run
- **Dataset Item Price**: $0.002 per scraped hotel record
- **Platform Usage**: Paid by user (`isPPEPlatformUsagePaidByUser: true`)

# Actor input Schema

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

City or destination name to search (e.g. 'Tokyo', 'Bali', 'Paris', 'New York', 'London').

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

Optional direct Agoda City ID (e.g. 5085 for Tokyo, 17193 for Bali). If omitted, auto-resolved from Destination.

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

Check-in date in YYYY-MM-DD format. Defaults to 14 days from today if empty.

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

Check-out date in YYYY-MM-DD format. Defaults to check-in + 2 days if empty.

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

Number of adult guests.

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

Number of rooms needed.

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

Number of children.

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

Currency for prices (e.g. USD, EUR, GBP, JPY, IDR, SGD, AUD).

## `sort` (type: `string`):

Sorting criteria for hotel search results.

## `maxHotels` (type: `integer`):

Maximum number of hotel listings to extract.

## Actor input object example

```json
{
  "destination": "Tokyo",
  "adults": 2,
  "rooms": 1,
  "children": 0,
  "currency": "USD",
  "sort": "Ranking",
  "maxHotels": 50
}
```

# Actor output Schema

## `data` (type: `string`):

Scraped hotel listings, nightly prices, review scores, coordinates, and booking URLs.

# 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("axery/agoda-hotels-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("axery/agoda-hotels-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 '{}' |
apify call axery/agoda-hotels-scraper --silent --output-dataset

```

## MCP server setup

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