Using NinjaOne Warranty Data for Endpoint Replacement Planning

How to pull warranty dates from the API and used them to rank replacement candidates