Added api_is_success().