Use one of the examples described in a complete answer to get such shipment info as a delivery data by API.