Skip to content

Filter events by city

Use the city_name parameter to show only events taking place in a specific city.

Solution

from pyventim import EventimClient, EventimMarket

client = EventimClient(EventimMarket.GERMANY)

for event in client.products(
    product_group_id=12345,
    city_name="Berlin",
    page_limit=5,
):
    print(event.name, event.start_date, event.city)

Notes

  • city_name is matched server-side by Eventim.
  • The value must match Eventim's city name exactly — check the city field on existing results if the filter returns nothing.
  • City filtering is only available on products().