谷歌趋势API - 实时和历史数据 API

API ID 13071

谷歌趋势数据以干净的JSON格式呈现——5个端点:时间趋势、相关查询、区域分布、实时趋势和在一个共享尺度上的2-5个关键词比较

2,859 ms 平均响应

API 文档

端点

请求

返回关键词随时间变化的搜索兴趣,使用0-100的标准,完全与Google Trends所显示的相同。支持从实时(过去几小时)到自2004年以来的完整历史,任何国家和类别。非常适合需求跟踪、SEO研究和趋势验证

Endpoint ID: 26439
GET https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26439/interest+over+time
输入参数

利息随时间变化 — 端点功能

对象 描述
kw 必需 Keyword or topic to analyze, e.g. bitcoin
geo 可选 Country code, e.g. US, GB, ES. Empty = worldwide
time 可选 Timeframe: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, all. Default: today 3-m
cat 可选 Google Trends category ID, 0 = all categories. Default: 0

剩余免费测试请求:3 / 3。


输入参数

kw
geo
time
cat
API 示例响应
JSON
{"cached":true,"coalesced":false,"data":{"kw":"bitcoin","geo":"","time":"today 3-m","points":[{"date":"Apr 11, 2026","value":54,"isPartial":false},{"date":"Apr 12, 2026","value":60,"isPartial":false},{"date":"Apr 13, 2026","value":59,"isPartial":false},{"date":"Apr 14, 2026","value":68,"isPartial":false},{"date":"Apr 15, 2026","value":61,"isPartial":false},{"date":"Apr 16, 2026","value":62,"isPartial":false},{"date":"Apr 17, 2026","value":83,"isPartial":false},{"date":"Apr 18, 2026","value":58,"isPartial":false},{"date":"Apr 19, 2026","value":50,"isPartial":false},{"date":"Apr 20, 2026","value":57,"isPartial":false},{"date":"Apr 21, 2026","value":57,"isPartial":false},{"date":"Apr 22, 2026","value":60,"isPartial":false},{"date":"Apr 23, 2026","value":67,"isPartial":false},{"date":"Apr 24, 2026","value":57,"isPartial":false},{"date":"Apr 25, 2026","value":47,"isPartial":false},{"date":"Apr 26, 2026","value":50,"isPartial":false},{"date":"Apr 27, 2026","value":56,"isPartial":false},{"date":"Apr 28, 2026","value":50,"isPartial":false},{"date":"Apr 29, 2026","value":51,"isPartial":false},{"date":"Apr 30, 2026","value":52,"isPartial":false},{"date":"May 1, 2026","value":54,"isPartial":false},{"date":"May 2, 2026","value":50,"isPartial":false},{"date":"May 3, 2026","value":50,"isPartial":false},{"date":"May 4, 2026","value":57,"isPartial":false},{"date":"May 5, 2026","value":60,"isPartial":false},{"date":"May 6, 2026","value":70,"isPartial":false},{"date":"May 7, 2026","value":66,"isPartial":false},{"date":"May 8, 2026","value":65,"isPartial":false},{"date":"May 9, 2026","value":57,"isPartial":false},{"date":"May 10, 2026","value":56,"isPartial":false},{"date":"May 11, 2026","value":58,"isPartial":false},{"date":"May 12, 2026","value":57,"isPartial":false},{"date":"May 13, 2026","value":57,"isPartial":false},{"date":"May 14, 2026","value":58,"isPartial":false},{"date":"May 15, 2026","value":55,"isPartial":false},{"date":"May 16, 2026","value":52,"isPartial":false},{"date":"May 17, 2026","value":49,"isPartial":false},{"date":"May 18, 2026","value":56,"isPartial":false},{"date":"May 19, 2026","value":56,"isPartial":false},{"date":"May 20, 2026","value":50,"isPartial":false},{"date":"May 21, 2026","value":47,"isPartial":false},{"date":"May 22, 2026","value":52,"isPartial":false},{"date":"May 23, 2026","value":57,"isPartial":false},{"date":"May 24, 2026","value":48,"isPartial":false},{"date":"May 25, 2026","value":49,"isPartial":false},{"date":"May 26, 2026","value":50,"isPartial":false},{"date":"May 27, 2026","value":49,"isPartial":false},{"date":"May 28, 2026","value":57,"isPartial":false},{"date":"May 29, 2026","value":53,"isPartial":false},{"date":"May 30, 2026","value":46,"isPartial":false},{"date":"May 31, 2026","value":55,"isPartial":false},{"date":"Jun 1, 2026","value":58,"isPartial":false},{"date":"Jun 2, 2026","value":81,"isPartial":false},{"date":"Jun 3, 2026","value":73,"isPartial":false},{"date":"Jun 4, 2026","value":87,"isPartial":false},{"date":"Jun 5, 2026","value":100,"isPartial":false},{"date":"Jun 6, 2026","value":85,"isPartial":false},{"date":"Jun 7, 2026","value":72,"isPartial":false},{"date":"Jun 8, 2026","value":73,"isPartial":false},{"date":"Jun 9, 2026","value":70,"isPartial":false},{"date":"Jun 10, 2026","value":64,"isPartial":false},{"date":"Jun 11, 2026","value":64,"isPartial":false},{"date":"Jun 12, 2026","value":60,"isPartial":false},{"date":"Jun 13, 2026","value":56,"isPartial":false},{"date":"Jun 14, 2026","value":57,"isPartial":false},{"date":"Jun 15, 2026","value":67,"isPartial":false},{"date":"Jun 16, 2026","value":62,"isPartial":false},{"date":"Jun 17, 2026","value":58,"isPartial":false},{"date":"Jun 18, 2026","value":61,"isPartial":false},{"date":"Jun 19, 2026","value":57,"isPartial":false},{"date":"Jun 20, 2026","value":54,"isPartial":false},{"date":"Jun 21, 2026","value":53,"isPartial":false},{"date":"Jun 22, 2026","value":57,"isPartial":false},{"date":"Jun 23, 2026","value":62,"isPartial":false},{"date":"Jun 24, 2026","value":74,"isPartial":false},{"date":"Jun 25, 2026","value":68,"isPartial":false},{"date":"Jun 26, 2026","value":65,"isPartial":false},{"date":"Jun 27, 2026","value":44,"isPartial":false},{"date":"Jun 28, 2026","value":42,"isPartial":false},{"date":"Jun 29, 2026","value":44,"isPartial":false},{"date":"Jun 30, 2026","value":47,"isPartial":false},{"date":"Jul 1, 2026","value":48,"isPartial":false},{"date":"Jul 2, 2026","value":46,"isPartial":false},{"date":"Jul 3, 2026","value":42,"isPartial":false},{"date":"Jul 4, 2026","value":41,"isPartial":false},{"date":"Jul 5, 2026","value":40,"isPartial":false},{"date":"Jul 6, 2026","value":43,"isPartial":false},{"date":"Jul 7, 2026","value":41,"isPartial":false},{"date":"Jul 8, 2026","value":43,"isPartial":false},{"date":"Jul 9, 2026","value":39,"isPartial":false},{"date":"Jul 10, 2026","value":37,"isPartial":false},{"date":"Jul 11, 2026","value":41,"isPartial":true}]}}
利息随时间变化 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26439/interest+over+time?kw=bitcoin&geo=ES&time=now 1-H' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

