test api to get data