# Compare Google Trends: coffee vs tea vs energy drinks

**Use case:** 

Compare Google search interest for coffee, tea and energy drinks in the United States over the last 5 years, on one 0-100 scale. You also get interest by US state and the top and rising related searches for each term. Put in your own brands, products or topics to see which one is growing and where.

## Input

```json
{
  "searchTerms": [
    "coffee",
    "tea",
    "energy drink"
  ],
  "comparisonMode": "groups",
  "geo": "US",
  "timeRange": "today 5-y",
  "category": "0",
  "gprop": "",
  "language": "en-US",
  "timezoneOffset": 0,
  "interestOverTime": true,
  "interestByRegion": true,
  "regionResolution": "REGION",
  "includeLowSearchVolumeRegions": false,
  "relatedQueries": true,
  "relatedTopics": false,
  "maxRelatedItems": 25,
  "flattenTimeline": false,
  "trendingNow": false,
  "trendingSource": "rss",
  "trendingHours": "24",
  "maxTrendingItems": 10,
  "includeNews": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "useBrowser": "fallback",
  "useEmbedFallback": true,
  "maxRetries": 5,
  "maxConcurrency": 1,
  "requestDelayMs": 1500,
  "requestTimeoutSecs": 30,
  "saveDebugPages": true
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "text"
  },
  "term": {
    "label": "Term",
    "format": "text"
  },
  "title": {
    "label": "Trending search",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "averageInterest": {
    "label": "Average interest",
    "format": "number"
  },
  "comparableAverage": {
    "label": "Comparable average (anchor)",
    "format": "number"
  },
  "latestValue": {
    "label": "Latest",
    "format": "number"
  },
  "peakValue": {
    "label": "Peak",
    "format": "number"
  },
  "peakDate": {
    "label": "Peak date",
    "format": "text"
  },
  "topRegion": {
    "label": "Top region",
    "format": "text"
  },
  "comparedWith": {
    "label": "Compared with",
    "format": "array"
  },
  "geo": {
    "label": "Location",
    "format": "text"
  },
  "timeRange": {
    "label": "Time range",
    "format": "text"
  },
  "categoryName": {
    "label": "Category",
    "format": "text"
  },
  "gpropName": {
    "label": "Property",
    "format": "text"
  },
  "errors": {
    "label": "Errors",
    "format": "array"
  },
  "exploreUrl": {
    "label": "Google Trends",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Trends Scraper: Interest, Related & Trending Now](https://apify.com/egra_van/google-trends-reliable.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/egra_van/google-trends-reliable.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/egra_van/google-trends-reliable.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`).
