Extract Trending Keywords from Google Trends

Extract trending search keywords from Google Trends for any country with structured JSON output for SEO and market research.

Extract Trending Keywords from Google Trends demo
TypeScript
Source code
npx create-browser-app --template google-trends-keywords
uvx create-browser-app --template google-trends-keywords

Automate Google Trends keyword extraction for market research

Automatically extract trending search keywords from Google Trends for any country or language. This template navigates to Google Trends, handles consent dialogs, and extracts trending topics with rank positions using Zod schema validation. Perfect for SEO keyword research, content strategy planning, competitive intelligence, and tracking emerging market trends across different regions.

Steps

  1. Initialize Stagehand session with Browserbase
  2. Navigate to Google Trends trending page with configured country and language
  3. Extract trending keywords with rank positions using structured Zod schema
  4. Output formatted JSON with country code, language, timestamp, and keyword list