---
title: "Google Trends Scraper | ScrapeCrate"
description: "Search interest over time for up to 5 keywords. $0.003 per query, free monthly credit to try it. Run it from the web, the API or MCP."
url: https://scrapecrate.com/apps/google-trends
markdown: https://scrapecrate.com/apps/google-trends.md
---

# Google Trends Scraper

Search interest over time for up to 5 keywords.

**Price:** $0.003 per query.

Google Trends interest over time for keywords, any country and time range; related queries with their own app.

## Input

- `keywords` (string, required): Up to 5 keywords to compare, separated by commas
- `geo` (string, optional): Country (US) or region (US-CA); worldwide when left out
- `time_range` (enum, optional, default past_12_months): Time range (default past_12_months; all = since 2004)

## Use it from your code

```bash
curl -X POST "https://api.scrapecrate.com/v1/apps/google-trends/runs?wait=60" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"keywords":"chatgpt,gemini","time_range":"past_12_months"},"max_items":100}'
```

```javascript
const res = await fetch("https://api.scrapecrate.com/v1/apps/google-trends/runs?wait=60", {
  method: "POST",
  headers: { "X-API-Key": process.env.API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "keywords": "chatgpt,gemini",
      "time_range": "past_12_months"
    },
    "max_items": 100
  }),
});
const { run } = await res.json();
console.log(run.status, run.result_count);

// The results
const items = await fetch(`https://api.scrapecrate.com/v1/runs/${run.id}/items?format=json`, {
  headers: { "X-API-Key": process.env.API_KEY },
}).then((r) => r.json());
```

```python
import os, requests

res = requests.post(
    "https://api.scrapecrate.com/v1/apps/google-trends/runs?wait=60",
    headers={"X-API-Key": os.environ["API_KEY"]},
    json={
      "input": {
        "keywords": "chatgpt,gemini",
        "time_range": "past_12_months"
      },
      "max_items": 100
    },
)
run = res.json()["run"]
print(run["status"], run["result_count"])

items = requests.get(
    f"https://api.scrapecrate.com/v1/runs/{run['id']}/items?format=json",
    headers={"X-API-Key": os.environ["API_KEY"]},
).json()["items"]
```

```bash
# Claude Code
claude mcp add --transport http scrapecrate https://api.scrapecrate.com/mcp

# Then ask, in Claude, ChatGPT or Cursor:
Compare chatgpt and gemini on Google Trends over 12 months
```

## Output example

```json
{
  "keywords": [
    "chatgpt",
    "gemini"
  ],
  "geo": "US",
  "time_range": "past_90_days",
  "from_date": null,
  "to_date": null,
  "category": 0,
  "property": "web",
  "timeline": [
    {
      "date": "2026-11-22T00:00:00Z",
      "timestamp": 1795305600,
      "formatted_date": "Nov 22, 2026",
      "partial": false,
      "values": [
        {
          "keyword": "chatgpt",
          "value": 71,
          "has_data": true
        },
        {
          "keyword": "gemini",
          "value": 29,
          "has_data": true
        }
      ]
    },
    {
      "date": "2026-11-23T00:00:00Z",
      "timestamp": 1795392000,
      "formatted_date": "Nov 23, 2026",
      "partial": true,
      "values": [
        {
          "keyword": "chatgpt",
          "value": 67,
          "has_data": true
        },
        {
          "keyword": "gemini",
          "value": 30,
          "has_data": true
        }
      ]
    }
  ],
  "averages": [
    {
      "keyword": "chatgpt",
      "value": 69,
      "has_data": true
    },
    {
      "keyword": "gemini",
      "value": 28,
      "has_data": true
    }
  ],
  "no_data": false
}
```

[API reference](https://scrapecrate.com/google-search-api.md)

You pay only for the results you get. Results are kept 30 days.
