Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google API for the Search Result Events

I'm looking for the correct API for the events that show up in a regular Google Search, the ones that are structured (with name, datetime, location)

Any help or guidance is appreciated

I have tried the Custom Search with no luck, and also the Calendar API (which seems to require a calendar ID, more so for personal calendars or targeted public ones)

like image 400
John G. Avatar asked Oct 22 '25 19:10

John G.


1 Answers

We've actually just made an API to scrape the Google event results. You can query it directly like this:

https://serpapi.com/search.json?engine=google_events&q=Events+in+Austin

Or if you are using Ruby, you can do something like this:

require 'google_search_results' 

params = {
  engine: "google_events",
  q: "Events in Austin",
}

client = GoogleSearchResults.new(params)
events_results = client.get_hash[:events_results]

Some documentation: https://serpapi.com/google-events-api

like image 64
Hartator Avatar answered Oct 25 '25 20:10

Hartator