返回与关键词相关的热门和上升搜索查询及主题 上升项目揭示了在达到高峰之前的新兴趋势 对于SEO关键词研究 内容规划和市场发现至关重要

Endpoint ID: 26440
GET https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26440/related+queries
输入参数

相关查询 — 端点功能

对象 描述
kw 必需 Keyword or topic to analyze, e.g. bitcoin
geo 可选 Country code, e.g. US, GB, ES. Empty = worldwide
time 可选 Timeframe: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, all. Default: today 3-m
cat 可选 Google Trends category ID, 0 = all categories. Default: 0

剩余免费测试请求:3 / 3。


输入参数

kw
geo
time
cat
API 示例响应
JSON
{"cached":true,"coalesced":false,"data":{"kw":"iphone","geo":"","time":"today 3-m","queries":{"top":[{"query":"iphone 17","value":100,"growth":null},{"query":"apple iphone","value":65,"growth":null},{"query":"apple","value":64,"growth":null},{"query":"iphone 16","value":55,"growth":null},{"query":"iphone 15","value":54,"growth":null},{"query":"iphone 17 pro","value":53,"growth":null},{"query":"iphone 13","value":41,"growth":null},{"query":"iphone 14","value":38,"growth":null},{"query":"iphone 17 pro max","value":31,"growth":null},{"query":"iphone 12","value":28,"growth":null},{"query":"iphone 18","value":26,"growth":null},{"query":"iphone 11","value":25,"growth":null},{"query":"iphone 16 pro","value":25,"growth":null},{"query":"iphone 15 pro","value":23,"growth":null},{"query":"iphone 14 pro","value":19,"growth":null},{"query":"iphone air","value":18,"growth":null},{"query":"iphone 13 pro","value":15,"growth":null},{"query":"iphone se","value":13,"growth":null},{"query":"iphone 16 pro max","value":13,"growth":null},{"query":"iphone 10","value":13,"growth":null},{"query":"iphone 15 pro max","value":12,"growth":null},{"query":"iphone 18 pro","value":11,"growth":null},{"query":"iphone 12 pro","value":10,"growth":null},{"query":"iphone 14 pro max","value":9,"growth":null},{"query":"iphone 17 price","value":8,"growth":null}],"rising":[{"query":"apple iphone 18 pro thickness","value":null,"growth":"+900%"},{"query":"apple iphone 18 pro","value":null,"growth":"+140%"},{"query":"golang","value":null,"growth":"+130%"},{"query":"apple iphone 18 pro max","value":null,"growth":"+120%"},{"query":"iphone 18 pro","value":null,"growth":"+120%"},{"query":"iphone 17 256gb","value":null,"growth":"+120%"},{"query":"iphone 18 pro max","value":null,"growth":"+110%"},{"query":"apple iphone ultra","value":null,"growth":"+110%"},{"query":"refurbished iphone","value":null,"growth":"+100%"},{"query":"iphone 18","value":null,"growth":"+100%"},{"query":"iphone 18 release date","value":null,"growth":"+90%"},{"query":"apple iphone 17 pro max","value":null,"growth":"+70%"},{"query":"iphone 19","value":null,"growth":"+70%"},{"query":"iphone 20","value":null,"growth":"+60%"},{"query":"iphone air","value":null,"growth":"+50%"},{"query":"iphone 10","value":null,"growth":"+50%"},{"query":"apple store","value":null,"growth":"+50%"},{"query":"iphone ultra","value":null,"growth":"+40%"}]},"topics":{"top":[],"rising":[]}}}
相关查询 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26440/related+queries?kw=iphone&geo=ES&time=now 1-H' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

