First version of search API