Get latest commit through API