Google Trends Scraper

Google Trends Scraper

by apify

Need to see what people are actually searching for? This Google Trends Scraper pulls the real data directly from Google Trends so you don't have to gu...

456,060 runs
5,560 users
Try This Actor

Opens on Apify.com

About Google Trends Scraper

Need to see what people are actually searching for? This Google Trends Scraper pulls the real data directly from Google Trends so you don't have to guess. Just plug in your search terms or URLs, and it fetches the full picture: interest over time, breakout queries by region, related topics, and more. You can fine-tune it by location, set a custom date range, and filter by category. I use it to track brand mentions, spot rising trends in my niche, and validate content ideas before I write. Itโ€™s perfect for SEO research, market analysis, or keeping a pulse on public interest. The scraped data exports cleanly for analysis. You can run it on-demand via the API, set up scheduled runs to monitor trends automatically, or pipe the data into your existing dashboards and tools. It saves hours of manual checking and gives you a solid, data-backed edge.

What does this actor do?

Google Trends Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

๐ŸŒ What is Google Trends Scraper? Our Google Trends Scraper crawls specified search queries and Google Trends URLs, and extracts data from Google Trends pages in structured formats such as JSON, CSV, XML, or Excel. With this Google Trends API, you will be able to extract the following Google trends data:
๐Ÿ” Search term ๐Ÿ™ Interest by city
๐ŸŒ Interest by subregion ๐Ÿ—บ Geo code and Geo name
๐Ÿ“Š Average interest over time ๐Ÿ“† Timeline of the interest over time
๐Ÿ”บ Rising related queries ๐Ÿ” Top related queries
โฌ†๏ธ Rising related topics โญ๏ธ Top related topics
## ๐ŸŒ How do I use Google Trends Scraper? Google Trends Scraper is designed to be user-friendly, even for those who have never extracted data from the web before. Hereโ€™s how you can use Google Trends Scraper to extract data from Google trends: 1. Create an Apify account 2. Open Google Trends Scraper. 3. Enter your search term, location, and time range. Or use a Google Trends URL with applied filters instead. 4. Click the โ€œStartโ€ button and wait for the data to be extracted. 5. Download your data in JSON, CSV, Excel, XML or HTML. If you need guidance on how to run the scraper, you can read our step-by-step guide to scraping Google Trends, it includes use cases, screenshots, and examples. Or watch a short video tutorial โ–ท on YouTube. Google Trends scraping tool ## ๐Ÿ“‰ What can you do with scraped Google Trends data? ๐Ÿ” Back up your market research by tracking the popularity of search terms and identifying trending topics ๐Ÿ“Š Find business insights by comparing the popularity of multiple search terms and see how they relate to each other ๐Ÿ“ Generate content ideas by exploring regional interest and see which areas are searching for specific topics the most ๐Ÿ’ก Discover related queries and topics to gain a deeper understanding of user interests ๐Ÿ•’ Improve your SEO game by analyzing search trends over time to identify seasonal patterns or long-term changes in user behavior ## โฌ‡๏ธ Input example You can scrape Google Trends either by search query or by a Google Trends URL. For a full explanation of input including an example in JSON, head over to the input tab. You can set up the input programmatically or use the fields in scraperโ€™s interface: ## โฌ†๏ธ Output example The scraped Google Trends data will be shown as a dataset which you can find in the Output tab. Note that the output is organized as a table for viewing convenience: You can preview all the fields and choose in which format to download Google Trends data youโ€™ve extracted: JSON, Excel, HTML table, CSV, or XML. Here below is the same dataset in JSON: json { "inputUrlOrTerm": "web scraping", "searchTerm": "web scraping", "interestOverTime_timelineData": [ { "time": "1673136000", "formattedTime": "Jan 8 โ€“ 14, 2023", "formattedAxisTime": "Jan 8, 2023", "value": [ 99 ], "hasData": [ true ], "formattedValue": [ "99" ] }, { "time": "1673740800", "formattedTime": "Jan 15 โ€“ 21, 2023", "formattedAxisTime": "Jan 15, 2023", "value": [ 96 ], "hasData": [ true ], "formattedValue": [ "96" ] }, { "time": "1674345600", "formattedTime": "Jan 22 โ€“ 28, 2023", "formattedAxisTime": "Jan 22, 2023", "value": [ 99 ], "hasData": [ true ], "formattedValue": [ "99" ] }, { "time": "1674950400", "formattedTime": "Jan 29 โ€“ Feb 4, 2023", "formattedAxisTime": "Jan 29, 2023", "value": [ 98 ], "hasData": [ true ], "formattedValue": [ "98" ] }, { "time": "1675555200", "formattedTime": "Feb 5 โ€“ 11, 2023", "formattedAxisTime": "Feb 5, 2023", "value": [ 100 ], "hasData": [ true ], "formattedValue": [ "100" ] }, { "time": "1676160000", "formattedTime": "Feb 12 โ€“ 18, 2023", "formattedAxisTime": "Feb 12, 2023", "value": [ 91 ], "hasData": [ true ], "formattedValue": [ "91" ] }, { "time": "1676764800", "formattedTime": "Feb 19 โ€“ 25, 2023", "formattedAxisTime": "Feb 19, 2023", "value": [ 98 ], "hasData": [ true ], "formattedValue": [ "98" ] }, { "time": "1703376000", "formattedTime": "Dec 24 โ€“ 30, 2023", "formattedAxisTime": "Dec 24, 2023", "value": [ 80 ], "hasData": [ true ], "formattedValue": [ "80" ] }, { "time": "1703980800", "formattedTime": "Dec 31, 2023 โ€“ Jan 6, 2024", "formattedAxisTime": "Dec 31, 2023", "value": [ 81 ], "hasData": [ true ], "formattedValue": [ "81" ] }, { "time": "1704585600", "formattedTime": "Jan 7 โ€“ 13, 2024", "formattedAxisTime": "Jan 7, 2024", "value": [ 91 ], "hasData": [ true ], "formattedValue": [ "91" ], "isPartial": true } ], "interestOverTime_averages": [], "interestBySubregion": [], "interestByCity": [], "relatedTopics_top": [ { "topic": { "mid": "/m/07ykbs", "title": "Web scraping", "type": "Topic" }, "value": 100, "formattedValue": "100", "hasData": true, "link": "/trends/explore?q=/m/07ykbs&date=today+12-m" }, { "topic": { "mid": "/m/0828v", "title": "World Wide Web", "type": "Topic" }, "value": 97, "formattedValue": "97", "hasData": true, "link": "/trends/explore?q=/m/0828v&date=today+12-m" }, { "topic": { "mid": "/m/05z1_", "title": "Python", "type": "Programming language" }, "value": 29, "formattedValue": "29", "hasData": true, "link": "/trends/explore?q=/m/05z1_&date=today+12-m" }, { "topic": { "mid": "/m/026sq", "title": "Data", "type": "Topic" }, "value": 14, "formattedValue": "14", "hasData": true, "link": "/trends/explore?q=/m/026sq&date=today+12-m" }, { "topic": { "mid": "/m/085n4", "title": "Website", "type": "Topic" }, "value": 9, "formattedValue": "9", "hasData": true, "link": "/trends/explore?q=/m/085n4&date=today+12-m" }, { "topic": { "mid": "/m/0c828v", "title": "Selenium", "type": "Software" }, "value": 5, "formattedValue": "5", "hasData": true, "link": "/trends/explore?q=/m/0c828v&date=today+12-m" }, { "topic": { "mid": "/m/0z5n", "title": "Application programming interface", "type": "Type of software" }, "value": 5, "formattedValue": "5", "hasData": true, "link": "/trends/explore?q=/m/0z5n&date=today+12-m" }, { "topic": { "mid": "/m/022qrc8", "title": "Beautiful Soup", "type": "HTML parser" }, "value": 5, "formattedValue": "5", "hasData": true, "link": "/trends/explore?q=/m/022qrc8&date=today+12-m" }, { "topic": { "mid": "/m/07k1x", "title": "Tool", "type": "Topic" }, "value": 5, "formattedValue": "5", "hasData": true, "link": "/trends/explore?q=/m/07k1x&date=today+12-m" }, { "topic": { "mid": "/m/086nh", "title": "Web page", "type": "Topic" }, "value": 5, "formattedValue": "5", "hasData": true, "link": "/trends/explore?q=/m/086nh&date=today+12-m" }, { "topic": { "mid": "/m/0g57xn", "title": "Sentiment analysis", "type": "Field of study" }, "value": 50, "formattedValue": "+50%", "link": "/trends/explore?q=/m/0g57xn&date=today+12-m" } ], "relatedQueries_top": [ { "query": "python scraping", "value": 100, "formattedValue": "100", "hasData": true, "link": "/trends/explore?q=python+scraping&date=today+12-m" }, { "query": "python", "value": 96, "formattedValue": "96", "hasData": true, "link": "/trends/explore?q=python&date=today+12-m" }, { "query": "web scraping python", "value": 94, "formattedValue": "94", "hasData": true, "link": "/trends/explore?q=web+scraping+python&date=today+12-m" }, { "query": "web data scraping", "value": 39, "formattedValue": "39", "hasData": true, "link": "/trends/explore?q=web+data+scraping&date=today+12-m" }, { "query": "data scraping", "value": 38, "formattedValue": "38", "hasData": true, "link": "/trends/explore?q=data+scraping&date=today+12-m" }, { "query": "web scraping in python", "value": 18, "formattedValue": "18", "hasData": true, "link": "/trends/explore?q=web+scraping+in+python&date=today+12-m" }, { "query": "what is web scraping", "value": 17, "formattedValue": "17", "hasData": true, "link": "/trends/explore?q=what+is+web+scraping&date=today+12-m" }, { "query": "selenium web scraping", "value": 17, "formattedValue": "17", "hasData": true, "link": "/trends/explore?q=selenium+web+scraping&date=today+12-m" }, { "query": "selenium", "value": 16, "formattedValue": "16", "hasData": true, "link": "/trends/explore?q=selenium&date=today+12-m" }, { "query": "web scraping google", "value": 16, "formattedValue": "16", "hasData": true, "link": "/trends/explore?q=web+scraping+google&date=today+12-m" }, { "query": "api", "value": 16, "formattedValue": "16", "hasData": true, "link": "/trends/explore?q=api&date=today+12-m" }, { "query": "website scraping", "value": 16, "formattedValue": "16", "hasData": true, "link": "/trends/explore?q=website+scraping&date=today+12-m" }, { "query": "web scraping api", "value": 16, "formattedValue": "16", "hasData": true, "link": "/trends/explore?q=web+scraping+api&date=today+12-m" }, { "query": "web scraping using python", "value": 15, "formattedValue": "15", "hasData": true, "link": "/trends/explore?q=web+scraping+using+python&date=today+12-m" }, { "query": "web scraping with python", "value": 14, "formattedValue": "14", "hasData": true, "link": "/trends/explore?q=web+scraping+with+python&date=today+12-m" }, { "query": "web scraping tools", "value": 12, "formattedValue": "12", "hasData": true, "link": "/trends/explore?q=web+scraping+tools&date=today+12-m" }, { "query": "beautifulsoup", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=beautifulsoup&date=today+12-m" }, { "query": "beautifulsoup web scraping", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=beautifulsoup+web+scraping&date=today+12-m" }, { "query": "web scraping free", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=web+scraping+free&date=today+12-m" }, { "query": "web scraper", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=web+scraper&date=today+12-m" }, { "query": "scraper", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=scraper&date=today+12-m" }, { "query": "scrape", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=scrape&date=today+12-m" }, { "query": "web scrape", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=web+scrape&date=today+12-m" }, { "query": "python selenium web scraping", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=python+selenium+web+scraping&date=today+12-m" }, { "query": "python selenium", "value": 11, "formattedValue": "11", "hasData": true, "link": "/trends/explore?q=python+selenium&date=today+12-m" } ], "relatedQueries_rising": [ { "query": "chatgpt web scraping", "value": 4250, "formattedValue": "+4,250%", "link": "/trends/explore?q=chatgpt+web+scraping&date=today+12-m" }, { "query": "analisis data adalah", "value": 1150, "formattedValue": "+1,150%", "link": "/trends/explore?q=analisis+data+adalah&date=today+12-m" }, { "query": "analisis data", "value": 750, "formattedValue": "+750%", "link": "/trends/explore?q=analisis+data&date=today+12-m" }, { "query": "playwright", "value": 50, "formattedValue": "+50%", "link": "/trends/explore?q=playwright&date=today+12-m" }, { "query": "web scraping tool free", "value": 50, "formattedValue": "+50%", "link": "/trends/explore?q=web+scraping+tool+free&date=today+12-m" } ], "interestBy": [ { "geoCode": "SH", "geoName": "St. Helena", "value": [ 100 ], "formattedValue": [ "100" ], "maxValueIndex": 0, "hasData": [ true ] }, { "geoCode": "TN", "geoName": "Tunisia", "value": [ 60 ], "formattedValue": [ "60" ], "maxValueIndex": 0, "hasData": [ true ] }, { "geoCode": "SG", "geoName": "Singapore", "value": [ 56 ], "formattedValue": [ "56" ], "maxValueIndex": 0, "hasData": [ true ] }, { "geoCode": "PK", "geoName": "Pakistan", "value": [ 46 ], "formattedValue": [ "46" ], "maxValueIndex": 0, "hasData": [ true ] }, { "geoCode": "KM", "geoName": "Comoros", "value": [ 0 ], "formattedValue": [ "" ], "maxValueIndex": 0, "hasData": [ false ] }, { "geoCode": "IO", "geoName": "British Indian Ocean Territory", "value": [ 0 ], "formattedValue": [ "" ], "maxValueIndex": 0, "hasData": [ false ] } ] }] ## ๐Ÿ“ Want to try other Google scrapers? Use the dedicated scrapers below if you want to scrape specific public data from Google services. Each of them is built particularly for the relevant scraping case be it Google places, images, Google trending searches or Google SERP data. Feel free to browse them:
๐Ÿ” Google Search Results Scraper ๐Ÿ‘ Google Lens Scraper
๐Ÿ“ Google Maps Scraper ๐Ÿ“ฉ Google Maps Email Extractor
๐Ÿ“‰ Google Trending Searches ๐Ÿ“ฐ Google News Scraper
โญ๏ธGoogle Maps Reviews Scraper ๐Ÿค– AI Text Analyzer for Google Reviews
๐Ÿ’ผ Google Jobs Scraper ๐ŸŽฎ Google Play Scraper
## โ“FAQ ### Is there a Google Trends API? Google Trends does not offer an official API for public use. This means there isn't a dedicated Application Programming Interface provided by Google specifically for Google Trends data. But you can use scrapers and crawlers as a stand-in for a web scraping API, e.g. ๐Ÿ“ˆ๐Ÿ“‰Google Trends Scraper. ### Can I use Google Trends Scraper data with API? Yes, you can do so by using Apify API. It gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify Actors such as this one. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more. To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package. Check out the Apify API reference docs for full details or click on the API tab for code examples and API Endpoints. ### Can I create a Google Trends integration using data from this scraper? Yes. Google Trends Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, LangChain and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Google Trends Scraper successfully finishes a run. ### Can I use this Google Trends API in Python? Yes, by using Apify API. To access the Google Trends API using Python, use the apify-client PyPI package. You can find more details about the client in our Docs. ### Is it legal to scrape Google Trends data? It is legal to scrape publicly available data from Google Trends. However, you should always review and comply with Google's terms of service and any applicable laws and regulations regarding web scraping. Additionally, be mindful of any rate limits or restrictions imposed by Google to avoid potential issues. ### Not your cup of tea? Build your own scraper. Google Trends Scraper doesnโ€™t exactly do what you need? You can always build one of your own! We have various scraper templates in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the scraper to yourself or make it public by adding it to Apify Store (and find users for it). ### Your feedback Weโ€™re always working on improving the performance of our Actors. So if youโ€™ve got any technical feedback for Google Trends Scraper or simply found a bug, please create an issue on the Actorโ€™s Issues tab in Apify Console.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Google Trends Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
apify
Pricing
Paid
Total Runs
456,060
Active Users
5,560
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support