add search to API