Google Trends Scraper avatar

Google Trends Scraper

Try for free

7 days trial then $20.00/month - No credit card required now

Go to Store
Google Trends Scraper

Google Trends Scraper

emastra/google-trends-scraper
Try for free

7 days trial then $20.00/month - No credit card required now

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

Do you want to learn more about this Actor?

Get a demo
HR

Seems like it's not working today

Open

harshhellohello opened this issue
3 days ago

"ApifyApiError: Input is not valid: Field input.viewedFrom must be string"

I'm using the python code template as is.

Can someone send me a working code example?

low_code avatar

Hey! Can you send a screenshot of your input?

Just to clarify, you using the input schema from this actor and not other scraping templates, right?

HR

harshhellohello

2 days ago
ondrejklinovsky avatar

Hey,

thanks for the screenshot. Try to set viewedFrom to an empty string "" or remove it completely from the input object and it should let it through.

HR

harshhellohello

2 days ago

Thanks!

But it goes into an infinite loop when I try either of those.

ondrejklinovsky avatar

It's probably just waiting for the run to finish. Try to wait 2-3 minutes and it should print the results. I think there's an option for call method to set timeout to 0 so it doesn't wait for the run to finish.

HR

harshhellohello

2 days ago

great it outputs now:

{'inputUrlOrTerm': 'webscraping', 'searchTerm': 'webscraping', 'interestOverTime_timelineData': [], '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'...

How do I simply fetch the monthly interest # for each keyword that I'm inputing, and ignore the above long output?

Thanks!

Developer
Maintained by Apify

Actor Metrics

  • 130 monthly users

  • 41 stars

  • 99% runs succeeded

  • 1.4 days response time

  • Created in Jan 2020

  • Modified 2 days ago