Modified to query the api with the search string