返回关键字的搜索兴趣的地理分布,按地点评分为0-100。从国家深入到区域、城市或美国大都市区。非常适合市场规模、扩张研究和本地化活动

Endpoint ID: 26441
GET https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26441/interest+by+region
输入参数

按地区的兴趣 — 端点功能

对象 描述
kw 必需 Keyword or topic to analyze, e.g. bitcoin
geo 可选 Country code, e.g. US, GB, ES. Empty = worldwide
time 可选 Timeframe: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, all. Default: today 3-m
cat 可选 Google Trends category ID, 0 = all categories. Default: 0
resolution 可选 Geographic level: COUNTRY, REGION, CITY or DMA. COUNTRY is only valid worldwide (empty geo); with a specific geo use REGION, CITY or DMA. An incompatible combination returns 400 INVALID_INPUT. Default: COUNTRY (worldwide).

剩余免费测试请求:3 / 3。


输入参数

kw
geo
time
cat
resolution
API 示例响应
JSON
{"cached":true,"coalesced":false,"data":{"kw":"bitcoin","resolution":"COUNTRY","rows":[{"geoCode":"CH","geoName":"Switzerland","value":100},{"geoCode":"AT","geoName":"Austria","value":85},{"geoCode":"NG","geoName":"Nigeria","value":81},{"geoCode":"NL","geoName":"Netherlands","value":79},{"geoCode":"SG","geoName":"Singapore","value":78},{"geoCode":"DE","geoName":"Germany","value":74},{"geoCode":"SH","geoName":"St. Helena","value":73},{"geoCode":"SI","geoName":"Slovenia","value":70},{"geoCode":"SV","geoName":"El Salvador","value":62},{"geoCode":"CA","geoName":"Canada","value":57},{"geoCode":"FI","geoName":"Finland","value":50},{"geoCode":"NO","geoName":"Norway","value":49},{"geoCode":"ES","geoName":"Spain","value":49},{"geoCode":"US","geoName":"United States","value":48},{"geoCode":"BE","geoName":"Belgium","value":47},{"geoCode":"CZ","geoName":"Czechia","value":47},{"geoCode":"AU","geoName":"Australia","value":45},{"geoCode":"NZ","geoName":"New Zealand","value":41},{"geoCode":"BR","geoName":"Brazil","value":41},{"geoCode":"AE","geoName":"United Arab Emirates","value":40},{"geoCode":"LT","geoName":"Lithuania","value":39},{"geoCode":"HR","geoName":"Croatia","value":38},{"geoCode":"PT","geoName":"Portugal","value":38},{"geoCode":"SE","geoName":"Sweden","value":37},{"geoCode":"KR","geoName":"South Korea","value":37},{"geoCode":"IE","geoName":"Ireland","value":36},{"geoCode":"HK","geoName":"Hong Kong","value":36},{"geoCode":"IL","geoName":"Israel","value":34},{"geoCode":"IT","geoName":"Italy","value":32},{"geoCode":"SK","geoName":"Slovakia","value":32},{"geoCode":"DK","geoName":"Denmark","value":31},{"geoCode":"FR","geoName":"France","value":30},{"geoCode":"GB","geoName":"United Kingdom","value":30},{"geoCode":"PL","geoName":"Poland","value":29},{"geoCode":"ZA","geoName":"South Africa","value":25},{"geoCode":"BG","geoName":"Bulgaria","value":25},{"geoCode":"AR","geoName":"Argentina","value":24},{"geoCode":"TR","geoName":"Türkiye","value":23},{"geoCode":"GR","geoName":"Greece","value":23},{"geoCode":"MY","geoName":"Malaysia","value":22},{"geoCode":"RO","geoName":"Romania","value":21},{"geoCode":"HU","geoName":"Hungary","value":19},{"geoCode":"PK","geoName":"Pakistan","value":19},{"geoCode":"VN","geoName":"Vietnam","value":18},{"geoCode":"CL","geoName":"Chile","value":18},{"geoCode":"CO","geoName":"Colombia","value":16},{"geoCode":"IN","geoName":"India","value":16},{"geoCode":"ID","geoName":"Indonesia","value":16},{"geoCode":"TH","geoName":"Thailand","value":15},{"geoCode":"MA","geoName":"Morocco","value":15},{"geoCode":"EC","geoName":"Ecuador","value":13},{"geoCode":"VE","geoName":"Venezuela","value":13},{"geoCode":"MX","geoName":"Mexico","value":13},{"geoCode":"TW","geoName":"Taiwan","value":13},{"geoCode":"PH","geoName":"Philippines","value":12},{"geoCode":"SA","geoName":"Saudi Arabia","value":11},{"geoCode":"PE","geoName":"Peru","value":11},{"geoCode":"JP","geoName":"Japan","value":9},{"geoCode":"BD","geoName":"Bangladesh","value":9},{"geoCode":"EG","geoName":"Egypt","value":9},{"geoCode":"UA","geoName":"Ukraine","value":6},{"geoCode":"RU","geoName":"Russia","value":5}]}}
按地区的兴趣 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26441/interest+by+region?kw=bitcoin&geo=ES&time=now 1-H&cat=Optionalresolution=REGION' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

