added search to api