Search code examples
phpapiups

How to fetch UPS Delivery Progress through their APIs?


I found a couple of PHP Classes online that utilizes the UPS Tracking API, but the problem is that I don't get the whole route... I only get the status (saying if it was already delivered or not -- along with a lot more info that I don't need for what I'm doing).

I know it's possible because I see a lot of sites doing it all the time such as this one:

http://www.packagetrackr.com/track/1Z0766Y54242241130

(Not to mention eBay, Amazon, etc).

Again I am using the UPS Tracking API with the following URL: https://www.ups.com/ups.app/xml/Track (along with the XML payloads, etc)

Thank you.


Solution

  • there's no standard way of getting statues, you'll have to parse the UPS website