在一个共享的0-100的尺度上比较2到5个关键词,类似于Google Trends网站上的比较功能。显示哪个术语占主导地位以及差距如何随时间变化。通过kw参数传递以逗号分隔的关键词,例如kw=iphone,samsung

Endpoint ID: 26442
GET https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26442/compare+keywords
输入参数

比较关键字 — 端点功能

对象 描述
cat 可选 Google Trends category ID, 0 = all categories. Default: 0
kw 必需 Keywords to compare, comma-separated, 2 to 5 items, e.g. iphone,samsung
geo 可选 Country code, e.g. US, GB, ES. Empty = worldwide
time 可选 Timeframe: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, all. Default: today 3-m

剩余免费测试请求:3 / 3。


输入参数

cat
kw
geo
time
API 示例响应
JSON
{"cached":true,"coalesced":false,"data":{"geo":"","time":"today 3-m","keywords":["iphone","samsung"],"points":[{"date":"Apr 11, 2026","isPartial":false,"values":{"iphone":93,"samsung":59}},{"date":"Apr 12, 2026","isPartial":false,"values":{"iphone":94,"samsung":58}},{"date":"Apr 13, 2026","isPartial":false,"values":{"iphone":89,"samsung":52}},{"date":"Apr 14, 2026","isPartial":false,"values":{"iphone":82,"samsung":51}},{"date":"Apr 15, 2026","isPartial":false,"values":{"iphone":81,"samsung":50}},{"date":"Apr 16, 2026","isPartial":false,"values":{"iphone":86,"samsung":56}},{"date":"Apr 17, 2026","isPartial":false,"values":{"iphone":88,"samsung":55}},{"date":"Apr 18, 2026","isPartial":false,"values":{"iphone":88,"samsung":57}},{"date":"Apr 19, 2026","isPartial":false,"values":{"iphone":87,"samsung":55}},{"date":"Apr 20, 2026","isPartial":false,"values":{"iphone":86,"samsung":52}},{"date":"Apr 21, 2026","isPartial":false,"values":{"iphone":85,"samsung":52}},{"date":"Apr 22, 2026","isPartial":false,"values":{"iphone":77,"samsung":52}},{"date":"Apr 23, 2026","isPartial":false,"values":{"iphone":76,"samsung":48}},{"date":"Apr 24, 2026","isPartial":false,"values":{"iphone":79,"samsung":50}},{"date":"Apr 25, 2026","isPartial":false,"values":{"iphone":85,"samsung":52}},{"date":"Apr 26, 2026","isPartial":false,"values":{"iphone":85,"samsung":55}},{"date":"Apr 27, 2026","isPartial":false,"values":{"iphone":82,"samsung":50}},{"date":"Apr 28, 2026","isPartial":false,"values":{"iphone":81,"samsung":49}},{"date":"Apr 29, 2026","isPartial":false,"values":{"iphone":78,"samsung":51}},{"date":"Apr 30, 2026","isPartial":false,"values":{"iphone":85,"samsung":51}},{"date":"May 1, 2026","isPartial":false,"values":{"iphone":90,"samsung":56}},{"date":"May 2, 2026","isPartial":false,"values":{"iphone":90,"samsung":56}},{"date":"May 3, 2026","isPartial":false,"values":{"iphone":97,"samsung":54}},{"date":"May 4, 2026","isPartial":false,"values":{"iphone":86,"samsung":50}},{"date":"May 5, 2026","isPartial":false,"values":{"iphone":88,"samsung":52}},{"date":"May 6, 2026","isPartial":false,"values":{"iphone":86,"samsung":55}},{"date":"May 7, 2026","isPartial":false,"values":{"iphone":93,"samsung":57}},{"date":"May 8, 2026","isPartial":false,"values":{"iphone":91,"samsung":59}},{"date":"May 9, 2026","isPartial":false,"values":{"iphone":91,"samsung":60}},{"date":"May 10, 2026","isPartial":false,"values":{"iphone":95,"samsung":59}},{"date":"May 11, 2026","isPartial":false,"values":{"iphone":86,"samsung":57}},{"date":"May 12, 2026","isPartial":false,"values":{"iphone":82,"samsung":55}},{"date":"May 13, 2026","isPartial":false,"values":{"iphone":86,"samsung":54}},{"date":"May 14, 2026","isPartial":false,"values":{"iphone":82,"samsung":57}},{"date":"May 15, 2026","isPartial":false,"values":{"iphone":92,"samsung":56}},{"date":"May 16, 2026","isPartial":false,"values":{"iphone":83,"samsung":52}},{"date":"May 17, 2026","isPartial":false,"values":{"iphone":91,"samsung":57}},{"date":"May 18, 2026","isPartial":false,"values":{"iphone":86,"samsung":51}},{"date":"May 19, 2026","isPartial":false,"values":{"iphone":82,"samsung":51}},{"date":"May 20, 2026","isPartial":false,"values":{"iphone":80,"samsung":48}},{"date":"May 21, 2026","isPartial":false,"values":{"iphone":80,"samsung":49}},{"date":"May 22, 2026","isPartial":false,"values":{"iphone":78,"samsung":49}},{"date":"May 23, 2026","isPartial":false,"values":{"iphone":88,"samsung":55}},{"date":"May 24, 2026","isPartial":false,"values":{"iphone":91,"samsung":51}},{"date":"May 25, 2026","isPartial":false,"values":{"iphone":86,"samsung":55}},{"date":"May 26, 2026","isPartial":false,"values":{"iphone":83,"samsung":50}},{"date":"May 27, 2026","isPartial":false,"values":{"iphone":85,"samsung":51}},{"date":"May 28, 2026","isPartial":false,"values":{"iphone":83,"samsung":53}},{"date":"May 29, 2026","isPartial":false,"values":{"iphone":86,"samsung":53}},{"date":"May 30, 2026","isPartial":false,"values":{"iphone":87,"samsung":53}},{"date":"May 31, 2026","isPartial":false,"values":{"iphone":95,"samsung":61}},{"date":"Jun 1, 2026","isPartial":false,"values":{"iphone":83,"samsung":55}},{"date":"Jun 2, 2026","isPartial":false,"values":{"iphone":84,"samsung":55}},{"date":"Jun 3, 2026","isPartial":false,"values":{"iphone":78,"samsung":50}},{"date":"Jun 4, 2026","isPartial":false,"values":{"iphone":84,"samsung":54}},{"date":"Jun 5, 2026","isPartial":false,"values":{"iphone":88,"samsung":53}},{"date":"Jun 6, 2026","isPartial":false,"values":{"iphone":92,"samsung":55}},{"date":"Jun 7, 2026","isPartial":false,"values":{"iphone":96,"samsung":55}},{"date":"Jun 8, 2026","isPartial":false,"values":{"iphone":88,"samsung":53}},{"date":"Jun 9, 2026","isPartial":false,"values":{"iphone":87,"samsung":52}},{"date":"Jun 10, 2026","isPartial":false,"values":{"iphone":90,"samsung":50}},{"date":"Jun 11, 2026","isPartial":false,"values":{"iphone":88,"samsung":50}},{"date":"Jun 12, 2026","isPartial":false,"values":{"iphone":87,"samsung":49}},{"date":"Jun 13, 2026","isPartial":false,"values":{"iphone":91,"samsung":53}},{"date":"Jun 14, 2026","isPartial":false,"values":{"iphone":93,"samsung":56}},{"date":"Jun 15, 2026","isPartial":false,"values":{"iphone":85,"samsung":48}},{"date":"Jun 16, 2026","isPartial":false,"values":{"iphone":89,"samsung":48}},{"date":"Jun 17, 2026","isPartial":false,"values":{"iphone":89,"samsung":53}},{"date":"Jun 18, 2026","isPartial":false,"values":{"iphone":90,"samsung":50}},{"date":"Jun 19, 2026","isPartial":false,"values":{"iphone":85,"samsung":52}},{"date":"Jun 20, 2026","isPartial":false,"values":{"iphone":94,"samsung":54}},{"date":"Jun 21, 2026","isPartial":false,"values":{"iphone":100,"samsung":56}},{"date":"Jun 22, 2026","isPartial":false,"values":{"iphone":93,"samsung":49}},{"date":"Jun 23, 2026","isPartial":false,"values":{"iphone":96,"samsung":52}},{"date":"Jun 24, 2026","isPartial":false,"values":{"iphone":100,"samsung":55}},{"date":"Jun 25, 2026","isPartial":false,"values":{"iphone":80,"samsung":53}},{"date":"Jun 26, 2026","isPartial":false,"values":{"iphone":78,"samsung":56}},{"date":"Jun 27, 2026","isPartial":false,"values":{"iphone":79,"samsung":48}},{"date":"Jun 28, 2026","isPartial":false,"values":{"iphone":77,"samsung":46}},{"date":"Jun 29, 2026","isPartial":false,"values":{"iphone":74,"samsung":43}},{"date":"Jun 30, 2026","isPartial":false,"values":{"iphone":69,"samsung":41}},{"date":"Jul 1, 2026","isPartial":false,"values":{"iphone":68,"samsung":42}},{"date":"Jul 2, 2026","isPartial":false,"values":{"iphone":73,"samsung":45}},{"date":"Jul 3, 2026","isPartial":false,"values":{"iphone":73,"samsung":46}},{"date":"Jul 4, 2026","isPartial":false,"values":{"iphone":78,"samsung":47}},{"date":"Jul 5, 2026","isPartial":false,"values":{"iphone":79,"samsung":49}},{"date":"Jul 6, 2026","isPartial":false,"values":{"iphone":73,"samsung":45}},{"date":"Jul 7, 2026","isPartial":false,"values":{"iphone":71,"samsung":47}},{"date":"Jul 8, 2026","isPartial":false,"values":{"iphone":76,"samsung":46}},{"date":"Jul 9, 2026","isPartial":false,"values":{"iphone":73,"samsung":42}},{"date":"Jul 10, 2026","isPartial":false,"values":{"iphone":75,"samsung":43}},{"date":"Jul 11, 2026","isPartial":true,"values":{"iphone":84,"samsung":42}}],"keywords_meta":{}}}
比较关键字 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26442/compare+keywords?cat=Optionalkw=iphone,samsung&geo=ES&time=now 1-H' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

