# /agoda/hotels

`POST /api/agoda/hotels`

Price: 10 credits

Get full Agoda hotel details by property id (or hotel URL): name, property type, star rating, full address, coordinates, short and full description, check-in/check-out times, guest review score with category subscores, guest recommendation scores, per-aspect review tags, guest review snippets, AI review summary, property highlights, favorite features, location highlights, facility highlights, grouped amenities, useful information (year opened, number of rooms, floors), property policies (children, adult, extra bed, minimum guest age), city ranking metrics, location scores, certificates, renovation year, host response rate, infant cot availability, nearby places, nearby airports and transport, official photos, guest photos and video.

## How to use it

Fetch a single Agoda hotel by numeric property id or a hotel URL containing hotelId. Returns one item. is_luxury is Agoda's marketing flag, not the star rating. response_rate is the host's responsiveness from 0 to 1. ranking.property_count is the number of hotels in the city, and each ranking metric gives the hotel's rank in it. recommendation scores are 0-100 percentages; location_scores are 0-10. gold_circle_year and renovation_year are set only for properties holding the award or a recorded renovation. nearby_places are landmarks; nearby_properties group airports, transport and services by category, with the airport code in abbr. full_description is the property's long description as plain text and full_description_html the same text with its markup; both are null when the property has none.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `hotel` (string, required) — Agoda property id or a hotel URL containing it (examples: "10696", "https://www.agoda.com/shangri-la-hotel-bangkok/hotel/bangkok-th.html?hotelId=10696"; minLength: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "AgodaHotel")
- `id` (string, required)
- `name` (string, nullable)
- `property_type` (string, nullable)
- `accommodation_type` (string, nullable)
- `star_rating` (number, nullable)
- `is_luxury` (boolean, nullable)
- `description` (string, nullable)
- `full_description` (string, nullable)
- `full_description_html` (string, nullable)
- `address` (string, nullable)
- `area` (string, nullable)
- `city` (string, nullable)
- `city_id` (integer, nullable)
- `country` (string, nullable)
- `country_code` (string, nullable)
- `postal_code` (string, nullable)
- `latitude` (number, nullable)
- `longitude` (number, nullable)
- `check_in_time` (string, nullable)
- `check_out_time` (string, nullable)
- `is_infant_cot_available` (boolean, nullable)
- `response_rate` (number, nullable)
- `ranking` (object, nullable)
  - `@type` (string) (default: "AgodaPropertyRanking")
  - `property_count` (integer, nullable)
  - `metrics` (array) (default: [])
    - `@type` (string) (default: "AgodaRankingMetric")
    - `name` (string, required)
    - `rank` (integer, nullable)
    - `absolute_value` (number, nullable)
- `review_score` (object, nullable)
  - `@type` (string) (default: "AgodaReviewScore")
  - `score` (number, nullable)
  - `max_score` (integer, nullable)
  - `review_count` (integer, nullable)
  - `grades` (array) (default: [])
    - `@type` (string) (default: "AgodaReviewGrade")
    - `name` (string, required)
    - `score` (number, nullable)
    - `city_average` (number, nullable)
  - `distribution` (array) (default: [])
    - `@type` (string) (default: "AgodaScoreBucket")
    - `name` (string, required)
    - `review_count` (integer, nullable)
- `recommendation_score` (integer, nullable)
- `frequent_traveller_recommendation_score` (integer, nullable)
- `review_tags` (array) (default: [])
  - `@type` (string) (default: "AgodaReviewTag")
  - `name` (string, required)
  - `positive_percentage` (number, nullable)
  - `rating_type` (string, nullable)
- `review_snippets` (array) (default: [])
  - `@type` (string) (default: "AgodaReviewSnippet")
  - `text` (string, required)
  - `rating` (number, nullable)
  - `author` (string, nullable)
  - `demographic` (string, nullable)
  - `country` (string, nullable)
  - `country_code` (string, nullable)
  - `created_at` (integer, nullable)
- `ai_summary_positive` (string, nullable)
- `ai_summary_negative` (string, nullable)
- `gold_circle_year` (integer, nullable)
- `renovation_year` (integer, nullable)
- `is_chinese_friendly` (boolean, nullable)
- `certificates` (array) (default: [])
  - `@type` (string) (default: "AgodaCertificate")
  - `name` (string, required)
  - `description` (string, nullable)
  - `image` (string, nullable)
- `location_scores` (object, nullable)
  - `@type` (string) (default: "AgodaLocationScores")
  - `airport` (number, nullable)
  - `points_of_interest` (number, nullable)
  - `transportation` (number, nullable)
- `highlights` (array) (default: [])
- `favorite_features` (array) (default: [])
- `location_highlights` (array) (default: [])
- `facility_highlights` (array) (default: [])
- `amenity_groups` (array) (default: [])
  - `@type` (string) (default: "AgodaAmenityGroup")
  - `name` (string, required)
  - `amenities` (array) (default: [])
- `info_groups` (array) (default: [])
  - `@type` (string) (default: "AgodaInfoGroup")
  - `name` (string, required)
  - `items` (array) (default: [])
    - `@type` (string) (default: "AgodaInfoItem")
    - `name` (string, required)
    - `value` (string, nullable)
- `policies` (object, nullable)
  - `@type` (string) (default: "AgodaPolicies")
  - `children` (object, nullable)
    - `@type` (string) (default: "AgodaChildrenPolicy")
    - `stay_free_min_age` (integer, nullable)
    - `stay_free_max_age` (integer, nullable)
    - `details` (array) (default: [])
      - `@type` (string) (default: "AgodaChildPolicyDetail")
      - `title` (string, required)
      - `description` (string, nullable)
      - `is_infant` (boolean, nullable)
  - `adult` (array) (default: [])
  - `extra_bed` (array) (default: [])
  - `additional` (array) (default: [])
  - `min_age` (array) (default: [])
- `nearby_places` (array) (default: [])
  - `@type` (string) (default: "AgodaNearbyPlace")
  - `name` (string, required)
  - `distance_km` (number, nullable)
  - `type_name` (string, nullable)
- `nearby_properties` (array) (default: [])
  - `@type` (string) (default: "AgodaNearbyProperty")
  - `category` (string, required)
  - `places` (array) (default: [])
    - `@type` (string) (default: "AgodaNearbyPropertyPlace")
    - `name` (string, required)
    - `distance_km` (number, nullable)
    - `abbr` (string, nullable)
- `images` (array) (default: [])
- `ugc_images` (array) (default: [])
- `video_url` (string, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

Hotel not found (well-formed but nonexistent property id)

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

