first draft of search_api_call()