All open source
CLI toolEarlyTypeScript

Shopify exporter

A Shopify image exporter that keeps the catalogue organised

Bulk-downloads Shopify product images by collection or from a product CSV, names them by SKU, and keeps a manifest of what downloaded, what was skipped and what failed. No 100-image cap, and no API key for public storefront exports.

Language

TypeScript

Licence

MIT

Status

Early

Repository

webloomlabs/wbl-exporter

Requires

Node.js 22.6+

Dependencies

None at runtime

Output

Images in folders, plus manifest.csv

Why it exists

Product images should leave a store with their context

Downloading a catalogue one image at a time creates a second job: working out which file belongs to which product. That gets awkward fast when products have several images, variant-specific SKUs, and different availability across markets.

shopify exporter collects the images and keeps that context. It reads a store's public product JSON or an existing product export CSV, writes files into organised folders, and records the source and result of every image in a CSV manifest.

What it does

What Shopify exporter gives you

The short version of the README. The repository has the rest, including what Shopify exporter does not do yet.

Whole collections, page by page

Export one collection, several collection handles, or the public catalogue with all. It requests product pages until one comes back empty, rather than stopping at a fixed image count.

Filenames tied to the product

Named by the image's variant SKU where there is one, then the first variant's SKU, then the product handle, with image position kept. Unsafe characters are replaced, and collisions get numbered suffixes and a warning.

A CSV route for existing exports

Feed it Shopify's products_export.csv and images are grouped by product handle under csv-export. That file has no collections or image-to-variant links, so each product's images use the first row's variant SKU.

Market-by-market collection

Supply country codes to request each market's product list and merge them by product handle, picking up products the default market does not show. The first record seen for each handle is kept.

Downloads you can check and rerun

Four downloads run at once. Temporary network and server errors retry up to three attempts with backoff, and numeric Retry-After values on HTTP 429 are respected. Reruns skip existing non-empty files.

A manifest of the result

manifest.csv records collection, handle, SKU, position, filename, source URL and status. The command prints a summary and exits non-zero if any download failed.

Getting started

Cloning and running it

Needs Node.js 22.6 or later. Live-store mode needs the store's public JSON endpoints to be reachable, and collections not published to the Online Store channel may return no products.

Export collections

git clone https://github.com/webloomlabs/wbl-exporter.git
cd wbl-exporter
npm run export -- --store https://example.com --collections summer-sale,new-arrivals

Export the public catalogue

npm run export -- --store https://example.com --collections all --out ./images

Existing files are checked for non-zero size, not content integrity, so a rerun is not a checksum verification.

From a Shopify CSV export

npm run export -- --csv ./products_export.csv

Built with

What is under it

TypeScriptNode.jsNative fetchNode filesystem APIs

Work with us

Have something you want built?

Small enough to care about the details. Experienced enough to build the difficult parts. Tell us about the problem and we'll come back with a technical direction, scope, and timeline.

You work directly with the people building your product.