Shopify Public Variants
Under maintenancePricing
$3.00 / 1,000 results
Shopify Public Variants
Under maintenancePricing
$3.00 / 1,000 results
Rating
0.0
(0)
Developer
Eichan Jolly
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 hours ago
Last modified
Categories
Features
Share
Read one public Shopify product page URL and obtain the variants directly from its public <product>.js JSON representation. No Shopify account, private token, or Admin API is required. Designed for merchants, catalog QA teams, and product-data researchers checking one known item.
Input
The prefilled working example was publicly checked on 2026-11-01: the .js endpoint responded with a nonempty variants list.
{"productUrl":"https://www.allbirds.com/products/mens-wool-runners"}
The actor requests https://www.allbirds.com/products/mens-wool-runners.js once. A ?variant= selection on the page URL is ignored because this Actor reports all variants in the published representation, not just one selected variant.
Output (one item per variant)
{"productTitle": "Men's Wool Runner - Natural Grey (Light Grey Sole)","productUrl": "https://www.allbirds.com/products/mens-wool-runners","variantId": 31338073981072,"variantTitle": "8","price": 11000,"compareAtPrice": null,"available": false,"sku": "WR3MNCW080","status": "ok","error": null}
Each row has productTitle, productUrl, variantId, variantTitle, price, compareAtPrice, available, sku, status, and error. A failure produces a single status: "error" dataset item with an understandable error string and null variant-specific fields.
Price units: price and compareAtPrice are returned exactly as published in the Shopify .js JSON. Shopify commonly returns integer minor units (e.g. 11000 for 110.00 in a two-decimal currency). This Actor does not convert the value or infer/display a currency. Availability is the published boolean, not an inventory count; no stock quantity is inferred. compareAtPrice/sku may be null.
Limits and behavior
- One public HTTPS product URL with
/products/HANDLE; one same-host JSON request; no login, scraping search results, pagination or other store URLs. - Some Shopify stores disable
.js, change their storefront paths, require geo-validation, or block automated requests. A missing/malformed response becomes an honest error item. No browser automation, authentication, bypasses or cross-host redirects. - Publishes every variant in the response (no invented variants). Each result reflects the store at request time, not historical stock. Responses are limited to 4 MB and 15 seconds.
- The prefill was checked by a public web retrieval tool; live execution from this Python environment was not possible due to DNS restriction. Reproducible
python src/main.pysmoke runs use recorded fixture responses, not live HTTP, as documented intests/smoke_evidence.txt.
Running
On Apify, INPUT is fetched through its default key-value store REST API using APIFY_DEFAULT_KEY_VALUE_STORE_ID and APIFY_TOKEN; results are posted to the default dataset via REST (APIFY_DEFAULT_DATASET_ID). ACTOR_INPUT_JSON takes precedence, then platform input, then local storage/key_value_stores/default/INPUT.json. No Apify SDK is needed.
Local: ACTOR_INPUT_JSON='{"productUrl":"https://www.allbirds.com/products/mens-wool-runners"}' python src/main.py (requires internet). Offline replay: python tests/run_smoke.py. Unit tests: python -m unittest discover -s tests -p 'test_*.py' -v.
Suggested Apify Store settings
Category ECOMMERCE; $3 / 1,000 results ($0.003 per result), proposed only. No publishing or billing is configured.