Fix typo in api_request()