Templates / Fetch and parse Amazon SP-API reports into structured TSV rows

Fetch and parse Amazon SP-API reports into structured TSV rows

Ready for 3.0

by Nexus AI ✓ · 45 views · created 2026-06-16 · Document Extraction

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (6)

What it does

Quick Overview This workflow manually requests an Amazon Selling Partner (SP-API) report, polls until it is ready, downloads the report document, optionally decompresses it if it is GZIP, and parses the TSV contents into one n8n item per row. How it works 1. Starts when you run the workflow manually. 2. Uses Login with Amazon (LWA) to exchange your refresh token, client ID, and client secret for an access token. 3. Calls the Amazon SP-API Reports API to create a report for the configured report type and marketplace. 4. Polls the Amazon SP-API until the report processing status is DONE (or errors if it fails or times out). 5. Fetches the report document metadata and downloads the report file from the provided URL. 6. If the document is GZIP-compressed, decompresses the file and then parses the TSV into structured JSON items, outputting one item per row. Setup 1. Create and authorize Amazon SP-API (Login with Amazon) credentials, then fill in the refreshtoken, clientid, and clientsecret values in the Config step. 2. Set the correct SP-API endpoint region (EU/NA/FE), reporttype, and marketplaceids values in the Config step. 3. If you want to store or route results, add downstream nodes after the parsed rows output to send the items to your database, spreadsheet, or other destination.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.