Shopify GTIN, MPN & Brand Coverage Audit avatar

Shopify GTIN, MPN & Brand Coverage Audit

Pricing

from $1.00 / 1,000 audit reports

Go to Apify Store
Shopify GTIN, MPN & Brand Coverage Audit

Shopify GTIN, MPN & Brand Coverage Audit

Pricing

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

Audit a dated Shopify product export for GTIN, MPN and brand completeness, see how coverage changed by category since an earlier export, and get a supplier fix queue with explicit confidence warnings.

This Actor reports identifier completeness in the data you give it. It does not assert, predict or certify Google Merchant Center compliance or product approval.

Who it is for

Store operators and catalog analysts who receive product feeds from suppliers and need to know which suppliers and categories to chase for missing barcodes, MPNs or brand names, and whether things got better or worse between two dated exports.

What it checks

Per variant (one row per variant):

  • GTIN: missing, malformed (wrong length or characters), placeholder (for example all zeros), bad check digit, or shared by different products.
  • MPN: missing or placeholder, when the export has an MPN column.
  • Brand: the Shopify Vendor field is used as the brand; empty or placeholder values (such as "unknown") are flagged.
  • A variant counts as identifier-complete when its brand is present and it has either a valid, unique GTIN or a usable MPN.

Across two snapshots, variants are matched by variant id, else by handle plus SKU, else by handle and position. The Actor reports regressions (complete before, incomplete now), fixes, GTIN changes, brand changes, and added or removed variants.

Input

FieldPurpose
authorizationConfirmedMust be true. Confirms you may analyze the data.
currentSnapshotOne source: csvText (Shopify product CSV), jsonText (products.json content or a list of rows) or shopUrl (public store origin). Pasted text needs capturedAt (YYYY-MM-DD).
previousSnapshotOptional earlier export (csvText/jsonText with capturedAt) or snapshotKey saved by an earlier run. Must be older than the current snapshot.
categorySource, categoryDepthWhich column defines categories and how many path levels to group by.
minCategorySampleBelow this size a category is "low confidence" and change signals are suppressed (default 30).
exemptCategoriesCategories that legitimately lack GTIN/MPN (for example handmade); excluded from rates and queues.
maxRows, maxQueueVendors, maxChangeItems, maxPages, requestDelaySecondsLimits that keep runs small and polite.
saveSnapshotStores a compact snapshot (handle, SKU, GTIN, vendor, category) in a named key-value store for later comparison.

Copyable sample input

The input form is pre-filled with this synthetic example. Replace the CSV text with your own export and keep authorizationConfirmed true only if you are allowed to analyze it.

{
"authorizationConfirmed": true,
"currentSnapshot": {
"label": "demo-store",
"capturedAt": "2026-11-01",
"csvText": "Handle,Title,Vendor,Type,Variant SKU,Variant Barcode,Variant Price\ntrail-bottle,Trail Bottle,Northpeak,Drinkware,NP-100,4006381333931,18.00\ntrail-cup,Trail Cup,Northpeak,Drinkware,NP-101,,12.00\ntrail-flask,Trail Flask,Northpeak,Drinkware,NP-102,4006381333948,22.00\ncamp-lamp,Camp Lamp,Brightly,Lighting,BR-200,0123456789013,25.00\ncamp-lamp-2,Camp Lamp Mini,Brightly,Lighting,BR-201,4006381333931,15.00\nwool-sock,Wool Sock,,Apparel,WS-1,5012345678900,9.00\ncanvas-bag,Canvas Bag,Tote Works,Bags,TW-5,,20.00\n"
},
"previousSnapshot": {
"capturedAt": "2026-10-01",
"csvText": "Handle,Title,Vendor,Type,Variant SKU,Variant Barcode,Variant Price\ntrail-bottle,Trail Bottle,Northpeak,Drinkware,NP-100,4006381333931,18.00\ntrail-cup,Trail Cup,Northpeak,Drinkware,NP-101,4006381333948,12.00\ncamp-lamp,Camp Lamp,Brightly,Lighting,BR-200,0123456789012,25.00\nwool-sock,Wool Sock,Fieldwear,Apparel,WS-1,5012345678900,9.00\ncanvas-bag,Canvas Bag,Tote Works,Bags,TW-5,,20.00\n"
},
"minCategorySample": 5
}

To monitor a store over time, run once with saveSnapshot on, then use the saved key (shown in the summary as snapshotKeySaved) as previousSnapshot.snapshotKey in a later run with a newer capturedAt.

Output

The dataset has one row per record, tagged by recordType:

  • summary: overall rates with a 95% interval, confidence level, change counts, warning count and the disclaimer.
  • category: per-category completeness, GTIN/MPN/brand rates, issue counts, sample confidence, change in percentage points versus the previous snapshot, and a changeSignal (likely_real_change, within_noise or insufficient_sample).
  • supplier_fix: ranked suppliers (Shopify vendors) with incomplete variants, issue counts, example items, a plain-language requested fix and a confidence level.
  • change: variant-level regressions, fixes, GTIN changes and brand changes (capped by maxChangeItems).
  • warning: confidence and data-quality warnings.

Pricing event (not configured)

The code records one audit-report charge event after a report has been produced and saved. No payable plan is configured in this repository. Runs that fail validation, are refused by robots.txt or hit a feed error stop before any charge.

Limitations and caveats

  • Sample size matters. Rates for small categories swing widely. Categories below minCategorySample are labeled low confidence and change signals are suppressed. The category change test compares interval overlap between two snapshots; it is a screening aid, not a formal significance test, and the two snapshots are not paired samples.
  • Brand equals Vendor. Shopify exports have no dedicated brand field, so a vendor name that is a distributor rather than the brand will look complete.
  • MPN is usually absent from plain Shopify exports. Without an MPN column, completeness is judged on brand plus a valid GTIN, and MPN rates are not reported.
  • GTIN checks are structural (length and check digit). The Actor cannot confirm that a code is registered to the product or its brand. Spreadsheet damage such as scientific notation (4.00638E+12) is reported as malformed.
  • Change detection depends on stable keys. If variant ids and SKUs changed between exports, matches will be few and a low-overlap warning is raised.
  • Exempt categories are your decision. The Actor does not decide which products legitimately lack identifiers.
  • Live mode reads only the public /products.json feed of one store, at most maxPages x 250 products, and only if the store is a public HTTPS domain and robots.txt allows it. Stores that disable the feed cannot be audited that way; use an export instead. DNS is checked for public addresses before connecting, but a determined DNS-rebinding attack between the check and the request is not fully excluded.
  • Snapshots saved with saveSnapshot are kept in a named key-value store until you delete them.
  • The Actor does not log in, use proxies, collect contact details, or modify any store.

Local development

Tests are offline and use only the Python standard library plus the project code:

python -m unittest discover -s tests -t .