The Google Trends Tool allows your agent to utilize the Google Trends API from SerpApi to retrieve and analyze search interest data. This can be useful for understanding trending topics, regional search interest, and historical popularity of search terms. For API details see the Google Trends API documentation SerpApi caches queries, so the first query will be slower while subsequent identical queries will be fast. Occasionally, related queries will not work while interest over time will be fine. You can check your query in the SerpApi playground.Documentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-mdrxyo-1777658790-7be347c.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Setup
To use this tool, you will need to configure access to the Google Trends API from SerpApi. Get an API key from SerpApi Then, set your API key asprocess.env.SERPAPI_API_KEY or pass it in as an apiKey constructor argument.
Usage
npm
Related
- Tool conceptual guide
- Tool how-to guides
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

