Retrieve hotels content by IDs

Retrieve hotels content by IDs

#content-api

POST
https://api.ostrovok.ru/api/content/v1/hotel_content_by_ids/

Метод позволяет получить необходимый контент отеля по идентификатору. Используйте метод в следующих случаях:

ℹ️
Метод ограничен 1200 запросами в минуту (QPM).

Пример запроса

curl --user '<KEY_ID>:<API_KEY>' 'https://api.ostrovok.ru/api/content/v1/hotel_content_by_ids/' \
--header 'Content-Type: application/json' \
--data '{
  "hids": [9852019],
  "language": "en"
}'

Тело запроса

Ответ

Пример ответа

{
 "data": [
   {
     "address": "Katiet Bosua, South Sipora, Mentawai, Bosua, Mentawai Islands Regency, West Sumatra, Indonesia, Katiet",
     "amenity_groups": [],
     "check_in_time": "14:00:00",
     "check_in_time_end": null,
     "check_out_time": "12:00:00",
     "description_struct": [
       {
         "paragraphs": [
           "You’ll be sleeping tight! Hotel «Lances Right Villas Katiet» is located in Katiet. This hotel is located minutes away from the city center."
         ],
         "title": "Location"
       }
     ],
     "email": null,
     "hotel_chain": "No chain",
     "hid": 9852019,
     "id": "lances_right_villas_katiet",
     "images_ext": [],
     "kind": "Hotel",
     "latitude": -2.3758,
     "longitude": 99.8482,
     "name": "Lances Right Villas Katiet",
     "metapolicy_struct": {
       "add_fee": [],
       "check_in_check_out": [],
       "children": [],
       "children_meal": [],
       "cot": [],
       "deposit": [],
       "extra_bed": [],
       "internet": [],
       "meal": [],
       "no_show": {
         "availability": "unspecified",
         "day_period": "unspecified",
         "time": ""
       },
       "parking": [],
       "pets": [],
       "shuttle": [],
       "visa": {
         "visa_support": "unspecified"
       }
     },
     "metapolicy_extra_info": "To prevent the spread of the Mpox virus, the Indonesian Ministry of Health has resumed health screening for international travelers (both Indonesian and foreign nationals) entering Indonesia from August 27, 2024. This includes completing an electronic self-declaration form called SATUSEHAT Health Pass, which must be completed on a dedicated web platform.\n<ul>  <li>There is no hot water on site. </li> </ul>",
     "phone": "+62-08126626702",
     "policy_struct": [
       {
         "paragraphs": [
           "Information about the type of meals included in the price is indicated in the rate details.",
           "Meals may be limited during Ramadan."
         ],
         "title": "Meals"
       },
       {
         "paragraphs": [
           "Couples checking into the same room must present a valid marriage certificate upon check-in. Otherwise, the property may reject the booking or request that a second room be booked."
         ],
         "title": "Special living conditions"
       },
       {
         "paragraphs": [
           "To prevent the spread of the Mpox virus, the Indonesian Ministry of Health has resumed health screening for international travelers (both Indonesian and foreign nationals) entering Indonesia from August 27, 2024. This includes completing an electronic self-declaration form called SATUSEHAT Health Pass, which must be completed on a dedicated web platform.",
                       "<ul>  <li>There is no hot water on site. </li> </ul>"
         ],
         "title": "Extra info"
       }
     ],
     "postal_code": "25972",
     "region": {
       "country_code": "ID",
       "iata": "",
       "id": 965851524,
       "name": "Katiet",
       "type": "City"
     },
     "room_groups": [],
     "star_rating": 2,
     "serp_filters": null,
     "star_certificate": {
       "valid_to": "",
       "certificate_id": ""
     },
     "is_closed": false,
     "facts": {
       "electricity": {
         "frequency": [
           50
         ],
         "voltage": [
           230
         ],
         "sockets": [
           "c",
           "f"
         ]
       },
       "floors_number": 0,
       "rooms_number": 0,
       "year_built": 0,
       "year_renovated": 0,
       "register": {
         "record": "",
         "link": "",
         "email": "",
         "phone": "",
         "status": "",
         "kind": "unspecified",
         "name": "",
         "status_end_date": "",
         "rooms": [],
         "taxpayer_number": "",
         "state_registration_number": "",
         "work_time": "from 9-18 local time"
       }
     },
     "payment_methods": null,
     "front_desk_time_start": null,
     "front_desk_time_end": null,
     "is_gender_specification_required": false,
     "deleted": false,
     "keys_pickup": {
       "type": "unspecified",
       "phone": "",
       "is_contactless": false,
       "email": "",
       "apartment_office_address": "",
       "apartment_extra_information": ""
     },
     "distance_center": 975,
     "giata_code": "1087889"
   }
 ],
 "debug": {
   "api_endpoint": {
     "endpoint": "api/content/v1/hotel_content_by_ids",
     "is_active": true,
     "is_limited": true,
     "remaining": 29,
     "requests_number": 30,
     "reset": "2026-10-02T09:15:00",
     "seconds_number": 60
   },
   "request": {
     "hids": [
       9852019
     ],
     "language": "en"
   },
   "method": "POST",
   "real_ip": "5.135.60.82",
   "request_id": "7204ac984486b0f50ad09a3731899e26",
   "key_id": 1234,
   "api_key_id": 1234,
   "utcnow": "2026-10-02T09:14:47.030575"
 },
 "status": "ok",
 "error": null
}

Ошибки

Поле error принимает значение, указанное в заголовках ниже.

invalid_params

Один или несколько входных параметров указаны неверно. Подробнее см. поле debug validation_error в ответе.

no_content

Внутренняя ошибка поиска. Имеет код состояния 500.