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": [
4
],
"kind": [
"Hotel"
],
"meal_type": [
"all-inclusive",
"super-all-inclusive",
"soft-all-inclusive",
"ultra-all-inclusive"
]
}
}'Тело запроса
Ответ
Пример ответа
{
"data": {
"hotels": [
{
"id": "conrad_los_angeles",
"hid": 10004834,
"rates": [
{
"book_hash": "h-8e21aecc-7639-53e7-9ae4-5d08c375b847",
"match_hash": "m-1c758b49-7e79-5d7e-b39f-cd6999693694",
"daily_prices": [
"443.78",
"443.78",
"443.78"
],
"meal": "nomeal",
"meal_data": {
"value": "nomeal",
"has_breakfast": false,
"no_child_meal": true
},
"payment_options": {
"payment_types": [
{
"amount": "1331.34",
"show_amount": "1331.34",
"currency_code": "USD",
"show_currency_code": "USD",
"by": null,
"is_need_credit_card_data": true,
"is_need_cvc": true,
"type": "hotel",
"tax_data": {
"taxes": [
{
"name": "occupancy_tax",
"included_by_supplier": true,
"amount": "183.63",
"currency_code": "USD"
},
{
"name": "resort_fee",
"included_by_supplier": false,
"amount": "135.00",
"currency_code": "USD"
}
]
},
"cancellation_penalties": {
"policies": [
{
"start_at": null,
"end_at": null,
"amount_charge": "1331.34",
"amount_show": "1331.34"
}
],
"free_cancellation_before": 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, handicap accessible)",
"room_name_info": null,
"serp_filters": [
"has_bathroom"
],
"allotment": 3,
"amenities_data": [
"non-smoking",
"accessible",
"king-bed"
],
"any_residency": true,
"deposit": null,
"no_show": {
"amount": "1331.00",
"currency_code": "USD",
"from_time": "12:00:00"
},
"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, handicap accessible",
"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-6ac42450-53d0-59a5-9543-a11f40132617",
"match_hash": "m-fde98be9-7272-5cf3-9784-d3c8b319c5b9",
"daily_prices": [
"4457.01",
"5008.18",
"4416.31"
],
"meal": "breakfast",
"meal_data": {
"value": "breakfast",
"has_breakfast": true,
"no_child_meal": false
},
"payment_options": {
"payment_types": [
{
"amount": "13881.50",
"show_amount": "13881.50",
"currency_code": "USD",
"show_currency_code": "USD",
"by": null,
"is_need_credit_card_data": true,
"is_need_cvc": true,
"type": "hotel",
"tax_data": {
"taxes": [
{
"name": "occupancy_tax",
"included_by_supplier": true,
"amount": "1914.69",
"currency_code": "USD"
},
{
"name": "resort_fee",
"included_by_supplier": false,
"amount": "135.00",
"currency_code": "USD"
}
]
},
"cancellation_penalties": {
"policies": [
{
"start_at": null,
"end_at": "2026-11-21T08:00:00",
"amount_charge": "0.00",
"amount_show": "0.00"
},
{
"start_at": "2026-11-21T08:00:00",
"end_at": null,
"amount_charge": "13881.50",
"amount_show": "13881.50"
}
],
"free_cancellation_before": "2026-11-21T08:00:00"
}
}
]
},
"rg_ext": {
"class": 5,
"quality": 23,
"sex": 0,
"bathroom": 2,
"bedding": 3,
"family": 0,
"capacity": 2,
"club": 0,
"bedrooms": 0,
"balcony": 0,
"view": 0,
"floor": 0
},
"room_name": "Conrad Penthouse Double Suite (full double bed)",
"room_name_info": null,
"serp_filters": [
"has_bathroom"
],
"allotment": 1,
"amenities_data": [
"non-smoking"
],
"any_residency": true,
"deposit": null,
"no_show": {
"amount": "4457.00",
"currency_code": "USD",
"from_time": "12:00:00"
},
"room_data_trans": {
"main_room_type": "Conrad Penthouse Double Suite",
"main_name": "Conrad Penthouse Double Suite",
"bathroom": null,
"bedding_type": "full double bed",
"misc_room_type": null,
"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
}
]
}
]
},
"debug": {
"api_endpoint": {
"endpoint": "api/b2b/v3/search/hp",
"is_active": true,
"is_limited": true,
"remaining": 8,
"requests_number": 10,
"reset": "2026-04-16T20:22: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": "6e5e3848a3c4ffd3b506d20d40288b2c",
"key_id": 1234,
"api_key_id": 1234,
"utcnow": "2026-04-16T20:21:53.213358"
},
"status": "ok",
"error": null
}Ошибки
Значение поля error указано в заголовках ниже.
invalid_params
Тело запроса невалидно.
core_search_error
Внутренняя ошибка поиска. HTTP-статус — 500.