Agoda Hotels Search API
Hotels search from Agoda Travel & Hotels, as JSON.
- 1 credit per call
- Failed calls are free
- Updated
- agoda.search.hotels
{ "end_page": 1, "has_more": false, "start_page": 1, "hotels": [ { "name": "Hotel Boss", "rating": 8, "review_count": 41763, "hotel_id": "1105091", "page": 1, "position": 1, "url": "https://www.agoda.com/hotel-boss/hotel/singapore-sg.html" }, { "name": "YOTEL Singapore Orchard Road", "rating": 8.8, "review_count": 36830, "hotel_id": "2256959", "page": 1, "position": 2, "url": "https://www.agoda.com/yotel-singapore-orchard-road/hotel/singapore-sg.html" } ]}
| # | Name | Rating | Review count | Page | Position | Hotel id | Url |
|---|---|---|---|---|---|---|---|
| 1 | Hotel Boss | 8 | 41,763 | 1 | 1 | 1105091 | https://www.agoda.com/hotel-boss/hotel/singapore-sg.html |
| 2 | YOTEL Singapore Orchard Road | 8.8 | 36,830 | 1 | 2 | 2256959 | https://www.agoda.com/yotel-singapore-orchard-road/hotel/singap… |
| 3 | V Hotel Lavender | 7.9 | 58,838 | 1 | 3 | 254056 | https://www.agoda.com/v-hotel-lavender/hotel/singapore-sg.html |
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| destination | string | yes | Singapore | |
| adults | integer | no | Number of adult guests. From 0 to 20. | |
| bounds | object | no | Geographic bounds of the requested area. | {…} |
| check_in | string | no | Check-in date. | 2030-06-10 |
| check_out | string | no | Check-out date. | 2030-06-12 |
| children | integer | no | Number of child guests. From 0 to 20. | |
| city_id | string | no | City identifier. | |
| currency | string | no | Currency for returned prices. | USD |
| guests | array<object> | no | […] | |
| locale | string | no | Locale to use for the request. | en-US |
| max_pages | integer | no | Maximum number of result pages to fetch. From 1 to 5. | 1 |
| page | integer | no | One-based result page to fetch. From 1 to 100. | |
| rooms | integer | no | Number of rooms. From 1 to 10. | |
| sort | string | no | Sort order for returned results. Allowed values: relevance, price_low_to_high, price_high_to_low, rating_high_to_low, rating_low_to_high. |
price_low_to_high |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | Example |
|---|---|---|
| hotels[].name | string | Hotel Boss |
| hotels[].rating | integer | 8 |
| hotels[].review_count | integer | 41,763 |
| hotels[].hotel_id | string | 1105091 |
| hotels[].page | integer | 1 |
| hotels[].position | integer | 1 |
| hotels[].url | string | https://www.agoda.com/hotel-boss/hotel/singapore-sg.html |
| end_page | integer | 1 |
| has_more | boolean | false |
| hotels | array | 3 records |
| start_page | integer | 1 |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "agoda.search.hotels", "input": { "bounds": { "max_lat": 1.4, "max_lon": 104.0, "min_lat": 1.2, "min_lon": 103.7 }, "check_in": "2030-06-10", "check_out": "2030-06-12", "currency": "USD", "destination": "Singapore", "guests": [ { "adults": 2, "children": 1, "children_ages": [ 5 ] } ], "locale": "en-US", "max_pages": 1, "sort": "price_low_to_high" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "agoda.search.hotels", "input": { "bounds": { "max_lat": 1.4, "max_lon": 104.0, "min_lat": 1.2, "min_lon": 103.7 }, "check_in": "2030-06-10", "check_out": "2030-06-12", "currency": "USD", "destination": "Singapore", "guests": [ { "adults": 2, "children": 1, "children_ages": [ 5 ] } ], "locale": "en-US", "max_pages": 1, "sort": "price_low_to_high" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "agoda.search.hotels", "input": { "bounds": { "max_lat": 1.4, "max_lon": 104.0, "min_lat": 1.2, "min_lon": 103.7 }, "check_in": "2030-06-10", "check_out": "2030-06-12", "currency": "USD", "destination": "Singapore", "guests": [ { "adults": 2, "children": 1, "children_ages": [ 5 ] } ], "locale": "en-US", "max_pages": 1, "sort": "price_low_to_high" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
https://data.upscrape.com/mcp
With Upscrape, get the Agoda Travel & Hotels hotels search for check in "2030-06-10", check out "2030-06-12" and currency "USD". Tell me what it costs before you run it, then show the results as a table.
More from the Agoda Travel & Hotels API
The same data from other platforms
Agoda Hotels Search API FAQ
The short answers. The docs have the long ones.
How much does the Agoda Hotels Search API cost?
1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.
What do I send?
Send destination. The input fields below list every option with its type and limits.
Do I need an Agoda Travel & Hotels login?
No. It reads public Agoda Travel & Hotels data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds agoda.search.hotels, checks its price and runs it with the same credits as the REST API.
Your first Agoda Travel & Hotels call is free.
Up to 100 free credits to start, no card needed.