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 more

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "geo": "US",
8  "outputMode": "complete",
9  "fromDate": "today",
10  "toDate": "3 days",
11  "maxItems": 100,
12  "proxy": {
13    "useApifyProxy": true
14  },
15  "extendOutputFunction": "async ({ data, item, request, customData, fromDate, toDate, Apify }) => {\n  return item;\n}",
16  "extendScraperFunction": "async ({ data, item, request, addUrl, customData, fromDate, toDate, extendOutputFunction, Apify }) => {\n \n}",
17  "customData": {}
18}
19EOF
20
21# Run the Actor using an HTTP API
22# See the full API reference at https://docs.apify.com/api/v2
23curl "https://api.apify.com/v2/acts/hooli~google-trending-searches/runs?token=$API_TOKEN" \
24  -X POST \
25  -d @input.json \
26  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 32 monthly users
  • 4 stars
  • 99.8% runs succeeded
  • Created in Jan 2021
  • Modified over 1 year ago
Categories