# Agoda Rate Shopper — Hotel Comp-Set Rate Calendar, $1/1K (`yugenox/agoda-rate-shopper`) Actor

Daily hotel rate shopping on Agoda: your comp set × up to 180 check-in dates in one run. Nightly price with and without taxes, stay total, rooms left, free cancellation, pay later, sold-out + next available date, comp-set rank and median, changes-only monitor. No login.

- **URL**: https://apify.com/yugenox/agoda-rate-shopper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Travel, 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 hotel-date rows

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

## Agoda Rate Shopper — Hotel Comp-Set Rate Calendar

Rate shopping for hotels on Agoda: give it your competitive set and a range of check-in dates, and get a price calendar back — one row per hotel × check-in date, with nightly price (with and without taxes), stay total, rooms left, free cancellation, pay later, sold-out status with the next bookable date, and where each hotel ranks in the comp set that night. Schedule it daily with **Changes only** on and you get only the cells whose price or availability moved, with the previous price and the change.

### What you can do with it

- **Daily comp-set rate shop** for revenue managers: 10 competitors × the next 90 or 180 nights in one run.
- **Track your own hotel against the set**: add *My hotel* and every row shows your price, the gap in % and your rank.
- **Price-change alerts**: changes-only mode + a schedule + an Apify integration (Slack, email, webhook).
- **Market studies**: compare lengths of stay (1, 2, 7 nights), occupancies (1 or 2 adults) and markets (US, TH, JP…).
- **Hotels in different cities in one set** (e.g. airport vs downtown, or a chain across cities).

### Input

| Field | What it does |
|---|---|
| Hotels | Agoda hotel links, hotel IDs (e.g. `6779`) or names (`Lily Hotel, London`). Up to 100. |
| My hotel | Optional: your own property, compared against every other row. |
| Check-in dates **or** Start date + Window | Exact dates, or a rolling window (`tomorrow` + 90 days). Up to 180 dates. *Every Nth day* thins the window (e.g. weekly). |
| Nights / Adults / Rooms | Stay shape. Up to 3 values each for nights and adults — every combination is priced. |
| Currency / Market | Any Agoda currency (USD, THB, JPY, VND, IDR, SGD…) and point-of-sale country. |
| Changes only | Write only hotel-dates that changed since the last run (first run writes everything as `new`). |
| Minimum change % | Ignore small price moves in changes-only mode. |
| Max rows | Hard cap on rows (0 = no limit). |

Example:

```json
{ "hotels": ["6779", "48101", "https://www.agoda.com/lily-hotel/hotel/london-gb.html"], "myHotel": "6779",
  "startDate": "tomorrow", "windowDays": 90, "nights": ["1", "2"], "currency": "GBP", "onlyChanged": true }
```

### Output (real row, trimmed — Lily Hotel, London, check-in 2026-11-08)

```json
{
  "hotelId": 48101, "hotelName": "Lily Hotel", "city": "London", "country": "United Kingdom", "starRating": 2,
  "checkIn": "2026-11-08", "checkOut": "2026-11-09", "nights": 1, "adults": 2, "rooms": 1, "daysToArrival": 1,
  "available": true, "currency": "USD", "pricePerNight": 67.32, "pricePerNightWithTaxes": 80.79,
  "stayTotal": 67.32, "stayTotalWithTaxes": 80.79, "roomsLeft": 44, "freeCancellation": false, "payLater": false,
  "nextAvailableDate": "2026-11-08", "compSetSize": 3, "compSetMin": 61.56, "compSetMedian": 67.32, "compSetMax": 199.31,
  "rankInCompSet": 2, "isMyHotel": false, "myHotelPrice": 199.31, "vsMyHotelPct": -66.2,
  "changeType": "new", "previousPrice": null, "priceChange": null, "priceChangePct": null,
  "hotelUrl": "https://www.agoda.com/lily-hotel/hotel/london-gb.html", "market": "US"
}
```

`changeType` is `new`, `up`, `down`, `same`, `sold_out` or `back`. Sold-out cells have no price and a `nextAvailableDate` taken from the later dates in your window. `roomsLeft` is empty when Agoda shows plenty of rooms.

### Price

Pay per result:

- **$1.00 per 1,000 hotel-date rows** written to the dataset.
- **$0.20 per 1,000 price checks** (one check = one check-in date for up to 25 hotels).
- $0.001 per run start.

A 10-hotel × 90-day daily shop costs about **$0.92 a day (~$27 a month)** with full output, or about **$0.30 a day (~$9 a month)** in changes-only mode when a third of the cells move. Unchanged cells, hotels that are not found and checks that fail are never charged.

### Tips

