# /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, 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), city ranking metrics, 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 with id, name, property_type, accommodation_type, star_rating, is_luxury, description, address, area, city, city_id, country, country_code, postal_code, latitude, longitude, check_in_time, check_out_time, is_infant_cot_available, response_rate (host responsiveness 0-1), ranking (property_count = hotels in the city, plus metrics with name, rank and absolute_value — e.g. facility count, average room size, location rating ranks), review_score (score, max_score, review_count, grades with category scores and city averages), recommendation_score, frequent_traveller_recommendation_score (0-100 guest recommendation %), review_tags (per-aspect sentiment: name, positive_percentage, rating_type), review_snippets (guest quotes: text, rating, author, demographic, country, country_code, created_at), ai_summary_positive, ai_summary_negative, gold_circle_year, highlights, favorite_features, location_highlights, facility_highlights, amenity_groups (grouped facilities), info_groups (useful property info), policies (children stay-free age range and details, adult definition, extra_bed and additional rules), nearby_places (name, distance_km, type_name, abbr), nearby_properties (airports and transport grouped by category), images, ugc_images (guest photos) and video_url.

## 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)
- `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)
- `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` (string, nullable)
- `ai_summary_positive` (string, nullable)
- `ai_summary_negative` (string, nullable)
- `gold_circle_year` (integer, 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")
      - `description` (string, nullable)
      - `is_infant` (boolean, nullable)
  - `adult` (array) (default: [])
  - `extra_bed` (array) (default: [])
  - `additional` (array) (default: [])
- `nearby_places` (array) (default: [])
  - `@type` (string) (default: "AgodaNearbyPlace")
  - `name` (string, required)
  - `distance_km` (number, nullable)
  - `type_name` (string, nullable)
  - `abbr` (string, nullable)
- `nearby_properties` (array) (default: [])
  - `@type` (string) (default: "AgodaNearbyProperty")
  - `category` (string, required)
  - `places` (array) (default: [])
    - `@type` (string) (default: "AgodaNearbyPlace")
    - `name` (string, required)
    - `distance_km` (number, nullable)
    - `type_name` (string, 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.

