Inventory monitoring
Inventory monitoring is tracking whether products are in stock, out of stock or back in stock on retailer and competitor websites, per variant and per store. Zenrows reads availability from protected product pages, sets the store or postcode when stock is local, and rechecks your SKU list on a schedule, so you can alert on every change.
Updated
{
"url": "https://www.example-retailer.com/ip/air-fryer-5qt/30411",
"sku": "30411",
"checked_at": "2026-10-17T07:00:12Z",
"online": {
"status": "out_of_stock",
"previous_status": "in_stock",
"changed_at": "2026-10-17T07:00:12Z",
"message": "Out of stock online"
},
"variants": [
{ "variant": "Black", "status": "out_of_stock" },
{ "variant": "White", "status": "limited", "message": "Only 3 left" }
],
"stores": [
{ "store_id": "1873", "zip": "78704", "pickup": "today", "status": "in_stock" },
{ "store_id": "2210", "zip": "78745", "pickup": null, "status": "out_of_stock" }
],
"price": 79.0,
"currency": "USD"
}
What inventory monitoring teams track
Pricing teams want competitor stockouts; brands, their availability per retailer; buyers, restock alerts.
| Job | Data you collect | Typical sources |
|---|---|---|
| Competitor stockout detection | Out-of-stock status and duration per SKU | |
| Retail availability for brands | Whether your products are buyable, per retailer and region | Retailer product pages per market |
| Store-level stock | Availability and pickup per store or postcode | |
| Restock and drop alerts | Unavailable to available, timestamped | Sneaker, toy, console and collectible pages |
| Distributor stock and lead times | Quantity on hand, lead time, minimum order | Mouser, Digi-Key |
| Low-stock signals | "Only N left" and quantity limits | Product pages, cart quantity selectors |
Why stock monitoring gives false readings
The costly error is a false out-of-stock: a blocked or half-loaded page logged as unavailable, firing needless alerts and repricing.
No status in the raw HTML
Browser rendering waits for the stock element, or returns the stock XHR call itself
A CAPTCHA page lacks "Add to cart", so it reads as out of stock
Zenrows' stealth gets through Akamai and PerimeterX; a failure returns an error status to retry
Availability differs by store, ZIP or postcode
Browser sessions pick the store; geotargeting sets the country
The default colour is in stock, yours is not
Render every variant, or fetch each variant's URL
A restock sells out between daily checks
Batch rechecks large lists more often
How to monitor inventory with Zenrows
- List what to watch: URL, variant and, for local stock, store IDs or postcodes.
- Read the status with Adaptive Stealth Mode and a CSS selector.
- Set the location when stock is local: pick a store or postcode in a Browser session.
- Recheck on a schedule in Batch every few hours; compare with the last status.
- Alert on changes only, treating a failed request as unknown, never out of stock.
# pip install requests
import json
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": PRODUCT_URL,
"mode": "auto", # Adaptive Stealth Mode
# example selectors: replace them with the retailer's own
"css_extractor": json.dumps({
"availability": "[data-testid='fulfillment']",
"add_to_cart": "button.add-to-cart",
}),
}
r = requests.get("https://api.zenrows.com/v1/", params=params)
if r.ok:
print(r.json()) # status text and whether the button exists
else:
print("unknown, retry later:", r.status_code)// npm install playwright
import { chromium } from "playwright";
const browser = await chromium.connectOverCDP(
"wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY"
);
const page = await browser.newPage();
await page.goto(PRODUCT_URL);
// Choose the store whose stock you want to read (example selectors)
await page.click("button.change-store");
await page.fill("input[name='zip']", "78704");
await page.click("button.store-search");
await page.click(".store-result:first-child button.select");
const status = await page.textContent(".fulfillment-pickup");
console.log({ zip: "78704", status });
await browser.close();npx -y @zenrows/cli init
# One product's availability as a field
zenrows extract PRODUCT_URL --css '{"availability":".availability-message"}'
# Every few hours: jobs.jsonl holds one {"url": "..."} line per SKU and variant
zenrows batch create jobs.jsonl --wait
zenrows batch results JOB_ID --out stock.jsonl# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
# Then ask:
Use Zenrows to check these five Walmart and Target product pages and tell me, for each one, whether it is in stock online, which variants are out of stock, and any "Only N left" message shown.Which Zenrows product fits
- Check online availability on a product page FetchA CSS selector returns the stock message as a field
- Read stock for one store or postcode BrowserPlaywright or Puppeteer uses the store picker
- Recheck thousands of SKUs every few hours BatchOne job per run, results by webhook
- Ask an agent whether items are available MCP ServerClaude and other MCP clients check pages on request
What success looks like
| Measure | What good looks like | How to check it |
|---|---|---|
| Detection lag | Changes appear within one check interval | Change timestamps against the schedule |
| False out-of-stock rate | Recorded stockouts are real on the page | Weekly manual check of a sample |
| Unknown rate | Failed checks stay small, visible and retried | Unknown checks per retailer |
| Variant and store coverage | Every tracked variant and store fresh each cycle | Missing rows per run |
| Alert precision | Alerts on real flips, not flicker | Alerts reversed by the next check |
| Run time per cycle | The full list done well inside the interval | Batch job duration against the gap to the next run |
Inventory monitoring FAQ
-
Tracking availability on other stores: in stock, out, limited or back, and where. Retailers reprice on competitor stockouts, brands check they are buyable, resellers get restock alerts.
-
As fast as stock moves: daily for furniture or industrial parts, every few hours for electronics, toys and grocery promotions, every few minutes for a limited release on a small URL list.
-
Only when shown: "Only 3 left", cart limits, a distributor's quantity on hand. Capture those as fields; otherwise record the status and when it changed.
-
Stock follows the session's store. In a Browser session, pick the store or postcode and read pickup status, per store. Where the URL or a cookie sets the store, plain Fetch works.
-
Log failed requests as unknown and retry. Confirm an element only real product pages have before reading status. For high-value items, alert after two consecutive readings.
-
Recheck your URLs often: minutes for limited releases, hours for everyday items. Store timestamped statuses; alert on two consecutive unavailable-to-available readings, with URL and variant, so the buyer acts before it sells out.