How to Use Google Trends regional interest in opencode
Returns geographic rankings of relative search interest in a term or topic. Use it to find where interest is concentrated, accounting for each location's overall search activity.
Prompts to try with Google Trends regional interest in opencode
Copy an example into opencode, or ask in your own words.
Use Google Trends regional interest for pickleball in the United States over the past year. Add a ranked state table to this project's research report and label the scores as relative interest.
Scrape https://example.com/pricing with Google Trends regional interest and turn it into a comparison table. Save the result in ./assets.
Crawl the docs at https://docs.example.com with Google Trends regional interest and summarize each section.
Pull the latest posts from this blog with Google Trends regional interest and list their titles and dates.
Scrape the job listings at https://example.com/careers with Google Trends regional interest and give me a CSV.
How to set up Google Trends regional interest in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Google Trends regional interest
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "firecrawl-trends/trends/interest_by_region", "input": { "keywords": [ "<keywords>" ] } }'
Then paste one of the prompts above: opencode finds Google Trends regional interest on Spiral, shows the price and runs it.
Google Trends regional interest providers and prices
Spiral runs Google Trends regional interest through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Category | a number from 0 | 0 | Trends category id; 0 is all categories. |
| Property | web, images, news, youtube, or shopping | web | Which search to measure: web, images, news, youtube or shopping. |
| Resolution | country, region, city, or metro | Breakdown level; defaults to 's (country worldwide, region in a country). metro = US Nielsen DMA. |
Every API field of Trends · Interest by region is on its tool page: open its card above.
What can you do with Google Trends regional interest in opencode?
Build a research report that shows the Google Trends evidence behind an editorial decision. A coding agent can add topic matching, interest comparisons, geographic rankings, or search discovery to your project's reporting workflow.
Plan technology launch coverage
Resolve Apple or Google to the intended company, check search-interest history and regional concentration, collect related questions, and review current country trends for timely coverage angles.
Choose travel editorial priorities
Identify the intended destination for a name such as Jordan, compare seasonal interest and regional rankings, gather related travel searches, and check current trends for destinations worth investigating.
Research a retail category
Clarify a category such as espresso, examine its search-interest pattern and strongest regions, collect associated queries, and screen current trends for relevant products or brands.
Prepare a sports newsroom brief
Resolve team names such as the Giants, inspect interest around previous seasons and across regions, gather related searches, and identify teams or competitions appearing in current country trends.
Time seasonal articles
Compare several years of interest in gardening or camping, then use related searches to select supporting articles and regional interest to prioritize local editions.
Separate brand interest from ambiguous wording
Identify the intended meaning of names such as Apple or Jaguar before comparing interest over time and across locations. Use related searches to investigate the questions associated with each brand.
More on Google Trends regional interest and opencode
Overview
Google Trends regional interest in other agents
Questions about Google Trends regional interest in opencode
Can opencode use Google Trends regional interest?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Google Trends regional interest like any built-in tool.
How much does Google Trends regional interest cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Google Trends regional interest in opencode?
No. Spiral runs Google Trends regional interest on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Google Trends regional interest in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Google Trends regional interest runs?
Google Trends regional interest runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does Google Trends expose individual search histories?
Google Trends provides anonymized, aggregated samples of Google searches. It does not identify the people behind those searches.
Are Google Trends scores search counts?
Historical interest scores run from 0 to 100 after normalization for time and geography. Regional rankings reflect the share of local search activity, so a higher-ranked location does not necessarily have more searches.
How much historical data is available?
Firecrawl documents Google Trends interest history back to 2004. Use that history to investigate recurring seasonal peaks across years.
Does Google Trends cover every metropolitan area?
Google Trends provides metropolitan-area detail for only some countries. Geographic rankings also measure relative interest within each location.
Do topics include searches in other languages?
Google Trends topics combine related searches across languages and spelling differences. Topic suggestions help distinguish the intended meaning before you research it.
Start using Google Trends regional interest in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


