Get all orders in Shopify to Google Sheets
Last edited 12 days ago
This workflow retrieves all Shopify Orders and saves them into a Google Sheets spreadsheet using the Shopify Admin REST API. It uses pagination to ensure all orders are collected efficiently.
I originally built this workflow for my own use and found it valuable for understanding how Shopify pagination works. Now, I’m sharing it to help others automate their order retrieval process.
How It Works
Instead of relying on the built-in Shopify node (Get Orders Many), this workflow leverages the HTTP Request node to fetch paginated chunks manually.
- Shopify uses cursor-based pagination (page_info) instead of traditional page numbers.
- Pagination data is stored in the response headers, so we need to enable
Include Response Headers and Status
in the HTTP Request node. - You can modify the limit parameter to control batch sizes and optimize for rate limits.
- This workflow can be run on demand or scheduled to keep your data up to date.
Parameters
You can adjust these parameters in the HTTP Request node:
- limit – The number of orders per request (default: 50, max: 250).
- fields – Comma-separated list of fields to retrieve.
- page_info – Used for pagination; only limit and fields are allowed when paginating.
📌 Note: when you query the paginated chunks with page_info
, only the limit and fields parameters are allowed
Credentials
- Shopify API Key – Required for authentication.
- Google Sheets API credentials – Needed to insert data into the spreadsheet. 💾 Clone the Google Sheets template here
Who Is This For?
- Shopify store owners who need to export all orders to Google Sheets.
- Users who want full control over API parameters for optimized queries.
- Anyone looking for a flexible and scalable Shopify data extraction solution.
Explore More Templates 👉 Check out my other n8n templates
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!