Add get activity API.