Ask Claude Code to compare interest in two topics over the past 90 days using real Google Trends data fetched through a live Chrome session.
Use the find_opportunities built-in prompt to turn trending search queries into ranked business or content ideas with competition assessments.
Reuse previously fetched trend results without triggering a new Chrome request, by listing and reading saved result files.
Requires the uv package manager, a real Chrome installation, and Xvfb on Linux for headless operation, fetches enforce a 30-90 second mandatory delay between requests.
Trends Surfer is a plugin for Claude Code that lets the AI assistant answer questions about Google Trends data in plain language. You can ask something like "compare interest in bitcoin versus ethereum over the last three months and show the rising related queries" and the plugin translates that into a data fetch, retrieves the results, and lets Claude read back the specific parts it needs. The reason this plugin exists instead of using the commonly known pytrends library is that pytrends was archived in 2025 and its approach to making requests is now reliably blocked by Google. Trends Surfer works around this by running the actual Google Chrome browser in the background, navigating to trends.google.com, and making requests from within that live browser session. Because the requests come from real Chrome with genuine browser characteristics and active cookies, they are not blocked in the same way. To avoid hammering Google and getting blocked, the plugin enforces a randomized delay of 30 to 90 seconds between data fetches. This delay is enforced inside the server itself and cannot be skipped or configured away, even if Claude tries to call the fetch tool repeatedly, it will wait. The delay timer is saved to disk so restarts do not reset it. The plugin provides four tools: one that fetches fresh data from Google and writes it to a temporary file, one that reads a specific slice from a previously saved result, one that lists saved results so earlier fetches can be reused without a new request, and a health check that reports whether Chrome is available and how long until the next fetch is allowed. There is also a built-in prompt called find_opportunities that gives the AI a structured approach for turning trend data into business or content ideas, including how to assess search competition and rank potential opportunities. Setup requires the uv package manager, a real Chrome browser installation, and on Linux a virtual display tool called Xvfb so Chrome can run in the background without opening a visible window.
← pi-infected on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.