Agoda API: Search hotels
Finds available Agoda stays in a city for your dates, with prices before taxes and fees, star and guest ratings, and free-cancellation status.
Unofficial. Not affiliated with or endorsed by Agoda.
Inputs
Values from the run on Oct 31, 2026, shown under Output.
- City, required
city City to search, for example Bangkok.
Bangkok
- Sort optional
sort Results order, for example lowest_price.
recommended (default)
One of
recommended,lowest_price,best_rated.- Rooms optional
rooms Number of rooms, for example 1.
1 (default)
Whole number 1 or more.
- Adults optional
adults Number of adults, for example 2.
2 (default)
Whole number from 1 to 10.
- Check in, required
check_in Arrival date (YYYY-MM-DD), for example 2026-11-12.
2026-11-12
- Currency optional
currency Three-letter currency code, for example USD.
USD (default)
- Check Out, required
check_out Departure date (YYYY-MM-DD), for example 2026-11-15.
2026-11-15
- Max Results optional
max_results Maximum stays to return, for example 20.
20 (default)
Whole number from 1 to 50.
Input as JSON
{ "city": "Bangkok", "check_in": "2026-11-12", "check_out": "2026-11-15"}Output
{ "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¤cy=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¤cy=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¤cy=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 } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"agoda.com/search_hotels","input":{"city":"Bangkok","check_in":"2026-11-12","check_out":"2026-11-15"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "agoda.com/search_hotels" , "input": { "city": "Bangkok", "check_in": "2026-11-12", "check_out": "2026-11-15" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "agoda.com/search_hotels" , "input": { "city": "Bangkok", "check_in": "2026-11-12", "check_out": "2026-11-15" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run agoda.com/search_hotels# with {"city":"Bangkok","check_in":"2026-11-12","check_out":"2026-11-15"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "city", "check_in", "check_out" ], "properties": { "city": { "type": "string", "description": "City to search, for example Bangkok." }, "sort": { "enum": [ "recommended", "lowest_price", "best_rated" ], "type": "string", "default": "recommended", "description": "Results order, for example 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", "description": "Arrival date (YYYY-MM-DD), for example 2026-11-12." }, "currency": { "type": "string", "default": "USD", "description": "Three-letter currency code, for example USD." }, "check_out": { "type": "string", "description": "Departure date (YYYY-MM-DD), for example 2026-11-15." }, "max_results": { "type": "integer", "default": 20, "maximum": 50, "minimum": 1, "description": "Maximum stays to return, for example 20." } }}Output schema
{ "type": "object", "required": [ "hotels" ], "properties": { "hotels": { "type": "array", "items": { "type": "object", "required": [ "name", "type", "star_rating", "review_score", "review_label", "review_count", "area", "price_per_night", "total_price", "currency", "free_cancellation", "link", "property_id" ], "properties": { "area": { "type": [ "string", "null" ], "description": "Area or neighborhood." }, "link": { "type": "string", "description": "Agoda property page for the stay." }, "name": { "type": "string", "description": "Property name." }, "type": { "type": [ "string", "null" ], "description": "Property type." }, "currency": { "type": "string", "description": "Currency code for prices." }, "property_id": { "type": [ "integer", "null" ], "description": "Agoda property ID.", "x-fous-developer": true }, "star_rating": { "type": [ "number", "null" ], "description": "Property star rating." }, "total_price": { "type": "number", "description": "Total stay price for all selected rooms before taxes and fees." }, "review_count": { "type": [ "integer", "null" ], "description": "Number of guest reviews." }, "review_label": { "type": [ "string", "null" ], "description": "Guest rating label." }, "review_score": { "type": [ "number", "null" ], "description": "Guest review score out of 10." }, "price_per_night": { "type": "number", "description": "Price per room per night before taxes and fees." }, "free_cancellation": { "type": "boolean", "description": "Whether the quoted cheapest room offer includes free cancellation." } }, "additionalProperties": false }, "description": "Available stays with quoted prices." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
agoda.com/search_hotels- Returns
- name, type, star rating, review score, area, price per night, total price, free cancellation, link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method agoda.com/search_hotels with the inputs above.
Ask your agent
- Find me the cheapest hotels in Bangkok for 2 adults from March 4 to March 8, 2026, prices in THB
- On Agoda, what are the best-rated places to stay in Kyoto for check-in 2026-04-10 and check-out 2026-04-14? Just show the top 10.
- I need 2 rooms for 4 adults in Singapore, Dec 20–23 2026. Which hotels have free cancellation and what's the total price?
- Search agoda.com for stays in Bali (Denpasar) from 2026-07-01 to 2026-07-07 for one adult, sorted by lowest price, in AUD
- Hotels in Seoul for Nov 12 to Nov 15 2026, two guests — show star rating, review score, neighborhood, and nightly rate in USD
See more
All Agoda methodsFinds 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.
agoda.com/get_room_pricesFinds hotels in a city on Trip.com for given dates, with prices, guest ratings, reviews and booking links. Only the initial public listing is read, so large limits may return fewer hotels.
trip.com/search_hotelsSearches Booking.com stays by destination and dates, with guest counts, price, review, cancellation, sorting and paging. Displayed prices generally exclude some taxes and fees; children are searched as age 8.
booking.com/search_staysFinds Expedia hotels in a destination for given dates, with public USD prices, reviews, property class, refund status and links. Nightly prices are per room; totals include all requested rooms, taxes and fees.
expedia.com/search_hotelsFinds available hostels, hotels and guesthouses on Hostelworld in a city for given dates, with per-night dorm and private room prices, ratings, facilities and booking links.
hostelworld.com/search_hostelsCompares Kayak hotel nightly rates across booking sites for a city or neighborhood and stay dates (two adults, one room).
kayak.com/search_hotelsFinds places to stay in a city or area for given dates on Google Hotels, with nightly and total prices, hotel class, guest ratings, amenities, address and cheapest booking site. Optional filters for price, stars and rating; vacation rentals are left out. Prices and availability can change.
google.com/search_hotelsFind publicly priced Priceline hotels in a place for your travel dates, with guest ratings, nightly and total USD prices, and cancellation information. Excludes hotels hidden behind anonymous deals and sign-in-only prices.
priceline.com/search_hotels