# Despegar Room Offers ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/despegar/hotel/rooms` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/despegar-hotel-rooms | ## Description Room offers for one Despegar hotel and one stay. query is the accommodations detail URL, or the numeric hotel id together with check_in, check_out, and adults. status is ok when rooms are returned, no_availability when the night is sold out, and error when the page or the availability call fails. room_name is the Spanish name shown on despegar.com.ar, with nothing appended. room_id is Despegar's room identifier. Each offer can include price_list, price_logged_in, and price_mercado_pago in ARS with taxes included. A price is omitted when the site does not show it. board and cancellation are separate from the room name. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/despegar/hotel/rooms' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Example 1 ```json { "body": { "rooms": [ { "offers": [ { "board": "All inclusive", "currency": "ARS", "price_list": 320246, "refundable": false, "cancellation": "No podés cancelar ni realizar cambios", "price_logged_in": 252096, "price_mercado_pago": 298213 } ], "room_id": "2779250", "room_name": "Habitación Doble Estándar" } ], "status": "ok", "check_in": "2026-12-15", "currency": "ARS", "hotel_id": "1612020", "check_out": "2026-12-16" }, "name": "Available", "status": 200 } ``` ### Example 2 ```json { "body": { "rooms": [], "status": "no_availability", "check_in": "2026-11-28", "currency": "ARS", "hotel_id": "1612020", "check_out": "2026-11-29" }, "name": "Sold out", "status": 200 } ``` ## Documentation Room offers for one Despegar hotel and one stay. query is the accommodations detail URL, or the numeric hotel id with check_in, check_out, and adults. status is ok, no_availability, or error. Each room keeps the Spanish name shown on despegar.com.ar and its room_id. Each offer has price_list, price_logged_in, price_mercado_pago, board, and cancellation. ``` https://api.piloterr.com/v2/despegar/hotel/rooms?query=https://www.despegar.com.ar/accommodations/detail/1612020/2026-12-15/2026-12-16/2 ```