API Hop Belgeleri
Google Hotels başvurusu
Google Hotels otellerini, otel önerilerini, fotoğraflarını ve yorumlarını arayın.
Eşzamanlılık sınırı
AI ve Data, hesap genelinde ayrı eşzamanlı istek havuzlarını paylaşır: varsayılan 5 AI / 2 Data; aboneliğe göre değişir. Uç nokta sınırları da kategori havuzuyla sınırlıdır. Herhangi bir sınıra ulaşıldığında HTTP 429 döner. Asenkron görevler yürütme bitene kadar yer tutar.
GET /v1/google-hotels/search GET /v1/google-hotels/autocomplete GET /v1/google-hotels/photos GET /v1/google-hotels/reviews Google Hotels otellerini, otel önerilerini, fotoğraflarını ve yorumlarını arayın.
Kimlik doğrulama ve ücret
Varsayılan fiyat başarılı istek başına $0.0003 (300 credits) tutarındadır. API Hop API anahtarınızı kullanın. Erişim etkin ağ geçitleri ve izinlere bağlıdır. Başarılı istek ücretini katalog ve hesabınızdan kontrol edin; hesaba özel fiyat önceliklidir. Başarılı boş sonuçlar ücretlidir. Hatalar rezervasyonu bırakır. Süre sınırı 60 saniyedir; otomatik tekrar ve sayfalama yoktur. Hesaplaşma hatası sağlayıcı isteğini tekrarlamaz.
Authorization: Bearer YOUR_API_KEYGoogle Hotels: Otel ara
GET https://api.apihop.ai/v1/google-hotels/search
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
query | string | Arama metni; query: optional | hotels in New York |
next_page_token | string | Sonraki sayfa belirteci; next_page_token: optional; UTF-8 bytes: 24576 | - |
currency | string | Para birimi kodu (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 | Ülke veya mağaza kodu (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Dil; language: optional | - |
limit | integer | Sonuç sınırı; limit: optional; min: 1; max: 100 | 1 |
device | string | Cihaz; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Yanıtları arşivleme; zero_trace: optional | true |
check_in_date | string | Seyahat tarihi (YYYY-MM-DD) veya desteklenen tarih aralığı (check_in_date); check_in_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
check_out_date | string | Seyahat tarihi (YYYY-MM-DD) veya desteklenen tarih aralığı (check_out_date); check_out_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ | - |
adults | integer | Yetişkin sayısı (adults); adults: optional; min: 1; max: 100 | 1 |
children | integer | Çocuk sayısı (children); children: optional; min: 0; max: 99 | 0 |
children_ages | string | Çocuk yaşları listesi (children_ages); Varsayılan: 12; children_ages: optional; UTF-8 bytes: 296; ^(?:[1-9]|1[0-7])(?:,(?:[1-9]|1[0-7])){0,98}$ | - |
sort_by | string | Sıralama; sort_by: optional; relevance, lowest_price, highest_rating, most_reviewed | relevance |
min_price | integer | En düşük fiyat (min_price); min_price: optional; min: 0; max: 2147483647 | 0 |
max_price | integer | En yüksek fiyat (max_price); max_price: optional; min: 1; max: 2147483647 | 1 |
rating | integer | Yıldızlar, virgülle ayrılır; 7 → 3.5+, 8 → 4.0+, 9 → 4.5+; rating: optional; 7, 8, 9 | 7 |
hotel_class | string | Konaklama filtresi (hotel_class); hotel_class: optional; UTF-8 bytes: 7 | - |
amenities | string | Konaklama filtresi (amenities); amenities: optional; UTF-8 bytes: 300; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
free_cancellation | boolean | Konaklama filtresi (free_cancellation); free_cancellation: optional | true |
special_offers | boolean | Konaklama filtresi (special_offers); special_offers: optional | true |
eco_certified | boolean | Konaklama filtresi (eco_certified); eco_certified: optional | true |
property_types | string | Konaklama filtresi (property_types); property_types: optional; UTF-8 bytes: 100; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$ | - |
brands | string | Konaklama filtresi (brands); brands: optional; UTF-8 bytes: 300; ^[1-9][0-9]{0,5}(?:,[1-9][0-9]{0,5})*$ | - |
vacation_rentals | boolean | Konaklama filtresi (vacation_rentals); vacation_rentals: optional | true |
bedrooms | integer | En az yatak odası veya yatak sayısı (bedrooms); bedrooms: optional; min: 0; max: 2147483647 | 0 |
bathrooms | integer | En az banyo sayısı (bathrooms); bathrooms: optional; min: 0; max: 2147483647 | 0 |
property_token | string | Güncel yanıttan seçim belirteci (property_token); property_token: optional; UTF-8 bytes: 256; ^[A-Za-z0-9_-]{16,256}$ | - |
Doğrulama
Yalnız sorgu parametreleri kabul edilir; gövde gönderilmez. Bilinmeyen, yinelenen, boş ve geçersiz değerler reddedilir. Yalnız JSON yanıtları; otomatik sayfalama veya tekrar yoktur. Kurallar: AND = ikisi, OR = veya, XOR = yalnız biri, NOT = hariç, => = gerektirir.
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
Örnekler
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: Otel önerilerini al
GET https://api.apihop.ai/v1/google-hotels/autocomplete
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
query | string | Arama metni; query: REQUIRED | New York |
country | string | Ülke veya mağaza kodu (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Dil; language: optional | - |
limit | integer | Sonuç sınırı; limit: optional; min: 1; max: 100 | 1 |
device | string | Cihaz; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Yanıtları arşivleme; zero_trace: optional | true |
currency | string | Para birimi kodu (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 |
Doğrulama
Yalnız sorgu parametreleri kabul edilir; gövde gönderilmez. Bilinmeyen, yinelenen, boş ve geçersiz değerler reddedilir. Yalnız JSON yanıtları; otomatik sayfalama veya tekrar yoktur. Kurallar: AND = ikisi, OR = veya, XOR = yalnız biri, NOT = hariç, => = gerektirir.
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})?$/
Örnekler
curl --get "https://api.apihop.ai/v1/google-hotels/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=New York"Google Hotels: Otel fotoğraflarını al
GET https://api.apihop.ai/v1/google-hotels/photos
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
id | string | Arama sonucundan otel kimliği (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
country | string | Ülke veya mağaza kodu (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Dil; language: optional | - |
limit | integer | Sonuç sınırı; limit: optional; min: 1; max: 100 | 1 |
device | string | Cihaz; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Yanıtları arşivleme; zero_trace: optional | true |
next_page_token | string | Sonraki sayfa belirteci; next_page_token: optional; UTF-8 bytes: 24576 | - |
Doğrulama
Yalnız sorgu parametreleri kabul edilir; gövde gönderilmez. Bilinmeyen, yinelenen, boş ve geçersiz değerler reddedilir. Yalnız JSON yanıtları; otomatik sayfalama veya tekrar yoktur. Kurallar: AND = ikisi, OR = veya, XOR = yalnız biri, NOT = hariç, => = gerektirir.
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
Örnekler
curl --get "https://api.apihop.ai/v1/google-hotels/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ"Google Hotels: Otel yorumlarını al
GET https://api.apihop.ai/v1/google-hotels/reviews
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
id | string | Arama sonucundan otel kimliği (id); id: REQUIRED | ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ |
next_page_token | string | Sonraki sayfa belirteci; next_page_token: optional; UTF-8 bytes: 24576 | - |
sort_by | string | Sıralama; sort_by: optional; relevance, newest, highest_rating, lowest_rating | relevance |
country | string | Ülke veya mağaza kodu (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Dil; language: optional | - |
limit | integer | Sonuç sınırı; limit: optional; min: 1; max: 10 | 10 |
device | string | Cihaz; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Yanıtları arşivleme; zero_trace: optional | true |
category_token | string | Güncel yanıttan seçim belirteci (category_token); category_token: optional; UTF-8 bytes: 2800; ^[A-Za-z0-9_-]+$ | - |
source_number | integer | Konaklama filtresi (source_number); source_number: optional; min: -1; max: 2147483647 | -1 |
Doğrulama
Yalnız sorgu parametreleri kabul edilir; gövde gönderilmez. Bilinmeyen, yinelenen, boş ve geçersiz değerler reddedilir. Yalnız JSON yanıtları; otomatik sayfalama veya tekrar yoktur. Kurallar: AND = ikisi, OR = veya, XOR = yalnız biri, NOT = hariç, => = gerektirir.
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
Örnekler
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"Yanıtlar ve hatalar
Özgün JSON ve sayı hassasiyeti korunur. Örnek başarılı boş sonuçtur. HTTP 400: girdi; 401: kimlik; 402: bakiye; 403: erişim; 405: yöntem; 429: sınır; 5xx: hizmet. X-Request-Id saklayın.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}