Add api_request base code