# Agoda API

> Agoda returns hotel availability, prices, room offers, and ratings as a workflow and API.

Agoda searches available stays by city and dates, returning property details, guest ratings, and quoted prices. Search hotels needs a city and check-in and check-out dates. Get room prices returns room offers and prices for a hotel; it needs the hotel, city, and stay dates.

- Page: https://fous.com/workflows/agoda
- Handle: `@agoda`
- Category: [Travel](https://fous.com/workflows/category/travel)
- Source website: https://agoda.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Agoda.

## Methods

### Get room prices

Operation `get_room_prices`, version 1. 1 credit per call.

Find room offers and nightly prices for one Agoda hotel on selected dates. Totals are calculated from displayed nightly prices before taxes and fees; final checkout totals may differ.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `city` | string | yes | `"Bangkok"` | Hotel city, for example Bangkok. |
| `rooms` | integer | no | `1` | Number of rooms, for example 1. |
| `adults` | integer | no | `2` | Number of adults, for example 2. |
| `check_in` | string | yes | `"2026-10-21"` | Arrival date, for example 2026-10-20. |
| `currency` | string | no | `"USD"` | Price currency code, for example USD. |
| `check_out` | string | yes | `"2026-10-23"` | Departure date, for example 2026-10-22. |
| `hotel_name` | string | yes | `"The Peninsula Bangkok"` | Hotel name or Agoda hotel link, for example Mandarin Oriental. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "hotel_name",
    "city",
    "check_in",
    "check_out"
  ],
  "properties": {
    "city": {
      "type": "string",
      "description": "Hotel city, for example Bangkok.",
      "examples": [
        "Bangkok"
      ]
    },
    "rooms": {
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "description": "Number of rooms, for example 1.",
      "examples": [
        1
      ]
    },
    "adults": {
      "type": "integer",
      "default": 2,
      "minimum": 1,
      "description": "Number of adults, for example 2.",
      "examples": [
        2
      ]
    },
    "check_in": {
      "type": "string",
      "format": "date",
      "description": "Arrival date, for example 2026-10-20.",
      "examples": [
        "2026-10-21",
        "2026-10-20"
      ]
    },
    "currency": {
      "type": "string",
      "default": "USD",
      "pattern": "^[A-Za-z]{3}$",
      "description": "Price currency code, for example USD.",
      "examples": [
        "USD",
        "EUR"
      ]
    },
    "check_out": {
      "type": "string",
      "format": "date",
      "description": "Departure date, for example 2026-10-22.",
      "examples": [
        "2026-10-23",
        "2026-10-22"
      ]
    },
    "hotel_name": {
      "type": "string",
      "description": "Hotel name or Agoda hotel link, for example Mandarin Oriental.",
      "examples": [
        "The Peninsula Bangkok",
        "Mandarin Oriental",
        "https://www.agoda.com/mandarin-oriental-bangkok_12/hotel/bangkok-th.html"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "city": "Bangkok",
      "check_in": "2026-10-21",
      "currency": "USD",
      "check_out": "2026-10-23",
      "hotel_name": "The Peninsula Bangkok"
    },
    {
      "city": "Bangkok",
      "check_in": "2026-10-20",
      "check_out": "2026-10-22",
      "hotel_name": "Mandarin Oriental"
    },
    {
      "city": "Bangkok",
      "rooms": 1,
      "adults": 2,
      "check_in": "2026-10-20",
      "currency": "EUR",
      "check_out": "2026-10-22",
      "hotel_name": "https://www.agoda.com/mandarin-oriental-bangkok_12/hotel/bangkok-th.html"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `offers` | array |  |  |
| `offers[].room_id` | string or null |  |  |
| `offers[].bed_type` | string or null |  |  |
| `offers[].currency` | string |  |  |
| `offers[].room_type` | string |  |  |
| `offers[].agoda_link` | string |  |  |
| `offers[].rooms_left` | integer or null |  |  |
| `offers[].total_price` | number |  |  |
| `offers[].maximum_guests` | integer or null |  |  |
| `offers[].price_per_night` | number |  |  |
| `offers[].free_cancellation` | string |  |  |
| `offers[].breakfast_included` | string |  |  |
| `offers[].free_cancellation_deadline` | string or null |  |  |
| `address` | string or null |  |  |
| `agoda_link` | string |  |  |
| `hotel_name` | string |  |  |
| `property_id` | integer |  |  |

### Search hotels

Operation `search_hotels`, version 1. 1 credit per call.

Find available Agoda stays in a city for your dates, with prices before taxes and fees. Prices and cancellation terms may change before booking.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `city` | string | yes | `"Bangkok"` | City to search, for example Bangkok. |
| `sort` | string | no | `"lowest_price"` | Results order, for example lowest_price. |
| `rooms` | integer | no |  | Number of rooms, for example 1. |
| `adults` | integer | no |  | Number of adults, for example 2. |
| `check_in` | string | yes | `"2026-11-12"` | Arrival date, for example 2026-11-12. |
| `currency` | string | no |  | Three-letter currency code, for example USD. |
| `check_out` | string | yes | `"2026-11-15"` | Departure date, for example 2026-11-15. |
| `max_results` | integer | no | `10` | Maximum stays to return, for example 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "city",
    "check_in",
    "check_out"
  ],
  "properties": {
    "city": {
      "type": "string",
      "description": "City to search, for example Bangkok.",
      "examples": [
        "Bangkok",
        "Chiang Mai"
      ]
    },
    "sort": {
      "enum": [
        "recommended",
        "lowest_price",
        "best_rated"
      ],
      "type": "string",
      "default": "recommended",
      "description": "Results order, for example lowest_price.",
      "examples": [
        "lowest_price"
      ]
    },
    "rooms": {
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "description": "Number of rooms, for example 1."
    },
    "adults": {
      "type": "integer",
      "default": 2,
      "maximum": 10,
      "minimum": 1,
      "description": "Number of adults, for example 2."
    },
    "check_in": {
      "type": "string",
      "format": "date",
      "description": "Arrival date, for example 2026-11-12.",
      "examples": [
        "2026-11-12",
        "2026-11-18"
      ]
    },
    "currency": {
      "type": "string",
      "default": "USD",
      "description": "Three-letter currency code, for example USD."
    },
    "check_out": {
      "type": "string",
      "format": "date",
      "description": "Departure date, for example 2026-11-15.",
      "examples": [
        "2026-11-15",
        "2026-11-21"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "description": "Maximum stays to return, for example 20.",
      "x-fous-developer": true,
      "examples": [
        10
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "city": "Bangkok",
      "check_in": "2026-11-12",
      "check_out": "2026-11-15"
    },
    {
      "city": "Chiang Mai",
      "sort": "lowest_price",
      "check_in": "2026-11-18",
      "check_out": "2026-11-21",
      "max_results": 10
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `hotels` | array |  | Available stays with quoted prices. |
| `hotels[].area` | string or null | `"Sukhumvit"` | Area or neighborhood. |
| `hotels[].link` | string | `"https://www.agoda.com/jw-marriott-hotel-bangkok/hotel/bangkok-th.html?checkIn=2026-11-12&checkOut=2026-11-15&rooms=1&ad` | Agoda property page for the stay. |
| `hotels[].name` | string | `"JW Marriott Hotel Bangkok"` | Property name. |
| `hotels[].type` | string or null | `"Hotel"` | Property type. |
| `hotels[].currency` | string | `"USD"` | Currency code for prices. |
| `hotels[].property_id` | integer or null | `10664` | Agoda property ID. |
| `hotels[].star_rating` | number or null | `5` | Property star rating. |
| `hotels[].total_price` | number | `729.57` | Total stay price for all selected rooms before taxes and fees. |
| `hotels[].review_count` | integer or null | `3096` | Number of guest reviews. |
| `hotels[].review_label` | string or null | `"Exceptional"` | Guest rating label. |
| `hotels[].review_score` | number or null | `9` | Guest review score out of 10. |
| `hotels[].price_per_night` | number | `243.19` | Price per room per night before taxes and fees. |
| `hotels[].free_cancellation` | boolean | `true` | Whether the quoted cheapest room offer includes free cancellation. |

**Example input**

```json
{
  "city": "Bangkok",
  "check_in": "2026-11-12",
  "check_out": "2026-11-15"
}
```

**Example output**

```json
{
  "hotels": [
    {
      "area": "Sukhumvit",
      "link": "https://www.agoda.com/jw-marriott-hotel-bangkok/hotel/bangkok-th.html?checkIn=2026-11-12&checkOut=2026-11-15&rooms=1&adults=2&currency=USD",
      "name": "JW Marriott Hotel Bangkok",
      "type": "Hotel",
      "currency": "USD",
      "property_id": 10664,
      "star_rating": 5,
      "total_price": 729.57,
      "review_count": 3096,
      "review_label": "Exceptional",
      "review_score": 9,
      "price_per_night": 243.19,
      "free_cancellation": true
    },
    {
      "area": "Siam",
      "link": "https://www.agoda.com/courtyard-by-marriott-bangkok/hotel/bangkok-th.html?checkIn=2026-11-12&checkOut=2026-11-15&rooms=1&adults=2&currency=USD",
      "name": "Courtyard by Marriott Bangkok",
      "type": "Hotel",
      "currency": "USD",
      "property_id": 84277,
      "star_rating": 0,
      "total_price": 372.24,
      "review_count": 7665,
      "review_label": "Excellent",
      "review_score": 8.7,
      "price_per_night": 124.08,
      "free_cancellation": true
    },
    {
      "area": "Sukhumvit",
      "link": "https://www.agoda.com/the-okura-prestige-bangkok/hotel/bangkok-th.html?checkIn=2026-11-12&checkOut=2026-11-15&rooms=1&adults=2&currency=USD",
      "name": "The Okura Prestige Bangkok",
      "type": "Hotel",
      "currency": "USD",
      "property_id": 294217,
      "star_rating": 5,
      "total_price": 768.45,
      "review_count": 11513,
      "review_label": "Exceptional",
      "review_score": 9.2,
      "price_per_night": 256.15,
      "free_cancellation": true
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@agoda",
  "visibility": "public",
  "operation": "get_room_prices",
  "version": 1,
  "input": {
    "city": "Bangkok",
    "check_in": "2026-10-21",
    "currency": "USD",
    "check_out": "2026-10-23",
    "hotel_name": "The Peninsula Bangkok"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@agoda\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_room_prices\",\n  \"version\": 1,\n  \"input\": {\n    \"city\": \"Bangkok\",\n    \"check_in\": \"2026-10-21\",\n    \"currency\": \"USD\",\n    \"check_out\": \"2026-10-23\",\n    \"hotel_name\": \"The Peninsula Bangkok\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@agoda",
  "visibility": "public",
  "operation": "get_room_prices",
  "version": 1,
  "input": {
    "city": "Bangkok",
    "check_in": "2026-10-21",
    "currency": "USD",
    "check_out": "2026-10-23",
    "hotel_name": "The Peninsula Bangkok"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@agoda","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare available stays and quoted prices by city and dates
- Review property ratings, review counts, and neighborhoods
- Find room types, bed types, and nightly prices
- Check which offers include breakfast or free cancellation
- Compare hotel offers for selected room and guest counts

## FAQ

### Is Fous affiliated with Agoda?

No. Fous is not affiliated with Agoda. This workflow reads the public agoda.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Agoda account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from agoda.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What hotels are available in a city on my dates?

Search hotels returns available stays and quoted prices for a city and check-in and check-out dates.

### What are the room prices at a specific hotel?

Get room prices returns room offers, nightly prices, and stay totals for a hotel and selected dates.

### Which hotel offers include free cancellation?

Search hotels reports whether the quoted cheapest room offer includes free cancellation. Get room prices reports cancellation details for room offers.

## Related

- [Booking.com API](https://fous.com/workflows/booking-com.md): Booking.com helps find stays, property details and public guest reviews; prices and cancellation terms depend on selected dates, and displayed prices may exclude taxes and fees.
- [Expedia API](https://fous.com/workflows/expedia.md): Expedia helps travelers find hotels, vacation stays, and travel deals, with hotel prices and flight options for selected destinations and dates; flight listings may be limited.
- [Google Hotels API](https://fous.com/workflows/google-hotels.md): Google Hotels finds stays, guest details and reviews, and compares booking-site totals, cancellation and links for up to six adults; prices and availability can change, and some prices or topic ratings may be unavailable.
- [Airbnb API](https://fous.com/workflows/airbnb.md): Airbnb returns public stays, listing details, dated trip prices, and night availability, which depend on dates and may be limited, unavailable, or change.
- [Tripadvisor API](https://fous.com/workflows/tripadvisor.md): Tripadvisor provides traveler-ranked first-page city listings of attractions, restaurants and hotels, plus latest reviews; hotel prices and booking sites depend on supplied stay dates and availability.
- [Kayak API](https://fous.com/workflows/kayak.md): Kayak compares flight and hotel prices across booking sites and current rental car offers; hotel rates assume two adults per room and cover public location pages, while prices and availability can change at booking.
- [Trip.com API](https://fous.com/workflows/trip-com.md): Trip.com offers hotel and flight bookings, with hotel listings limited to initial public results and prices and fares subject to change.
- [Priceline API](https://fous.com/workflows/priceline.md): Priceline finds travel deals and returns publicly priced hotel options with ratings, USD prices and cancellation details, plus rental-car offers whose prices may change at checkout.
- [All Travel workflows](https://fous.com/workflows/category/travel)
