设置
要使用此工具,您需要配置对 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.
使用 LangChain JavaScript 与 Google Trends 工具集成。
process.env.SERPAPI_API_KEY,或通过 apiKey 构造函数参数传入。