API Google Hotels
Google Hotels

Google Hotels Details API

Get one hotel from Google Hotels by its property ID: address, phone, website, rating, nightly price, prices from each booking site, amenities and check-in times as normalized JSON.

POST/v1/run/google_hotels.details
Disponibilité
100,00%
30d · 2 appels
Requêtes
2
30d
Réponse
2,7s
médiane · 30d

Tarifs et fournisseurs

Tarifs de l’API Google Hotels Details : une API, 2 fournisseurs interchangeables

Le fournisseur le moins cher répond en premier. S’il échoue, le suivant prend le relais dans le même appel.

Vous payez
15,00 $US
1,50 $US/1k req, seulement pour ce que vous utilisez. Aucun forfait mensuel.
Vos 66 premières requêtes sont gratuites avec le solde de départ de 0,10 $US.

Essayer

Obtenez Google Hotels Details en une requête

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 `stars` or `images`, 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.
Ouvrir dans
Obtenir une clé gratuite
Exemple de réponse
Les exécutions gratuites ne renvoient que les 3 premiers résultats. Alimentez une clé pour obtenir la réponse complète.
{
  "data": {
    "address": "123 Main St",
    "amenities": [
      {
        "available": true,
        "name": "Example title"
      }
    ],
    "checkInTime": "2024-01-15T09:30:00Z",
    "checkOutTime": "2024-01-15T09:30:00Z",
    "currency": "USD",
    "images": [
      "https://example.com/image.jpg"
    ],
    "latitude": 37.7749,
    "longitude": -122.4194,
    "name": "Example title",
    "phone": "+1 555-0142",
    "pricePerNight": 19.99,
    "prices": [
      {
        "pricePerNight": 19.99,
        "site": "example",
        "totalPrice": 19.99,
        "url": "https://example.com/page"
      }
    ],
    "propertyToken": "a1b2c3d4",
    "rating": 4.6,
    "reviewsCount": 12500,
    "stars": 5,
    "totalPrice": 19.99,
    "website": "https://example.com/page"
  },
  "found": true,
  "reason": "not_found"
}

Référence complète des paramètres et de la réponse : chaque champ, type et exemple de cet endpoint.

Référence

Une requête, une seule forme de réponse.

Chaque champ que vous envoyez et chaque champ que vous recevez, avec un vrai exemple.

Dernière vérification : 2026-10-07 · disponibilité et latence mesurées sur 30d

Corps de la requête

JSON, envoyé à cet 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.

  • propertyTokenstring

    ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB

    Google Hotels property ID of the hotel, the propertyToken google_hotels.search returns for it.

  • 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 `stars` or `images`, 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.

Vous envoyez. Un petit corps JSON. Les valeurs affichées sont des exemples à remplacer par les vôtres.
Google Hotels

Réponse

JSON, une valeur d’exemple par champ.

datadata

The hotel, or null when it was not found.

  • addressstring

    Street address. Populated whenever the provider has data for the entity.

  • checkInTimestring

    Earliest check-in time, 24-hour HH:MM local time. Populated whenever the provider has data for the entity.

  • checkOutTimestring

    Latest check-out time, 24-hour HH:MM local time. Populated whenever the provider has data for the entity.

  • currencystring

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

  • imagesstring[]peut exiger

    Preview photo URLs of the hotel, or null when unknown.

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

  • phonestring

    Phone number as published. Populated whenever the provider has data for the entity.

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

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

  • starsintegerpeut exiger

    Hotel star class (1-5), or null when unknown.

  • totalPricenumberpeut exiger

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

  • websitestring

    The hotel's own website. Populated whenever the provider has data for the entity.

each amenitydata.amenities[]

Amenities Google lists for the hotel, each with whether the hotel offers it. Populated whenever the provider has data for the entity.

  • availableboolean

    Whether the hotel offers it. Populated whenever the provider has data for the entity.

  • namestring

    Amenity name (e.g. Wi-Fi, Pool).

each pricedata.prices[]

Nightly prices offered by each booking site for the requested dates. Populated whenever the provider has data for the entity.

  • pricePerNightnumber

    Nightly price on this site, in the response currency. Populated whenever the provider has data for the entity.

  • sitestring

    Booking site name (e.g. Booking.com).

  • totalPricenumberpeut exiger

    Total price for the stay on this site, or null when unknown.

  • urlstring

    Booking link for this offer. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    Whether the hotel was 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.

Vous recevez. Des champs nommés et typés, dans la même forme quelle que soit la source qui répond.

FAQ

À propos de l’API Google Hotels Details

L’API Google Hotels Details d’AnyAPI renvoie des données Google Hotels en JSON normalisé à partir d’un appel POST à /v1/run/google_hotels.details. Get one hotel from Google Hotels by its property ID: address, phone, website, rating, nightly price, prices from each booking site, amenities and check-in times as normalized JSON. AnyAPI route chaque requête sur 2 sources et bascule automatiquement quand l’une échoue. Elle coûte à partir de 1,50 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 100,0% des appels Google Hotels Details passés par AnyAPI ont réussi, avec un temps de réponse médian de 2,7 secondes, sur 2 appels mesurés.

Elle coûte à partir de 1,50 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Vous alimentez un portefeuille en USD et chaque appel le débite. Certaines requêtes échouées financées par le portefeuille entraînent des frais de traitement que nous répercutons au prix coûtant, sans marge ; la réponse d’erreur indique le montant facturé.

Get one hotel from Google Hotels by its property ID: address, phone, website, rating, nightly price, prices from each booking site, amenities and check-in times as normalized JSON. La réponse est du JSON normalisé avec la même enveloppe que celle de tous les endpoints AnyAPI, donc analyser un second endpoint revient à changer l’URL et rien d’autre.

Ces 30 derniers jours, 100,0% des appels Google Hotels Details passés par AnyAPI ont réussi, avec un temps de réponse médian de 2,7 secondes, sur 2 appels mesurés. Ce sont les propres mesures d’AnyAPI du trafic passant par la passerelle, recalculées en continu, et non un objectif de niveau de service publié.

Oui. Un nouveau compte AnyAPI démarre avec 0,10 $US de solde gratuit, sans carte, ce qui couvre 66 appels Google Hotels Details à 0,0015 $US chacun.

AnyAPI interroge la suivante de ses 2 sources dans la même requête, la moins chère d’abord, donc la panne d’une source ne fait pas échouer votre appel.

Envoyez une requête POST à https://api.getanyapi.com/v1/run/google_hotels.details avec votre clé AnyAPI dans un en-tête « Authorization: Bearer » et l’entrée en corps JSON. La même clé et le même portefeuille fonctionnent sur tous les endpoints AnyAPI.

Non. Vous ajoutez des dollars US à un solde AnyAPI prépayé unique et chaque requête le débite. Il n’y a ni forfait mensuel ni minimum, et le même solde paie tous les endpoints AnyAPI.

Oui. Installez @getanyapi/sdk depuis npm pour TypeScript ou getanyapi depuis pip pour Python. Les deux appellent chaque endpoint AnyAPI avec la même clé, et n’importe quel client HTTP fonctionne aussi.

Oui. Un agent peut se connecter au serveur MCP d’AnyAPI à https://api.getanyapi.com/mcp, ou créer sa propre clé d’essai gratuit avec un seul POST non authentifié vers https://api.getanyapi.com/agent/signup et appeler cet endpoint en HTTP.