Hook up search to api