Google Trends Scraper (Fast) avatar

Google Trends Scraper (Fast)

Deprecated
Go to Store
This Actor is deprecated

This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?

See alternative Actors
Google Trends Scraper (Fast)

Google Trends Scraper (Fast)

davidbellman/google-trends-scraper-fast

Scrape data from Google Trends by search terms or URLs. Specify locations, define time ranges, select categories to get interest by subregion over time, related queries, topics, and more. Export scraped data, run the scraper via API, schedule and monitor runs, or integrate with other tools.

Features

Google Trends does not have an API, but Google Trends Scraper creates an unofficial Google Trends API to let you extract data from Google Trends directly and at scale. It is built on the powerful Apify SDK and you can run it on the Apify platform and locally.

Google Trends lets you find out what people have been searching for around the globe, as well as what ideas and fashions are just emerging. By analyzing this at scale, you can learn what to invest in, and where to spend your resources most effectively.

Whether you’re a journalist researching hot topics, a real estate developer keeping an eye on future property values, an SEO expert tracking keywords, or an e-commerce retailer thriving on the edge with dropshipping, Google Trends has useful data for you.

Cost of usage

This scraper will cost you about 15 USD for 1000 keywords. You can feed it up to 5 keywords at a time only for the moment!

Input

FieldTypeDescription
searchTermsarrayThis is the list of search terms to be scraped (required if 'spreadsheetId' is not provided).
timeRangestringChoose a time range (defaults to 'Past 12 months')
categorystringChoose a category to filter the search (defaults to 'All categories')
geostringGet results from a specific geo area (defaults to 'Worldwide')
maxItemsnumber(optional) Maximum number of product items to be scraped
customTimeRangestringProvide a custom time range. If provided, it takes precedence over regular timeRange. Read Custom time range for correct format and examples.

Notes on timeRange

On the Apify platform you can choose the time range with a dropdown menu. If you provide the input as JSON, these are the timeRange possible values:

  • now 1-H (equals to Past hour)
  • now 4-H (equals to Past 4 hours)
  • now 1-d (equals to Past day)
  • now 7-d (equals to Past 7 days)
  • today 1-m (equals to Past 30 days)
  • today 3-m (equals to Past 90 days)
  • '' (empty string equals to Past 12 months. It's the default)
  • today 5-y (equals to Past 5 years)
  • all (equals to 2004-present)

INPUT Example:

1{
2  "searchTerms": [
3    "test term",
4    "another test term"
5  ],
6  "timeRange": "now 4-H",
7  "customTimeRange": "2020-03-24 2020-03-29",
8  }
9}

Output

The scraper's output is stored in the key value store, in json-data-per-keyword. Each item will contain the search term and all values keyed by the corresponding date. It will be a json file with all the results of your request!

Custom time range

Custom time range is a string with the following order:

startDate endDate

And the following format:

YYYY-MM-DD YYYY-MM-DD

Examples:

2020-01-30 2020-03-29
2019-03-20 2019-03-26

Only when the range is up to 7 days, each date supports the time as well. Examples:

2020-03-24T08 2020-03-29T15

Thank you

Thank you for using our google trends scraper! Enjoy!!!

Developer
Maintained by Community
Categories