[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Google Trends trending searches](https://spiral.ai/integrations/codex/google-trends-trending-searches)

# How to Use Google Trends trending searches in Codex

Returns searches surging in a country, with approximate search volume. Use it to find timely coverage opportunities, then investigate whether a surge deserves attention.

|  |  |
| --- | --- |
| Model | Google Trends trending searches |
| Available through | Alexandria |
| Category | SEO |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Google Trends trending searches in Codex

- Use Google Trends trending searches for the United Kingdom over the past day. Add the returned searches and approximate volumes to this project's newsroom report.
- Scrape https://example.com/pricing with Google Trends trending searches and turn it into a comparison table. Save the result in ./assets.
- Crawl the docs at https://docs.example.com with Google Trends trending searches and summarize each section.
- Pull the latest posts from this blog with Google Trends trending searches and list their titles and dates.
- Scrape the job listings at https://example.com/careers with Google Trends trending searches and give me a CSV.

## How to set up Google Trends trending searches in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Google Trends trending searches**: One request; the result comes back by polling or a webhook.

```bash
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/trending_now",
    "input": {
      "geo": "US"
    }
  }'
```

Then paste one of the prompts above: Codex finds Google Trends trending searches on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## Google Trends trending searches tools and prices

- [Trends · Trending now](https://spiral.ai/tools/alexandria/firecrawl-trends/trends/trending_now) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| geo |  | US | Two-letter country code. Pattern: ^[A-Z]{2}$. |
| hours | 4, 24, 48, 168 | 24 | Look-back window in hours (168 = 7 days). |

## What can you do with Google Trends trending searches in Codex?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## Google Trends trending searches in other agents

- [Amp](https://spiral.ai/integrations/amp/google-trends-trending-searches)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/google-trends-trending-searches)
- [Claude](https://spiral.ai/integrations/claude-desktop/google-trends-trending-searches)
- [Claude Code](https://spiral.ai/integrations/claude-code/google-trends-trending-searches)
- [Cline](https://spiral.ai/integrations/cline/google-trends-trending-searches)
- [Cursor](https://spiral.ai/integrations/cursor/google-trends-trending-searches)
- [Devin](https://spiral.ai/integrations/devin/google-trends-trending-searches)
- [dots](https://spiral.ai/integrations/dots/google-trends-trending-searches)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/google-trends-trending-searches)
- [Gemini](https://spiral.ai/integrations/gemini/google-trends-trending-searches)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/google-trends-trending-searches)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/google-trends-trending-searches)
- [goose](https://spiral.ai/integrations/goose/google-trends-trending-searches)
- [Grok](https://spiral.ai/integrations/grok/google-trends-trending-searches)
- [Grok Build](https://spiral.ai/integrations/grok-build/google-trends-trending-searches)
- [Hermes](https://spiral.ai/integrations/hermes/google-trends-trending-searches)
- [Instinct](https://spiral.ai/integrations/instinct/google-trends-trending-searches)
- [Manus](https://spiral.ai/integrations/manus/google-trends-trending-searches)
- [Muse](https://spiral.ai/integrations/muse/google-trends-trending-searches)
- [Muse Code](https://spiral.ai/integrations/muse-code/google-trends-trending-searches)
- [n8n](https://spiral.ai/integrations/n8n/google-trends-trending-searches)
- [Notion](https://spiral.ai/integrations/notion/google-trends-trending-searches)
- [OpenClaw](https://spiral.ai/integrations/openclaw/google-trends-trending-searches)
- [opencode](https://spiral.ai/integrations/opencode/google-trends-trending-searches)
- [Perplexity](https://spiral.ai/integrations/perplexity/google-trends-trending-searches)
- [Raycast](https://spiral.ai/integrations/raycast/google-trends-trending-searches)
- [VS Code](https://spiral.ai/integrations/vscode/google-trends-trending-searches)
- [Windsurf](https://spiral.ai/integrations/windsurf/google-trends-trending-searches)
- [Zapier](https://spiral.ai/integrations/zapier/google-trends-trending-searches)

## More Codex guides

- [Google Trends topic suggestions](https://spiral.ai/integrations/codex/google-trends-topic-suggestions)
- [Google company ads](https://spiral.ai/integrations/codex/google-company-ads)
- [Google Trends related searches](https://spiral.ai/integrations/codex/google-trends-related-searches)
- [Google keyword difficulty](https://spiral.ai/integrations/codex/google-keyword-difficulty)
- [Google Trends regional interest](https://spiral.ai/integrations/codex/google-trends-regional-interest)
- [Google keyword ideas](https://spiral.ai/integrations/codex/google-keyword-ideas)

## Questions about Google Trends trending searches in Codex

**Can Codex use Google Trends trending searches?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Google Trends trending searches like any built-in tool.

**How much does Google Trends trending searches cost in Codex?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an Alexandria account to use Google Trends trending searches in Codex?**

No. Spiral runs Google Trends trending searches 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 trending searches in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while Google Trends trending searches runs?**

Google Trends trending searches runs in the background. Codex 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.

