Retrieve hotelpage
POST
https://api.ostrovok.ru/api/b2b/v3/search/hp/
ℹ️
- Этот вызов обязателен для рекомендуемого сценария (Prebook from Hotelpage).
- Вызывайте этот метод только когда пользователь выбрал отель.
- Не вызывайте этот метод для каждого отеля из результатов SERP-методов.
Метод возвращает доступные тарифы отеля. Покажите эту информацию пользователю, когда он выбрал отель и хочет увидеть тарифы.
ℹ️
Ограничения:
- Рекомендуемое время жизни тарифа — 30 минут.
- Фактическое время жизни больше и зависит от внутренних факторов.
Пример запроса
curl --user '<KEY_ID>:<API_KEY>' 'https://api.ostrovok.ru/api/b2b/v3/search/hp/' \
--header 'Content-Type: application/json' \
--data '{
"checkin": "2026-11-22",
"checkout": "2026-11-25",
"residency": "gb",
"language": "en",
"guests": [
{
"adults": 2,
"children": []
}
],
"hid": 10004834,
"currency": "USD",
"filter": {
"star_rating": [],
"kind": [],
"meal_type": []
}
}'Тело запроса
Ответ
Пример ответа
{
"data": {
"hotels": [
{
"id": "conrad_los_angeles",
"hid": 10004834,
"rates": [
{
"book_hash": "h-14eb5985-5e2b-505d-b67f-113e20411698",
"match_hash": "m-7c23a289-cef7-5ef5-919c-0fce06e7713d",
"daily_prices": [
"306.09",
"306.09",
"306.09"
],
"meal": "nomeal",
"meal_data": {
"value": "nomeal",
"has_breakfast": false,
"no_child_meal": true
},
"payment_options": {
"payment_types": [
{
"amount": "70036.68",
"show_amount": "918.26",
"currency_code": "USD",
"show_currency_code": "USD",
"by": null,
"is_need_credit_card_data": false,
"is_need_cvc": false,
"type": "deposit",
"vat_data": {
"included": false,
"applied": false,
"amount": "0.00",
"currency_code": "USD",
"value": "0.00"
},
"tax_data": {
"taxes": [
{
"name": "occupancy_tax",
"included_by_supplier": true,
"amount": "126.66",
"currency_code": "USD"
},
{
"name": "resort_fee",
"included_by_supplier": false,
"amount": "135.00",
"currency_code": "USD"
}
]
},
"perks": {},
"commission_info": {
"show": {
"amount_gross": "937.00",
"amount_net": "918.26",
"amount_commission": "18.74"
},
"charge": {
"amount_gross": "71466.00",
"amount_net": "70036.68",
"amount_commission": "1429.32"
}
},
"cancellation_penalties": {
"policies": [
{
"start_at": null,
"end_at": null,
"amount_charge": "70036.68",
"amount_show": "918.26",
"commission_info": {
"show": {
"amount_gross": "937.00",
"amount_net": "918.26",
"amount_commission": "18.74"
},
"charge": {
"amount_gross": "71466.00",
"amount_net": "70036.68",
"amount_commission": "1429.32"
}
}
}
],
"free_cancellation_before": null
},
"recommended_price": null
}
]
},
"bar_rate_price_data": null,
"rg_ext": {
"class": 3,
"quality": 6,
"sex": 0,
"bathroom": 2,
"bedding": 3,
"family": 0,
"capacity": 2,
"club": 0,
"bedrooms": 0,
"balcony": 0,
"view": 0,
"floor": 0
},
"room_name": "Deluxe Double room (full double bed) (king size bed)",
"room_name_info": {
"original_rate_name": "Deluxe One King Bed"
},
"serp_filters": [
"has_bathroom"
],
"sell_price_limits": null,
"allotment": 1,
"amenities_data": [
"king-bed",
"non-smoking"
],
"any_residency": false,
"deposit": null,
"no_show": null,
"room_data_trans": {
"main_room_type": "Deluxe Double room",
"main_name": "Deluxe Double room",
"bathroom": null,
"bedding_type": "full double bed",
"misc_room_type": "king size bed",
"beds": [
{
"bed": "double",
"count": 1
}
]
},
"legal_info": {
"provider": {
"name": "",
"address": "",
"taxpayer_number": "0000000000",
"state_registration_number": "0000000000000"
},
"hotel": {
"name": "Conrad Los Angeles",
"address": "100 South Grand Avenue, Лос-Анджелес",
"taxpayer_number": "0000000000",
"state_registration_number": "0000000000000",
"work_time": "from 9-18 local time"
}
},
"is_package": false
},
{
"book_hash": "h-56055c91-a6f3-5b14-889c-53e2556f67f1",
"match_hash": "m-453eb380-8110-5433-9b7a-762711fa7e46",
"daily_prices": [
"321.77",
"321.77",
"321.77"
],
"meal": "nomeal",
"meal_data": {
"value": "nomeal",
"has_breakfast": false,
"no_child_meal": true
},
"payment_options": {
"payment_types": [
{
"amount": "73662.68",
"show_amount": "965.30",
"currency_code": "USD",
"show_currency_code": "USD",
"by": null,
"is_need_credit_card_data": false,
"is_need_cvc": false,
"type": "deposit",
"vat_data": {
"included": false,
"applied": false,
"amount": "0.00",
"currency_code": "USD",
"value": "0.00"
},
"tax_data": {
"taxes": [
{
"name": "occupancy_tax",
"included_by_supplier": true,
"amount": "133.14",
"currency_code": "USD"
},
{
"name": "resort_fee",
"included_by_supplier": false,
"amount": "135.00",
"currency_code": "USD"
}
]
},
"perks": {},
"commission_info": {
"show": {
"amount_gross": "985.00",
"amount_net": "965.30",
"amount_commission": "19.70"
},
"charge": {
"amount_gross": "75166.00",
"amount_net": "73662.68",
"amount_commission": "1503.32"
}
},
"cancellation_penalties": {
"policies": [
{
"start_at": null,
"end_at": "2026-11-12T02:00:00",
"amount_charge": "0.00",
"amount_show": "0.00",
"commission_info": {
"show": {
"amount_gross": "0.00",
"amount_net": "0.00",
"amount_commission": "0.00"
},
"charge": {
"amount_gross": "0.00",
"amount_net": "0.00",
"amount_commission": "0.00"
}
}
},
{
"start_at": "2026-11-12T02:00:00",
"end_at": "2026-11-20T02:00:00",
"amount_charge": "24505.88",
"amount_show": "321.44",
"commission_info": {
"show": {
"amount_gross": "328.00",
"amount_net": "321.44",
"amount_commission": "6.56"
},
"charge": {
"amount_gross": "25006.00",
"amount_net": "24505.88",
"amount_commission": "500.12"
}
}
},
{
"start_at": "2026-11-20T02:00:00",
"end_at": null,
"amount_charge": "73662.68",
"amount_show": "965.30",
"commission_info": {
"show": {
"amount_gross": "985.00",
"amount_net": "965.30",
"amount_commission": "19.70"
},
"charge": {
"amount_gross": "75166.00",
"amount_net": "73662.68",
"amount_commission": "1503.32"
}
}
}
],
"free_cancellation_before": "2026-11-12T02:00:00"
},
"recommended_price": null
}
]
},
"bar_rate_price_data": {
"amount": "1330.38",
"currency_code": "USD"
},
"rg_ext": {
"class": 3,
"quality": 6,
"sex": 0,
"bathroom": 2,
"bedding": 3,
"family": 0,
"capacity": 2,
"club": 0,
"bedrooms": 0,
"balcony": 0,
"view": 0,
"floor": 0
},
"room_name": "Deluxe Double room (full double bed) (king size bed)",
"room_name_info": {
"original_rate_name": "Deluxe Room, 1 King Bed"
},
"serp_filters": [
"has_bathroom"
],
"sell_price_limits": null,
"allotment": 1,
"amenities_data": [
"non-smoking",
"king-bed"
],
"any_residency": false,
"deposit": null,
"no_show": null,
"room_data_trans": {
"main_room_type": "Deluxe Double room",
"main_name": "Deluxe Double room",
"bathroom": null,
"bedding_type": "full double bed",
"misc_room_type": "king size bed",
"beds": [
{
"bed": "double",
"count": 1
}
]
},
"legal_info": {
"provider": {
"name": "",
"address": "",
"taxpayer_number": "0000000000",
"state_registration_number": "0000000000000"
},
"hotel": {
"name": "Conrad Los Angeles",
"address": "100 South Grand Avenue, Лос-Анджелес",
"taxpayer_number": "0000000000",
"state_registration_number": "0000000000000",
"work_time": "from 9-18 local time"
}
},
"is_package": false
}
],
"bar_price_data": {
"hotel": {
"price": "1330.38",
"currency": "USD"
},
"room_groups": [
{
"rg_ext": {
"class": 3,
"quality": 6,
"sex": 0,
"bathroom": 2,
"bedding": 0,
"family": 0,
"capacity": 0,
"club": 0,
"bedrooms": 0,
"balcony": 0,
"view": 0,
"floor": 0
},
"price": "1399.50",
"currency": "USD"
},
{
"rg_ext": {
"class": 6,
"quality": 20,
"sex": 0,
"bathroom": 2,
"bedding": 3,
"family": 0,
"capacity": 2,
"club": 0,
"bedrooms": 0,
"balcony": 0,
"view": 0,
"floor": 0
}
}
]
}
}
]
},
"debug": {
"api_endpoint": {
"endpoint": "api/b2b/v3/search/hp",
"is_active": true,
"is_limited": true,
"remaining": 9,
"requests_number": 10,
"reset": "2026-04-16T19:19:00",
"seconds_number": 60
},
"request": {
"checkin": "2026-11-22",
"checkout": "2026-11-25",
"residency": "gb",
"language": "en",
"guests": [
{
"adults": 2,
"children": []
}
],
"hid": 10004834,
"currency": "USD",
"filter": {
"star_rating": [],
"kind": [],
"meal_type": []
}
},
"method": "POST",
"real_ip": "104.30.161.77",
"request_id": "bb8cb3201e92944fb8f9191cccf5b31d",
"key_id": 1234,
"api_key_id": 1234,
"utcnow": "2026-04-16T19:18:06.432524"
},
"status": "ok",
"error": null
}Ошибки
Значение поля error указано в заголовках ниже.
invalid_params
Тело запроса невалидно.
core_search_error
Внутренняя ошибка поиска. HTTP-статус — 500.