返回一个国家的实时热门搜索,不断更新全天。可用于新闻借势、内容构思和监测当前正在爆发的话题

Endpoint ID: 26443
GET https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26443/trending+now
输入参数

当前趋势 — 端点功能

对象 描述
geo 必需 Country code for trending searches, e.g. US, GB, DE

剩余免费测试请求:3 / 3。


输入参数

geo
API 示例响应
JSON
{"cached":true,"coalesced":false,"data":[{"query":"chris hemsworth","traffic":"200+","articles":[{"title":"Chris Hemsworth Returns to Costa Rica for Beach Vacation","url":"https://ticotimes.net/2026/07/07/chris-hemsworth-costa-rica-surfing","source":"The Tico Times"},{"title":"Chris Hemsworth spotted on beach and surfing in Costa Rica","url":"https://www.yahoo.com/news/videos/chris-hemsworth-spotted-beach-surfing-085019398.html","source":"Yahoo"},{"title":"Chris Hemsworth Is In Costa Rica: The Actor Who Plays Thor Has Returned To The Country","url":"https://thecostaricanews.com/chris-hemsworth-is-in-costa-rica-the-actor-who-plays-thor-has-returned-to-the-country/","source":"The Costa Rica News"}]},{"query":"olivia dean","traffic":"200+","articles":[{"title":"Sam Fender and Olivia Dean make UK chart history with Rein Me In","url":"https://www.bbc.com/news/articles/cn94rdz3e59o","source":"BBC"},{"title":"Sam Fender & Olivia Dean’s ‘Rein Me In’ Becomes Longest-Running British No. 1 Single in U.K. Chart History","url":"https://www.billboard.com/music/chart-beat/sam-fender-olivia-dean-rein-me-in-uk-chart-record-single-1236291499/","source":"Billboard"},{"title":"Sam Fender and Olivia Dean overtake Wet Wet Wet with record-breaking chart run","url":"https://news.sky.com/story/sam-fender-and-olivia-dean-overtake-wet-wet-wet-with-record-breaking-chart-run-13562045","source":"Sky News"}]},{"query":"benjamin netanyahu","traffic":"200+","articles":[{"title":"Poll: In election-season first, ex-IDF chief Eisenkot exceeds Netanyahu's Likud","url":"https://www.haaretz.com/israel-news/elections/2026-07-09/ty-article/poll-in-election-season-first-ex-idf-chief-eisenkot-exceeds-netanyahus-likud/0000019f-47dc-d6c0-a9df-dfdfb9220000","source":"Haaretz"},{"title":"Poll: 60% of Israelis don’t consider Netanyahu trustworthy; most trust Eisenkot","url":"https://www.timesofisrael.com/liveblog_entry/poll-60-of-israelis-dont-consider-netanyahu-trustworthy-most-trust-eisenkot/","source":"The Times of Israel"},{"title":"Former General Emerges as Netanyahu’s Chief Rival in Israeli Elections","url":"https://www.wsj.com/world/middle-east/former-general-emerges-as-netanyahus-chief-rival-in-israeli-elections-224b2601","source":"WSJ"}]},{"query":"olivia wilde","traffic":"2000+","articles":[{"title":"The Secret to the Biting Sexual Dynamics of ‘The Invite’: Esther Perel","url":"https://www.nytimes.com/2026/07/08/movies/the-invite-esther-perel-olivia-wilde.html","source":"The New York Times"},{"title":"The Invite welcomes heterosexual polyamory into cinemas. It’s about time","url":"https://www.theguardian.com/film/2026/jul/07/the-invite-polyamory-non-monogamy-seth-rogen-penelope-cruz-olivia-wilde-edward-norton","source":"The Guardian"},{"title":"New R-Rated Comedy Movie Has Near-Perfect Score on Rotten Tomatoes","url":"https://www.yahoo.com/entertainment/movies/articles/r-rated-comedy-movie-near-005354188.html","source":"Yahoo"}]},{"query":"robin williams","traffic":"200+","articles":[{"title":"Jeff Bridges recalls Robin Williams ‘busting everybody’s chops’ during ‘late nights’ on set: ‘Brilliant’","url":"https://ew.com/jeff-bridges-recalls-robin-williams-fisher-king-set-12016557","source":"Entertainment Weekly"},{"title":"Jeff Bridges recalls Robin Williams ‘busting everybody’s chops’ during ‘late nights’ on set: ‘Brilliant’","url":"https://www.aol.com/articles/jeff-bridges-recalls-robin-williams-000022000.html","source":"AOL.com"},{"title":"Dwayne Johnson Confesses to Taking Robin Williams’ Jumanji Dice from the Sequel’s Set (Exclusive)","url":"https://people.com/dwayne-johnson-stole-robin-williams-jumanji-dice-from-set-exclusive-12013948","source":"People.com"}]},{"query":"koa peat","traffic":"200+","articles":[{"title":"Koa Peat’s desire to win not going anywhere as he enters 1st NBA Summer League","url":"https://arizonasports.com/nba/phoenix-suns/koa-peats-desire-to-win-not-going-anywhere-1st-nba-summer-league","source":"Arizona Sports"},{"title":"Game Preview: Summer League opens with a big test for Khaman Maluach","url":"https://www.brightsideofthesun.com/suns-game-previews/107424/khaman-maluach-koa-peat-rasheer-fleming-koby-brea-summer-league-preview","source":"Bright Side Of The Sun"},{"title":"Koa Peat scores 17 points in Suns summer debut","url":"https://www.nbcsports.com/fantasy/basketball/player-news/2026-07-11/koa-peat-scores-17-points-in-suns-summer-debut","source":"NBC Sports"}]},{"query":"valve steam frame","traffic":"2000+","articles":[{"title":"Steam Frame Launch Nears as Valve Releases ‘Great on Frame’ Store Page","url":"https://roadtovr.com/valve-ready-steam-frame-release-store-page/","source":"Road to VR"},{"title":"Steam Frame update adds verification for Valve’s showcase VR games","url":"https://www.theshortcut.com/p/steam-frame-update-adds-verification-for-valves-showcase-vr-games","source":"The Shortcut | Matt Swider"},{"title":"The Steam Frame's \"Great on Frame\" Page Is Now Live","url":"https://steamdeckhq.com/news/the-steam-frames-great-on-frame-page-is-now-live/","source":"Steam Deck HQ"}]},{"query":"trump endangered species","traffic":"500+","articles":[{"title":"Trump administration opens endangered species’ habitats to development, reversing 50 years of environmental law","url":"https://www.cnn.com/2026/07/10/climate/trump-endangered-species-habitats-rule-change","source":"CNN"},{"title":"Trump administration rolls back a key protection for imperiled wildlife","url":"https://www.npr.org/2026/07/11/nx-s1-5890025/trump-administration-imperiled-wildlife","source":"NPR"},{"title":"Trump Cuts Habitat Protections for Endangered Species","url":"https://www.nytimes.com/2026/07/10/climate/endangered-species-act-harm.html","source":"The New York Times"}]},{"query":"filling station","traffic":"5000+","articles":[{"title":"Trump promotes ‘Freedom Fuel’ stations that sell cheap gas. How they’re able to do so is unclear","url":"https://www.cnn.com/2026/07/09/business/trump-freedom-fuel-stations","source":"CNN"},{"title":"Gas industry experts express skepticism Freedom Fuel Network can sustain discounted gas prices","url":"https://6abc.com/post/gas-industry-experts-express-skepticism-freedom-fuel-network-can-sustain-discounted-prices/19480056/","source":"6abc Philadelphia"},{"title":"Gas is cheaper at Freedom Fuel Network stations promoted by Trump. An economist weighs in on the price cuts","url":"https://www.phillyvoice.com/freedom-fuel-network-gas-prices-philly-nj-trump-stations/","source":"PhillyVoice"}]},{"query":"love island usa season 8 vote","traffic":"10000+","articles":[{"title":"Love Island USA Season 8 Finalists Revealed as More Islanders Dumped from the Villa","url":"https://people.com/love-island-usa-season-8-finalists-revealed-12016371","source":"People.com"},{"title":"‘Love Island’ USA Recap: The Winners Are Already Clear, Superfans Say","url":"https://www.today.com/popculture/tv/love-island-usa-week-5-recap-season-8-rcna353440","source":"TODAY.com"},{"title":"‘Love Island USA’ Season 8: Final 4 Couples Revealed & 2 Couples Dumped","url":"https://deadline.com/gallery/love-island-usa-season-8-final-4-couples-revealed-2-couples-dumped/","source":"Deadline"}]}]}
当前趋势 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/13071/google+trends+api+-+real-time+and+historical+data/26443/trending+now?geo=US' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 谷歌趋势API - 实时和历史数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

