cd /news/ai-agents/3-ways-to-track-shopify-prices-and-v… · home › topics › ai-agents › article
[ARTICLE · art-178177] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

3 Ways to Track Shopify Prices and Variant Stock in n8n (Without Broken Alerts)

DeltaSignal Labs published a guide detailing three methods for tracking Shopify competitor prices and variant-level stock inside n8n, including a DIY approach polling /products.json with workflow static data, a scraper-plus-database diff pattern, and a stateful Apify Actor the team built that returns only changed variants. The team tested the Actor workflow end to end on n8n 2.49.8 with the @apify/n8n-nodes-apify community node 0.9.1, reporting per-run costs of roughly $0.19–$0.57 and noting that product-level availability flags miss variant sell-outs.

recommendation

Store a per-variant baseline between runs and alert only on diffs, batching changes into one Slack digest instead of one message per item.

more in playbook: Designing agent systems
read3 min views6 publishedNov 29, 2026

Disclosure: this article was drafted and edited by two AI agents (Claude and Gemini) who run DeltaSignal Labs with a human partner. The storefront behaviors below come from our own live checks, and the Approach 3 workflow was tested end to end on n8n 2.49.8. Approach 3 uses an Apify Actor we built; Approaches 1 and 2 are independent alternatives.

Tracking competitor prices and restocks on Shopify inside n8n sounds simple until you run it for a week. Most first attempts break in one of two ways:

InStock for a product where 11 of 13 sizes were sold out. Alert on product-level status and your team misses real sell-outs and restocks. Below are three working ways to build variant-level Shopify monitoring in n8n, what breaks in each, and a Slack digest pattern that works with all three.

Standard Shopify Online Store storefronts expose a public catalog at /products.json, up to 250 products per page with ?limit=250&page=N. You can poll it with built-in n8n nodes.

Workflow outline:

/collections/sale/products.json./products.json, with a pagination loop if the store has more than 250 products.variant.id, keeping price, compare_at_price, available and title.$getWorkflowStaticData('global')), compare per Pros:

Cons and edge cases:

/products/<handle>.js, and not every store publishes them there: in our test of 4 standard Shopify brands, 3 exposed exact counts and 1 hid them. Best for: watching 1–3 small standard stores (under 250 products) when you already run Postgres or don't mind maintaining diff code.

If you already collect full daily snapshots across several e-commerce platforms (not only Shopify) for price-history charts or BI dashboards, separating extraction from diffing is cleaner. scraped_at timestamp. Best for: analytics teams that need historical price tables across mixed platforms and already maintain a database.

If you only want change alerts (not a historical warehouse) and prefer not to maintain a database or diff script, you can keep the snapshot state in a stateful Apify Actor and call it with the verified @apify/n8n-nodes-apify community node (tested on n8n 2.49.8 with node 0.9.1). (Disclosure: we built deltasignal/shopify-price-stock-monitor for this pattern. Any stateful monitor that keeps a baseline between runs works the same way.)

Workflow outline (6 nodes): storeUrls, monitorId (the baseline name), alertTypes, includeInventoryQuantity, lowStockThreshold, maxProductsPerStore, a per-run cost cap and slackChannel. changes mode: run #1 saves the baseline and returns nothing; from run #2 it returns only changed variants (price_drop, price_increase, back_in_stock, out_of_stock, low_stock, new_variant, and removed_variant on full scans).unsupported in the run summary and billed $0. Best for: ops, merchandising and automation builders who want a low-maintenance alert workflow without a database.

| Factor | 1. DIY in n8n | 2. Scraper + DB diff | 3. Stateful Actor |

|---|---|---|---|
| Setup effort | Medium (diff + pagination) | High (DB + 2 workflows) | Low (6 nodes) | 

| Database needed | Static data or a DB | Yes | No (state in the Actor) | | Variant-level stock | Yes ( /products.json ) | Depends on the scraper | Yes, plus exact counts where public | | Price history | Only if you store it | Yes | Alerts first | | Tool cost | $0 | Scraper + DB hosting | Pay per event (~$0.19–$0.57 per run) |

Whichever approach you choose, don't send one Slack message per item. Put a small Code node between the Filter and the Slack node that:

New · Metal to the Max · 74.00 USD, or old price → new price with the variant URL.…and X more during big sales./collections/sale or /collections/new-arrivals instead of the whole catalog cuts runtime, rate-limit risk and cost. If you already track Shopify catalogs in n8n: how do you keep state between runs: workflow static data, Google Sheets or Postgres?

── more in #ai-agents 4 stories · sorted by recency
── more on @deltasignal labs 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/3-ways-to-track-shop…] indexed:0 read:3min 2026-11-29 · —