API Hop Belgeleri
Google Trends başvurusu
Google Trends arama ilgisini, önerileri, güncel aramaları ve ilgili haberleri inceleyin.
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-trends/search GET /v1/google-trends/autocomplete GET /v1/google-trends/news GET /v1/google-trends/trending-now Google Trends arama ilgisini, önerileri, güncel aramaları ve ilgili haberleri inceleyin.
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_KEYYalnız sorgu parametreleri, gövde yok. Belgelenen boş geo ve gprop dışında bilinmeyen, yinelenen, boş veya geçersiz değerler reddedilir. Yalnız JSON; otomatik sayfalama veya tekrar yoktur. AND = ikisi, OR = veya, XOR = yalnız biri, NOT = hariç, => = gerektirir. Kimlikleri ve haber belirteçlerini güncel yanıttan kopyalayın; örnekler canlı test sonucu değildir. Her başarılı sorgu ayrı ücretlendirilir.
Google Trends: Arama ilgisini incele
GET https://api.apihop.ai/v1/google-trends/search
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
query | string | Arama metni; query: REQUIRED | tesla |
country | string | Ülke veya mağaza kodu (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Dil; language: optional | - |
category | string | Grafik türü veya coğrafi çözünürlük (category); category: optional; interest_over_time, interest_by_region, related_queries, related_topics | interest_over_time |
time_range | string | Göreli zaman veya tarih aralığı (time_range); time_range: optional | - |
device | string | Cihaz; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Yanıtları arşivleme; zero_trace: optional | true |
data_type | string | Grafik türü veya coğrafi çözünürlük (data_type); data_type: optional; TIMESERIES, GEO_MAP, GEO_MAP_0, RELATED_TOPICS, RELATED_QUERIES | TIMESERIES |
geo | string | Trends konum kodu (geo); geo: optional; UTF-8 bytes: 100 | - |
region | string | Grafik türü veya coğrafi çözünürlük (region); region: optional; COUNTRY, REGION, DMA, CITY | COUNTRY |
cat | integer | Konu kategorisi kimliği (cat); cat: optional; 0, 3, 5, 7, 8, 11, 12, 13, 14, 16, ... 1133 | 0 |
gprop | string | Arama kaynağı (gprop); gprop: optional; `, images, news, froogle, youtube` | |
date | string | Göreli zaman veya tarih aralığı (date); date: optional; UTF-8 bytes: 256 | - |
csv | boolean | Ek CSV verisi (csv); csv: optional | true |
include_low_search_volume | boolean | Düşük arama hacimli bölgeler (include_low_search_volume); include_low_search_volume: optional | true |
tz | integer | Dakika olarak saat dilimi farkı (tarayıcı kuralı) (tz); tz: optional; min: -1439; max: 1439 | -1439 |
Doğrulama
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})?$/query: 1..5 nonempty comma-separated terms; NOT (category AND data_type); NOT (date AND time_range)category: interest_over_time = TIMESERIES, interest_by_region = GEO_MAP_0, related_queries = RELATED_QUERIES, related_topics = RELATED_TOPICS; default TIMESERIESregion OR include_low_search_volume => data_type = GEO_MAP OR GEO_MAP_0; GEO_MAP_0 requires exactly one termgeo: empty = worldwide; uppercase country or subdivision; overrides country; comma-separated locations require TIMESERIES and one location per termgprop: empty = web search; froogle = shopping; tz: browser offset minutes (420 = UTC-07:00)date, time_range: all, now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, OR ordered YYYY-MM-DD YYYY-MM-DD within 2004-01-01..todaydate: multiple comma-separated custom ranges require TIMESERIES and one range per term; cat: topic ID (default 0)
Örnekler
curl --get "https://api.apihop.ai/v1/google-trends/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=tesla"Google Trends: Konu önerilerini al
GET https://api.apihop.ai/v1/google-trends/autocomplete
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
query | string | Arama metni; query: REQUIRED | tesla |
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 |
Doğrulama
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-trends/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=tesla"Google Trends: İlgili haberleri al
GET https://api.apihop.ai/v1/google-trends/news
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
page_token | string | Güncel Trending Now sonucundan haber belirteci (page_token); page_token: REQUIRED; UTF-8 bytes: 32768; ^gtn1\.[A-Za-z0-9_-]+$ | ${NEWS_PAGE_TOKEN} |
device | string | Cihaz; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Yanıtları arşivleme; zero_trace: optional | true |
Doğrulama
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})?$/page_token: exact news_page_token from a fresh Trending Now response; account-bound opaque continuation, do not fabricate or reuse expired tokens
Örnekler
curl --get "https://api.apihop.ai/v1/google-trends/news" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "page_token=${NEWS_PAGE_TOKEN}"Google Trends: Trend aramaları al
GET https://api.apihop.ai/v1/google-trends/trending-now
Parametreler
| Alan | Tür | Sınırlar | Örnek |
|---|---|---|---|
country | string | Ülke veya mağaza kodu (country); country: optional; ^[A-Za-z]{2}$ | us |
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 |
geo | string | Trends konum kodu (geo); geo: optional; `, AL, DZ, AO, AR, AR-C, AR-B, AR-K, AR-H, AR-U`, ... 1445 | |
hours | integer | Geçmiş saatler (hours); hours: optional; 4, 24, 48, 168 | 4 |
category_id | integer | Konu kategorisi kimliği (category_id); category_id: optional; 0, 1, 2, 3, 20, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19 | 0 |
only_active | boolean | Yalnız etkin trendler (only_active); only_active: optional | true |
Doğrulama
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})?$/geo: empty = US; overrides country; hours: default 24; category_id: 0 = all; only_active: active trends only
Örnekler
curl --get "https://api.apihop.ai/v1/google-trends/trending-now" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "country=us"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": []
}
}
}