# Google Trends scraper and API alternative

Get interest over time for up to 20 search terms on one scale, the top and rising related queries for each term, and, if you want, only the rising queries that are new since your last run. One clean row per term set.

**From USD 2.50 per 1,000 term groups.** On the Apify Store since 18 November 2026. Checked 18 November 2026. Apify Store page: https://apify.com/tan-solutions/google-trends

## What it does

Search Interest and Rising Queries reads the public Google Trends data that anyone can see in a browser and returns it as rows for a spreadsheet, a dashboard or your own code. It works as a Google Trends API alternative: one API call or one schedule, and the numbers come back in the same shape every time.

Google Trends compares at most 5 terms at a time. This tool puts up to 20 terms on one scale by linking groups of 5 through one shared anchor term, and the row shows the anchor and the factors it used, so you can check the math.

- **Interest over time.** For every term, 0 to 100, exactly as Google Trends shows it, plus the average per term.
- **Up to 20 terms on one scale.** The first term is the anchor in every group of 5, and the groups are rescaled so all terms share one scale.
- **Related queries.** The top and rising related queries for each term.
- **New rising queries since your last run.** The first run records a baseline; every later run lists only the rising queries it has not seen before for the same terms, place and time range.
- **Your place, period and search type.** Country or region, time range, category, and web, image, news, Google Shopping or YouTube search.

## Who it is for

- Marketers and SEO teams who compare brands, products or competitors on one scale.
- Content and keyword researchers who want the new rising topics in their field every week.

## What it costs

**From USD 2.50 per 1,000 term groups.** You pay per result. The price depends on your Apify plan:

| Apify plan tier | Price per 1,000 term groups |
|---|---|
| FREE | USD 4.00 |
| BRONZE | USD 3.30 |
| SILVER | USD 3.00 |
| GOLD | USD 2.50 |

Free, never charged: term sets Google has no data for; term sets that fail; the missing groups of a partly answered set; term sets over your "Max term sets" cap. Apify also charges a small start event per run.

## Input

The fields you will most likely change:

| Field | What it does | Default |
|---|---|---|
| `searchTerms` | One line is one term set and one row. Separate terms on a line with commas to compare them, up to 20. | web scraping, data extraction |
| `geo` | A country code such as US or GB, or a region such as US-CA. | worldwide |
| `timeRange` | From the past hour to all time since 2004. | past 12 months |
| `customTimeRange` | Start and end date as YYYY-MM-DD YYYY-MM-DD; overrides the time range. | none |
| `includeRelatedQueries` | Add the top and rising related queries. Off is faster when you only need the timeline. | on |
| `monitorNewRising` | Flag rising queries that are new since the last run. | off |
| `termSets` | Advanced: term sets with their own country, time range, category or search type. | none |

A small input to start from:

```json
{
  "searchTerms": [
    "web scraping, data extraction"
  ],
  "geo": "US",
  "timeRange": "today 12-m",
  "monitorNewRising": true
}
```

## Output

One row per term set. This is a real row from a cloud run on 13 November 2026, with the weekly points and the related queries cut short:

```json
{
  "setIndex": 1,
  "terms": [
    "banana bread"
  ],
  "geo": "IN",
  "timeRange": "today 12-m",
  "interestOverTime": [
    {
      "term": "banana bread",
      "average": 22.92,
      "points": [
        {
          "date": "2025-11-09T00:00:00.000Z",
          "value": 12,
          "hasData": true,
          "partial": false
        },
        {
          "date": "2025-11-16T00:00:00.000Z",
          "value": 15,
          "hasData": true,
          "partial": false
        },
        {
          "date": "2025-11-23T00:00:00.000Z",
          "value": 13,
          "hasData": true,
          "partial": false
        }
      ]
    }
  ],
  "relatedQueries": [
    {
      "term": "banana bread",
      "top": [
        {
          "query": "banana bread recipe",
          "value": 100,
          "formatted": "100"
        },
        {
          "query": "banana bread near me",
          "value": 79,
          "formatted": "79"
        },
        {
          "query": "recipe for banana bread",
          "value": 78,
          "formatted": "78"
        }
      ],
      "rising": [
        {
          "query": "banana bread recipe ingredients",
          "value": 29250,
          "formatted": "Breakout",
          "breakout": true
        },
        {
          "query": "gluten free bread recipe",
          "value": 15450,
          "formatted": "Breakout",
          "breakout": true
        },
        {
          "query": "bake with zoha banana bread",
          "value": 10900,
          "formatted": "Breakout",
          "breakout": true
        }
      ],
      "risingNew": null
    }
  ],
  "chargedGroups": 1,
  "source": "Google Trends (public data)",
  "capturedAt": "2026-11-13T23:24:04.366Z",
  "status": "ok"
}
```

