API Hop-Dokumentation
Google Hotels API-Referenz
Hotels, Hotelvorschläge, Fotos und Bewertungen auf Google Hotels suchen.
Parallelitätslimit
KI und Data teilen jeweils einen kontoweiten Pool gleichzeitiger Anfragen: standardmäßig 5 KI / 2 Data, abhängig vom Abonnement. Endpunktspezifische Limits bleiben durch den Kategoriepool begrenzt. Bei Erreichen eines Limits wird HTTP 429 zurückgegeben. Asynchrone Aufgaben belegen einen Platz bis zum Ausführungsende.
GET /v1/google-hotels/search GET /v1/google-hotels/autocomplete GET /v1/google-hotels/photos GET /v1/google-hotels/reviews Hotels, Hotelvorschläge, Fotos und Bewertungen auf Google Hotels suchen.
Authentifizierung und Abrechnung
Der Standardpreis beträgt $0.0003 (300 credits) pro erfolgreicher Anfrage. Verwenden Sie Ihren API Hop-API-Schlüssel. Aktive Gateways und Schlüsselrechte bestimmen den Zugriff. Der aktuelle Katalog und Ihr Konto zeigen den Preis pro erfolgreicher Anfrage; Kontopreise haben Vorrang. Erfolgreiche leere Ergebnisse sind kostenpflichtig. Fehler geben die Reservierung frei. Zeitlimit: 60 Sekunden, ohne automatische Wiederholung oder Seitennavigation. Abrechnungsfehler wiederholen die Anbieteranfrage nicht.
Authorization: Bearer YOUR_API_KEYGoogle Hotels: Hotels suchen
GET https://api.apihop.ai/v1/google-hotels/search
Abfrageparameter
| Feld | Typ | Grenzen | Beispiel |
|---|---|---|---|
query | string | Suchbegriff; query: optional | hotels in New York |
next_page_token | string | Token der nächsten Seite; next_page_token: optional; UTF-8 bytes: 24576 | - |
currency | string | Währungscode (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 | Land- oder Shopcode (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Sprache; language: optional | - |
limit | integer | Ergebnislimit; limit: optional; min: 1; max: 100 | 1 |
device | string | Gerät; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Antworten nicht archivieren; zero_trace: optional | true |
check_in_date | string | Reisedatum (YYYY-MM-DD) oder unterstützter Datumsbereich (check_in_date); check_in_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
check_out_date | string | Reisedatum (YYYY-MM-DD) oder unterstützter Datumsbereich (check_out_date); check_out_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
adults | integer | Anzahl Erwachsene (adults); adults: optional; min: 1; max: 100 | 1 |
children | integer | Anzahl Kinder (children); children: optional; min: 0; max: 99 | 0 |
children_ages | string | Liste der Kinderalter (children_ages); Standardwert: 12; children_ages: optional; UTF-8 bytes: 296; ^(?:[1-9]|1[0-7])(?:,(?:[1-9]|1[0-7])){0,98}$ | - |
sort_by | string | Sortierung; sort_by: optional; relevance, lowest_price, highest_rating, most_reviewed | relevance |
min_price | integer | Mindestpreis (min_price); min_price: optional; min: 0; max: 2147483647 | 0 |
max_price | integer | Höchstpreis (max_price); max_price: optional; min: 1; max: 2147483647 | 1 |
rating | integer | Sterne, kommagetrennt; 7 → 3.5+, 8 → 4.0+, 9 → 4.5+; rating: optional; 7, 8, 9 | 7 |
hotel_class | string | Unterkunftsfilter (hotel_class); hotel_class: optional; UTF-8 bytes: 7 | - |
amenities | string | Unterkunftsfilter (amenities); amenities: optional; UTF-8 bytes: 300; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
free_cancellation | boolean | Unterkunftsfilter (free_cancellation); free_cancellation: optional | true |
special_offers | boolean | Unterkunftsfilter (special_offers); special_offers: optional | true |
eco_certified | boolean | Unterkunftsfilter (eco_certified); eco_certified: optional | true |
property_types | string | Unterkunftsfilter (property_types); property_types: optional; UTF-8 bytes: 100; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
brands | string | Unterkunftsfilter (brands); brands: optional; UTF-8 bytes: 300; ^[1-9][0-9]{0,5}(?:,[1-9][0-9]{0,5})*$ | - |
vacation_rentals | boolean | Unterkunftsfilter (vacation_rentals); vacation_rentals: optional | true |
bedrooms | integer | Mindestzahl Schlafzimmer oder Betten (bedrooms); bedrooms: optional; min: 0; max: 2147483647 | 0 |
bathrooms | integer | Mindestzahl Badezimmer (bathrooms); bathrooms: optional; min: 0; max: 2147483647 | 0 |
property_token | string | Auswahltoken aus aktueller Antwort (property_token); property_token: optional; UTF-8 bytes: 256; ^[A-Za-z0-9_-]{16,256}$ | - |
Validierung
Nur Abfrageparameter, kein Anfragekörper. Unbekannte, doppelte, leere und ungültige Werte werden abgelehnt. Nur JSON-Antworten; keine automatische Seitennavigation oder Wiederholung. Regeln: AND = beide, OR = oder, XOR = genau eines, NOT = ausgeschlossen, => = benötigt.
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
Beispiele
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: Hotelvorschläge abrufen
GET https://api.apihop.ai/v1/google-hotels/autocomplete
Abfrageparameter
| Feld | Typ | Grenzen | Beispiel |
|---|---|---|---|
query | string | Suchbegriff; query: REQUIRED | New York |
country | string | Land- oder Shopcode (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Sprache; language: optional | - |
limit | integer | Ergebnislimit; limit: optional; min: 1; max: 100 | 1 |
device | string | Gerät; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Antworten nicht archivieren; zero_trace: optional | true |
currency | string | Währungscode (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 |
Validierung
Nur Abfrageparameter, kein Anfragekörper. Unbekannte, doppelte, leere und ungültige Werte werden abgelehnt. Nur JSON-Antworten; keine automatische Seitennavigation oder Wiederholung. Regeln: AND = beide, OR = oder, XOR = genau eines, NOT = ausgeschlossen, => = benötigt.
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})?$/
Beispiele
curl --get "https://api.apihop.ai/v1/google-hotels/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=New York"Google Hotels: Hotelfotos abrufen
GET https://api.apihop.ai/v1/google-hotels/photos
Abfrageparameter
| Feld | Typ | Grenzen | Beispiel |
|---|---|---|---|
id | string | Hotelkennung aus Suchergebnissen (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
country | string | Land- oder Shopcode (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Sprache; language: optional | - |
limit | integer | Ergebnislimit; limit: optional; min: 1; max: 100 | 1 |
device | string | Gerät; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Antworten nicht archivieren; zero_trace: optional | true |
next_page_token | string | Token der nächsten Seite; next_page_token: optional; UTF-8 bytes: 24576 | - |
Validierung
Nur Abfrageparameter, kein Anfragekörper. Unbekannte, doppelte, leere und ungültige Werte werden abgelehnt. Nur JSON-Antworten; keine automatische Seitennavigation oder Wiederholung. Regeln: AND = beide, OR = oder, XOR = genau eines, NOT = ausgeschlossen, => = benötigt.
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
Beispiele
curl --get "https://api.apihop.ai/v1/google-hotels/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ"Google Hotels: Hotelbewertungen abrufen
GET https://api.apihop.ai/v1/google-hotels/reviews
Abfrageparameter
| Feld | Typ | Grenzen | Beispiel |
|---|---|---|---|
id | string | Hotelkennung aus Suchergebnissen (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
next_page_token | string | Token der nächsten Seite; next_page_token: optional; UTF-8 bytes: 24576 | - |
sort_by | string | Sortierung; sort_by: optional; relevance, newest, highest_rating, lowest_rating | relevance |
country | string | Land- oder Shopcode (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Sprache; language: optional | - |
limit | integer | Ergebnislimit; limit: optional; min: 1; max: 10 | 10 |
device | string | Gerät; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Antworten nicht archivieren; zero_trace: optional | true |
category_token | string | Auswahltoken aus aktueller Antwort (category_token); category_token: optional; UTF-8 bytes: 2800; ^[A-Za-z0-9_-]+$ | - |
source_number | integer | Unterkunftsfilter (source_number); source_number: optional; min: -1; max: 2147483647 | -1 |
Validierung
Nur Abfrageparameter, kein Anfragekörper. Unbekannte, doppelte, leere und ungültige Werte werden abgelehnt. Nur JSON-Antworten; keine automatische Seitennavigation oder Wiederholung. Regeln: AND = beide, OR = oder, XOR = genau eines, NOT = ausgeschlossen, => = benötigt.
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
Beispiele
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"Antworten und Fehler
Original-JSON und Zahlengenauigkeit bleiben erhalten. Das Beispiel zeigt ein leeres erfolgreiches Ergebnis. HTTP 400: Eingabe; 401: Anmeldung; 402: Guthaben; 403: Zugriff; 405: Methode; 429: Ratenlimit; 5xx: Dienstfehler. Bewahren Sie X-Request-Id auf.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}