GET
# Agoda Hotel Details API

Retrieve a date-free property profile using an Agoda hotel ID.

## Overview

Send your API key in `X-API-Key`. This endpoint returns public property metadata, without prices, reviews, or availability. Calls use standard account authentication and usage limits.

### Endpoint URL

GET https://api.stayapi.com/v1/agoda/hotel/details 

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| hotel\_id | integer | Required | A positive integer from 1 to 2147483647, for example 10884. Supply it exactly once. |

Only `hotel_id` is accepted. URLs, dates, locale, currency, unknown query parameters, and duplicate keys are rejected. There is no pagination, filtering, or sorting.

## Response

`success` is true and `hotel_id` matches the requested ID. `name` is the property name. `address` contains nullable strings `full`, `street`, `city`, `area`, `country`, and `postal_code`, nullable integer `city_id` and `country_id`, and boolean `is_obfuscated`.

When `is_obfuscated` is false, `full` is present; `street` can be null when Agoda supplies only a locality address. When true, `full`, `street`, `latitude`, and `longitude` are null; public city, area, and country context is retained when available.

`accommodation_type` and plain-text `description` are nullable strings. `star_rating`, `latitude`, and `longitude` are nullable numbers. `amenities` lists explicitly available facilities as `group`/`name` objects. `photos` contains selected HTTPS image URLs published by Agoda, including supplier photos, and nullable captions. Either array can be empty; neither is a promise of an exhaustive inventory or gallery. `retrieved_at` is a UTC ISO timestamp. This response has no canonical hotel URL or guest rating field.

`useful_information` is always an object. `number_of_rooms` and `year_opened` are nullable integers: the declared total room count and the year the property opened, not live inventory or construction year. `check_in_from`, `check_in_until`, `check_out_from`, and `check_out_until` are nullable strings preserving published time text. `groups` is an ordered array of `name`/`items` objects; each item has nonempty `label` and `value` strings. Unavailable information has null scalar fields and an empty groups array. Numeric values that cannot be interpreted unambiguously remain null; the published text is retained in groups.

## Find an ID and continue

Find candidate IDs with [hotel name lookup](/docs/endpoints/agoda/hotel-lookup) or [hotel search](/docs/endpoints/agoda/search). Resolve an existing URL with [URL to hotel ID](/docs/endpoints/agoda/hotel-url-to-id), then pass the ID here. Use [hotel prices](/docs/endpoints/agoda/hotel-prices) for dated availability and [hotel reviews](/docs/endpoints/agoda/hotel-reviews) for guest feedback.

The former `/v1/agoda/hotel?url=` endpoint is unavailable and returns 404. Migrate URL-based requests by resolving the URL to an ID, then calling this details endpoint.

## Errors

Errors use RFC 7807 Problem Details. Invalid values, unsupported query keys, or duplicate keys return 400. Missing or incorrectly typed required input returns 422. A confirmed missing hotel returns 404; upstream or malformed data returns 502. Temporary unavailability returns 503, and timeouts can return 504. Authentication and account limits can return 401, 402, or 429. A failure is never represented as a successful empty profile.

Example below: description, amenities, photos, and useful-information groups shortened for readability.

Request

```curl
curl "https://api.stayapi.com/v1/agoda/hotel/details?hotel_id=10884" -H "X-API-Key: YOUR_API_KEY"
```

Response

```json
{
  "success": true,
  "hotel_id": 10884,
  "name": "Banyan Tree Phuket",
  "address": {
    "is_obfuscated": false,
    "full": "33 Moo 4 Srisoonthorn Road Cherngtalay, Bang Thao, Phuket, Thailand, 83110",
    "street": "33 Moo 4 Srisoonthorn Road Cherngtalay",
    "city": "Phuket",
    "city_id": 16056,
    "area": "Bang Thao",
    "country": "Thailand",
    "country_id": 106,
    "postal_code": "83110"
  },
  "accommodation_type": "Hotel",
  "star_rating": 5.0,
  "latitude": 8.010550498962402,
  "longitude": 98.29580688476563,
  "description": "Experience Luxury and Tranquility at Banyan Tree Phuket Nestled just 15 kilometers from the vibrant ",
  "amenities": [
    {
      "group": "Take a look at these facilities:",
      "name": "Fitness center"
    },
    {
      "group": "Take a look at these facilities:",
      "name": "Garden"
    }
  ],
  "photos": [
    {
      "url": "https://pix8.agoda.net/hotelImages/10884/0/0fb9f4117c4170172a443131152862a7.jpg?va=1&ce=3&s=1024x768",
      "caption": "Exterior view"
    }
  ],
  "retrieved_at": "2026-10-14T14:50:59.864184+00:00",
  "useful_information": {
    "number_of_rooms": 218,
    "year_opened": 1994,
    "check_in_from": "03:00 PM",
    "check_in_until": "12:00 AM",
    "check_out_from": null,
    "check_out_until": "12:00 PM",
    "groups": [
      {
        "name": "The property",
        "items": [
          {
            "label": "Number of rooms",
            "value": "218"
          },
          {
            "label": "Year property opened",
            "value": "1994"
          }
        ]
      }
    ]
  }
}
```

```json
{"type":"about:blank","title":"Bad Request","status":400,"detail":"Invalid hotel_id","provider":"agoda"}
```
