Dynamic pricing data
Dynamic pricing is a strategy where prices change automatically with market conditions: competitor prices, stock levels and demand. Zenrows supplies the engine's market inputs, fetching competitor pages on demand or in scheduled Batch runs and returning price, stock and delivery fields as JSON for your repricing rules.
Updated
{
"sku": "HDP-900-WHT",
"requested_at": "2026-10-17T11:15:02Z",
"our_price": 189.0,
"floor": 159.0,
"ceiling": 219.0,
"competitors": [
{ "site": "retailer-a.example", "price": 179.0, "in_stock": true, "delivery_fee": 0.0, "captured_at": "2026-10-17T11:15:04Z" },
{ "site": "retailer-b.example", "price": 174.99, "in_stock": false, "delivery_fee": 4.99, "captured_at": "2026-10-17T11:15:05Z" },
{ "site": "marketplace.example", "price": 182.5, "in_stock": true, "offers": 6, "captured_at": "2026-10-17T11:15:06Z" }
],
"lowest_in_stock_delivered": 179.0,
"competitors_out_of_stock": 1,
"bestseller_rank": 38,
"inputs_valid": true
}
What dynamic pricing teams collect
An engine is only as current as its inputs: competitor signals in, your rules applied within your floors and ceilings.
| Job | Data you collect | Typical sources |
|---|---|---|
| Competitor price inputs | Selling price per matched SKU | |
| Competitor stock-outs | Stock per competitor and variant | Competitor product pages |
| Delivered price | Delivery fee, free-delivery threshold, date | Product and checkout-preview pages |
| Marketplace pressure | Offer count, lowest offer, featured offer price | |
| Demand signals | Bestseller rank, search position, review growth | |
| Travel and event pricing | Fares, room rates, resale tickets by date | Airline sites, |
Why dynamic pricing data fails
The engine acts on whatever it gets.
A stale price triggers a needless cut; a missing stock flag gives away margin when a rival is sold out.
Hourly repricing on yesterday's prices
Fetch reads the live page; Batch sweeps the list at your cycle
"Out of stock" appears only after rendering
Adaptive Stealth Mode renders when needed, and a full render can wait for the availability element
Price and inventory load from a JSON call
Zenrows captures the XHR calls so you read the values directly
Challenges on repeated checks, often in sales events when prices move most
Zenrows' stealth gets through Akamai, PerimeterX (HUMAN), AWS WAF and Cloudflare
"See price in cart" read as zero
CSS selectors name each field; your validation drops missing or non-numeric prices
Price depends on size, postcode or configuration
Browser makes the selection in a real browser first
How to feed a dynamic pricing engine
- Map inputs to SKUs: competitor URLs, fields needed, and how fresh each must be.
- Sweep the full list on a schedule in Batch, with a webhook that starts the engine when results land.
- Check on demand before big moves: re-fetch the deciding pages before any change above your set amount.
- Validate before you reprice: reject missing prices, odd currencies and out-of-range jumps; keep the last good value and its timestamp.
// Node 18+ (save as check-prices.mjs)
const fields = JSON.stringify({ price: ".price-now", stock: ".stock-status" });
async function competitorPrice(url) {
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url,
mode: "auto", // Adaptive Stealth Mode
css_extractor: fields,
});
const res = await fetch(`https://api.zenrows.com/v1/?${params}`);
return { url, capturedAt: new Date().toISOString(), ...(await res.json()) };
}
const inputs = await Promise.all(COMPETITOR_URLS.map(competitorPrice));
console.log(inputs);curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"css_extractor": "{\"price\":\".price-now\",\"stock\":\".stock-status\"}"
},
"webhook": { "url": "https://your-app.example/webhooks/zenrows" },
"tasks": [
{ "url": "COMPETITOR_URL_1", "external_id": "HDP-900-WHT|retailer-a" },
{ "url": "COMPETITOR_URL_2", "external_id": "HDP-900-WHT|retailer-b" }
]
}'npx -y @zenrows/cli init
# Confirm one competitor price before a large move
zenrows extract COMPETITOR_URL --css '{"price":".price-now","stock":".stock-status"}'
# inputs.jsonl: one {"url": "..."} per competitor page, swept each cycle
zenrows batch create inputs.jsonl --wait
zenrows batch results <job-id> --out inputs-results.jsonl# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
# Then ask:
Use Zenrows to read the current price, stock status and delivery fee for
the HDP-900 headphones on these five competitor product pages, and return
a table sorted by price with the time each page was read.Which Zenrows product fits
- Confirm competitor prices before repricing FetchCurrent price and stock as named fields, one request per page
- Refresh every input at your repricing cadence BatchOne job for the list; a webhook tells your engine when it is done
- Read prices behind size, postcode or configuration BrowserPlaywright or Puppeteer make the selection in a real browser
What success looks like
| Measure | What good looks like | How to check it |
|---|---|---|
| Input freshness | Every input younger than one repricing cycle | Log each input's captured_at beside each price change |
| On-demand latency | Lookups fit inside the repricing run | Response times per domain; watch the slowest five percent |
| Competitor coverage | Inputs from every competitor in each SKU's set | Share of SKUs with a full set per run |
| Input validity | Almost no missing or implausible values reach the engine | Validation rejects per run and domain |
| Stock signal accuracy | Stock-outs caught within one cycle | Spot-check flags against the live page |
| Sweep duration | A full sweep well inside one cycle | Batch start and finish against cycle length |
Dynamic pricing FAQ
-
Prices that change automatically with competitor prices, your stock, competitor stock, demand, time of day or season. Retailers, marketplaces, airlines, hotels and ticket sellers use it: an engine applies rules or models within floors and ceilings you set.
-
External: competitor prices and availability, delivery fees and dates, offer counts, demand signals like bestseller rank. Internal: cost, stock, sales velocity, margin targets. Scraping supplies the external side.
-
As fresh as your repricing cycle: on an hourly engine, older inputs can trigger moves the market no longer supports. Sweep at that cadence and check the deciding pages on demand.
-
Both. Scheduled Batch keeps inputs current, and a webhook can start the engine. On-demand Fetch confirms a rival's price before a large cut or during a sales event.
-
Monitoring reports competitor prices to people; dynamic pricing acts on them, so it needs tighter freshness, validation per decision, and a record of which inputs drove which change. See competitor price scraping.
-
By GTIN, UPC, EAN or part number, often in specs or structured data; otherwise by brand, model, size and pack count, with uncertain matches checked by a person first. Date each match and recheck when a competitor changes title or images.
-
Repricing your own products is legal in most places and common in retail and travel. Some sectors and countries limit changes in emergencies, require clear price display, or restrict pricing on personal data. Ask your legal team.