extract api_host