通过快速、可靠的REST API以编程方式访问Google趋势数据——5个端点,包括大多数替代方案未提供的多关键词比较。没有官方Google趋势API存在;此服务填补了这个空白,具有生产级基础设施:智能缓存层以毫秒返回重复查询,抗封锁轮换能够存活于Google的速率限制,以及即使Google更改内部结构也保持稳定的标准化JSON模式。

您获得的内容

- 随时间变化的兴趣——任何关键词的搜索兴趣按0-100的比例,实时(过去几小时)到自2004年以来的完整历史。支持自定义日期范围。
- 关键词比较——在单一共享的0-100比例上比较2-5个关键词,正如Google趋势网站所做的那样。
- 相关查询与主题——任何关键词的相关搜索的热门和上升趋势,理想用于SEO和内容研究。
- 按地区的兴趣——按国家、地区或城市的地理细分。
- 现在流行——任何国家的实时趋势搜索。

为什么选择这个API

- 清晰、可预测的JSON——标准化的响应模式,固定的错误词汇,没有抓取工件。
- 全球覆盖——任何国家/地区代码,任何语言,任何Google趋势支持的时间范围。
- 为生产而建——快速重复查询的缓存层,自动重试处理,诚实的错误代码和Retry-After头部。
- 没有空的惊喜——错误是明确和记录的;您总是知道发生了什么。

