Shopify scraper
The Zenrows Shopify scraper turns a product or collection URL from a store built on Shopify into structured JSON: product name, price, currency, description, images, variants with SKU, size and availability, colorways, materials and technical specs. You send the URL, Fetch in Adaptive Stealth Mode opens the page, and Extract returns the fields. Run it from an API call, the CLI or an AI agent.
- Site
shopify.com- Returns
- Products, prices, variants, SKUs and collections
- Updated
{
"product": {
"name": "Men's Tree Runner",
"price": 100,
"currency": "USD",
"url": "https://www.allbirds.com/products/mens-tree-runners",
"product_group_id": "MENS_TREE_RUNNERS",
"gender": "mens",
"edition": "classic",
"material": "tree",
"silhouette": "runner",
"availability": null,
"best_for": ["Traveling", "Walking", "Commuting", "Everyday"],
"fit_note": "The Tree Runner tends to run small. We recommend sizing up from your usual size for the best fit.",
"images": [
"//www.allbirds.com/cdn/shop/files/TR3MJBW080_SHOE_LEFT_GLOBAL_MENS_TREE_RUNNER_JET_BLACK_WHITE.png?v=1751165486&width=1280"
]
},
"variants": [
{
"available": true,
"price": 100,
"size": "8",
"sku": "TR3MJBW080",
"url": "/products/mens-tree-runners?variant=33179624669264",
"variant_id": "33179624669264"
}
],
"colorways": [
{
"edition": "classic",
"full_name": "Navy Night (White Sole)",
"handle": "mens-tree-runners-navy-night",
"name": "Navy Night"
},
{
"edition": "limited",
"full_name": "Wheat (Beige Sole)",
"handle": "mens-tree-runners-wheat-dark-beige",
"name": "Wheat"
}
],
"technical_specs": {
"country_of_origin": "Vietnam",
"heel_toe_drop": "9.0mm",
"weight": "8.6oz (M9), 7.3oz (W7)"
}
}{
"url": "https://www.allbirds.com/products/mens-tree-runners",
"mode": "auto",
"extract": "auto",
"proxy_country": "us"
}Request and output of a live call to a product page on allbirds.com, a store built on Shopify, on Oct 22, 2026, trimmed for length. A field is returned when the page shows it.
What data can you scrape from Shopify stores?
A Shopify product page returns the product record, every variant the theme lists, and the extra blocks a brand adds to its template, such as colorways, materials or specs.
A collection page returns one record per product card. These are the fields teams use most, with the path where each lives in the JSON.
| Field | What it holds | Example |
|---|---|---|
product. |
Product title as the store shows it | Men's Tree Runner |
product. |
The price on the page, as a number | 100 |
product. |
Currency code of the price | USD |
product. |
Canonical product URL, built on the product handle | https://www.allbirds.com/products/mens-tree-runners |
product. |
Product copy from the page | A breezier take on our original Wool Runner… |
product. |
Product photos from the store's CDN | //www.allbirds.com/cdn/shop/files/…png |
product. |
The ID that groups the colorways of one model | MENS_TREE_RUNNERS |
product. |
Use tags the store adds to the product | ["Traveling", "Walking"] |
product. |
Care text, when the page has it | Machine Washable |
variants[]. |
The SKU of each variant, the key for inventory joins | TR3MJBW080 |
variants[]. |
Shopify's numeric variant ID | 33179624669264 |
variants[]. |
The option value of the variant | 8 |
variants[]. |
Whether that variant can be bought | true |
variants[]. |
The product URL with ?variant= set to that variant |
/products/mens-tree-runners?variant=… |
colorways[] |
Sibling products for each color, with handle and edition | { "name": "Navy Night", … } |
materials[] |
Component, material name and description | { "component": "Upper", … } |
technical_ |
Spec pairs such as origin, weight and drop | { "country_of_origin": "Vietnam" } |
products[] (collection) |
Position, name, URL, price, sale price and options per card | { "position": 1, … } |
How to scrape a Shopify store with Zenrows
- Create a free Zenrows account and copy your API key from the dashboard.
- Find the store's product or collection URL. Shopify themes keep the same paths on every domain:
/products/<handle>for a product,/collections/<handle>for a list, and/collections/allfor the whole catalog on most stores. - Send it with the default configuration: Adaptive Stealth Mode to open the page, Extract to return the fields, and the country whose prices and currency you want.
- Read
parsedfrom the response. Product groups differ by theme, so read optional blocks such ascolorwaysortechnical_specswith a fallback. - Run the store's product URLs in Batch once one page returns what you need, with the SKU or handle as your
external_id.
# pip install requests
import json
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "https://www.allbirds.com/products/mens-tree-runners",
"mode": "auto", # Adaptive Stealth Mode
"extract": "auto", # structured JSON
"proxy_country": "us", # prices and currency for US shoppers
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()
data = response.json()["parsed"]
product = data.get("product", {})
print(product.get("name"), product.get("price"), product.get("currency"))
for variant in data.get("variants") or []:
print(variant.get("sku"), variant.get("size"), variant.get("available"))
print(json.dumps(data.get("technical_specs") or {}, indent=2))// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.allbirds.com/products/mens-tree-runners",
mode: "auto",
extract: "auto",
proxy_country: "us",
});
const response = await fetch(`https://api.zenrows.com/v1/?${params}`, {
signal: AbortSignal.timeout(180_000),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { parsed } = await response.json();
const variants = parsed.variants ?? [];
const inStock = variants.filter((v) => v.available);
console.log(parsed.product?.name, `${inStock.length}/${variants.length} variants available`);curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.allbirds.com%2Fproducts%2Fmens-tree-runners&mode=auto&extract=auto&proxy_country=us"
# Only the fields you need
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.allbirds.com%2Fproducts%2Fmens-tree-runners&mode=auto&extract=auto&proxy_country=us&extract_fields=product.name%2Cproduct.price%2Cproduct.currency%2Cvariants.sku%2Cvariants.available"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
response = client.get(
"https://www.allbirds.com/products/mens-tree-runners",
params={"mode": "auto", "extract": "auto", "proxy_country": "us"},
)
parsed = response.json()["parsed"]
for colorway in parsed.get("colorways") or []:
print(colorway.get("handle"), colorway.get("full_name"), colorway.get("edition"))Input
The scraper takes one URL from a Shopify store per request, plus the options below.
A Batch job applies the same options to every task, so monitoring a competitor's whole catalog is a list of product URLs with these settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | A page on any store built on Shopify: product (/products/<handle>), collection (/collections/<handle>), a variant (?variant=ID) or a search page |
mode |
string | auto |
Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them |
extract |
string | auto |
Returns the page's fields as JSON in parsed, next to the raw html |
extract_ |
string | all fields | Comma-separated paths to keep, such as product.name,product.price,variants.sku |
proxy_ |
string | any | Two-letter country code. Shopify Markets can switch currency, prices and available products by the shopper's country |
wait_ |
string | none | A CSS selector to wait for before the page is read, useful when a theme loads prices or reviews late |
session_ |
integer | none | Keep the same session across several requests, up to 10 minutes, for example while you page through one collection |
{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"extract": "auto",
"proxy_country": "us"
},
"tasks": [
{ "url": "https://www.allbirds.com/products/mens-tree-runners", "external_id": "mens-tree-runners" },
{ "url": "https://www.allbirds.com/products/mens-tree-runners-navy-night", "external_id": "mens-tree-runners-navy-night" },
{ "url": "https://www.allbirds.com/products/mens-tree-runners-wheat-dark-beige", "external_id": "mens-tree-runners-wheat" }
]
}
Output
Every response is JSON with two keys: html, the page as the store served it, and parsed, the structured record. Shopify gives every store the same data model, products with variants and collections of products, but each theme lays it out its own way, so the groups in parsed follow what the page shows. The product page below is a trimmed live response. The collection page comes from a second store, deathwishcoffee.com.
Sample output for a Shopify collection page, built from a live request on Oct 22, 2026, trimmed to three of the cards on the first page.
Need a spreadsheet? Flatten variants with pd.json_normalize(...) in pandas, keep the product name on each row, and write CSV or Excel. Need the page for an LLM? Ask for Markdown instead of JSON.
{
"product": {
"name": "Men's Tree Runner",
"price": 100,
"currency": "USD",
"url": "https://www.allbirds.com/products/mens-tree-runners",
"description": "A breezier take on our original Wool Runner, with a lower profile than the Tree Runner NZ, this fan favorite is a versatile, do-it-all pick for wearing just about anywhere…",
"care_instructions": "Machine Washable",
"product_group_id": "MENS_TREE_RUNNERS",
"gender": "mens",
"edition": "classic",
"material": "tree",
"silhouette": "runner",
"availability": null,
"images": [
"//www.allbirds.com/cdn/shop/files/TR3MJBW080_SHOE_LEFT_GLOBAL_MENS_TREE_RUNNER_JET_BLACK_WHITE.png?v=1751165486&width=1280",
"//www.allbirds.com/cdn/shop/files/TR3MJBW080_SHOE_BACK_GLOBAL_MENS_TREE_RUNNER_JET_BLACK_WHITE.png?v=1751165486&width=1280"
]
},
"variants": [
{
"available": true,
"price": 100,
"size": "8",
"sku": "TR3MJBW080",
"url": "/products/mens-tree-runners?variant=33179624669264",
"variant_id": "33179624669264"
}
],
"colorways": [
{
"edition": "classic",
"full_name": "Jet Black (Black Sole)",
"handle": "mens-tree-runners-jet-black",
"image": "//www.allbirds.com/cdn/shop/files/TR3MJBW080_SHOE_LEFT_GLOBAL_MENS_TREE_RUNNER_JET_BLACK_WHITE.png?v=1751165486",
"name": "Jet Black"
},
{
"edition": "limited",
"full_name": "Blizzard/Hanami Night (Blizzard Sole)",
"handle": "mens-tree-runners-blizzard-hanami-night",
"image": "//www.allbirds.com/cdn/shop/files/TR3MJBW080_SHOE_LEFT_GLOBAL_MENS_TREE_RUNNER_JET_BLACK_WHITE.png?v=1751165486",
"name": "Blizzard/Hanami Night"
}
],
"materials": [
{
"component": "Upper",
"description": "Knit upper made from eucalyptus-derived TENCEL™ Lyocell (tree fiber) yarn and recycled polyester blend",
"material_name": "Tree Knit"
},
{
"component": "Midsole",
"description": "SweetFoam® sugarcane-based EVA foam provides comfort and durability while being light on the planet",
"material_name": "SweetFoam®"
}
],
"technical_specs": {
"country_of_origin": "Vietnam",
"heel_toe_drop": "9.0mm",
"stack_height": "Heel: 19.6mm Toe: 10mm",
"weight": "8.6oz (M9), 7.3oz (W7)"
}
}{
"collection_context": {
"url": "https://www.deathwishcoffee.com/collections/coffee",
"total_products": 64
},
"products": [
{
"position": 1,
"name": "Dark Spirits Chocolate Rum Ball Coffee",
"url": "/products/dark-spirits-chocolate-rumball",
"price": 29.99
},
{
"position": 4,
"name": "Power Surge Coffee",
"url": "/products/power-surge-coffee",
"price": 19.99,
"options": [
{ "name": "Type", "values": ["Ground", "Whole Bean"] },
{ "name": "Size", "values": ["1 lb", "2 lbs", "3 lbs", "5 lbs"] }
]
},
{
"position": 7,
"name": "White Chocolate Pistachio Ground Bundle",
"url": "/products/white-chocolate-pistachio-ground-bundle",
"price": 48.99,
"list_price": 53.99,
"on_sale": true
}
],
"pagination": {
"current_page": 1,
"next_page_url": "/collections/coffee?page=2"
}
}Connect the MCP server (Claude Code)
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
MCP config (Cursor, Claude Desktop, Windsurf)
{
"mcpServers": {
"zenrows": {
"command": "npx",
"args": ["-y", "@zenrows/mcp"],
"env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
}
}
}
Or run the CLI
npx -y @zenrows/cli init
zenrows extract "https://www.allbirds.com/products/mens-tree-runners" --proxy-country us
Then ask your agent
Use Zenrows to get every colorway of this product, then open each colorway
page and return a table with the color, price, SKU and which sizes are
available:
https://www.allbirds.com/products/mens-tree-runners
Scrape Shopify stores from your coding agent
Claude Code, Cursor, Codex and any MCP client can scrape a Shopify store from a prompt.
The agent sends the same Fetch and Extract request a developer would, so it reads the same product, variant and SKU fields shown above. Connect the Zenrows MCP server once, or install the CLI and let the agent run it in the terminal.
Scrape Shopify stores at scale with Batch and Crawl
Batch runs a list of product URLs as one job, in parallel, with your own ID on each result. Use it for a daily price and stock check across one or many Shopify stores: one task per product handle, with the handle or SKU as the external_id so each result joins back to your catalog.
Crawl finds the URLs for you. Start it on a collection page such as /collections/all, keep only the links that contain /products/, and it returns every product page it reaches. Send that list to Batch when you want to track the same products every day.
Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.
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", "extract": "auto", "proxy_country": "us" },
"tasks": [
{ "url": "https://www.allbirds.com/products/mens-tree-runners", "external_id": "mens-tree-runners" },
{ "url": "https://www.allbirds.com/products/mens-tree-runners-navy-night", "external_id": "mens-tree-runners-navy-night" }
]
}'
# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY"# shopify.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create shopify.jsonl --proxy-country us --wait
zenrows batch results <job-id> --out shopify-products.jsonlcurl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.allbirds.com/collections/mens",
"depth": 2,
"max_pages": 300,
"include_patterns": ["/products/"]
}'# Runs every day on Zenrows' side; each run keeps its own results
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": "scheduled",
"status": "closed",
"schedule": {
"rate": {
"every": 1,
"unit": "day"
}
},
"zenrows_params": {
"mode": "auto",
"extract": "auto",
"proxy_country": "us"
},
"tasks": [
{
"url": "https://www.allbirds.com/products/mens-tree-runners",
"external_id": "shopify"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with Shopify store data
| Use case | Data they pull | Who runs it |
|---|---|---|
| Competitor price monitoring | Price, sale price and currency per product and country, checked daily | DTC brands and ecommerce pricing teams |
| Stock and variant tracking | Each variant's SKU, size and availability, to see what sells out and when | Merchandisers and market analysts |
| Assortment and launch watch | New handles in a collection, limited editions, new colorways | Product and buying teams |
| Product data for marketplaces and feeds | Name, description, images, options and specs in one record | Retailers, resellers and feed managers |
| Brand and MAP compliance | Prices of your products on authorized retailers' Shopify stores | Brand protection and channel teams |
| Market and category research | Catalog size, price ranges and options across many stores in a niche | Investors, agencies and analysts |
| AI shopping assistants and RAG | The full product record, or the page as Markdown | AI and data teams |
Tips for scraping Shopify stores
- Learn the URL shape once. Every Shopify store uses
/products/<handle>and/collections/<handle>. A product reached through a collection, such as/collections/mens/products/<handle>, is the same page as/products/<handle>, so store the short form. - Page through collections with
page=. Most themes link?page=2,?page=3at the bottom of a collection, and the collection sample above keeps that link inpagination.next_page_url. Request each page until there is no next one. - Each variant has its own ID. Add
?variant=with thevariant_idto the product URL to open that exact size or color. Key your price history on the SKU or variant ID, which stay stable when titles change. - Some stores split colors into products. Allbirds publishes each colorway as its own handle and lists them in
colorways[]. Read that list from one page and request the siblings to cover the whole model. - Pin the country. Stores that use Shopify Markets change the currency, prices and sometimes the catalog by location. Send every request for a dataset from the same country, and keep
currencynext to each price. - Fix protocol-relative image URLs. Shopify CDN links often start with
//. Prefixhttps:before you download or store them. - Find the domain behind a brand. Many stores run on their own domain, and the default
<store>.myshopify.comaddress usually redirects to it. Send the URL shoppers see.
More Shopify stores and e-commerce scrapers
-
shopify.com
Shopify product reviews scraper
Review text, star ratings and dates from product review widgets on Shopify stores.
-
amazon.com
Amazon scraper
Product titles, prices, ratings, ASINs, sellers and availability from Amazon product and search pages.
-
walmart.com
Walmart scraper
Product listings with prices, item IDs, sellers, ratings and stock status from Walmart.
-
etsy.com
Etsy scraper
Handmade and vintage listings with prices, shop names, ratings, favorites and tags.
-
aliexpress.com
AliExpress scraper
Product listings with prices, store ratings, order counts and shipping options.
-
allegro.pl
Allegro scraper
Polish marketplace offers with prices, sellers, ratings, sold counts and delivery options.
-
flipkart.com
Flipkart scraper
Indian product listings with price, MRP, discount, rating and seller.
-
wayfair.com
Wayfair scraper
Furniture and home products with prices, ratings, dimensions and shipping times.
-
homedepot.com
Home Depot scraper
Home improvement products with prices, model numbers, ratings and store availability.
Frequently asked questions
-
Collecting public data from online stores, such as product names, prices, variants and stock shown to every visitor, is common practice for price monitoring and market research. Product reviews on some stores can include customer names, and personal data is protected by laws such as the GDPR and the CCPA, so collect only what you have a legitimate reason to use. Each store has its own terms of service, alongside Shopify's, so check them for your use case and ask your lawyer if you are unsure.
-
Yes, several, all aimed at the store owner and the apps they install. The Admin API reads and writes a store's products, orders and inventory, and the Storefront API powers custom storefronts. Both need an access token that the store owner creates or grants, so they cover your own store and the stores that install your app. Many stores also answer a public
/products.jsonURL with basic catalog data, but stores can restrict it, it does not carry content the theme adds, such as specs or materials, and it is not an endpoint Shopify documents for this use. To read other brands' stores as shoppers see them, teams scrape the product and collection pages. -
Product pages (
/products/<handle>), single variants (?variant=ID), collection pages (/collections/<handle>and usually/collections/all) and search results on any store built on Shopify, on its own domain or onmyshopify.com. Send the URL as it appears in your browser. -
Yes. Start a Crawl on
/collections/allor the store's main collections, keep the links that contain/products/, and send the list to Batch. Alternatively, page through a collection withpage=and collect each card's URL from the response. -
Yes, when the product page lists them. The product sample returns
variants[]with the SKU, variant ID, option value, price and anavailableflag for each one. Request the page daily to see which sizes or colors sell out. -
Yes. Set the country in the request and the store opens as a shopper there sees it. Stores that sell internationally through Shopify Markets show local currency and prices, and the scraper returns the currency code next to the price.
-
Send a GET request to
https://api.zenrows.com/v1/with your API key, the product URL, Adaptive Stealth Mode and Extract turned on, as in the Python example above. The response'sparsedkey holds the product and its variants as a Python dictionary. Thezenrowspackage on PyPI wraps the same request. -
Every store shares Shopify's model of products, variants and collections, but each theme shows different content, so the groups in
parsedfollow the page: one store returns colorways and materials, another returns options or a sale price. Read optional groups with a fallback in your code, and use the fields filter to keep only the paths you need. -
Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask for the products or collections you want in plain language and the agent calls Fetch and Extract for you.
-
Yes. Create a scheduled Batch job with your Shopify stores URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.
-
Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. Send products to Google Sheets, Airtable or a database from the workflow tool you already use. See the integrations page for the full list.
-
JSON by default, with the structured record in
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.