Google Trends 工具允许您的代理通过 SerpApi 调用 Google Trends API,以获取和分析搜索兴趣数据。 这有助于了解热门话题、区域搜索兴趣以及搜索词的历史流行度。 有关 API 详情,请参阅 Google Trends API 文档。 SerpApi 会缓存查询,因此首次查询会较慢,而后续相同查询会很快。 偶尔,相关查询可能无法工作,而随时间变化的兴趣数据则正常。您可以在 SerpApi 游乐场中检查您的查询。Documentation Index
Fetch the complete documentation index at: https://langchain-zh.cn/llms.txt
Use this file to discover all available pages before exploring further.
设置
要使用此工具,您需要配置对 SerpApi 提供的 Google Trends API 的访问权限。 从 SerpApi 获取 API 密钥。 然后,将您的 API 密钥设置为process.env.SERPAPI_API_KEY,或通过 apiKey 构造函数参数传入。
使用
npm
相关
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

