API Hop-Dokumentation
Google Travel Explore API-Referenz
Reiseziele auf Google Travel Explore entdecken.
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-travel-explore/search Reiseziele auf Google Travel Explore entdecken.
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 Travel Explore: Reiseziele entdecken
GET https://api.apihop.ai/v1/google-travel-explore/search
Abfrageparameter
| Feld | Typ | Grenzen | Beispiel |
|---|---|---|---|
departure_id | string | Abflughafen oder Ortskennung (departure_id); departure_id: REQUIRED; ^(?:[A-Z]{3}|/[mg]/[A-Za-z0-9_]+)(?:,(?:[A-Z]{3}|/[mg]/[A-Za-z0-9_]+))*$ | JFK |
arrival_id | string | Zielflughafen, Ort oder Region (arrival_id); arrival_id: optional; UTF-8 bytes: 128; ^(?:[A-Z]{3}|/[mg]/[A-Za-z0-9_]+)$ | - |
arrival_area_id | string | Zielflughafen, Ort oder Region (arrival_area_id); arrival_area_id: optional; UTF-8 bytes: 128; ^/[mg]/[A-Za-z0-9_]+$ | - |
travel_mode | integer | Flug- oder Zielfilter (travel_mode); travel_mode: optional; min: 0; max: 1 | 0 |
interest | string | Flug- oder Zielfilter (interest); interest: optional; 0, /g/11bc58l13w, /m/0b3yr, /m/09cmq, /m/03g3w, /m/071k0 | 0 |
type | integer | Flug- oder Zielfilter (type); type: optional; 1, 2 | 1 |
outbound_date | string | Reisedatum (YYYY-MM-DD) oder unterstützter Datumsbereich (outbound_date); outbound_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
return_date | string | Reisedatum (YYYY-MM-DD) oder unterstützter Datumsbereich (return_date); return_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
month | integer | Reisedauerfilter (month); month: optional; min: 0; max: 12 | 0 |
travel_duration | integer | Reisedauerfilter (travel_duration); travel_duration: optional; min: 1; max: 3 | 1 |
travel_class | string | Reiseklasse (travel_class); travel_class: optional; economy, premium_economy, business, first | economy |
adults | integer | Anzahl Erwachsene (adults); adults: optional; min: 1; max: 9 | 1 |
children | integer | Anzahl Kinder (children); children: optional; min: 0; max: 8 | 0 |
infants_in_seat | integer | Anzahl Kleinkinder (infants_in_seat); infants_in_seat: optional; min: 0; max: 8 | 0 |
infants_on_lap | integer | Kleinkinder auf dem Schoß (infants_on_lap); infants_on_lap: optional; min: 0; max: 8 | 0 |
stops | integer | Flug- oder Zielfilter (stops); stops: optional; min: 0; max: 3 | 0 |
include_airlines | string | Fluggesellschaften oder Allianzen (include_airlines); include_airlines: optional; UTF-8 bytes: 1000; ^(?:[A-Z][A-Z0-9]|[0-9][A-Z]|STAR_ALLIANCE|SKYTEAM|ONEWORLD)(?:,(?:[A-Z][A-Z0-9]|[0-9][A-Z]|STAR_ALLIANCE|SKYTEAM|ONEWORLD))*$ | - |
exclude_airlines | string | Fluggesellschaften oder Allianzen (exclude_airlines); exclude_airlines: optional; UTF-8 bytes: 1000; ^(?:[A-Z][A-Z0-9]|[0-9][A-Z]|STAR_ALLIANCE|SKYTEAM|ONEWORLD)(?:,(?:[A-Z][A-Z0-9]|[0-9][A-Z]|STAR_ALLIANCE|SKYTEAM|ONEWORLD))*$ | - |
bags | integer | Flug- oder Zielfilter (bags); bags: optional; min: 0; max: 9 | 0 |
max_price | integer | Höchstpreis (max_price); max_price: optional; min: 1; max: 2147483647 | 1 |
max_duration | integer | Reisedauerfilter (max_duration); max_duration: optional; min: 1; max: 2147483647 | 1 |
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 |
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 | 10 |
device | string | Gerät; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Antworten nicht archivieren; zero_trace: optional | true |
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})?$/adults (default 1) + children + infants_in_seat + infants_on_lap <= 9; infants_on_lap <= adultsbags <= adults + children + infants_in_seatoutbound_date, return_date: valid YYYY-MM-DD; return_date >= outbound_date; type = 2 => NOT return_date
Beispiele
curl --get "https://api.apihop.ai/v1/google-travel-explore/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "departure_id=JFK" \
--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": []
}
}
}