Documentation API Hop
Référence Google Hotels
Recherchez des hôtels, suggestions, photos et avis sur Google Hotels.
Limite de simultanéité
IA et Data partagent chacun un quota de requêtes simultanées au niveau du compte : 5 IA / 2 Data par défaut, selon l’abonnement. Les limites propres aux points de terminaison restent soumises au quota de catégorie. Atteindre une limite renvoie HTTP 429. Les tâches asynchrones occupent une place jusqu’à la fin de leur exécution.
GET /v1/google-hotels/search GET /v1/google-hotels/autocomplete GET /v1/google-hotels/photos GET /v1/google-hotels/reviews Recherchez des hôtels, suggestions, photos et avis sur Google Hotels.
Authentification et facturation
Le tarif par défaut est de $0.0003 (300 credits) par requête réussie. Utilisez votre clé API API Hop. L’accès dépend des passerelles actives et des droits de la clé. Consultez le catalogue et votre compte pour le prix par requête réussie ; les prix du compte prévalent. Un résultat vide réussi est facturable. Un échec libère la réservation. Délai : 60 secondes, sans nouvelle tentative ni pagination automatique. Une erreur de règlement ne répète pas la requête fournisseur.
Authorization: Bearer YOUR_API_KEYGoogle Hotels: Rechercher des hôtels
GET https://api.apihop.ai/v1/google-hotels/search
Paramètres
| Champ | Type | Limites | Exemple |
|---|---|---|---|
query | string | Texte de recherche; query: optional | hotels in New York |
next_page_token | string | Jeton de page suivante; next_page_token: optional; UTF-8 bytes: 24576 | - |
currency | string | Code devise (currency); currency: optional; ALL, DZD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BYN, BMD, BAM, BRL, GBP, BGN, XPF, CAD, CLP, CNY, COP, CRC, CUP, CZK, DKK, DOP, EGP, EUR, GEL, HKD, HUF, ISK, INR, IDR, IRR, ILS, JMD, JPY, JOD, KZT, KWD, LBP, MKD, MYR, MXN, MDL, MAD, TWD, NZD, NOK, OMR, PKR, PAB, PEN, PHP, PLN, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SEK, CHF, THB, TRY, USD, UAH, AED, VND; ^[A-Z]{3}$ | USD |
country | string | Code pays ou boutique (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Langue; language: optional | - |
limit | integer | Limite des résultats; limit: optional; min: 1; max: 100 | 1 |
device | string | Appareil; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Ne pas archiver les réponses; zero_trace: optional | true |
check_in_date | string | Date (YYYY-MM-DD) ou plage prise en charge (check_in_date); check_in_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
check_out_date | string | Date (YYYY-MM-DD) ou plage prise en charge (check_out_date); check_out_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
adults | integer | Nombre d’adultes (adults); adults: optional; min: 1; max: 100 | 1 |
children | integer | Nombre d’enfants (children); children: optional; min: 0; max: 99 | 0 |
children_ages | string | Liste des âges des enfants (children_ages); Valeur par défaut: 12; children_ages: optional; UTF-8 bytes: 296; ^(?:[1-9]|1[0-7])(?:,(?:[1-9]|1[0-7])){0,98}$ | - |
sort_by | string | Tri; sort_by: optional; relevance, lowest_price, highest_rating, most_reviewed | relevance |
min_price | integer | Prix minimum (min_price); min_price: optional; min: 0; max: 2147483647 | 0 |
max_price | integer | Prix maximum (max_price); max_price: optional; min: 1; max: 2147483647 | 1 |
rating | integer | Étoiles séparées par des virgules; 7 → 3.5+, 8 → 4.0+, 9 → 4.5+; rating: optional; 7, 8, 9 | 7 |
hotel_class | string | Filtre hébergement (hotel_class); hotel_class: optional; UTF-8 bytes: 7 | - |
amenities | string | Filtre hébergement (amenities); amenities: optional; UTF-8 bytes: 300; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
free_cancellation | boolean | Filtre hébergement (free_cancellation); free_cancellation: optional | true |
special_offers | boolean | Filtre hébergement (special_offers); special_offers: optional | true |
eco_certified | boolean | Filtre hébergement (eco_certified); eco_certified: optional | true |
property_types | string | Filtre hébergement (property_types); property_types: optional; UTF-8 bytes: 100; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
brands | string | Filtre hébergement (brands); brands: optional; UTF-8 bytes: 300; ^[1-9][0-9]{0,5}(?:,[1-9][0-9]{0,5})*$ | - |
vacation_rentals | boolean | Filtre hébergement (vacation_rentals); vacation_rentals: optional | true |
bedrooms | integer | Minimum de chambres ou lits (bedrooms); bedrooms: optional; min: 0; max: 2147483647 | 0 |
bathrooms | integer | Minimum de salles de bains (bathrooms); bathrooms: optional; min: 0; max: 2147483647 | 0 |
property_token | string | Jeton de sélection issu d’une réponse récente (property_token); property_token: optional; UTF-8 bytes: 256; ^[A-Za-z0-9_-]{16,256}$ | - |
Validation
Paramètres de requête uniquement, sans corps. Les valeurs inconnues, répétées, vides ou invalides sont refusées. Réponses JSON uniquement ; aucune pagination ni nouvelle tentative automatique. Règles : AND = les deux, OR = ou, XOR = un seul, NOT = exclu, => = exige.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/min_price <= max_pricecheck_in_date AND check_out_date: supply both or neither; valid YYYY-MM-DD dates; check_out_date > check_in_datequery OR property_token OR next_page_token: requiredadults (default 2) + children <= 100; children_ages: comma-separated ages 0..17; count = childrenbedrooms OR bathrooms => vacation_rentals = true; vacation_rentals = true => NOT brandsTokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request
Exemples
curl --get "https://api.apihop.ai/v1/google-hotels/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "currency=USD" \
--data-urlencode "query=hotels in New York"Google Hotels: Consulter les suggestions d’hôtels
GET https://api.apihop.ai/v1/google-hotels/autocomplete
Paramètres
| Champ | Type | Limites | Exemple |
|---|---|---|---|
query | string | Texte de recherche; query: REQUIRED | New York |
country | string | Code pays ou boutique (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Langue; language: optional | - |
limit | integer | Limite des résultats; limit: optional; min: 1; max: 100 | 1 |
device | string | Appareil; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Ne pas archiver les réponses; zero_trace: optional | true |
currency | string | Code devise (currency); currency: optional; ALL, DZD, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BYN, BMD, BAM, BRL, GBP, BGN, XPF, CAD, CLP, CNY, COP, CRC, CUP, CZK, DKK, DOP, EGP, EUR, GEL, HKD, HUF, ISK, INR, IDR, IRR, ILS, JMD, JPY, JOD, KZT, KWD, LBP, MKD, MYR, MXN, MDL, MAD, TWD, NZD, NOK, OMR, PKR, PAB, PEN, PHP, PLN, QAR, RON, RUB, SAR, RSD, SGD, ZAR, KRW, SEK, CHF, THB, TRY, USD, UAH, AED, VND; ^[A-Z]{3}$ | ALL |
Validation
Paramètres de requête uniquement, sans corps. Les valeurs inconnues, répétées, vides ou invalides sont refusées. Réponses JSON uniquement ; aucune pagination ni nouvelle tentative automatique. Règles : AND = les deux, OR = ou, XOR = un seul, NOT = exclu, => = exige.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
Exemples
curl --get "https://api.apihop.ai/v1/google-hotels/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=New York"Google Hotels: Consulter les photos des hôtels
GET https://api.apihop.ai/v1/google-hotels/photos
Paramètres
| Champ | Type | Limites | Exemple |
|---|---|---|---|
id | string | Identifiant hôtel issu des résultats (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
country | string | Code pays ou boutique (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Langue; language: optional | - |
limit | integer | Limite des résultats; limit: optional; min: 1; max: 100 | 1 |
device | string | Appareil; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Ne pas archiver les réponses; zero_trace: optional | true |
next_page_token | string | Jeton de page suivante; next_page_token: optional; UTF-8 bytes: 24576 | - |
Validation
Paramètres de requête uniquement, sans corps. Les valeurs inconnues, répétées, vides ou invalides sont refusées. Réponses JSON uniquement ; aucune pagination ni nouvelle tentative automatique. Règles : AND = les deux, OR = ou, XOR = un seul, NOT = exclu, => = exige.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request
Exemples
curl --get "https://api.apihop.ai/v1/google-hotels/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ"Google Hotels: Consulter les avis des hôtels
GET https://api.apihop.ai/v1/google-hotels/reviews
Paramètres
| Champ | Type | Limites | Exemple |
|---|---|---|---|
id | string | Identifiant hôtel issu des résultats (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
next_page_token | string | Jeton de page suivante; next_page_token: optional; UTF-8 bytes: 24576 | - |
sort_by | string | Tri; sort_by: optional; relevance, newest, highest_rating, lowest_rating | relevance |
country | string | Code pays ou boutique (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Langue; language: optional | - |
limit | integer | Limite des résultats; limit: optional; min: 1; max: 10 | 10 |
device | string | Appareil; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Ne pas archiver les réponses; zero_trace: optional | true |
category_token | string | Jeton de sélection issu d’une réponse récente (category_token); category_token: optional; UTF-8 bytes: 2800; ^[A-Za-z0-9_-]+$ | - |
source_number | integer | Filtre hébergement (source_number); source_number: optional; min: -1; max: 2147483647 | -1 |
Validation
Paramètres de requête uniquement, sans corps. Les valeurs inconnues, répétées, vides ou invalides sont refusées. Réponses JSON uniquement ; aucune pagination ni nouvelle tentative automatique. Règles : AND = les deux, OR = ou, XOR = un seul, NOT = exclu, => = exige.
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request
Exemples
curl --get "https://api.apihop.ai/v1/google-hotels/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ" \
--data-urlencode "limit=10"Réponses et erreurs
Le JSON natif et la précision sont conservés. Exemple de résultat vide réussi. HTTP 400 : entrée ; 401 : authentification ; 402 : solde ; 403 : accès ; 405 : méthode ; 429 : limite ; 5xx : service. Conservez X-Request-Id.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}