API di Google Hotels
Google Hotels

Google Hotels Ricerca 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
Disponibilità
100,00%
30d · 1 chiamata
Richieste
1
30d
Risposta
2,4s
mediana · 30d

Prezzi e provider

Prezzi dell'API Google Hotels Ricerca: una sola API, 2 provider intercambiabili

Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.

Paghi
15,00 USD
1,50 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 66 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni Google Hotels Ricerca in una sola richiesta

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.
Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta 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"
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-10-07 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • 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.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.
Google Hotels

Risposta

JSON, un valore di esempio per 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[]può richiedere

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

  • descriptionstringpuò richiedere

    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.

  • totalPricenumberpuò richiedere

    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.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

FAQ

Sull'API Google Hotels Ricerca

L'API Google Hotels Ricerca di AnyAPI restituisce dati Google Hotels come JSON normalizzato da una sola chiamata POST a /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 instrada ogni richiesta su 2 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 1,50 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate Google Hotels Ricerca tramite AnyAPI è riuscito, con un tempo di risposta mediano di 2,4 secondi su 1 chiamate misurate.

Costa da 1,50 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

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. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 100,0% delle chiamate Google Hotels Ricerca tramite AnyAPI è riuscito, con un tempo di risposta mediano di 2,4 secondi su 1 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 66 chiamate Google Hotels Ricerca a 0,0015 USD ciascuna.

AnyAPI interroga la successiva delle sue 2 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/google_hotels.search con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.