![Google Trending Searches avatar](https://images.apifyusercontent.com/TLhgI9vIOh7Fq2Jn4n0dRmUrYCvwGhPL8LS9xywwyNo/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS80OUhmTkxGZ2c2QjhZZXRUai9kczVhaG5LRFNxenNSWmhXQS1DYXB0dXJhX2RlX3RlbGFfMjAyMS0wMS0yMl8wMTQyMjUucG5n.webp)
Google Trending Searches
Try for free
No credit card required
View all Actors![Google Trending Searches](https://images.apifyusercontent.com/TLhgI9vIOh7Fq2Jn4n0dRmUrYCvwGhPL8LS9xywwyNo/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS80OUhmTkxGZ2c2QjhZZXRUai9kczVhaG5LRFNxenNSWmhXQS1DYXB0dXJhX2RlX3RlbGFfMjAyMS0wMS0yMl8wMTQyMjUucG5n.webp)
![Google Trending Searches](https://images.apifyusercontent.com/TLhgI9vIOh7Fq2Jn4n0dRmUrYCvwGhPL8LS9xywwyNo/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS80OUhmTkxGZ2c2QjhZZXRUai9kczVhaG5LRFNxenNSWmhXQS1DYXB0dXJhX2RlX3RlbGFfMjAyMS0wMS0yMl8wMTQyMjUucG5n.webp)
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 more
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)
27print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31# π Want to learn more π? Go to β https://docs.apify.com/api/client/python/docs/quick-start