Remove else statement from api_request()