How to track Shopify prices with products.json
You want to know what a Shopify store is selling, and what it charges — maybe your own catalog, maybe a competitor's public storefront. You do not need a browser extension for that. Many Shopify stores already expose a J
You want to know what a Shopify store is selling, and what it charges — maybe your own catalog, maybe a competitor's public storefront. You do not need a browser extension for that. Many Shopify stores already expose a JSON feed at /products.json with titles, variants, prices and whether each variant is available.
This guide is for anyone who wants to track Shopify prices with products.json, and then do something similar on WooCommerce or across several shops. By the end you will have a short script for the free feed, a note on using it responsibly, and one option when the feed is blocked or you want price and stock changes over time.
We at SteadyUtil built Shopify & WooCommerce Product Tracker.
Please use only public product listings, respect each store's terms and robots.txt, and leave a pause between requests. Do not log in, do not touch cart or checkout endpoints, and do not collect customer data. This is not legal advice; follow the rules that apply to you.
The free way: Shopify products.json
On many Shopify storefronts you can open:
https://www.example-store.com/products.json?limit=250&page=1
The response is a JSON object with a products array. Each product has a variants list. The fields that matter for a price list are usually:
-
title,handle,vendor,product_type,tags -
variants[].id,sku,price,compare_at_price,available
price is a string in the store's base currency (for example "45.00"). compare_at_price is the crossed-out “was” price when the store sets one. available is a boolean; exact inventory counts are usually not in this feed.
This feed is not a formally documented Shopify public API. Some stores leave it open, and some disable it, put it behind a bot check, or disallow it in robots.txt. If the store blocks it, skip that shop — do not try to work around the block.
Pagination uses limit (up to 250) and page. Keep incrementing page until a response comes back with an empty products list, and wait between pages.
A minimal Python example for the first page of a store that still publishes the feed:
import json
import urllib.request
# Replace with a store you have a reason to query, after checking robots.txt
url = "https://www.deathwishcoffee.com/products.json?limit=250&page=1"
req = urllib.request.Request(
url,
headers={"User-Agent": "shopify-woo-howto/1.0 ([email protected])"},
)
with urllib.request.urlopen(req, timeout=30) as response:
data = json.load(response)
for product in data.get("products", []):
prices = [variant.get("price") for variant in product.get("variants", [])]
available = any(variant.get("available") for variant in product.get("variants", []))
print(product["title"], "|", prices, "|", "in stock" if available else "sold out")
To watch a single collection instead of the whole catalog, the same pattern often works at /collections/{handle}/products.json. To see the store name and currency, many shops also publish /meta.json.
To turn a snapshot into a simple Shopify competitor price tracker, save each variant's id, price and available, then compare the next run with the last one. That is enough for a handful of stores you check occasionally.
WooCommerce, and when products.json is not enough
WooCommerce shops do not have /products.json. The official equivalent is the public Store API:
GET https://www.example-store.com/wp-json/wc/store/v1/products
It is designed for storefronts, and many shops leave it enabled (100 products per request is the usual page size). Some sites expose it as ?rest_route=/wc/store/v1/products instead. Same rules as above: public data only, respect terms and robots.txt, and stop if the shop has turned the API off.
The limitation of both feeds is practical: you need a different recipe per platform, some Shopify stores block products.json, and a snapshot script will not tell you about price drops or restocks unless you build the diff yourself. If you want one table across Shopify, WooCommerce and stores that only publish schema.org Product data — or a scheduled run that outputs only what changed — a single feed URL will not get you there.
One Actor, when you have several stores or a blocked feed
Shopify & WooCommerce Product, Price & Stock Tracker is a SteadyUtil Actor on Apify. It reads Shopify via products.json when the feed is open, and falls back to product sitemaps plus Shopify's per-product .js endpoint or product-page JSON-LD when the feed is blocked. WooCommerce is read through the Store API, with a sitemap + JSON-LD fallback if the API is off. Other shops that publish schema.org Product data (for example some BigCommerce and Magento storefronts) can be read in generic mode.
You can paste a home page, a collection or category, or a single product URL. Filters (keywords, vendor, product type, price range, in stock only, on sale only, and others) run before you pay. You can output one row per product (variants nested) or one row per SKU; you are charged per product either way. A store summary row (counts, price range, top vendors) is included and is not charged.
Open the Actor in Apify Console, or start from a ready-made example:
A typical input looks like this:
{
"startUrls": [
"https://www.deathwishcoffee.com",
"https://auntfannies.com"
],
"maxProductsPerStore": 50,
"inStockOnly": true
}
A shortened product record looks like this (from the Actor documentation, using a Death Wish Coffee sample): title and handle, vendor, product type, currency, price and compare-at price, whether it is on sale and available, variant SKUs and option values, and a dataSource field that tells you whether the row came from products.json or a fallback.
For a recurring price or stock tracker, turn Monitoring mode on, save the input as a Task, and schedule it. Later runs output only new, changed and removed products, with old and new values (and flags such as priceDropped and backInStock). Unchanged products are not charged. If a run hits your product cap or a store fails, the Actor does not treat missing rows as “removed.”
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('steadyutil/shopify-woocommerce-product-tracker').call({
startUrls: [
'https://www.deathwishcoffee.com',
'https://auntfannies.com',
],
maxProductsPerStore: 50,
monitoringMode: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const product of items.filter((item) => item.changeType === 'changed')) {
console.log(product.title, product.previousPrice, '->', product.price);
}
Use it from Claude or Cursor (MCP)
If you already use Claude, Cursor, or VS Code, you can run the same Actor as a tool, without filling in the Apify Console form.
Apify hosts an MCP server at https://mcp.apify.com. Connecting is free. When the Actor runs, the charge goes to your Apify account, at the prices in the section below ($1.00 per 1,000 products, $2.00 per 1,000 changed products in monitoring mode, and $0.002 per store checked, with lower prices on higher Apify plans). Apify's free plan includes $5 of usage each month, and no credit card is required.
The quickest setup is to pin this Actor so it loads as its own tool. This is the configuration Apify shows on the Actor's API → MCP tab:
{
"mcpServers": {
"apify": {
"type": "http",
"url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyutil/shopify-woocommerce-product-tracker"
}
}
}
-
Cursor: paste that into your MCP settings, or run
/add-plugin apifyin chat and click Connect when Cursor opens the Apify sign-in page. -
Claude Code: put it in the project's
.mcp.json, then run/mcpto sign in. Or:claude mcp add apify "https://mcp.apify.com/?tools=fetch-actor-details,steadyutil/shopify-woocommerce-product-tracker" -t http - Claude.ai or Claude Desktop: add a custom connector named Apify, using that same URL. Claude Desktop does not accept a remote MCP URL in its config file. Sign in when the browser opens.
-
VS Code: use the same URL under the
"servers"key (not"mcpServers"), or install the Apify plugin from the agent plugin marketplace.
On first connect, sign in to Apify in the browser (OAuth). You do not need to put an API token in the config. If your client cannot use OAuth, set an Authorization: Bearer <APIFY_TOKEN> header, with a token from API & Integrations in Apify Console.
Then ask, for example: "List in-stock products under $40 from https://www.deathwishcoffee.com, with title, price, compare-at price and variant SKUs. Cap at 30 products."
Cost is controlled with maxProductsPerStore (default 50; set 0 for no limit) and by how many store URLs you pass in startUrls. Start with one store and the default cap.
You can also connect to the default server, https://mcp.apify.com, without pinning this Actor. The agent can then search Apify Store and run it. Official docs: Apify MCP server.
If a store's product sitemap is the way in (because products.json is blocked), you can first get every URL from a website sitemap to see what the shop publishes, then let the Actor follow the product URLs.
Pricing, plainly
Pay per event; you are not billed for Apify compute time. List prices (Free and Bronze plans):
- $1.00 per 1,000 products saved ($0.001 each), including all variants of that product. The first (baseline) monitoring run uses this event.
- $2.00 per 1,000 changed products in monitoring mode ($0.002 each) — new, changed or removed, with old and new values. Unchanged products are free.
-
$0.002 per store checked successfully, once per store per run (
$2.00 per 1,000 stores). - Stores that fail, products dropped by your filters, and store summary rows are not charged.
- If you turn on Apify residential proxy, traffic is billed at $0.012 per MB. Most stores do not need a proxy.
- Apify also applies a small actor-start fee ($0.00005 per GB of memory used for the run, at least one event).
Higher Apify Store plans pay less automatically (for example, Gold and above list the product event at $0.80 per 1,000). A daily monitoring run of one store where 15 products changed costs about $0.032 on the list prices ($0.002 for the store check plus $0.03 for the changes). A check where nothing changed costs $0.002.
Frequently asked questions
What is Shopify products.json, and is it an official API?
It is a public storefront JSON feed many Shopify shops expose at /products.json. It is widely used, but Shopify does not formally document it as a public API, and a shop can disable or block it. Always check robots.txt and the store's terms before you call it.
How do I get all products from a Shopify store?
Request /products.json?limit=250&page=1, then page=2, and so on, until a page comes back empty. Stay under 250 items per request, and pause between pages. If the feed is blocked, this method will not work for that store.
Can I track competitor prices and stock over time?
Yes. Save variant IDs, prices and available from each snapshot and diff them. That is the core of a Shopify competitor price tracker. The Actor's monitoring mode does the same across several stores and also records compare-at price changes, new and removed variants, and back-in-stock / sold-out flags. Availability is usually present; exact “units left” quantities usually are not.
What if the store blocks products.json?
Skip it in a homemade script. The Actor can fall back to the product sitemap and per-product .js or JSON-LD. Some stores will still refuse automated access; respect that.
How do I do the same thing on WooCommerce?
Use the public Store API at /wp-json/wc/store/v1/products when the shop has it enabled. The Actor uses that API, with a sitemap + JSON-LD fallback if it is off.
Why are inventory quantities empty?
Most Shopify stores do not publish exact stock counts on the storefront feed — only available true or false. WooCommerce exposes a quantity mainly when the shop shows “only N left.” Empty inventory fields mean the store did not publish a number, not that the Actor failed to look.
Is it OK to collect this data?
These feeds, and the Actor, read product information that stores already publish for shoppers and search engines. They do not log in, add items to a cart, or collect personal data. Please use only public data, respect robots.txt and each site's terms, and keep request rates polite. This is not legal advice.
If you want to keep going
If one Shopify store still serves products.json, a short script is enough. If you need WooCommerce as well, a blocked-feed fallback, or a scheduled change list, the tracker is on the Apify Store. SteadyUtil is at steadyutil.com, and support is [email protected].
Shopify, WooCommerce and BigCommerce are trademarks of their respective owners. Shopify & WooCommerce Product Tracker is an independent SteadyUtil product and is not affiliated with, endorsed by, or sponsored by any of them.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.