Shopify Vendor & Assortment Intelligence Report avatar

Shopify Vendor & Assortment Intelligence Report

Pricing

from $1.00 / 1,000 supplier planning reports

Go to Apify Store
Shopify Vendor & Assortment Intelligence Report

Shopify Vendor & Assortment Intelligence Report

Turns public Shopify storefront feeds into one severity-ranked supplier planning report covering vendor mix, assortment shifts, price dispersion, missing options and new categories, with dated baselines and explicit sampling caveats.

Pricing

from $1.00 / 1,000 supplier planning 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

9 days ago

Last modified

Features

Limited permissions

Share

One run turns public Shopify storefront feeds into a single severity-ranked supplier planning report for a multi-brand retail buyer. It does not just list products. It joins five buyer outcomes, compares them with your last dated baseline, and states how much each number can be trusted.

What the report answers

Buyer outcomeQuestionExample signals
vendor_representationWhich vendors does each store lean on, and is that changing?vendor concentration, vendor share shift, vendor added, vendor dropped, single-brand store
assortment_shiftHow much did the visible range turn over since the last run?assortment turnover, price movement on retained products, currency change
price_dispersionWhere are public prices widely spread or out of line?category price dispersion, vendor price position, cross-store price gap
option_completenessWhich products omit an option that their peers publish (for example Size)?missing expected option
category_launchWhich categories are new, or look newly launched?new category versus baseline, recent category launch inferred from published dates

All findings land in one ranked list (rank 1 is most important) with severity, a priority score, the store, vendor and category they concern, example product links, a suggested next step, and a confidence label. Store summaries and a run summary join to the findings by storeDomain.

Sample input

{
"storeUrls": [
"https://www.deadstock.ca",
"https://bdgastore.com"
],
"maxProductsPerStore": 250,
"baselineLabel": "autumn-buy",
"updateBaseline": true,
"launchWindowDays": 30
}

The two stores above are illustrative. Replace them with public storefronts you are permitted to analyze. Only the store root is accepted (no path, query, port or credentials), and at most 10 stores per run.

Run it again on a later date with the same baseline label to unlock the cross-run signals. The first run for a store only creates the baseline and reports single-snapshot signals.

Output

Dataset (default). Every record has recordType:

  • run_summary: stores requested, analyzed and failed; findings by severity and outcome; billableReport; caveats.
  • store_summary: one per analyzed store with planning rank, sample size, possible truncation, vendor and category counts, baseline status and date, top score and finding counts.
  • finding: ranked findings (rank, severity, priorityScore, buyerOutcome, signal, storeDomain, vendor, category, headline, detail, metrics, recommendedAction, confidence, samplingNote, sourceUrl, exampleUrls, baselineDate, currency, runDate).
  • store_error: stores that could not be analyzed, with an error code. These are never charged.

Key-value store: REPORT_SUMMARY (run summary JSON) and REPORT.md (readable report with top findings and caveats).

Severity bands: high 70 or more, medium 45 to 69, low 20 to 44, info below 20. Scores are damped by 25% when the sample is limited. Confidence is limited or moderate, never high, because a public feed is only a sample.

Dated baselines

After the report is delivered, a compact snapshot of each analyzed store (handle, vendor, category, lowest price) is saved to a named key-value store (default pal-vendor-intel-baselines). It keeps a latest copy plus dated copies, up to snapshotRetention per store and label, and deletes older ones. Baselines are keyed by label and store, so different buying programs do not mix. If the baseline store cannot be read, the run still reports but does not overwrite stored history.

How each signal works

  • Vendor concentration: the largest vendor's share of sampled products against your threshold, with an approximate 95% Wilson interval and a concentration index.
  • Vendor share shift: share change in percentage points, kept only if it also passes a conservative two-proportion noise screen. The screen treats the two samples as independent, which they are not, so it is a noise filter and not a formal test.
  • Assortment turnover: products added plus removed as a share of all products seen in either run.
  • Price movement: retained products whose lowest published variant price moved by at least the threshold, shown only when at least 3 products and 10% of compared products moved. Skipped when the currency changed.
  • Category price dispersion: quartile coefficient of dispersion, (Q3 - Q1) / (Q3 + Q1), per category with enough priced products.
  • Vendor price position: a vendor's median price against its category median when at least two vendors each have 3 or more priced products.
  • Cross-store price gap: identical vendor and normalized title in two or more stores that share the same known currency (read from the public store metadata). Stores with unknown or different currencies are never compared.
  • Missing expected option: an option name present in at least the configured share of a category's products is expected; products lacking it are listed.
  • New category / recent launch: categories absent from the baseline, plus categories whose products mostly carry recent published dates.

Safety and limits

  • Reads only /robots.txt, /meta.json and /products.json?limit=&page= on the host you supply. No login, no cart or checkout, no contact data, no proxies, no other paths.
  • Honors robots.txt (longest-match rules, wildcards, group selection, Crawl-delay). An unreadable robots.txt (anything other than 200, 404 or 410) skips the store, and so does a Crawl-delay above 30 seconds.
  • SSRF protection: https only, public domain names only, IP literals and private suffixes rejected, every resolved address must be globally routable, the connection is pinned to the validated address, and redirects are followed only within the same site.
  • Bounded work: at most 10 stores, 1,000 products per store (4 pages of 250), 8 MB per response, request pacing of at least 0.5 seconds, stores processed one at a time. Responses are reduced to a few fields immediately to keep memory low.
  • Errors are not charged. Failed stores appear as store_error records.

Pricing event

The code declares one pay-per-event name, supplier-planning-report, charged at most once per run and only when at least one store was analyzed and the report contains at least one finding. No payable plan or price is configured in this project. Whoever publishes it must define the event and its price separately and verify unit economics first.

Limitations and sample-size caveats

  • The public products feed lists published, public listings only. It does not show sales, inventory, costs, margin or unpublished items, so nothing here measures demand or profitability.
  • Feed order is not random. Stores with more products than maxProductsPerStore are marked possiblyTruncated, and all figures then describe only the sampled window. A feed that has exactly the cap size is also marked possibly truncated.
  • Samples under 30 products, truncated samples and truncated baselines produce limited confidence and lower scores. Treat small-store percentages as directional.
  • Removed products can be genuine delistings, temporary unpublishing, renamed handles or products that fell outside the sampling window.
  • Prices use the lowest published variant price in the storefront currency. Discount codes, regional pricing, tax display, bundles and variant mixes are invisible or can differ, so cross-store gaps need a manual check that the items are the same.
  • Cross-store matching is exact on vendor plus normalized title. Different naming means no match.
  • recent_category_launch infers launches from published_at, which can be changed by republishing. It is always limited.
  • Missing-option findings can be legitimate for one-size or single-variant items.
  • Not every Shopify store exposes /products.json; password-protected, disabled or non-Shopify sites return an error record.
  • This Actor reports observations. Confirm important findings on the storefront before acting on them.

Local checks

Tests run offline with the standard library only:

python -m unittest discover -s tests -t .

Project layout

  • src/main.py: Apify entry point (input, storage, output, charging)
  • src/pipeline.py: collection and analysis workflow (no Apify imports)
  • src/analysis.py: buyer-outcome analyzers
  • src/scoring.py, src/report.py: ranking and joined records
  • src/urlsafety.py, src/robots.py, src/http_client.py: validation, robots and the bounded transport
  • src/shopify.py, src/state.py, src/config.py, src/pricing.py: feed parsing, baselines, input, event name
  • tests/: offline unit tests