Amazon Bulk Order Exporter
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This script extracts order data from your Amazon order history and exports it to a downloadable file. When you view your orders page, the script scans each order container and extracts key information: order ID, order date, item titles, quantities, item prices, shipping cost, tax, order total, and order status. It compiles all visible order data into a structured format and provides a one-click export to CSV (compatible with Excel, Google Sheets, and most spreadsheet applications) or JSON (for developers and data analysis). You can copy the data to your clipboard for quick pasting into other applications. The script includes a progress indicator that shows the status of the export process, and all your export preferences are saved locally so you don't need to reconfigure them each time.
WHERE IT RUNS
The script runs on all major Amazon domains, including .com, .co.uk, .ca, .de, .fr, .it, .es, .com.au, and .co.jp. It works on order history pages (/orders/, /order-history/, /gp/order-history/, /your-orders/) and individual order detail pages (/order-details/, /gp/order-details/). It handles both desktop and mobile views, and extracts data from all visible orders on the current page.
HOW TO USE
After installation, the settings panel appears on the left side of the screen with the gear emoji (⚙️). Open the panel to configure the script:
- Click the "Export Orders" button to extract all visible order data and download it as a file.
- Choose the export format from the dropdown: "CSV (Excel compatible)" or "JSON (structured data)."
- Toggle "Include column headers" to include or exclude headers in CSV exports.
- Select the date format from the dropdown: YYYY-MM-DD (ISO), MM/DD/YYYY (US), or DD/MM/YYYY (EU).
- Click "Copy to clipboard" to copy the data directly to your clipboard without downloading a file.
The progress indicator shows the status of the export—"Ready to export," "Collecting orders," "Downloading X orders," or error messages if something goes wrong.
TECHNICAL SECTION — REAL MECHANISM
The script first detects whether the current page is an order history page by checking the URL for patterns like /orders/, /order-history/, /gp/order-history/, /your-orders/, /order-details/, or /gp/order-details/. It finds order containers using a comprehensive set of selectors, including .order-card, .a-box-group .a-box, .a-section.a-spacing-base, .a-row.a-spacing-base, and .a-fixed-left-grid. For each container, the script extracts the order ID by looking for data-order-id attributes, order detail links, or text patterns like "Order #XXXXX." The order date is extracted by parsing text from .order-date or similar elements using date pattern matching. Item titles are extracted from product links that contain /dp/, /product/, or /gp/product/ in their href, with deduplication to avoid duplicates. Quantities are extracted from text like "Item Title (2)" or by scanning for quantity indicators. Prices are extracted from .a-color-price elements, with the order total being the largest price found and shipping being extracted from text containing "Shipping." The script compiles all data into an array of order objects, then converts it to CSV or JSON using safe string escaping. CSV generation wraps titles in quotes and escapes internal quotes. JSON generation uses JSON.stringify for proper formatting. The resulting content is downloaded as a Blob with the appropriate MIME type using a temporary anchor element.
THE PANEL
The settings panel is built with BotGentz's BGPanel component. It is draggable via its header, allowing you to reposition it anywhere on the screen. The panel snaps to the left edge by default but can be moved freely. Click the gear emoji to collapse the panel into a small bubble, and click the bubble to expand it again. The panel remembers its position per page session. Press the Escape key to quickly close or minimize the panel. The panel includes a status flash bar that provides visual feedback when settings are changed or actions are performed, and a progress indicator that shows the current state of the export process. All settings save automatically via GM_setValue.
PLEASE NOTE
This script requires the free BotGentz browser extension to run. It does not function as a standalone Chrome extension and does not use chrome.* APIs. Amazon frequently updates its order history page structure, which may break the selectors used to find orders and extract data. If the script stops working, please check for updates. The script extracts data from the page you are viewing—it does not automatically navigate through pagination to collect all orders across multiple pages. To export all orders, you would need to manually navigate to each page and export separately, or use the script on the "All Orders" view if Amazon provides it. The script stores only export preferences (format, header setting, date format) via GM_setValue. No data is sent externally—all data is stored and processed locally in your browser. The script never reads or writes password fields, hidden inputs, or file inputs. All DOM operations use safe methods (style properties, textContent, appendChild) and never use innerHTML.