API para Google Hotels
Google Hotels

API para Google Hotels: Buscar

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
Disponibilidade
99,44%
30d · 180 chamadas
Requisições
185
30d · semanal, últimas 12 sem.
Resposta
4,5s
mediana · 30d

Preços e provedores

Preços do endpoint Buscar da API para Google Hotels: uma API, 2 provedores intercambiáveis

O provedor mais barato atende primeiro. Se ele falhar, o próximo assume na mesma chamada.

Você paga
US$ 15,00
US$ 1,50/mil req., só pelo que você usar. Sem plano mensal.
Suas primeiras 66 requisições são grátis com o saldo inicial de US$ 0,10.

Teste

Obtenha Buscar do Google Hotels em uma só requisição

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.
Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "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"
}

Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.

Referência

Uma requisição, um formato de resposta.

Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.

Última verificação em 2026-11-20 · disponibilidade e latência medidas em 30d

Corpo da requisição

JSON, enviado via POST para este endpoint.

  • checkInstring

    2026-12-20

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

  • checkOutstring

    2026-12-22

    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.

Você envia. Um corpo JSON pequeno. Os valores mostrados são exemplos para você trocar pelos seus.
Google Hotels

Resposta

JSON, um valor de exemplo por campo.

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[]pode ser exigido

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

  • descriptionstringpode ser exigido

    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.

  • totalPricenumberpode ser exigido

    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.

Você recebe. Campos nomeados e tipados, no mesmo formato, seja qual for a fonte que responder.

Dúvidas frequentes

Sobre o endpoint Buscar da API para Google Hotels

O endpoint Buscar da AnyAPI para Google Hotels retorna dados de Google Hotels em JSON normalizado com uma chamada POST para /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. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,50 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 99,4% das chamadas ao endpoint Buscar da API para Google Hotels feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 4,5 segundos, em 180 chamadas medidas.

Custa a partir de US$ 1,50 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

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. A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

Nos últimos 30 dias, 99,4% das chamadas ao endpoint Buscar da API para Google Hotels feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 4,5 segundos, em 180 chamadas medidas. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.

Sim. Uma conta nova da AnyAPI começa com US$ 0,10 de saldo grátis, sem cartão, o que cobre 66 chamadas de Buscar do Google Hotels a US$ 0,0015 cada.

A AnyAPI consulta a próxima das suas 2 fontes na mesma requisição, começando pela mais barata, então a queda de uma fonte não derruba sua chamada.

Envie uma requisição POST para https://api.getanyapi.com/v1/run/google_hotels.search com sua chave da AnyAPI em um cabeçalho "Authorization: Bearer" e a entrada como corpo JSON. A mesma chave e a mesma carteira funcionam em todos os endpoints da AnyAPI.

Não. Você adiciona dólares a um único saldo pré-pago da AnyAPI e cada requisição desconta dele. Não há plano mensal nem mínimo, e o mesmo saldo paga todos os endpoints da AnyAPI.

Sim. Instale @getanyapi/sdk pelo npm para TypeScript ou getanyapi pelo pip para Python. Os dois chamam todos os endpoints da AnyAPI com a mesma chave, e qualquer cliente HTTP também funciona.

Sim. Um agente pode se conectar ao servidor MCP da AnyAPI em https://api.getanyapi.com/mcp, ou criar a própria chave de teste grátis com um único POST sem autenticação para https://api.getanyapi.com/agent/signup e chamar este endpoint por HTTP.