โ† Back to Amazon Order Tracker
๐Ÿ“– Instructions

How to export your Amazon order history

Four steps, all done in your own browser, using your own signed-in Amazon session. Nothing is sent anywhere except amazon.com and your own downloads folder.

๐Ÿ”’ Runs entirely in your browser console โ€” no third-party servers involved

Step by step

  1. 1
    Sign in at amazon.com and go to Returns & Orders โ€” or type amazon.com/your-orders/orders straight into your address bar.
  2. 2
    Open your browser's developer console:
    • Chrome / Edge: right-click anywhere on the page โ†’ Inspect โ†’ click the Console tab.
    • Safari: enable the Develop menu first (Settings โ†’ Advanced โ†’ "Show features for web developers"), then Develop โ†’ Show JavaScript Console.
    • Firefox: right-click โ†’ Inspect โ†’ Console tab.
  3. 3
    Click into the console, paste the script below, and press Enter.
    • Chrome/Edge will first ask you to type "allow pasting" and press Enter โ€” that's a built-in anti-scam protection. Do that, then paste the script again.
    • The script walks every year of your order history, then opens every order's own page to read its line items. For a large history (hundreds of orders) this can take several minutes โ€” watch the console for progress logs like 42/281 orders fetched.... Don't close the tab while it runs.
    • When it finishes, a CSV file downloads automatically โ€” amazon-items-export.csv.
  4. 4
    Go back to Amazon Order Tracker and drop that CSV into the upload box, or drag-and-drop it straight onto the page.

Good to know

  • Everything happens client-side in your own browser tab โ€” the script only talks to amazon.com using your existing login, and the CSV it produces never leaves your computer unless you choose to upload it somewhere yourself.
  • If a step in the script fails partway through (network hiccup, session timeout), just re-run it โ€” it starts over, but each run is quick to re-verify since it's reading pages you've likely already got cached.
  • No luck at all? Go back to the tracker and use the blank CSV template to fill in a few purchases by hand โ€” guaranteed to work, and enough to see the dashboard in action.

Export script

Loading script from ../AmazonOrderTracker/scripts/amazon-export.jsโ€ฆ
Copied! View raw source โ†—