api service work basiclly