Shopify Price and Availability Anomaly Desk avatar

Shopify Price and Availability Anomaly Desk

Pricing

from $20.00 / 1,000 anomaly reports

Go to Apify Store
Shopify Price and Availability Anomaly Desk

Shopify Price and Availability Anomaly Desk

Paste one Shopify store URL to baseline its public product feed, then compare repeat runs to find severity-ranked price and stock anomalies grouped by product family, with before-after records and JSON/CSV reports.

Pricing

from $20.00 / 1,000 anomaly reports

Rating

0.0

(0)

Developer

Practical AI Lab

Practical AI Lab

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Give this Actor one public Shopify store URL. The first run saves a baseline of the store's public product feed. Every later run compares the store with the previous run and returns severity-ranked price and availability anomalies, grouped by product family, with before-and-after values and ready-to-share JSON and CSV reports.

It is built for ecommerce operations analysts who need to answer: "What changed on this storefront since last time, and which changes need a human right now?"

What makes it different from a product scraper

A product scraper returns a catalog. This Actor returns decisions from changes between runs:

  • Multi-factor scoring. Signals that move together on the same variant are stacked into one finding. A price drop combined with a stockout scores higher than either alone.
  • Product-family roll-ups. Findings are grouped by product type (falling back to vendor) and ranked, with a pattern label such as BROAD_PRICE_DROP when most compared variants in a family moved the same way.
  • Four buyer outcomes in one run: pricing error triage, stock disruption watch, promotion and markdown audit, and catalog integrity drift.
  • Reproducible output. Every report carries the thresholds used, snapshot hashes and timestamps for the two runs compared.

Quick start (one URL)

  1. Open the Actor and enter only Shopify store URL, for example https://www.allbirds.com (an example storefront with no affiliation; use a store you are permitted to monitor).
  2. Click Start. The run finishes with status BASELINE_CREATED. No anomalies are reported on a first run, because there is nothing to compare with yet. You get a sample of the products that were captured so you can confirm the right store was read.
  3. Run the Actor again later with the same input. The run now compares the store with the previous run and returns anomalies.

Minimal input:

{
"storeUrl": "https://www.allbirds.com"
}

Input with every option (values shown are the defaults except minSeverity):

{
"storeUrl": "https://www.allbirds.com",
"maxProducts": 250,
"maxPages": 4,
"priceChangeThresholdPercent": 10,
"minSeverity": "medium",
"maxAnomalies": 300,
"requestDelaySecs": 1.5,
"requestTimeoutSecs": 15,
"stateStoreName": "pal-shopify-anomaly-desk-state"
}

Scheduling later runs

This Actor does not run itself and sends no alerts. Without a schedule it is a one-off comparison against whatever run came before.

To monitor a store over time:

  1. Save the input above as an Apify Task.
  2. Create an Apify Schedule for that Task (for example once a day, or every few hours for fast-moving stores).
  3. Read each run's dataset, OUTPUT or CSV files. Apify integrations or webhooks that you configure yourself can forward results; they are not enabled by this Actor.

Each run is compared with the previous run, so the schedule interval is the comparison window. Use a different stateStoreName if you want an independent baseline for the same domain (for example, one daily schedule and one weekly schedule).

What you get

Dataset (one table, recordType tells the rows apart)

recordTypeWhenContent
RUN_SUMMARYEvery successful runStatus (BASELINE_CREATED, ANOMALIES_FOUND or NO_ANOMALIES_FOUND), sample size, counts by severity, thresholds, snapshot hashes, caveats and next step
BASELINE_SAMPLEFirst run onlyUp to 10 captured products (title, family, price range, availability count) so you can confirm what is being monitored
FAMILY_RISKRepeat runsOne row per affected product family, ranked, with severity, pattern, share of compared variants affected and suggested action
ANOMALYRepeat runsOne row per affected variant or removed product, ranked, with signals, before and after price, compare-at price, availability, evidence text, buyer outcomes and suggested action

Rows are pushed in that order: summary, families (most severe first), then anomalies (most severe first). Each anomaly carries familyRank, so findings and families join without extra work.

