# 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/tools/agoda
- Handle: `@agoda`
- Category: [Travel](https://fous.com/tools/category/travel)
- Source website: https://agoda.com
- Last verified: Sep 29, 2026

## Methods

### Get room prices

Operation `get_room_prices`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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 | `"1208717606"` |  |
| `offers[].bed_type` | string or null | `"1 king bed or 2 single beds"` |  |
| `offers[].currency` | string | `"USD"` |  |
| `offers[].room_type` | string | `"Deluxe Room"` |  |
| `offers[].agoda_link` | string | `"https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html?checkIn=2026-10-21&checkOut=2026-10-23&adults=2&rooms` |  |
| `offers[].rooms_left` | integer or null |  |  |
| `offers[].total_price` | number | `562` |  |
| `offers[].maximum_guests` | integer or null | `2` |  |
| `offers[].price_per_night` | number | `281` |  |
| `offers[].free_cancellation` | string | `"no"` |  |
| `offers[].breakfast_included` | string | `"no"` |  |
| `offers[].free_cancellation_deadline` | string or null | `"2026-10-13"` |  |
| `address` | string or null | `"Siam Chaophraya Holdings, 333 Charoennakorn Road, Bangkok Riverside, Bangkok, Thailand, 10600"` |  |
| `agoda_link` | string | `"https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html?checkIn=2026-10-21&checkOut=2026-10-23&adults=2&rooms` |  |
| `hotel_name` | string | `"The Peninsula Bangkok"` |  |
| `property_id` | integer | `10715` |  |

**Example input**

```json
{
  "city": "Bangkok",
  "check_in": "2026-10-21",
  "currency": "USD",
  "check_out": "2026-10-23",
  "hotel_name": "The Peninsula Bangkok"
}
```

**Example output**

```json
{
  "offers": [
    {
      "room_id": "1208717606",
      "bed_type": "1 king bed or 2 single beds",
      "currency": "USD",
      "room_type": "Deluxe Room",
      "agoda_link": "https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html?checkIn=2026-10-21&checkOut=2026-10-23&adults=2&rooms=1&currencyCode=USD&los=2",
      "rooms_left": null,
      "total_price": 562,
      "maximum_guests": 2,
      "price_per_night": 281,
      "free_cancellation": "no",
      "breakfast_included": "no",
      "free_cancellation_deadline": null
    },
    {
      "room_id": "1208717607",
      "bed_type": "2 single beds",
      "currency": "USD",
      "room_type": "Deluxe Twin Room",
      "agoda_link": "https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html?checkIn=2026-10-21&checkOut=2026-10-23&adults=2&rooms=1&currencyCode=USD&los=2",
      "rooms_left": null,
      "total_price": 566,
      "maximum_guests": 3,
      "price_per_night": 283,
      "free_cancellation": "no",
      "breakfast_included": "no",
      "free_cancellation_deadline": null
    },
    {
      "room_id": "1208717590",
      "bed_type": "1 king bed",
      "currency": "USD",
      "room_type": "Deluxe King Room",
      "agoda_link": "https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html?checkIn=2026-10-21&checkOut=2026-10-23&adults=2&rooms=1&currencyCode=USD&los=2",
      "rooms_left": null,
      "total_price": 566,
      "maximum_guests": 3,
      "price_per_night": 283,
      "free_cancellation": "no",
      "breakfast_included": "no",
      "free_cancellation_deadline": null
    }
  ],
  "address": "Siam Chaophraya Holdings, 333 Charoennakorn Road, Bangkok Riverside, Bangkok, Thailand, 10600",
  "agoda_link": "https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html?checkIn=2026-10-21&checkOut=2026-10-23&adults=2&rooms=1&currencyCode=USD&los=2",
  "hotel_name": "The Peninsula Bangkok",
  "property_id": 10715
}
```

### Search hotels

Operation `search_hotels`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/agoda`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_room_prices`: Get room prices. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_hotels`: Search hotels. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-agoda https://api.fous.com/mcp/tools/agoda --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## 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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Agoda tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified 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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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 tools](https://fous.com/tools/category/travel)