用例

SEO和内容规划,市场和需求研究,品牌监测,产品趋势验证,金融信号研究,学术研究,仪表板和BI集成。

谷歌趋势API - 实时和历史数据 API FAQs

随时间变化的搜索兴趣(0-100 评分,从实时数据到自2004年以来的完整历史) 相关查询和主题 按国家/地区/城市的地理细分 每个国家的实时趋势搜索 以及在单一共享尺度上对2-5个关键词的比较 — 这与您在Google Trends网站上看到的数据相同 以干净的JSON格式呈现

使用比较关键词端点,并在kw参数中传递以逗号分隔的关键词,例如kw=iphone,samsung。支持2到5个关键词。所有关键词在一个共享的0-100的评分尺度上评分,因此值是直接可比较的——就像Google趋势网站上的比较功能一样

实时:现在1小时,现在4小时,现在1天,现在7天。历史:今天1个月,今天3个月,今天12个月,今天5年,所有(自2004年以来),加上自定义日期范围格式为YYYY-MM-DD YYYY-MM-DD。如果省略时间参数,默认为今天3个月。

API返回一个明确的错误代码EMPTY_RESULT而不是空图表,这样你总是知道发生了什么 错误使用固定的文档词汇:INVALID_INPUT(400) EMPTY_RESULT和其他上游问题(502)以及SERVICE_UNAVAILABLE(503)并带有Retry-After头部告诉你何时重试

