# Google Trends Scraper - Interest Over Time, Regions & Queries (`socialscrapers/google-trends-scraper`) Actor

Scrape Google Trends, no login: interest over time, interest by region and city, related queries and topics for any term or up to 5 compared, plus trending searches per country, for any place, time range and category. Export JSON, CSV, Excel. $2.10 per 1,000 terms.

- **URL**: https://apify.com/socialscrapers/google-trends-scraper.md
- **Developed by:** [Social Scrapers](https://apify.com/socialscrapers) (community)
- **Categories:** SEO tools, Marketing, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.68 / 1,000 search terms

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Google Trends Scraper

**Google Trends Scraper** extracts Google Trends data — without a Google account, cookies or login — for any search term or topic, alone or compared with up to four others on one chart, in any country, region or US metro area, for any time range from the past hour to 2004 - present, in any category, on Web, Image, News, YouTube or Shopping search. Get **interest over time**, **interest by region and by city**, **related queries** (top and rising) and **related topics**, plus the **trending searches of any country right now**. It costs **$2.10 per 1,000 search terms** and **$0.95 per 1,000 trending searches**.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does Google Trends Scraper do?

- **Any search term, any number of them.** Put one term per line and each is read on its own: 10 keywords or 10,000. Each term is one result with all the data you asked for.
- **Comparisons, like on Google Trends.** Write up to 5 terms on one line, separated by commas (`coffee, tea, matcha`), or switch on **Compare all the terms on one chart**: every term's values are then relative to the most searched one, exactly as the Google Trends chart shows them.
- **Every Google Trends setting.** Worldwide, any country, region (`US-CA`, `GB-ENG`) or US metro area; past hour, 4 hours, day, 7 days, 30 days, 90 days, 12 months, 5 years, 2004 - present, or any custom date range; any of Google's 1,100+ categories; Web, Image, News, YouTube or Google Shopping search. Topic IDs (`/m/02vqfm`) work too.
- **Paste Google Trends links.** Copy the address of any explore page or trending-now page from your browser: it is read with its own terms and settings.
- **Trending now, per country.** The searches trending in any country or region in the past 4 hours, 24 hours, 48 hours or 7 days, with search volume, growth, start and end time, category, the searches that make up each trend, and news for the most recent ones. Filter by category or by searches still trending, and sort by relevance, volume or recency.
- **Built to finish.** Every run ends with its results saved: searches Google refuses are tried again, slowly and politely; a run that reaches its timeout saves what it read and ends as succeeded; a term Google has too little data for is reported, not charged.

### What data can you extract?

**One result per search term** (type `term`). Each term of a comparison is its own result.

| Field | Description |
|---|---|
| `searchTerm`, `termName`, `comparedWith` | The term or topic searched, Google's name for it, and the other terms of its comparison |
| `geo`, `geoName`, `timeRange`, `timeRangeLabel`, `category`, `categoryName`, `searchType` | Where, when, in which category and on which Google search |
| `interestOverTime` | Interest from 0 to 100 for every minute, hour, day, week or month of the time range, with its date and whether the period is still running |
| `averageInterest`, `startDate`, `endDate`, `resolution` | The average over the period, the first and last period, and how long one period is |
| `interestByRegion`, `regionLevel` | Interest by country (worldwide), by subregion (a country) or by metro area (a US state), 0 to 100 |
| `interestByCity` | Interest by city, 0 to 100, with latitude and longitude |
| `relatedQueriesTop`, `relatedQueriesRising` | Top related searches (0 to 100) and rising ones with their growth (`+250%`, `Breakout`) |
| `relatedTopicsTop`, `relatedTopicsRising` | Top and rising related topics, with topic ID and type |
| `missingSections` | Sections you asked for that Google Trends did not share this time (see Limits) |
| `url`, `input`, `scrapedAt` | The search on Google Trends, the input it came from, and when it was read |

**One result per trending search** (type `trending`).

| Field | Description |
|---|---|
| `title`, `rank` | The trending search and its position in the list |
| `geo`, `geoName`, `hours` | The country or region, and the window (4, 24, 48 or 168 hours) |
| `searchVolume`, `searchVolumeLabel`, `increasePercent` | Searches since it started trending (`200K+`) and their growth |
| `startedAt`, `endedAt`, `isActive` | When it started trending, when it stopped, and whether it still trends |
| `categories`, `trendBreakdown` | Its categories, and the searches that make up the trend |
| `newsArticles` | Headline, link, publisher and image of news about it, for the most recent trends |
| `exploreUrl`, `url`, `input`, `scrapedAt` | The search on Google Trends' explore page, the list it came from, the input and when it was read |

### How to scrape Google Trends

1. Add search terms (one per line, or several on one line to compare them), paste Google Trends links, or add countries under **Trending now**.
2. Pick the **country or region**, **time range**, **category** and **search type**, and switch off any section you do not need.
3. Click **Start**, then download the results as JSON, CSV, Excel, XML or HTML, or read them through the API.

### How much does it cost?

You pay per result delivered to the dataset: **$2.10 per 1,000 search terms** (every section included) and **$0.95 per 1,000 trending searches**. Apify subscribers pay less: **Silver −10%** ($1.89 and $0.855 per 1,000) and **Gold −20%** ($1.68 and $0.76 per 1,000). Each run also carries a start charge of $0.003 (one per GB of memory, at least one; the default 512 MB is one).

| Job | Results | Price (no discount) |
|---|---|---|
| Interest over time, by region and related queries for 100 keywords | 100 terms | $0.213 |
| A comparison of 5 brands, in 10 countries (10 runs) | 50 terms | $0.135 |
| Weekly check of 1,000 keywords, for a month (4 runs) | 4,000 terms | $8.41 |
| The top 100 trending searches in 10 countries | 1,000 trending searches | $0.953 |

Terms Google Trends has too little data for, inputs that cannot be read and searches Google refuses cost nothing. To cap spending, set **Max results**, or a **maximum total charge** in the run options: the Actor stops cleanly once it is reached and keeps everything collected so far.

### Input example

```json
{
    "searchTerms": ["coffee", "tea, matcha, coffee", "/m/02vqfm"],
    "startUrls": [
        { "url": "https://trends.google.com/trends/explore?date=today%205-y&geo=GB&q=yoga" }
    ],
    "geo": "US",
    "timeRange": "today 12-m",
    "category": "0",
    "searchType": "web",
    "includeInterestOverTime": true,
    "includeInterestByRegion": true,
    "includeInterestByCity": true,
    "includeRelatedQueries": true,
    "includeRelatedTopics": true,
    "trendingGeos": ["US", "DE"],
    "trendingHours": "24",
    "maxTrendingPerGeo": 50
}
```

A custom date range: `"startDate": "2024-01-01", "endDate": "2024-12-31"` (or `"timeRange": "2024-01-01 2024-12-31"`).

### Output example

A search term (lists shortened):

```json
{
    "type": "term",
    "searchTerm": "coffee",
    "termName": "coffee",
    "comparedWith": [],
    "geo": "US",
    "geoName": "United States",
    "timeRange": "today 12-m",
    "timeRangeLabel": "Past 12 months",
    "startDate": "2025-11-09",
    "endDate": "2026-11-08",
    "resolution": "week",
    "category": 0,
    "categoryName": "All categories",
    "searchType": "web",
    "averageInterest": 78,
    "interestOverTime": [
        { "date": "2025-11-09", "time": "2025-11-09T00:00:00.000Z", "formattedTime": "Nov 9 – 15, 2025", "value": 71, "hasData": true, "isPartial": false },
        { "date": "2025-11-16", "time": "2025-11-16T00:00:00.000Z", "formattedTime": "Nov 16 – 22, 2025", "value": 71, "hasData": true, "isPartial": false }
    ],
    "interestByRegion": [
        { "geoCode": "US-WY", "geoName": "Wyoming", "value": 100 },
        { "geoCode": "US-HI", "geoName": "Hawaii", "value": 52 }
    ],
    "regionLevel": "subregion",
    "interestByCity": [
        { "geoName": "Ranchettes", "value": 100, "lat": 41.2185914, "lng": -104.7902455 },
        { "geoName": "Leesburg", "value": 34, "lat": 39.1156615, "lng": -77.5636015 }
    ],
    "relatedQueriesTop": [
        { "query": "coffee near me", "value": 100, "link": "https://trends.google.com/trends/explore?q=coffee+near+me&date=today+12-m&geo=US" }
    ],
    "relatedQueriesRising": [
        { "query": "coffee shops nearby", "increasePercent": 3800, "increase": "+3,800%", "isBreakout": false, "link": "https://trends.google.com/trends/explore?q=coffee+shops+nearby&date=today+12-m&geo=US" }
    ],
    "relatedTopicsTop": [
        { "topicId": "/m/02vqfm", "title": "Coffee", "type": "Beverage", "value": 100, "link": "https://trends.google.com/trends/explore?q=/m/02vqfm&date=today+12-m&geo=US" }
    ],
    "relatedTopicsRising": [
        { "topicId": "/g/…", "title": "…", "type": "Topic", "increasePercent": 450, "increase": "+450%", "isBreakout": false, "link": "…" }
    ],
    "missingSections": [],
    "url": "https://trends.google.com/trends/explore?geo=US&q=coffee&hl=en-US",
    "input": "\"coffee\"",
    "scrapedAt": "2026-11-13T12:00:00.000Z"
}
```

A trending search:

```json
{
    "type": "trending",
    "title": "weather tomorrow",
    "geo": "US",
    "geoName": "United States",
    "rank": 62,
    "searchVolume": 500000,
    "searchVolumeLabel": "500K+",
    "increasePercent": 75,
    "startedAt": "2026-11-13T02:30:00.000Z",
    "endedAt": "2026-11-13T05:00:00.000Z",
    "isActive": false,
    "categories": ["Climate"],
    "trendBreakdown": ["weather tomorrow", "weather new york", "weather nyc"],
    "newsArticles": [],
    "hours": 24,
    "exploreUrl": "https://trends.google.com/trends/explore?q=weather%20tomorrow&date=now%201-d&geo=US&hl=en-US",
    "url": "https://trends.google.com/trending?geo=US&hl=en-US&hours=24",
    "input": "trending US (past 24 hours)",
    "scrapedAt": "2026-11-13T12:00:00.000Z"
}
```

### Use cases

- **Keyword and content research:** find which keywords are growing, when they peak in the year, and the rising searches around them before they get competitive.
- **SEO and seasonality:** plan content and campaigns around the weeks and months a topic is searched the most, by country or state.
- **Market and brand research:** compare brands, products or categories over time and by region, and watch what people search next to them.
- **Trend spotting and newsrooms:** follow what each country searches right now, with search volumes and news, every hour if you schedule it.
- **Data science and dashboards:** feed weekly or daily interest series for thousands of terms into models, spreadsheets and BI tools.

### API, Python, JavaScript & integrations

Run the Actor from your own code with the Apify API and client libraries.

**JavaScript**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('socialscrapers/google-trends-scraper').call({
    searchTerms: ['coffee', 'tea, matcha'],
    geo: 'US',
    timeRange: 'today 5-y',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/google-trends-scraper").call(run_input={
    "searchTerms": ["bitcoin", "ethereum"],
    "geo": "",
    "timeRange": "today 3-m",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["searchTerm"], item["averageInterest"])
```

Connect it to **Make, Zapier, n8n, Google Sheets** and other tools with [Apify integrations](https://docs.apify.com/platform/integrations), get notified with [webhooks](https://docs.apify.com/platform/integrations/webhooks), run it on a [schedule](https://docs.apify.com/platform/schedules), or call it from AI agents through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Limits

- **Values are relative, as on Google Trends.** Interest is 0 to 100 within each chart, not a search count: 100 is the peak of the chart (of all terms compared), and 50 is half as many searches. Google samples its data, so two reads of the same search can differ by a point or two, as they do in the browser.
- **Related topics are not always shared.** Google Trends does not always share related topics with visitors who are not signed in. When it does not, the result comes with empty related topics and lists `relatedTopics` in `missingSections`; every other section is complete. The price per term is the same.
- **Low search volumes.** A term with too few searches has no data on Google Trends; it is reported in the run's status and costs nothing. Regions and cities with few searches are left out unless you switch on **Include low search volume regions**.
- **Trending now** shows the searches Google lists for a country or region over the last 7 days at most; news comes for the most recent trending searches.
- **A run with 0 results still succeeds.** When nothing could be found, the run ends as Succeeded with a status message naming each input and why, and no results are charged. When nothing in the input can be used (links that are not Google Trends', an unknown place or category), the run also ends as Succeeded, with a status message that starts "Nothing to scrape:" and says why and how to fix the input; no results are charged. A run fails only when Google Trends refuses every one of 3 or more inputs and a well-known public search as well.

### FAQ

**Is it legal to scrape Google Trends?**
The Actor reads only aggregated, anonymous search interest that Google Trends shows to every visitor, without logging in; it collects no personal data. You are responsible for using the data lawfully, including Google's terms and the laws that apply to you.

**Do I need a Google account, cookies or an API key?**
No. The Actor works logged out and needs nothing but the input.

**Is there an official Google Trends API?**
Google offers a limited, invite-only one. This Actor gives you the same data as the Google Trends website, for any number of terms, as JSON, CSV or Excel, through Apify's API.

**How many terms can I compare?**
Up to 5 on one chart, as on Google Trends. To get many terms on one comparable scale, compare each with the same reference term (for example `coffee, tea` and `coffee, cocoa`).

**Why are values 0 to 100 and not search counts?**
That is how Google Trends reports interest: relative to the highest point of the chart. Trending searches do come with Google's rounded search volume (`200K+`).

**How fast is it?**
A term with every section takes a few seconds, and several are read at once: in our tests 600 terms took 5 to 9 minutes, depending on how readily Google answered. A trending-now list of a country takes a few seconds.

**What happens if Google refuses a request?**
The request is tried again, a little later each time, until Google answers; you pay only for results saved. If the run's timeout comes first, everything read is saved and the run ends as Succeeded with a note to raise the timeout.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |

# Actor input Schema

## `searchTerms` (type: `array`):

One search per line, e.g. <code>coffee</code>. To compare terms on one chart, as Google Trends does, write them on one line separated by commas (up to 5): <code>coffee, tea, matcha</code>. A topic ID such as <code>/m/02vqfm</code> and a Google Trends link work too. Each term is one result.

## `compareTerms` (type: `boolean`):

Compare the search terms above with each other (up to 5), instead of searching each line on its own. Values are then relative to the most searched term.

## `startUrls` (type: `array`):

Links copied from your browser: an explore page (<code>https://trends.google.com/trends/explore?q=coffee\&geo=US</code>) or a trending-now page (<code>https://trends.google.com/trending?geo=US</code>). A link keeps its own terms, place, time range, category and search type.

## `geo` (type: `string`):

Where the searches were made: a country from the list, or type a region code such as <code>US-CA</code> (California) or <code>GB-ENG</code> (England), a US metro code such as <code>US-NY-501</code>, or a name. Empty means worldwide.

## `timeRange` (type: `string`):

The period of the data. Pick one, or type two dates such as <code>2024-01-01 2024-12-31</code>. Google Trends has data from 2004 on; short periods come in finer steps (minutes or hours), long ones in weeks or months.

## `startDate` (type: `string`):

Start of a custom time range (instead of the time range above): a date such as <code>2026-01-31</code>, <code>31/01/2026</code> or <code>Jan 31 2026</code>, or an age such as <code>7 days</code> or <code>2 years</code> (counted back from today).

## `endDate` (type: `string`):

End of the custom time range: a date such as <code>2026-01-31</code> or an age such as <code>7 days</code>. Empty means today.

## `category` (type: `string`):

Only searches about one subject. Pick a category, or type any Google Trends category number or name, such as <code>916</code> or <code>Coffee & Tea</code>.

## `searchType` (type: `string`):

Which Google search the interest is measured on.

## `includeInterestOverTime` (type: `boolean`):

Search interest over the time range, 0-100, with each point's date.

## `includeInterestByRegion` (type: `boolean`):

Interest by country (worldwide), by subregion (in a country) or by metro area (in a US state).

## `includeInterestByCity` (type: `boolean`):

Interest by city, with each city's coordinates.

## `includeRelatedQueries` (type: `boolean`):

Top and rising searches made by people who searched the term.

## `includeRelatedTopics` (type: `boolean`):

Top and rising topics, when Google Trends shares them. It does not always share them with visitors who are not signed in; a result without them says so.

## `includeLowVolumeRegions` (type: `boolean`):

Also list regions and cities with few searches, as the checkbox of the same name on Google Trends does.

## `trendingGeos` (type: `array`):

Trending searches of these countries (or regions such as <code>US-CA</code>): a code such as <code>US</code> or a name. One result per trending search.

## `trendingHours` (type: `string`):

The window of the list.

## `trendingCategory` (type: `string`):

Only trending searches of one category.

## `trendingActiveOnly` (type: `boolean`):

Leave out searches that have stopped trending.

## `trendingSort` (type: `string`):

The order of the list, as on Google Trends; the first ones are kept when the list is capped.

## `maxTrendingPerGeo` (type: `integer`):

How many trending searches to keep for each country. <b>0 means all of them</b> (up to a few thousand for 7 days).

## `maxItems` (type: `integer`):

Stop after this many results in the whole run (terms and trending searches). <b>0 means no limit.</b>

## `language` (type: `string`):

The language of place, topic and period names, as Google Trends writes them. Pick one or type a code such as <code>pt-BR</code>.

## `proxyConfiguration` (type: `object`):

Apify Proxy (the default) is recommended: the scraper picks its tier itself, and its traffic is included in the price. Your own proxy URLs are used as given.

## Actor input object example

```json
{
  "searchTerms": [
    "coffee"
  ],
  "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
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "coffee"
    ],
    "geo": "US",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/google-trends-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": ["coffee"],
    "geo": "US",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/google-trends-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "coffee"
  ],
  "geo": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call socialscrapers/google-trends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialscrapers/google-trends-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4v9jKyBTl86zHWcVe/builds/aIa7d3LflRXY1EgdA/openapi.json
