Agoda Hotel
agoda.hotel.get
Fetch a public Agoda hotel page and normalize hotel identity, location, rating, pricing, amenities, facilities, and description.
At a glance
- Endpoint ID
agoda.hotel.get- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 60 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
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.hotel.get", "input": { "adults": 2, "check_in": "2030-06-10", "check_out": "2030-06-12", "children": 1, "currency": "USD", "hotel_url": "https://www.agoda.com/hotel-boss/hotel/singapore-sg.html", "locale": "en-US", "rooms": 1 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "agoda.hotel.get", "input": { "adults": 2, "check_in": "2030-06-10", "check_out": "2030-06-12", "children": 1, "currency": "USD", "hotel_url": "https://www.agoda.com/hotel-boss/hotel/singapore-sg.html", "locale": "en-US", "rooms": 1 }}''')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.hotel.get", "input": { "adults": 2, "check_in": "2030-06-10", "check_out": "2030-06-12", "children": 1, "currency": "USD", "hotel_url": "https://www.agoda.com/hotel-boss/hotel/singapore-sg.html", "locale": "en-US", "rooms": 1 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
hotel_url |
string | yes | Public URL of the hotel. | https://www.agoda.com/hotel-boss/hotel/singapor… |
adults |
integer | no | Number of adult guests. From 0 to 30. | 2 |
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. | 1 |
currency |
string | no | Currency for returned prices. | USD |
guests |
array<object> | no | ||
locale |
string | no | Locale to use for the request. | en-US |
rooms |
integer | no | Number of rooms. From 0 to 10. | 1 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "name": "Hotel Boss", "rating": 8, "review_count": 60953, "city": "Singapore", "address": "500 Jalan Sultan Road", "collected_at": "2026-11-24T16:35:59Z", "country": "Singapore", "description": "Hotel Boss — playful, budget-smart stay for two near Kallang and Bugis. Rooftop pool with sunset skyline views, disco-themed lobby, capsule…", "hotel_id": "1105091", "page": 0, "position": 0, "url": "https://www.agoda.com/hotel-boss/hotel/singapore-sg.html?adults=2&checkIn=2030-06-10&checkOut=2030-06-12&children=1¤cy=USD&lang=en-US…", "facilities": [ "Fitness center", "Swimming pool [outdoor]" ], "image_urls": [ "https://pix8.agoda.net/hotelImages/4894014/0/3987f8c8bc58bfdc747239b6146c502f.jpeg?va=1&ce=3&s=1024x768", "https://pix8.agoda.net/hotelImages/1105091/0/e331cfa8ba7e5c43a667dfd51aa9ee2b.jpeg?va=1&s=1024x768" ]}
Fields
| Field | Type | Example |
|---|---|---|
name |
string | Hotel Boss |
rating |
integer | 8 |
review_count |
integer | 60,953 |
city |
string | Singapore |
address |
string | 500 Jalan Sultan Road |
collected_at |
string | 2026-11-24T16:35:59Z |
country |
string | Singapore |
description |
string | Hotel Boss — playful, budget-smart stay for two near Kallang an… |
facilities |
array | Fitness center, Swimming pool [outdoor], Breakfast [buffet] |
hotel_id |
string | 1105091 |
image_urls |
array | https://pix8.agoda.net/hotelImages/4894014/0/3987f8c8bc58bfdc74… |
page |
integer | 0 |
position |
integer | 0 |
url |
string | https://www.agoda.com/hotel-boss/hotel/singapore-sg.html?adults… |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Agoda Travel & Hotels endpoints
Something missing or unclear? Ask the team that builds the Agoda Travel & Hotels endpoints.