get_amazon_orders
Download Amazon order history as CSV files for specified date ranges or years, including order summaries, item details, and shipment tracking data for reporting and analysis.
Instructions
Fetch Amazon order history for a specified date range or year. Returns order summaries including: order ID, date, total amount, status, item count, shipping address (7 lines), payment method, and Subscribe & Save frequency. Optionally includes detailed item data (ASIN, name, price, quantity, seller, condition) and shipment tracking. Use for browsing order history or building reports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year to fetch orders from (e.g., 2024). If omitted, uses current year. | |
| region | Yes | Amazon region code. Supported: us, uk, ca, de, fr, es, it, nl, jp, au, mx, in, ae, sa, ie, be | |
| end_date | No | End date in ISO format (YYYY-MM-DD). Overrides year if provided. | |
| max_orders | No | Maximum number of orders to fetch. Use to limit results for large accounts or avoid timeouts. | |
| start_date | No | Start date in ISO format (YYYY-MM-DD). Overrides year if provided. | |
| include_items | No | Extract item details (ASIN, name, price, quantity, seller, condition) from each order's invoice page. Adds ~2s per order. | |
| include_shipments | No | Extract shipment info (delivery status, tracking link) from each order's detail page. Adds ~2s per order. Note: tracking link URL is captured but not the carrier tracking number - use fetch_tracking_numbers for that. | |
| fetch_tracking_numbers | No | Extract actual carrier tracking numbers (e.g., AZ218181365JE) by visiting each shipment's 'Track package' page. Adds ~2s per shipment. Only works when include_shipments is true. |