# Compare keywords on Google Trends

**Use case:** 

Compare search interest as on the Google Trends chart with this ready-made Google Trends Scraper task: coffee, tea and matcha in the US over the past 12 months, each term with interest over time, by state and by city, related queries and related topics. Change the terms (up to 5 on a line), country, time range or category. No Google account or login. You pay $2.10 per 1,000 terms.

## Input

```json
{
  "searchTerms": [
    "coffee, tea, matcha"
  ],
  "compareTerms": false,
  "geo": "US",
  "timeRange": "today 12-m",
  "category": "0",
  "searchType": "web",
  "includeInterestOverTime": true,
  "includeInterestByRegion": true,
  "includeInterestByCity": true,
  "includeRelatedQueries": true,
  "includeRelatedTopics": true,
  "includeLowVolumeRegions": false,
  "trendingHours": "24",
  "trendingCategory": "",
  "trendingActiveOnly": false,
  "trendingSort": "relevance",
  "maxTrendingPerGeo": 100,
  "maxItems": 0,
  "language": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "searchTerm": {
    "label": "Term",
    "format": "string"
  },
  "comparedWith": {
    "label": "Compared with",
    "format": "array"
  },
  "geoName": {
    "label": "Place",
    "format": "string"
  },
  "timeRangeLabel": {
    "label": "Time range",
    "format": "string"
  },
  "averageInterest": {
    "label": "Average interest",
    "format": "integer"
  },
  "interestOverTime": {
    "label": "Interest over time",
    "format": "array"
  },
  "interestByRegion": {
    "label": "By region",
    "format": "array"
  },
  "relatedQueriesTop": {
    "label": "Top queries",
    "format": "array"
  },
  "relatedQueriesRising": {
    "label": "Rising queries",
    "format": "array"
  },
  "relatedTopicsTop": {
    "label": "Top topics",
    "format": "array"
  },
  "missingSections": {
    "label": "Not shared",
    "format": "array"
  },
  "url": {
    "label": "Google Trends",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Google Trends Scraper - Interest Over Time, Regions & Queries Actor is ready to run with the inputs already set for "Compare keywords on Google Trends". [Sign up or log in](https://console.apify.com/create-task-from-example/9dUe52r8tIRmi9X7f) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare keywords on Google Trends" task

The Google Trends Scraper - Interest Over Time, Regions & Queries Actor will start running based on the input automatically. You can also change all the input fields, like search terms, compare all the terms on one chart, and more, to match your specific use case.

### 3. Receive the "Compare keywords on Google Trends" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as term, compared with, place, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compare keywords on Google Trends" task via API](https://apify.com/socialscrapers/google-trends-scraper.md).

## FAQ

### What does the Google Trends comparison task return?

The Google Trends comparison task returns one result per term, each with interest over time, interest by state and by city, top and rising related queries and related topics, on one shared scale.

### Do I need a Google account for the Google Trends comparison task?

No. The Google Trends comparison task reads public Google pages without a login, cookies or an API key.

### How much does the Google Trends comparison task cost?

The Google Trends comparison task costs $2.10 per 1,000 terms, and only for results saved. Apify Silver and Gold plans pay 10% and 20% less.

## About this Actor

This example demonstrates how to use [Google Trends Scraper - Interest Over Time, Regions & Queries](https://apify.com/socialscrapers/google-trends-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/socialscrapers/google-trends-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/socialscrapers/google-trends-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
