api for getInfo