service to get events data by type