Added search method for api