API to fetch activities