PackageMate
PackageMate copied to clipboard
Amazon tracker not working
The https://track.amazon.com/ endpoint no longer responds with useful information. For example:
$ curl 'https://track.amazon.com/api/tracker/TBA084495348404' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Accept: application/json' \
--compressed | jq '.progressTracker | fromjson'
{
"progressMeter": null,
"customerRescheduleRequestInfo": null,
"errors": [
{
"errorCode": "TRACKING_ID_NOT_FOUND",
"errorMessage": "INVALID TRACKING_ID"
}
],
"summary": {
"status": null,
"metadata": {},
"proofOfDelivery": null,
"containerStatusTags": null
},
"expectedDeliveryDate": null,
"legType": null,
"hasDeliveryDelayed": false,
"trackerSource": "UNKNOWN"
}
This probably won't be fixed until something about the API changes, since it appears otherwise you have to login to your amazon account to see shipment details.