Add API for getting data