add search to api