The status is "ok", "partial" (some term groups came back; the error names the missing terms), "empty" (no data, free) or "failed" (free, with a plain reason). Download as JSON, CSV or Excel, or read them through the API.

## How to run it

### In Apify Console, no code

1. Put your terms in "Search terms": one line per term set, terms on a line separated by commas.
2. Pick a country or region and a time range.
3. Click Start.
4. Open the Output tab and download the rows as JSON, CSV or Excel, or read them through the API.

Start from the tool's page (https://apify.com/tan-solutions/google-trends). You need an Apify account.

### From the API

One call runs the tool and returns the results. Replace `<YOUR_API_TOKEN>` with your token from Apify Console (Settings, API and Integrations). Send `{}` for a short demo run.

```bash
curl -X POST "https://api.apify.com/v2/acts/tan-solutions~google-trends/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms":["web scraping, data extraction"],"geo":"US","timeRange":"today 12-m","monitorNewRising":true}'
```

### From an AI agent, through MCP

Apify's MCP server offers this tool alone to your MCP client at `https://mcp.apify.com?tools=tan-solutions/google-trends`. The client signs in to Apify on first connect, or sends your token in an `Authorization: Bearer` header.

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=tan-solutions/google-trends"
    }
  }
}
```

## Run it on a schedule

Check the same terms every week. With the monitor on, each run flags the rising queries that were not there the week before. In Apify Console: Schedules, Create new, cron `0 7 * * 1` (every Monday at 07:00 UTC), then add this tool with your input. Or as one API call (`Ng9SU5FxSeLkCklvD` is this tool's Actor ID):

```bash
curl -X POST "https://api.apify.com/v2/schedules?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "google-trends-schedule",
  "cronExpression": "0 7 * * 1",
  "timezone": "UTC",
  "isEnabled": true,
  "isExclusive": true,
  "actions": [
    {
      "type": "RUN_ACTOR",
      "actorId": "Ng9SU5FxSeLkCklvD",
      "runInput": {
        "body": "{\"searchTerms\":[\"web scraping, data extraction\"],\"geo\":\"US\",\"timeRange\":\"today 12-m\",\"monitorNewRising\":true}",
        "contentType": "application/json"
      }
    }
  ]
}'
```

## Limits

- Up to 20 terms per term set. Google compares 5 at a time; more terms are linked by the anchor term.
- About one request per second and a 3-second pause between term sets, so a run of 50 single-term sets takes a few minutes.
- Values are relative interest from 0 to 100, as Google Trends reports them, not search volumes. Sets with very little interest come back empty and are free.
- The anchor should be a term with steady interest. If it has no interest in a group, the set cannot be put on one scale and fails free.

## Questions

### Is this the official Google Trends API?

No. It is not a Google product. It reads the public Google Trends data and gives you clean rows from one API call or a schedule.

### Why did a set fail?

Google sometimes refuses or does not answer. The tool waits and retries politely and marks the set failed with a plain reason. Failed sets are free; run them again later.

Not affiliated with Google: this Actor is not affiliated with, endorsed by or sponsored by Google LLC. It reads the public Google Trends data that anyone can see in a browser. "Google" and "Google Trends" are used only to describe the data source. Built and run by Tan Solutions.

Source: https://www.tansolutions.org/tools/google-trends/ · Tan Solutions