Key-value store (run's default store)

  • OUTPUT – the summary plus the four buyer-outcome sections (top 10 items each) and billing status.
  • REPORT_JSON – the full report: summary, outcomes, families and all reported anomalies.
  • ANOMALIES_CSV and FAMILIES_CSV – the same data as flat CSV. Text that starts with =, +, - or @ is prefixed with ' so store-controlled titles cannot become spreadsheet formulas.

Illustrative record (made-up placeholder values, not real store data)

{
"recordType": "ANOMALY",
"rank": 1,
"severity": "critical",
"severityScore": 100,
"family": "Example family",
"anomalyType": "SUSPECTED_PRICING_ERROR",
"signals": ["PRICE_DROP", "SUSPECTED_PRICING_ERROR", "WENT_OUT_OF_STOCK"],
"productTitle": "Example product",
"variantTitle": "Example variant",
"beforePrice": "100.00",
"afterPrice": "20.00",
"priceChangePercent": -80.0,
"beforeAvailable": true,
"afterAvailable": false,
"buyerOutcomes": ["pricing_error_triage", "stock_disruption_watch", "promotion_audit"],
"evidence": "Price 100.00 -> 20.00 (-80.0%). Went out of stock.",
"recommendedAction": "Verify this price in the store admin now; if unintended, correct it and review any orders placed at the new price."
}

The four buyer outcomes

OutcomeQuestion it answersIncluded findings
pricing_error_triageWhich price moves look like mistakes or need a margin check now?Suspected pricing errors, and price moves scoring 35 or more
stock_disruption_watchWhat went out of stock or came back, and did the price move too?Availability changes
promotion_auditWhich markdowns or compare-at discounts started, deepened or ended?Price drops and discount changes
catalog_integrity_driftWhat disappeared from the public feed?Removed products and variants

How severity is scored

Each variant is compared with its previous state. Signals add points, combinations add a bonus, and the total is capped at 100.

SignalPoints
Price change at or above the threshold15 plus 0.6 per percent changed (max 45)
Suspected pricing error (drop of 70% or more, rise of 400% or more, or a price of zero)+30
Went out of stock+20
Back in stock+10
Compare-at discount started, deepened (15 points or more) or ended+10 / +10 / +5
Price drop together with a stockout / price rise with a stockout / price change with a restockbonus +20 / +15 / +10
Price change together with a discount changebonus +5
Two or more variants of the same product changed (at least half of them)+10
Variant or product removed25 / 30, plus 10 if it was in stock

Severity levels: critical 75 and above, high 55 to 74, medium 35 to 54, low below 35. Family scores take the top finding, add a small bonus for the number of findings and +10 for a broad pattern. The thresholds are fixed rules, not a learned model; tune the price threshold and minSeverity for your store.

Safety and compliance

  • Reads only the public /products.json product feed of the single store you provide. It never logs in, uses no proxies, and collects no customer or personal data.
  • robots.txt is checked before every storefront request using the user agent PALShopifyAnomalyDesk. A disallow rule stops the run. If robots.txt cannot be retrieved reliably (HTTP 401, 403, 429, 5xx or a network failure) access is treated as unknown and the run is refused. A missing robots.txt (HTTP 404 or 410) means no restrictions. A Crawl-delay is honored up to 10 seconds.
  • SSRF protection. HTTPS only, no credentials or custom ports, no IP-address hosts, no local or internal names. Every resolved address must be public, and the connection is pinned to the validated address. Redirects are followed only within the same site and are checked again, including robots.txt.
  • Bounded work. At most 8 pages, 1,000 products and 6,000 variants per run, a request budget, response size limits, per-request timeouts and a delay between requests (at least 1 second).
  • Refused or failed runs write the reason to OUTPUT and the run status, push no dataset rows and are never billed.

State and storage

Baselines are kept in a named key-value store (stateStoreName, default pal-shopify-anomaly-desk-state), because a run's default store is new on every run and cannot carry state between scheduled runs. Each domain has one compact snapshot (size-checked, below 3 MB). At most 50 domains are tracked per store; the least recently updated one is deleted when that limit is exceeded. A stored baseline that cannot be read is replaced by a new baseline, and the summary says so. The baseline moves forward after each complete run. A run that ends early because a later page failed does not overwrite the baseline.

Billing behavior

The code defines one custom pay-per-event charge, anomaly-report, and raises it at most once per run, only for a complete (non-partial) repeat run that reports at least one anomaly, after the results are saved. Baseline runs, runs without anomalies, partial runs, refused runs and failed runs are not charged. Pricing itself is configured separately in Apify Console; this repository does not set a price.

Limitations and sample-size caveats

  • Only public feed data. Inventory quantities, orders, sales and discounts applied at checkout are not visible. Availability is a true/false flag.
  • No currency in the feed. Prices are compared as published for the store's default market. Multi-market or multi-currency stores can show differences that are not real changes.
  • Sampling, not a census. Products are read in feed order up to maxProducts and maxPages. If the catalog is larger, only that part is monitored, removals are not assessed, and results do not describe the whole catalog. The summary reports whether the sample was complete and why it was capped.
  • Small samples are noisy. With fewer than 30 products, percentages and family patterns are indicative only. Family patterns need at least 3 compared variants; families with fewer than 5 carry a sample note.
  • Previous run only. A price that changed and changed back between two runs is invisible, and slow drift across many runs is not flagged. Use a shorter schedule interval for fast-moving stores.
  • New products are counted, not judged. Products absent from the previous sample are listed in the summary count only.
  • Reordered feeds. The feed order is controlled by the store. If it is reordered while the sample is capped, some products may fall in or out of the sample between runs.
  • Family labels come from the store. Stores with empty product types fall back to the vendor name, or Uncategorized.
  • Stores can block or disable the feed. Some stores restrict /products.json, add a password page or disallow it in robots.txt. These runs fail with an explanatory status and are not billed.
  • Limited to 50 variants per product and 6,000 variants per run.

Development

The core logic does not import the Apify SDK, so the test suite runs fully offline with standard-library unittest:

python -m unittest discover -s tests -t .

Tests use fake HTTP, storage and SDK objects only; they never touch the network.