jat255 / PackageMate

Tracking deliveries on your own terms
MIT License
97 stars 5 forks source link

Amazon tracker not working #11

Open jat255 opened 2 years ago

jat255 commented 2 years ago

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.