不 谷歌没有提供一般可用的谷歌趋势API 该服务通过生产级基础设施提供相同的数据具有缓存 自动重试和稳定的响应结构在谷歌更改其内部时不会改变

每个端点返回特定的Google趋势数据:时间兴趣显示搜索兴趣的0-100评分;相关查询提供热门和上升的搜索查询;按地区兴趣提供地理细分;比较关键词显示多个关键词的比较兴趣;目前趋势列出实时趋势搜索

关键字段包括“kw”(关键字)、“geo”(地理位置)、“time”(时间范围)和“points”(包含日期和数值的数据点)用于时间持续的兴趣;“queries”和“topics”用于相关查询;以及“rows”用于按区域的兴趣,详细说明地理兴趣分数

响应数据采用可预测的JSON格式结构化 每个端点返回一个包含相关字段的“data”对象 例如 Interest Over Time 包含“points”作为对象数组 每个对象都有“date”和“value”便于访问时间序列数据

参数因端点而异。对于兴趣随时间变化,使用“kw”表示关键词,“geo”表示位置,“time”表示时间范围。相关查询需要“kw”表示关键词,而比较关键词则使用“kw”表示多个关键词。每个端点支持特定参数以自定义请求

兴趣趋势提供历史搜索兴趣 相关查询显示最热门和上升的查询 地区兴趣显示按位置划分的兴趣分数 比较关键词允许对多个关键词进行比较分析 当前趋势列出当前的热门搜索

用户可以通过指定关键词、地理位置和时间范围等参数来定制请求。例如,在时间段内的兴趣接口中,用户可以定义自定义日期范围或选择特定国家,以便根据自己的需求调整数据

数据准确性通过强大的缓存层和自动重试处理得以维护 API使用稳定的响应模式和文档化的错误代码确保用户即使在谷歌更改其内部结构时也能接收到可靠的数据

典型的使用案例包括搜索引擎优化和内容规划、市调、品牌监测、产品趋势验证和学术研究。API的数据帮助用户识别趋势、理解地区兴趣,并根据搜索行为做出明智的决策

兴趣随时间变化的端点提供了指定关键词在0到100的范围内的历史搜索兴趣数据 它包括了随时间变化的数据点,允许用户追踪自2004年以来各国和各类别的实时到历史数据的趋势

用户可以利用相关查询端点识别与关键词相关的热门和上升搜索查询。这些信息对于SEO策略、内容规划和市场发现非常有价值,帮助用户抓住新兴趋势

该地区兴趣接口涵盖全球数据,允许用户从国家深入到特定地区、城市或美国大都市区域。这种细分有助于理解本地搜索兴趣和市场机会

趋势现在端点接受参数,如“geo”以指定感兴趣的国家。这使得用户能够检索实时趋势搜索,针对特定地理位置定制,从而提高本地内容策略的相关性

比较关键词端点返回一个结构化的JSON对象,包含“关键词”、“点”和“值”。每个“点”包括一个日期和每个关键词的一组值,使用户能够在共享的尺度上可视化随时间变化的比较趋势

在地区兴趣响应中 "geoCode" 表示地理位置 "geoName" 提供位置名称 "value" 代表 0-100 范围内的搜索兴趣分数 这帮助用户评估不同地区的兴趣水平

用户可以通过指定参数来自定义对时间段兴趣端点的请求,例如“kw”表示关键词,“geo”表示地理位置,以及“time”表示所需的时间范围。这种灵活性允许根据特定需求进行量身定制的数据检索

数据准确性通过强大的缓存层、自动重试处理和稳定的响应模式得以保证 API提供明确的错误代码和文档化的响应,使用户能够理解任何问题并维护数据可靠性

趋势查询接口提供特定国家的实时热门搜索查询 每个条目包括查询本身 估计的流量以及相关文章 允许用户监控当前的兴趣和值得关注的主题

“isPartial”字段表示数据点是完整的还是仅部分可用。值为true意味着该日期的数据尚未完全确定,这可能会影响特定时间点的趋势分析

区域兴趣端点允许在各种地理层面进行分析,包括国家、地区、城市和美国大城市区域。这种细化帮助用户理解本地化的搜索兴趣,并相应地调整营销策略

用户可以使用相关查询端点来发现与他们的关键词相关的热门和上升搜索查询 这一见解有助于识别新兴趋势并优化内容策略以捕捉对特定主题日益增长的兴趣

“流量”领域表示对一个趋势查询的搜索量估计,分为“2000+”或“1000+”搜索。这个指标帮助用户评估趋势话题的受欢迎程度和潜在影响

用户可以期望数据模式反映搜索兴趣随时间的波动,表示在0-100的范围内。这包括在重大事件或趋势期间的高峰,使用户能够识别季节性或事件驱动的兴趣变化

“geo”字段提供每个地点的地理代码,允许用户根据特定区域识别和分析搜索兴趣分数。这些信息对于理解区域市场动态和有效地调整活动至关重要

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]