serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
56 stars 6 forks source link

[Google Events API] Virtual event filter is not working as expected #1922

Open sonika-serpapi opened 2 months ago

sonika-serpapi commented 2 months ago

For filtering for virtual events, we have a htichips filter event_type:Virtual-Event. When I specify this, I am seeing events happening in person with a physical address as well. It seems like the filter is not working, and thus is leading to incorrect results.

Documentation: https://serpapi.com/google-events-api#api-parameters-advanced-filters-htichips

Example request: https://serpapi.com/playground?engine=google_events&q=Events+in+Austin&location=Austin%2C+Texas%2C+United+States&gl=us&hl=en&start=0&htichips=event_type%3AVirtual-Event

Screenshot 2024-09-09 at 1 15 47 PM

schaferyan commented 2 months ago

Looks like it's on Google side:

https://www.google.com/search?q=Events+in+Austin&ibp=htl;events&uule=w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM&hl=en&gl=us&start=0&chips=event_type:Virtual-Event#htivrt=events&htidocid=L2F1dGhvcml0eS9ob3Jpem9uL2NsdXN0ZXJlZF9ldmVudC8yMDI0LTA5LTA5fDEzMjYzOTQ5NzU3MDgyNDY1Njcw&fpstate=tldetail

Also a filter of some kind is applied, as the results are different than without htichips.

mikemorcerf commented 1 month ago

It seems when we apply filters on Google they update the query to add those filters. Example: If you searched for "Events in Austin" Then when you click the filter "Next Month" The query gets updated to "Events in Austin next month" By adding "Virtual" to the end of the query it returns only Virtual events