Congress: added check on api_result