add get data api and data type