API Google Hotels
Google Hotels

Google Hotels Поиск API

Search Google Hotels by destination and dates and get hotels with their Google property ID, nightly price, rating, review count, coordinates, star class and photos as normalized JSON.

POST/v1/run/google_hotels.search
Доступность
100,00%
30d · 1 вызов
Запросы
1
30d
Ответ
2,4s
медиана · 30d

Цены и поставщики

Цена API Google Hotels Поиск: один API, поставщиков 2, и любой может заменить другого

Первым обслуживает самый дешёвый поставщик. Если он не отвечает, его заменяет следующий в том же вызове.

Вы платите
15,00 USD
1,50 USD/1 тыс. запросов, только за то, чем пользуетесь. Без ежемесячного тарифа.
Ваши первые запросы (66) бесплатны за счёт стартового баланса 0,10 USD.

Попробовать

Получите Google Hotels Поиск одним запросом

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `totalPrice` or `amenities`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a hotel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Открыть в
Пример ответа
Бесплатные запуски возвращают только первые результаты: 3. Пополните ключ, чтобы получить полный ответ.
{
  "data": {
    "currency": "USD",
    "hotels": [
      {
        "amenities": [
          "example"
        ],
        "description": "A short example description of this item.",
        "images": [
          "https://example.com/image.jpg"
        ],
        "latitude": 37.7749,
        "longitude": -122.4194,
        "name": "Example title",
        "pricePerNight": 19.99,
        "propertyToken": "a1b2c3d4",
        "rating": 4.6,
        "reviewsCount": 12500,
        "stars": 5,
        "totalPrice": 19.99
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}

Полный справочник по параметрам и ответу: каждое поле, тип и пример для этого эндпоинта.

Справочник

Один запрос, один формат ответа.

Каждое поле, которое вы отправляете, и каждое поле, которое получаете, с реальным примером.

Проверено 2026-10-07 · доступность и задержка измерены за 30d

Тело запроса

JSON, отправляется на этот эндпоинт.

  • checkInstring

    2026-11-06

    Check-in date in YYYY-MM-DD format (e.g. 2027-04-13). Today or later.

  • checkOutstring

    2026-11-08

    Check-out date in YYYY-MM-DD format (e.g. 2027-04-15). After the check-in date.

  • countryenum

    us

    Two-letter lowercase ISO 3166-1 country code of the destination (e.g. us, pt, jp). It must be the country the hotels are in: results are searched from that country.

  • querystring

    hotels near times square new york

    What to search for, usually a destination or landmark (e.g. hotels near times square new york).

  • adultsinteger

    Number of adult guests (default 2).

  • childrenAgesarray

    Age of each child guest, one entry per child (e.g. [5, 8] for two children aged 5 and 8). Omit it when no children are staying.

  • currencystring

    ISO 4217 currency code for prices (e.g. USD, EUR, JPY; default USD).

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `totalPrice` or `amenities`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a hotel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

Вы отправляете. Небольшое тело JSON. Показанные значения это примеры, замените их своими.
Google Hotels

Ответ

JSON, по одному примеру значения на поле.

datadata

Result payload, or null when nothing was found.

  • currencystring

    ISO 4217 currency code every price in this response is in. Populated whenever the provider has data for the entity.

each hoteldata.hotels[]

Hotels matching the search, in Google's order. Populated whenever the provider has data for the entity.

  • amenitiesstring[]может потребовать

    Highlighted amenities (e.g. Free Wi-Fi, Parking), or null when unknown.

  • descriptionstringможет потребовать

    Short description of the hotel, or null when unknown.

  • imagesstring[]

    Preview photo URLs of the hotel.

  • latitudenumber

    Latitude of the hotel. Populated whenever the provider has data for the entity.

  • longitudenumber

    Longitude of the hotel. Populated whenever the provider has data for the entity.

  • namestring

    Hotel name.

  • pricePerNightnumber

    Lowest nightly price for the requested dates and guests, in the response currency, or null when no price is offered. Populated whenever the provider has data for the entity.

  • propertyTokenstring

    Google Hotels property ID. Pass it to google_hotels.details for this hotel's full record.

  • ratingnumber

    Average guest rating out of 5, or null when the hotel has no ratings. Populated whenever the provider has data for the entity.

  • reviewsCountinteger

    Number of guest reviews. Populated whenever the provider has data for the entity.

  • starsinteger

    Hotel star class (1-5), or null when the property has none.

  • totalPricenumberможет потребовать

    Lowest total price for the whole stay, in the response currency, or null when unknown.

top level
  • foundboolean

    Whether any hotels were found.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Вы получаете. Именованные типизированные поля в одном формате, какой бы источник ни ответил.

Вопросы и ответы

Об API Google Hotels Поиск

AnyAPI Google Hotels Поиск API возвращает данные Google Hotels в виде нормализованного JSON одним вызовом POST к /v1/run/google_hotels.search. Search Google Hotels by destination and dates and get hotels with their Google property ID, nightly price, rating, review count, coordinates, star class and photos as normalized JSON. AnyAPI направляет каждый запрос по источникам (их 2) и автоматически переключается, если один из них отказывает. Это стоит от 1,50 USD за 1000 запросов, в долларах США, без подписки и без ежемесячного минимума. За последние 30 дней 100,0% вызовов Google Hotels Поиск через AnyAPI завершились успешно, медианное время ответа 2,4 с, измерено вызовов: 1.

Это стоит от 1,50 USD за 1000 запросов, в долларах США, без подписки и без ежемесячного минимума. Вы пополняете один кошелёк в долларах США, и каждый вызов списывает с него. По некоторым неудавшимся запросам, оплаченным из кошелька, возникают расходы на обработку; мы передаём их по себестоимости, без наценки, а сумма списания указана в ответе с ошибкой.

Search Google Hotels by destination and dates and get hotels with their Google property ID, nightly price, rating, review count, coordinates, star class and photos as normalized JSON. Ответ это нормализованный JSON с тем же конвертом, что возвращает каждый эндпоинт AnyAPI, поэтому разбор второго эндпоинта это смена URL и ничего больше.

За последние 30 дней 100,0% вызовов Google Hotels Поиск через AnyAPI завершились успешно, медианное время ответа 2,4 с, измерено вызовов: 1. Это собственные измерения AnyAPI по трафику через шлюз, пересчитываемые непрерывно, а не опубликованный целевой уровень обслуживания.

Да. Новый аккаунт AnyAPI стартует с бесплатным балансом 0,10 USD, карта не нужна. Этого хватает на 66 вызовов Google Hotels Поиск по 0,0015 USD за каждый.

AnyAPI в том же запросе обращается к следующему из источников (их 2), начиная с самого дешёвого, поэтому отказ одного источника не ломает ваш вызов.

Отправьте запрос POST на https://api.getanyapi.com/v1/run/google_hotels.search с вашим ключом AnyAPI в заголовке "Authorization: Bearer" и входными данными в теле JSON. Один и тот же ключ и один и тот же кошелёк работают на каждом эндпоинте AnyAPI.

Нет. Вы пополняете один предоплаченный баланс AnyAPI в долларах США, и каждый запрос списывает с него. Ежемесячного тарифа и минимума нет, а один и тот же баланс оплачивает каждый эндпоинт AnyAPI.

Да. Установите @getanyapi/sdk из npm для TypeScript или getanyapi из pip для Python. Оба вызывают любой эндпоинт AnyAPI с одним и тем же ключом, а ещё подойдёт любой HTTP-клиент.

Да. Агент может подключиться к MCP-серверу AnyAPI по адресу https://api.getanyapi.com/mcp или создать собственный бесплатный пробный ключ одним POST без аутентификации на https://api.getanyapi.com/agent/signup и вызывать этот эндпоинт по HTTP.