add search method to api interface