Google Trending Searches avatar
Google Trending Searches
Try for free

No credit card required

View all Actors
Google Trending Searches

Google Trending Searches

hooli/google-trending-searches
Try for free

No credit card required

Scrape Trending Searches on Google Trends and extract data on daily search trends and related queries. Set country, time frame, and max number of results. No limits or quotas.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "geo": "US",
9    "outputMode": "complete",
10    "fromDate": "today",
11    "toDate": "3 days",
12    "maxItems": 100,
13    "proxy": { "useApifyProxy": True },
14    "extendOutputFunction": """async ({ data, item, request, customData, fromDate, toDate, Apify }) => {
15  return item;
16}""",
17    "extendScraperFunction": """async ({ data, item, request, addUrl, customData, fromDate, toDate, extendOutputFunction, Apify }) => {
18 
19}""",
20    "customData": {},
21}
22
23# Run the Actor and wait for it to finish
24run = client.actor("hooli/google-trending-searches").call(run_input=run_input)
25
26# Fetch and print Actor results from the run's dataset (if there are any)
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28    print(item)
Developer
Maintained by Community
Actor metrics
  • 34 monthly users
  • 99.9% runs succeeded
  • 0.0 days response time
  • Created in Jan 2021
  • Modified over 1 year ago
Categories