API Hop Belgeleri
Google Maps başvurusu
Google Maps üzerinde yerel işletme ve yer arayın veya yer kimliğiyle sorgulayın. Yer yorumları · Yer fotoğrafları · Fotoğraf meta verileri · İşletme gönderileri · Yol tarifleri · Yer önerileri · Katkıda bulunan yorumları · Yerel arama · Yerel hizmetler · Etkinlikler.
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-maps/search GET /v1/google-maps/reviews GET /v1/google-maps/photos GET /v1/google-maps/photos/meta GET /v1/google-maps/posts GET /v1/google-maps/directions GET /v1/google-maps/autocomplete GET /v1/google-maps/contributor/reviews GET /v1/google-maps/local GET /v1/google-maps/local/services GET /v1/google-maps/events Google Maps üzerinde yerel işletme ve yer arayın veya yer kimliğiyle sorgulayın. Yer yorumları · Yer fotoğrafları · Fotoğraf meta verileri · İşletme gönderileri · Yol tarifleri · Yer önerileri · Katkıda bulunan yorumları · Yerel arama · Yerel hizmetler · Etkinlikler.
- Google Maps üzerinde yer ara:
GET https://api.apihop.ai/v1/google-maps/search - Yer yorumları:
GET https://api.apihop.ai/v1/google-maps/reviews - Yer fotoğrafları:
GET https://api.apihop.ai/v1/google-maps/photos - Fotoğraf meta verileri:
GET https://api.apihop.ai/v1/google-maps/photos/meta - İşletme gönderileri:
GET https://api.apihop.ai/v1/google-maps/posts - Yol tarifleri:
GET https://api.apihop.ai/v1/google-maps/directions - Yer önerileri:
GET https://api.apihop.ai/v1/google-maps/autocomplete - Katkıda bulunan yorumları:
GET https://api.apihop.ai/v1/google-maps/contributor/reviews - Yerel arama:
GET https://api.apihop.ai/v1/google-maps/local - Yerel hizmetler:
GET https://api.apihop.ai/v1/google-maps/local/services - Etkinlikler:
GET https://api.apihop.ai/v1/google-maps/events
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_KEYParametreler
Google Maps üzerinde yer ara
GET https://api.apihop.ai/v1/google-maps/search
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
query | string | Sorgu | coffee shop |
type | string | Mod; search, place | - |
place_id | string | Yer kimliği | ChIJP8p2kJC1RIYR2qrGoXZtZCk |
data_cid | string | Ondalık CID | 2982629209513831130 |
latitude | number | Enlem; min: -90; max: 90 | 30.2672 |
longitude | number | Boylam; min: -180; max: 180 | -97.7431 |
location | string | Başlangıç | Austin, TX |
zoom | number | Yakınlaştırma; min: 3; max: 30 | 13.1 |
m | number | Metre cinsinden yükseklik; min: 1; max: 15028132 | - |
start | integer | Sonuç konumu; min: 0; max: 9007199254740991 | 0 |
gl | string | Ülke | us |
hl | string | Dil | en-US |
nearby | boolean | Yakınlık | - |
zero_trace | boolean | Arşivi kapat | - |
min_price | integer | Alt fiyat; min: 0; max: 9007199254740991 | - |
max_price | integer | Üst fiyat; min: 0; max: 9007199254740991 | - |
min_rating | number | Tercih edilen alt puan; 2, 2.5, 3, 3.5, 4, 4.5 | - |
open_state | string | Açıklık; now, 24h | - |
open_on_day | string | Yerel gün; mon, tue, wed, thu, fri, sat, sun | - |
open_at_hour | integer | Yerel saat; min: 0; max: 23 | - |
Yer yorumları
GET https://api.apihop.ai/v1/google-maps/reviews
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
id | string | Google yer kimliği veya onaltılık veri kimliği; ondalık CID ve katkıda bulunan kimlikleri desteklenmez.; zorunlu | - |
next_page_token | string | İçeriği yorumlanmayan devam belirteci; bir saat sonra sona erer. Hesabı, parametreleri, cihazı ve limit değerini değiştirmeyin.; maxLength: 24576 | - |
limit | integer | Döndürülen maksimum öğe sayısı; kaynak daha az öğe döndürebilir.; ≥ 1; ≤ 20 | - |
sort_by | string | Yorumların sıralama düzeni.; relevance, newest, rating_high, rating_low, qualityScore, newestFirst, ratingHigh, ratingLow | - |
query | string | Yorum metni filtresi; topic_id ile birlikte kullanılamaz.; maxLength: 500 | - |
topic_id | string | Kaynağın konu kimliği; query ile birlikte kullanılamaz.; maxLength: 131; ^(?:[A-Za-z0-9_-]{1,128}|/[mg]/[A-Za-z0-9_-]{1,128})$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google place_id OR hexadecimal data_id; NOT decimal CID, contributor IDquery XOR topic_id (optional)next_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=ChIJM8w7rqS1RIYRhEz2-KuoqzE" \
--data-urlencode "limit=10"Yer fotoğrafları
GET https://api.apihop.ai/v1/google-maps/photos
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
id | string | İlgili Google Maps sonucunda döndürülen kaynak tanımlayıcısı.; zorunlu | - |
next_page_token | string | İçeriği yorumlanmayan devam belirteci; bir saat sonra sona erer. Hesabı, parametreleri, cihazı ve limit değerini değiştirmeyin.; maxLength: 24576 | - |
limit | integer | Döndürülen maksimum öğe sayısı; kaynak daha az öğe döndürebilir.; ≥ 1; ≤ 100 | - |
category_id | string | Bu yer için döndürülen galeri kategorisi kimliği.; maxLength: 1024; ^[A-Za-z0-9_-]+={0,2}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifier; category_id: copy from this place gallerynext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"Fotoğraf meta verileri
GET https://api.apihop.ai/v1/google-maps/photos/meta
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
id | string | photos results[].id alanından kopyalanan fotoğraf kimliği; yerin data_id değerini kullanmayın.; zorunlu; maxLength: 255; ^[A-Za-z0-9_-]{20,255}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: copy photo ID from GET https://api.apihop.ai/v1/google-maps/photos results; NOT place data_idno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/photos/meta" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=AF1QipPFfVtTCFKV9n-uOBqTTOHuRemFBg0PWN7xdVxp"İşletme gönderileri
GET https://api.apihop.ai/v1/google-maps/posts
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
id | string | İlgili Google Maps sonucunda döndürülen kaynak tanımlayıcısı.; zorunlu | - |
next_page_token | string | İçeriği yorumlanmayan devam belirteci; bir saat sonra sona erer. Hesabı, parametreleri, cihazı ve limit değerini değiştirmeyin.; maxLength: 24576 | - |
limit | integer | Döndürülen maksimum öğe sayısı; kaynak daha az öğe döndürebilir.; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: Google Maps place identifiernext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=0x8644b5a4ae3bcc33:0x31aba8abf8f64c84" \
--data-urlencode "limit=10"Yol tarifleri
GET https://api.apihop.ai/v1/google-maps/directions
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
origin | string | Başlangıç adresi; origin, start_data_id, start_coords parametrelerinden tam olarak birini kullanın. | - |
destination | string | Varış adresi; destination, end_data_id, end_coords parametrelerinden tam olarak birini kullanın. | - |
start_data_id | string | Başlangıç noktasının onaltılık Maps veri kimliği.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
end_data_id | string | Varış noktasının onaltılık Maps veri kimliği.; maxLength: 37; ^0x[0-9a-fA-F]{1,16}:0x[0-9a-fA-F]{1,16}$ | - |
start_coords | string | latitude,longitude biçiminde başlangıç koordinatları.; maxLength: 80 | - |
end_coords | string | latitude,longitude biçiminde varış koordinatları.; maxLength: 80 | - |
travel_mode | string | Ulaşım türü.; driving, walking, bicycling, transit, two-wheeler, best, flight | - |
distance_unit | integer | Kilometre (0) veya mil (1).; ≥ 0; ≤ 1 | - |
avoid | string | Kaçınılacak yol türleri; virgülle ayrılır. | - |
prefer | string | Virgülle ayrılmış toplu taşıma türleri; travel_mode=transit gerektirir. | - |
route | integer | Toplu taşıma rotası: daha az aktarma (2), daha az yürüme (3), tekerlekli sandalyeye uygun (4).; ≥ 2; ≤ 4 | - |
time | string | depart_at:timestamp, arrive_by:timestamp veya yalnızca toplu taşımada last_available.; maxLength: 40 | - |
limit | integer | Döndürülen maksimum öğe sayısı; kaynak daha az öğe döndürebilir.; ≥ 1; ≤ 100 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseorigin XOR start_data_id XOR start_coords (required)destination XOR end_data_id XOR end_coords (required)start_coords, end_coords: latitude,longitude; latitude: -90..90; longitude: -180..180prefer, route => travel_mode=transit; time=last_available => travel_mode=transittime: depart_at:Unix_seconds OR arrive_by:Unix_seconds OR last_availabledistance_unit: 0=km, 1=mi; route: 2=fewer transfers, 3=less walking, 4=wheelchair accessibleno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/directions" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "origin=Austin, TX" \
--data-urlencode "destination=Dallas, TX" \
--data-urlencode "travel_mode=driving"Yer önerileri
GET https://api.apihop.ai/v1/google-maps/autocomplete
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
query | string | Arama sorgusu, en fazla 8192 UTF-8 baytı.; zorunlu | - |
latitude | number | Enlem; longitude gerektirir.; ≥ -90; ≤ 90 | - |
longitude | number | Boylam; latitude gerektirir.; ≥ -180; ≤ 180 | - |
limit | integer | Döndürülen maksimum öğe sayısı; kaynak daha az öğe döndürebilir.; ≥ 1; ≤ 100 | - |
ll | string | Harita görünümü: @latitude,longitude,zoomz (3-21) veya @latitude,longitude,heightm.; maxLength: 120 | - |
cp | integer | query içindeki imleç konumu; UTF-16 kod birimleriyle belirtilir.; ≥ 0 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiselatitude AND longitude (optional)cp <= query.length (UTF-16)ll: @latitude,longitude,zoomz (3..21) OR @latitude,longitude,heightm (>0)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee in Austin" \
--data-urlencode "limit=5"Katkıda bulunan yorumları
GET https://api.apihop.ai/v1/google-maps/contributor/reviews
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
id | string | Google Maps katkıda bulunan profilinin URL adresinden alınan sayısal katkıda bulunan kimliği.; zorunlu; ^[0-9]+$ | - |
next_page_token | string | İçeriği yorumlanmayan devam belirteci; bir saat sonra sona erer. Hesabı, parametreleri, cihazı ve limit değerini değiştirmeyin.; maxLength: 24576 | - |
page | integer | İlk 200 yorum içindeki sayfa; 1. sayfadan sonraki sayfalar belirteçle birlikte kullanılamaz.; ≥ 1; ≤ 200 | - |
limit | integer | Döndürülen maksimum öğe sayısı; kaynak daha az öğe döndürebilir.; ≥ 1; ≤ 50 | - |
sort_by | string | Yalnızca en yeni yorumlar.; newest | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwiseid: numeric Google Maps contributor profile ID(page - 1) * limit < 200; page default: 1; limit default: 20page > 1 => NOT next_page_tokennext_page_token: opaque; expires after 1 hour; preserve account, parameters, device and limit; no automatic paginationno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/contributor/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=112967280418127956987" \
--data-urlencode "limit=20"Yerel arama
GET https://api.apihop.ai/v1/google-maps/local
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
query | string | Arama sorgusu, en fazla 8192 UTF-8 baytı.; zorunlu | - |
location | string | Adıyla belirtilen konum; koordinatlarla veya uule ile birlikte kullanılamaz. | - |
latitude | number | Enlem; longitude gerektirir.; ≥ -90; ≤ 90 | - |
longitude | number | Boylam; latitude gerektirir.; ≥ -180; ≤ 180 | - |
uule | string | Kodlanmış Google konumu; location veya koordinatlarla birlikte kullanılamaz.; maxLength: 4096 | - |
google_domain | string | google.com veya google.co.uk gibi Google ülke alan adı. | - |
start | integer | Sıfırdan başlayan sonuç ofseti.; ≥ 0; ≤ 1000 | - |
tbs | string | Virgülle ayrılmış, key:value biçimindeki yerel Google filtreleri.; maxLength: 512 | - |
ludocid | string | Google yer müşteri tanımlayıcısı (CID).; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)tbs: comma-separated key:value filters; ludocid: Google place CIDno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "location=Austin, TX"Yerel hizmetler
GET https://api.apihop.ai/v1/google-maps/local/services
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
query | string | Arama sorgusu, en fazla 8192 UTF-8 baytı.; zorunlu | - |
location | string | Adıyla belirtilen konum; koordinatlarla veya uule ile birlikte kullanılamaz. | - |
limit | integer | Döndürülen maksimum öğe sayısı; kaynak daha az öğe döndürebilir.; ≥ 1; ≤ 20 | - |
data_cid | string | Sıfır olmayan, işaretsiz 64 bit coğrafi CID; location ile birlikte kullanılamaz. | - |
job_type | string | Yerel hizmet seçimi, örneğin restore_power.; maxLength: 100; ^[a-z][a-z0-9_]{0,99}$ | - |
cid | string | Sağlayıcı tanımlayıcısı; cid, bid ve pid birlikte verilmelidir.; ^[0-9]{1,20}$ | - |
bid | string | Sağlayıcı tanımlayıcısı; cid, bid ve pid birlikte verilmelidir.; ^[0-9]{1,20}$ | - |
pid | string | Sağlayıcı tanımlayıcısı; cid, bid ve pid birlikte verilmelidir.; ^[0-9]{1,20}$ | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwisedata_cid: geographic city/district CID, string 1..18446744073709551615; NOT locationcid AND bid AND pid (optional group); query selects the service categoryno_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/local/services" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=plumber" \
--data-urlencode "location=Austin, TX" \
--data-urlencode "limit=5"Etkinlikler
GET https://api.apihop.ai/v1/google-maps/events
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | İki harfli ülke kodu.; ^[A-Za-z]{2}$ | us |
language | string | Sağlayıcının desteklediği dil kodu. | en |
device | string | Kaynağın cihaz görünümü.; desktop, mobile, tablet | - |
zero_trace | boolean | Üst sağlayıcının yanıt dosyalarını arşivleme; faturalandırma meta verileri saklanır. | - |
no_cache | boolean | Uyumluluk bayrağı; her iki değer de güncel verileri getirir ve normal ücretlendirmeyi kullanır. | - |
query | string | Arama sorgusu, en fazla 8192 UTF-8 baytı.; zorunlu | - |
location | string | Adıyla belirtilen konum; koordinatlarla veya uule ile birlikte kullanılamaz. | - |
latitude | number | Enlem; longitude gerektirir.; ≥ -90; ≤ 90 | - |
longitude | number | Boylam; latitude gerektirir.; ≥ -180; ≤ 180 | - |
uule | string | Kodlanmış Google konumu; location veya koordinatlarla birlikte kullanılamaz.; maxLength: 4096 | - |
GET query only; unknown, repeated, empty, control-character values rejected; no request bodyquery: UTF-8 bytes <= 8192 unless maxLength specifies otherwise; strings: length <= 8192 unless maxLength specifies otherwise(latitude AND longitude) XOR location XOR uule (optional)no_cache: true OR false both fetch fresh results; normal successful-request billing
curl --get "https://api.apihop.ai/v1/google-maps/events" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=events in Austin" \
--data-urlencode "location=Austin, TX"Doğrulama
Yalnız sorgu parametreleri, gövde yok. Bilinmeyen, yinelenen, boş ve kontrol karakterli değerler reddedilir. Arama query ister; place_id veya data_cid yer sorgusunu seçer, birlikte kullanılamaz ve type eşleşmelidir. CID ondalık metindir. Koordinatlar çift olmalı ve location ile kullanılmamalıdır. m ve nearby başlangıç ister; m ile zoom dışlayıcıdır. Alt fiyat üst fiyatı aşamaz. open_state gün ve saati dışlar; saat gün ister, 0 gece yarısıdır. gl iki harfli ülke, hl dil kodudur. Varsayılan eklenmez; en fazla 8192 karakter. start genellikle 0, 20, 40; sayfada en çok 20 sonuç. Aşağıdaki kurallar tüm sınırları belirtir.
search: query; type = search (optional)place: place_id XOR data_cid; type = place (optional); data_cid: 1..18446744073709551615 (string)place: NOT latitude, longitude, location, zoom, m, start, nearby, min_price, max_price, min_rating, open_state, open_on_day, open_at_hourorigin (optional): (latitude AND longitude) XOR location; m => (coordinates OR location) AND NOT zoom; nearby => coordinates OR locationmin_price <= max_price; open_at_hour => open_on_day; open_state => NOT open_on_day AND NOT open_at_hourgl: /^[a-z]{2}$/i; hl: /^[a-z]{2,3}(?:-[a-z]{2,4})?$/i; string.length <= 8192
Örnekler
curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee shop" \
--data-urlencode "latitude=30.2672" \
--data-urlencode "longitude=-97.7431" \
--data-urlencode "start=0"curl --get "https://api.apihop.ai/v1/google-maps/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "data_cid=2982629209513831130" \
--data-urlencode "hl=en"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": {
"search_parameters": {
"q": "coffee shop",
"type": "maps",
"engine": "google_maps"
},
"has_next_page": false,
"results": []
}
}
}