- Use hotel IDs for the fastest runs (names and links are looked up once, then remembered).
- For a schedule, set Start date to `tomorrow` (or `+1 day`) so the window rolls forward every day.
- Running several schedules at the same time? Give each its own *Monitor memory name*.
- A 10 × 180 grid takes about 3–4 minutes; each check-in date is one request, whatever the size of your comp set.

### FAQ

**Is it legal to scrape Agoda?** This actor reads only public prices that Agoda shows to any visitor without logging in, at a gentle pace, and respects Agoda's robots.txt. Rate shopping of public prices is a common practice in hospitality. Check that your use fits the laws that apply to you.

**Does it access any private data?** No. It reads hotel names, public prices and availability only — no accounts, no bookings, no guest or reviewer data.

**Why does a hotel return no prices?** The ID is not on Agoda, or the hotel is not bookable for that stay. Those cells are not charged; the run message lists such hotels.

**Are the prices the same as on the website?** They are the lowest room price Agoda's own search shows for that stay, currency and market, for a logged-out visitor. Member-only and app-only deals are not included.

# Actor input Schema

## `hotels` (type: `array`):

Agoda hotel links, Agoda hotel IDs (e.g. 6779) or hotel names ("Lily Hotel, London"). Hotels can be in different cities. Up to 100.

## `myHotel` (type: `string`):

Your own hotel (link, ID or name). It is added to the comp set and every row shows its price, the price gap in % and its rank.

## `checkInDates` (type: `array`):

Exact check-in dates (YYYY-MM-DD, or relative like "+14 days"). Leave empty to use a window of dates starting at Start date.

## `startDate` (type: `string`):

First check-in date of the window: YYYY-MM-DD, "today", "tomorrow" or "+7 days". Relative values keep scheduled runs rolling forward.

## `windowDays` (type: `integer`):

How many consecutive check-in dates to price, from Start date (1–180).

## `dayStep` (type: `integer`):

1 = every day; 7 = one check-in date per week across the window.

## `nights` (type: `array`):

Length of stay. Give up to 3 values (e.g. 1, 2, 7) to price each length.

## `adults` (type: `array`):

Adults per stay. Up to 3 values (e.g. 1, 2) to price each occupancy.

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

Rooms per stay.

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

3-letter currency code Agoda shows prices in (USD, EUR, THB, JPY, VND, IDR, MYR, SGD…).

## `marketCountry` (type: `string`):

2-letter country the prices are shown for (US, TH, JP, SG…). Agoda prices can differ by market.

## `onlyChanged` (type: `boolean`):

Write only hotel-dates whose price or availability changed since the last run (first run writes everything as "new"). Unchanged cells are not written and not charged.

## `minChangePct` (type: `integer`):

In changes-only mode, ignore price moves smaller than this percentage. 0 = any change.

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

Stop after this many rows. 0 = no limit.

## `language` (type: `string`):

Language of hotel names (en-us, th-th, ja-jp, vi-vn, id-id, ko-kr, zh-cn…).

## `monitorStoreName` (type: `string`):

Key-value store that remembers last prices for changes-only mode. Use a different name for each schedule that runs at the same time.

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

Apify datacenter proxy (the default) works for Agoda; no residential proxy is needed.

## `_noResidential` (type: `boolean`):

Internal test switch. This actor never uses residential proxy anyway.

## Actor input object example

```json
{
  "hotels": [
    "6779",
    "48101",
    "76085379"
  ],
  "startDate": "tomorrow",
  "windowDays": 3,
  "dayStep": 1,
  "nights": [
    "1"
  ],
  "adults": [
    "2"
  ],
  "rooms": 1,
  "currency": "USD",
  "marketCountry": "US",
  "onlyChanged": false,
  "minChangePct": 0,
  "maxItems": 0,
  "language": "en-us",
  "monitorStoreName": "agoda-rate-shopper",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "_noResidential": false
}
```

# Actor output Schema

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

All hotel-date price rows from this run.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, hotels, stays, price checks and counts.

# 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 = {
    "hotels": [
        "6779",
        "48101",
        "76085379"
    ],
    "windowDays": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/agoda-rate-shopper").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 = {
    "hotels": [
        "6779",
        "48101",
        "76085379",
    ],
    "windowDays": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/agoda-rate-shopper").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 '{
  "hotels": [
    "6779",
    "48101",
    "76085379"
  ],
  "windowDays": 3
}' |
apify call yugenox/agoda-rate-shopper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/agoda-rate-shopper"
        }
    }
}
```

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/UbEgBUzirn09h9iau/builds/Ngzs2YsvXUAnSdnNH/openapi.json
