Retail Assortment Monitoring API: How to Track What Competitors Add, Drop, and Carry

TLDR: A retail assortment monitoring API tells you which products a retailer carries and when that range changes: launches, delistings, new variants and category moves. Buy a vendor feed when you need matched coverage of many big-box retailers. Build when competitors expose public catalogs. In our 14 November 2026 test of ten Shopify stores, the update timestamps were useless as change signals, so diff stable product IDs against a validated baseline.
What does a retail assortment monitoring API measure?
Assortment is the set of products and variants a retailer offers, cut by category, brand and price band, and tracked over time. It answers questions price data cannot: did a competitor add a running line, drop half its kids' range, or start carrying a brand you thought was exclusive? Price is a separate job, covered in our guide to price monitoring APIs, and attributes are covered in what a product data API returns. This page is about presence.
A useful monitor emits events, not raw catalogs. The vocabulary below adapts the one in Web Scraper's assortment monitoring guide (we added variant_removed and returned), which makes the key distinction well: "Not observed in this snapshot" is evidence, while "delisted by the retailer" is a conclusion that usually needs confirmation.
| Event | What it means | Alert on it? |
|---|---|---|
| added | A product ID is present now and absent from the validated baseline | Yes |
| variant_added / variant_removed | A color or size changed inside an existing product | Usually batched daily |
| category_changed | The same product moved to a different type or collection | Only for merchandising teams |
| removal_candidate | Missing from one valid snapshot | No; wait |
| confirmed_removed | Missing from two or more valid snapshots in a row | Yes |
| returned | A confirmed removal came back | Yes, it often signals a relaunch |
From those events come the metrics range planners use, such as additions and confirmed removals per period, overlap with your catalog and competitor exclusives. Keep groups and variants as separate counts: ten colors of one shoe are one product group and ten variants, and mixing them makes a retailer look like it doubled its range overnight.
Where can assortment data come from?
Six sources are practical, and they differ most in the change signal they give.
| Source | What you get | Change signal | Main limit |
|---|---|---|---|
| Official retailer API (for example Best Buy) | Full catalog with categories | Strong: new marks products added in the last 30 days; startDate, active, activeUpdateDate, itemUpdateDate | Only some retailers publish one |
Platform storefront feeds (Shopify /products.json and /products/{handle}.js) | Every product the store exposes, with variant IDs | Weak: diff IDs yourself, because the timestamps mislead (see below) | 25,000-product ceiling; products.json is not formally documented |
| Sitemaps | Every indexable product URL | Weak: new URLs appear, but Shopify's files carry one lastmod each | Market duplicates; no product data |
| Category and listing pages | What a shopper can actually buy | Good for removals | Pagination, rendering, bot walls |
| Vendor feeds (ShopSavvy, Minderest, SKUmio, Crawlr) | Catalog, stock and price history; several add product matching | Delivered for you, as events or histories | Cost; their coverage and matching rules |
| Web search | Which sellers list a given product | Discovery only | Results are candidates, not proof |
Best Buy's documentation shows what a good assortment feed looks like: walk the catalog with cursorMark, pull deltas with itemUpdateDate greater than your last run, and add active=* to catch products that went inactive. Many retailers publish nothing like this.
Listing pages deserve more weight than product pages. PageCrawl's catalog monitoring guide notes that a discontinued product page often stays live for months, while the category listing drops the item on the day merchandising pulls it. Absence from the list is the signal to trust.
What did ten Shopify catalogs show?
On 14 November 2026 we pulled the complete public catalogs of ten Shopify stores (Allbirds, Gymshark, ColourPop, Brooklinen, Rothy's, Death Wish Coffee, tentree, Kylie Cosmetics, Outdoor Voices and Chubbies): 17,493 products and 104,176 distinct variant IDs. We also pulled their sitemaps, sampled product pages, and paged through Fashion Nova to find the ceiling. Five findings matter.
The update timestamps are stamped at request time
In all ten stores, updated_at on every product equalled the time of the request that returned it, to within a second. Allbirds stamped all 312 products 05:08 Pacific on one pull and 05:11 three minutes later. The Shopify-generated sitemaps were no better: all 98 product sitemap files across nine stores gave every product URL in the file the same lastmod. Neither field can tell you what changed. Chubbies, which serves its own sitemap instead of Shopify's, is the exception, with 1,129 distinct lastmod values across 1,697 product URLs.
published_at is not a launch date
Across the ten stores, 1,004 products had a published_at in the last 30 days. Of those, 773 were created more than 180 days earlier, and only 64 products in the whole sample had a created_at in the window. Shopify defines createdAt as creation and publishedAt as publication to the online store. Count "new arrivals" from published_at and Gymshark appears to have launched 610 products in a month, though its newest created_at was 1 September 2026.
Large catalogs hit a 25,000-product wall
Fashion Nova returned full pages of 250 up to page 100, then HTTP 400 on page 101. That matches the 25,000-item pagination limit Shopify announced for Liquid and the Storefront GraphQL API in its June 2025 changelog, which does not mention products.json. The feed sorts by published_at, newest first, in every catalog we pulled, including all 10,414 adjacent pairs at Gymshark. So the reachable slice of Fashion Nova ended at products published on 13 July 2026, while its product sitemap listed 39,420 URLs. JSONEngine's products.json study documents the workaround: page each collection separately and deduplicate on product ID.
The feed is not the shoppable range
Brooklinen's feed held 509 products, but its sitemap listed 271, and 239 feed products were missing from it: mostly content blocks, checkout bundle parents and feed shell products, with 228 carrying a redirect tag. Rothy's feed held 186 parent listings absent from its sitemap that reuse 6,220 variant IDs from the colorway listings that appear in it. Sitemaps inflate in the other direction: Rothy's lists 15,452 product URLs for 567 products, one set per market, and Kylie Cosmetics lists 7,020 for 259. Count unique handles from the default market, and use the sitemap as a filter on what is publicly listed.
SKUs are not keys, but barcodes usually are
SKUs repeat across listings (6,232 at Rothy's alone), and Rothy's even repeats variant IDs. Product IDs never repeated, so key your baseline on them and filter parent and shell listings out before counting variants. Matching across retailers needs a barcode. products.json omits it, but Shopify's documented Ajax Product API returns barcode per variant. In a sample of 3,971 variants from 60 listed products at each of nine stores (Chubbies answers 404 to the endpoint), 3,810 carried a barcode and 3,523 of those passed the GS1 check digit. The spread is what matters. Allbirds and Gymshark passed every variant. Death Wish Coffee filled 68 of 175, with gift-card codes such as GIFT25 among the failures. None of ColourPop's 59 filled barcodes passed, and 56 were internal codes like FG007655. In JSON-LD, only Rothy's, Death Wish Coffee and Outdoor Voices published a valid GTIN on the three product pages we sampled per store; ColourPop's gtin field held its internal code.
How do you match products across retailers?
Overlap and gap analysis needs the same product recognized in two catalogs. Work down a ladder and record which rung produced each match.
| Rung | Key | Precision | Watch for |
|---|---|---|---|
| 1 | GTIN that passes the check digit | High | Internal codes stored in the barcode field; pack sizes with different GTINs |
| 2 | Brand plus manufacturer part number | High within a brand | Retailers that rewrite or drop the MPN |
| 3 | Normalized title plus key attributes (size, color, capacity) | Medium | Bundles, renamed products, own-brand lookalikes |
| 4 | Human review of rung 3 candidates | High, slow | Cost per match |
Validate barcodes before using them. GS1's worked example shows the rule: weight the digits before the check digit 3 and 1 in turn, starting with 3 next to it, sum them, and round up to the next ten. A barcode that fails is not a usable GTIN: it may be an internal code or a typo, and either produces confident false matches. Minderest says its AI matching handles identical, similar and even own-brand products, which is the rung 3 and 4 work in the table, while ShopSavvy's data API page advises matching on barcodes from your own catalog. The check and the Ajax lookup fit in a few lines, saved here as gtin.py.
import json, re, urllib.request
def gtin_valid(code):
"""GS1 check digit for GTIN-8, -12, -13 and -14."""
code = (code or "").strip()
if not re.fullmatch(r"\d{8}|\d{12,14}", code):
return False
digits = [int(c) for c in code]
total = sum(d * (3 if i % 2 == 0 else 1)
for i, d in enumerate(reversed(digits[:-1])))
return (10 - total % 10) % 10 == digits[-1]
def shopify_barcodes(store, handle):
"""{variant id: barcode} from the Ajax Product API, keeping only barcodes that pass the check."""
req = urllib.request.Request(f"https://{store}/products/{handle}.js",
headers={"User-Agent": "assortment-monitor/1.0 (contact: [email protected])"})
try:
with urllib.request.urlopen(req, timeout=30) as r:
product = json.load(r)
except (OSError, ValueError): # HTTP error, timeout, or a body that is not JSON
return None
return {str(v["id"]): v["barcode"].strip() for v in product.get("variants", [])
if gtin_valid(v.get("barcode"))}
How do you build a monitor that does not cry wolf?
Four rules keep false alerts down. First, the first run saves a baseline and emits nothing. OctoWatch's Shopify tracking write-up notes that otherwise a 400-product store "launches" 400 products on day one. Second, validate every snapshot before you diff it or save it as a baseline: a truncated feed, a failed page or a sudden 20% drop means the scrape broke, not the range. Third, never confirm a removal from one missing observation. Fourth, key on stable IDs, not titles or SKUs.
The script below, monitor.py, applies those rules to Shopify's public feed with only the Python standard library. It stops on an empty page, never a short one, rejects broken or shrunken snapshots (including on the first run), keeps only products the default market's sitemap lists, and holds removal candidates until a second valid run confirms them.
import http.client, json, os, re, time, urllib.error, urllib.request
UA = {"User-Agent": "assortment-monitor/1.0 (contact: [email protected])"}
MAX_DROP = 0.20 # refuse a snapshot that shrinks more than 20% at once
CONFIRM_RUNS = 2 # absent from 2 valid snapshots in a row = confirmed removal
def fetch(url, tries=4):
"""GET with retries on 429 and 5xx. Returns (status, body); status 0 means no answer."""
status, body = 0, b""
for attempt in range(tries):
try:
req = urllib.request.Request(url, headers=UA)
with urllib.request.urlopen(req, timeout=30) as r:
return r.status, r.read()
except urllib.error.HTTPError as e:
status, body = e.code, b""
if e.code != 429 and e.code < 500:
break
except (OSError, http.client.HTTPException):
status, body = 0, b""
if attempt < tries - 1:
time.sleep(5 * (attempt + 1))
return status, body
def get_json(url):
status, body = fetch(url)
if status != 200:
return status, None
try:
return status, json.loads(body)
except ValueError: # a 200 that is not JSON: bot wall, password page
return status, None
def shopify_snapshot(store):
"""Whole public catalog as {product id: record}, plus a problem string or None."""
products = {}
for page in range(1, 102): # page 101 would pass 25,000 products
status, body = get_json(f"https://{store}/products.json?limit=250&page={page}")
if status == 400 and page > 100:
return products, "truncated at 25,000 products"
if status != 200 or not isinstance(body, dict) or "products" not in body:
return products, f"bad response (HTTP {status}) on page {page}"
if not body["products"]: # an empty page ends the catalog, a short one does not
return products, None
for p in body["products"]:
products[str(p["id"])] = {
"handle": p["handle"],
"title": p["title"],
"type": p.get("product_type") or "",
"variants": sorted(str(v["id"]) for v in p["variants"]),
}
time.sleep(1)
return products, "paging did not end"
def listed_handles(store):
"""Handles in the default market's product sitemaps: what a shopper can reach."""
status, index = fetch(f"https://{store}/sitemap.xml")
if status != 200:
return None
handles = set()
for loc in re.findall(r"<loc>([^<]+)</loc>", index.decode("utf-8", "replace")):
if not re.match(r"https://[^/]+/sitemap_products_\d+\.xml", loc):
continue # skips pages, blogs and other markets (/en-ca/...)
status, xml = fetch(loc.replace("&", "&"))
if status != 200:
return None
found = re.findall(r"<loc>https://[^/<]+/products/([^/<?#]+)", xml.decode("utf-8", "replace"))
handles.update(found)
time.sleep(1)
return handles or None
def diff(state, snapshot, problem):
"""Compare a snapshot with the last validated baseline and emit events."""
if problem or not snapshot: # never baseline or diff a broken scrape
return [], "snapshot rejected: " + (problem or "no products")
base = state.get("products")
if base is None: # first valid run: baseline only
state.update(products=snapshot, missing={})
return [], "baseline saved"
missing = state.get("missing", {})
seen_last = sum(1 for pid in base if pid not in missing)
if len(snapshot) < seen_last * (1 - MAX_DROP):
return [], f"snapshot rejected: {len(snapshot)} products vs {seen_last}"
events = []
for pid, p in snapshot.items():
old = base.get(pid)
if old is None:
kind = "returned" if pid in missing else "added"
events.append((kind, pid, p["title"]))
missing.pop(pid, None)
continue
missing.pop(pid, None)
new_v = set(p["variants"]) - set(old["variants"])
gone_v = set(old["variants"]) - set(p["variants"])
if new_v:
events.append(("variant_added", pid, f'{p["title"]} +{len(new_v)}'))
if gone_v:
events.append(("variant_removed", pid, f'{p["title"]} -{len(gone_v)}'))
if p["type"] != old["type"]:
events.append(("category_changed", pid, f'{old["type"]} -> {p["type"]}'))
kept = dict(snapshot)
for pid, old in base.items():
if pid in snapshot:
continue
runs = missing.get(pid, 0) + 1
missing[pid] = runs
if runs >= CONFIRM_RUNS:
events.append(("confirmed_removed", pid, old["title"]))
else:
events.append(("removal_candidate", pid, old["title"]))
kept[pid] = old # stay in the baseline until confirmed
state.update(products=kept, missing=missing)
return events, "ok"
def run(store, state_dir="state", use_sitemap=True):
os.makedirs(state_dir, exist_ok=True)
path = os.path.join(state_dir, store + ".json")
state = {}
if os.path.exists(path):
with open(path) as f:
state = json.load(f)
snapshot, problem = shopify_snapshot(store)
if use_sitemap and not problem:
listed = listed_handles(store)
if listed is None:
problem = "sitemap unavailable"
else:
snapshot = {pid: p for pid, p in snapshot.items() if p["handle"] in listed}
events, note = diff(state, snapshot, problem)
with open(path + ".tmp", "w") as f: # write then rename, so a crash cannot corrupt state
json.dump(state, f)
os.replace(path + ".tmp", path)
return events, note
if __name__ == "__main__":
import sys
for store in sys.argv[1:]:
events, note = run(store)
print(store, note, len(events))
for e in events[:20]:
print(" ", *e)
We ran it live on 14 November 2026 against Allbirds, Brooklinen, Death Wish Coffee, Kylie Cosmetics and Outdoor Voices, at 13:21 and 13:36 UTC. The first run baselined 1,439 products, with Brooklinen's 509 feed products cut to the 270 its sitemap lists. The second validated 1,439 and emitted 0 events; the timestamps that change on every product never reached the diff. Thirty-six offline tests cover every event and every way a snapshot can be rejected, and ten deliberate breakages were each caught. Bombas, which we left out, answered our first request with HTTP 429, so the script retries 429s with a growing pause and gives up after four tries.
Where do the You.com APIs fit?
Many retailers have no public feed, so the listing page is the only record of the range. The You.com Contents API turns those pages into clean Markdown. Per the API reference, you POST https://ydc-index.io/v1/contents with urls, formats, max_age and crawl_timeout. The Contents guide says to pass up to 10 URLs per request and that a URL that fails to crawl comes back with null markdown. max_age: 0 skips the cache, and crawl_timeout runs from 1 to 60 seconds. Pricing is $1.00 per 1,000 pages, per the billing docs as of November 2026. The function below, contents_listing.py, fetches category pages, pulls product links that match a URL pattern, and returns them in the record shape the monitor uses, so the same diff handles both.
import json, os, re, urllib.request
from urllib.parse import urljoin
CONTENTS = "https://ydc-index.io/v1/contents"
LINK = re.compile(r"\[([^\]]{3,200})\]\(([^)\s]+)\)")
def norm(url):
return url.split("#")[0].rstrip("/")
def fetch_markdown(urls, crawl_timeout=30):
"""POST 10 URLs per call. Returns ({url: markdown or None}, problem or None)."""
out, problems = {}, []
for i in range(0, len(urls), 10): # the Contents guide: 10 URLs per request
batch = urls[i:i + 10]
body = json.dumps({"urls": batch, "formats": ["markdown"],
"max_age": 0, "crawl_timeout": crawl_timeout}).encode()
req = urllib.request.Request(CONTENTS, data=body, headers={
"X-API-Key": os.environ["YDC_API_KEY"],
"Content-Type": "application/json"})
try:
with urllib.request.urlopen(req, timeout=crawl_timeout + 30) as r:
pages = json.load(r)
if not isinstance(pages, list):
raise ValueError("response is not a JSON array")
except (OSError, ValueError) as e: # HTTP error, timeout, or a body that is not JSON
problems.append(f"request failed: {e}")
continue
got = {norm(p.get("url") or ""): p.get("markdown") for p in pages}
for url in batch: # match by URL, not position; a URL can be missing
out[url] = got.get(norm(url))
return out, "; ".join(problems) or None
def listing_snapshot(listing_urls, product_pattern, min_per_page=1):
"""Product links found on category pages, in the record shape the monitor's diff expects."""
pages, problem = fetch_markdown(listing_urls)
problems = [problem] if problem else []
products = {}
for url in listing_urls:
md = pages.get(url)
if not md:
problems.append(f"no content: {url}")
continue
found = 0
for title, target in LINK.findall(md):
link = norm(urljoin(url, target.split("?")[0]))
if re.search(product_pattern, link):
products.setdefault(link, {"handle": link, "title": title.strip(),
"type": url, "variants": []})
found += 1
if found < min_per_page:
problems.append(f"{found} product links on {url}")
return products, "; ".join(problems) or None
The Contents API fetches pages you name. Its only inputs are urls, formats, max_age and crawl_timeout, so it cannot discover category URLs or follow pagination, and you list every page, including page 2 and beyond. Our explainer on what a web crawler does covers the difference, and our Contents API in Python guide adds retries and a fuller batch client. A login wall or a 404 comes back null, the reference says a too-long PDF can be left out of the response array, and it documents no response order. So the function matches results to your URLs by address and treats a missing or empty page as a failed snapshot, not an empty category. We tested it offline against a mocked endpoint, not with paid live calls.
The Web Search API answers the brand-side question: which sellers list my products? On 14 November 2026 we ran six product names (Allbirds, Death Wish Coffee, Kylie Cosmetics, Gymshark, Rothy's and tentree) through You.com search on the free MCP profile, each with the brand's own domain excluded. Of 115 results, 65 were product pages at other sellers, among them Amazon, Walmart, Target, Ulta and Zappos. Another 26 came from the brands' own regional storefronts, such as allbirds.co.nz and tentree.ca, so exclude every domain a brand sells from, and 15 were reviews or editorial. To check a known retailer list, the search reference allows include_domains with up to 500 domains, though not together with exclude_domains. Unauthorized sellers are covered in our guide to MAP violation monitoring.
Should you build or buy?
Run the numbers on your own scope. Take 10 retailers with no feed, 40 category URLs each, and an average of 3 pages per category. That is 1,200 pages, or 120 Contents calls, per run, and 36,000 pages a month at a daily cadence: $36 a month at $1.00 per 1,000. Checking 500 products weekly for new sellers is about 2,170 searches a month, or $10.85 at the Web Search API's $5.00 per 1,000 calls. Shopify feeds cost only compute. The bill you will notice is engineering time for page lists, matching and review.
Vendors price differently. ShopSavvy lists a Starter plan at $49 a month for 1,000 credits, and its worked example puts 200 products refreshed daily across every retailer at 18,200 credits, which fits its $499 Scale plan. The Apify assortment change monitor, a community-maintained Actor, charges $0.50 per 1,000 products compared plus $0.01 per run, but it compares datasets you supply, so you still need a scraper. SKUmio sells by quote, checks as often as every 2 hours and bills only for successful checks. Prices are as listed in November 2026; Crawlr and Minderest publish none.
| Your situation | Start with |
|---|---|
| Competitors are mostly Shopify or headless Shopify brands | Build on public feeds, filtered by sitemap |
| A few key retailers with official APIs | Use their API deltas first |
| Category pages with no feed, at a retailer count you can maintain page lists for | Build on listing pages with the Contents API |
| Dozens of big-box retailers behind bot walls, or you need years of history | Buy a vendor feed |
| You need own-brand or lookalike matching | Buy, or budget for human review |
| You only need to know who sells your products | Web search plus confirmation fetches |
Whichever route you pick, demand written event definitions, a rule for confirming removals, a coverage check on every snapshot and a record of which match rung produced each pair. A feed that cannot show those is a list, not a monitor.
Frequently Asked Questions
Retail assortment monitoring tracks which products and variants a retailer offers and how that range changes over time. A monitor records additions, confirmed removals, new variants, category moves and returns, then rolls them up into metrics such as active product groups, overlap with your own catalog and competitor exclusives. It is a different job from price monitoring, which tracks what those same products cost each day.
Snapshot the competitor's catalog on a schedule, key it on stable product IDs, and compare each run with the last validated snapshot. A new ID is an addition. A missing ID is only a removal candidate until it stays missing in a second valid snapshot. Category listing pages give the most reliable removal signal, because a discontinued product page often stays online for months.
Yes, for stores under 25,000 products. The public feed lists a store's products with stable IDs, 250 per page, and returns HTTP 400 past 25,000. It is not formally documented, and it includes content blocks and shell listings. Do not trust its timestamps: in our November 2026 test, updated_at equalled the request time, and 773 of the 1,004 recently published products were created more than 180 days earlier. Filter the feed against the store's product sitemap.
Start with GTINs that pass the GS1 check digit, then brand plus manufacturer part number, then normalized titles with size and color, and send uncertain pairs to human review. Validate every barcode before trusting it. In our sample of 3,971 Shopify variants, 3,523 carried a valid GTIN, but none of ColourPop's filled barcodes passed, and most were internal codes that would have produced false matches.
No. The Contents API fetches pages you name, up to 10 URLs per request according to the Contents guide, and returns clean Markdown or HTML at $1.00 per 1,000 pages. It has no parameter for discovering category URLs or following pagination, so for assortment work you supply every listing page and extract product links yourself. A URL that fails to crawl comes back with null content, which your monitor should treat as a failed snapshot.
LI Test
LI Test
Share Article:
Related resources.
.webp)
Search 1B+ professional profiles, 100M+ companies with Knowledge Pro
December 2, 2026
Product Updates

Introducing the You.com Extract API: fetch and parse any URL, with 80% higher accuracy on PDFs
November 17, 2026
Product Updates

FDA Approval Monitoring API: Sources, Lag and a Working Pipeline
November 15, 2026
Blog

Equity Research Automation API: What to Automate and How to Check the Numbers
November 14, 2026
Blog

Retrieval API for Post-Training Data: Leakage, Replay, Cost and Rights
November 12, 2026
Blog
