Back to blog

How to Scrape Shopify Stores: Complete Developer Guide

Share article:

To scrape Shopify stores, start with the Storefront API or /products.json, the public JSON endpoints that return prices, variants, and availability on most stores. In our tests, both return errors on some storefronts, such as Gymshark's, so a web scraping script gets no data. This guide explains both endpoints, the HTML fallback, and full-store crawls with Decodo's Web Data API.

eCommerce icon signifying Shopify for a blog post that guides developers on how to collect data from it.

TL;DR

  • Web scraping Shopify stores starts with the Storefront API. With tokenless access, it worked on 7 of 8 stores tested and returned exact prices, currency, availability, and localized pricing.
  • Where a store blocks both endpoints, use its product pages. Decodo's Web Data API /crawl fetched 200 Gymshark pages in under a minute.
  • Shopify rate-limits each IP for each store. Use curl_cffi, which Shopify throttles later than plain Requests. Add rotating residential proxies to scale.
  • Validate every daily run. A validation check rejects any run below 90% of the store's published product count.

What Shopify product data is worth scraping

Each use case needs specific product fields, shown with their Shopify field names:

  • Competitor price monitoring. Extract price and compare_at_price for every variant, from each store, every day. A compare_at_price higher than price marks the product as on sale. To find which stores to monitor, use Shopify's Global Catalog, which searches all Shopify stores for merchants that sell a specific product.
  • Assortment analysis. Extract title, tags, and product_type to see which new categories a brand adds over time. Assortment analysis is a common use case in web scraping for market research.
  • Inventory tracking. The available boolean shows whether each variant is in stock. For stock levels, where the store exposes them, use inventory_quantity from /products/{handle}.js. The handle is the product's URL slug.

Confirm a site runs on Shopify

Before writing any scraping code, install curl_cffi and Beautiful Soup:

pip install curl_cffi beautifulsoup4

A quick way to detect Shopify is to request products.json, then the Storefront API, and check for valid JSON:

from curl_cffi import requests




def is_shopify_store(url):
    try:
        response = requests.get(
            f"{url}/products.json?limit=1",
            impersonate="chrome",
            timeout=10
        )
        if response.status_code == 200:
            data = response.json()
            return "products" in data
    except Exception:
        pass
    try:  # the Storefront API answers on some stores that block products.json
        response = requests.post(
            f"{url}/api/2026-10/graphql.json",
            json={"query": "{ shop { name } }"},
            impersonate="chrome",
            timeout=10
        )
        return "shop" in response.json().get("data", {})
    except Exception:
        return False




print(is_shopify_store("https://www.allbirds.com"))
print(is_shopify_store("https://jaxxon.com"))
print(is_shopify_store("https://example.com"))

Allbirds and Jaxxon run on Shopify, so the function returns True for both, even though Jaxxon blocks products.json. For example.com, which doesn't run on Shopify, the function returns False:

True
True
False

The code uses curl_cffi with impersonate="chrome", which sends the same TLS fingerprint and HTTP/2 settings as Chrome. For a few requests, plain Requests works equally well. At high volume, Shopify lets curl_cffi send far more requests than plain Requests before it throttles them, even when plain Requests uses a Chrome User-Agent. Keep curl_cffi updated, because the chrome alias refers to the most recent Chrome version that your installed release supports.

If both checks fail, the store can still run on Shopify. The merchant may have blocked the endpoints, or anti-bot rules may be blocking your IP. Asset URLs on cdn.shopify.com in the page source usually mean that the store runs on Shopify. These asset URLs also appear on headless stores like Gymshark and SKIMS, which run a custom front end with Shopify as the backend.

A powered-by: Shopify response header confirms that the store runs on Shopify. Allbirds and SKIMS send this header, but Gymshark doesn't send it.

Test your target store first

Before you choose a method, check which endpoints your target store exposes. Take any product's handle, which is its URL slug, and check each endpoint:

from curl_cffi import requests


STORE = "https://www.gymshark.com"
HANDLE = "gymshark-running-t-shirt-ss-tops"  # any product URL's last part


checks = {
    "products.json": f"{STORE}/products.json?limit=1",
    ".js": f"{STORE}/products/{HANDLE}.js",
    "collections.json": f"{STORE}/collections.json?limit=1",
    "sitemap.xml": f"{STORE}/sitemap.xml",
    "product page": f"{STORE}/products/{HANDLE}",
}
for name, url in checks.items():
    r = requests.get(url, impersonate="chrome", timeout=15)
    note = ""
    if name == "product page":
        note = "JSON-LD found" if "application/ld+json" in r.text else ""
    print(f"{name:17} {r.status_code}  {note}".rstrip())


api = requests.post(f"{STORE}/api/2026-10/graphql.json",
                    json={"query": "{ shop { name } }"},
                    impersonate="chrome", timeout=15)
print(f"{'storefront api':17} {api.status_code}")

On Gymshark, the JSON endpoints return 403 or 404, but the sitemap and the product page return 200. The product page includes JSON-LD (schema.org structured data embedded in the page):

products.json     403
.js               404
collections.json  404
sitemap.xml       200
product page      200  JSON-LD found
storefront api    404

Diagnostic results across famous Shopify stores

We ran the same checks on 8 well-known Shopify stores in November 2026. Of those, 2 blocked products.json, and only Gymshark also blocked the Storefront API. JSON-LD support varied by theme:

Store

products.json

Storefront API

Products in sitemap

.js

JSON-LD

Recommended method

allbirds.com

200

✅

368

✅

✅

Storefront API + .js

taylorstitch.com

200

✅

2,858

✅

✅

Storefront API + .js

fentybeauty.com

200

✅

951

✅

✅

Storefront API + .js

kyliecosmetics.com

200

✅

256

✅

✅

Storefront API + .js

jeffreestarcosmetics.com

200

✅

278

✅

❌

Storefront API + .js

redbullshopus.com

200

✅

925

✅

✅

Storefront API + .js

skims.com

404

✅

4,263

blocked

✅

Storefront API

gymshark.com

403

blocked

2,919

blocked

✅

HTML scraping, or Decodo /map + /crawl

Test more than one product before you decide that an endpoint is blocked, because some products can behave differently. On Jeffree Star, .js returns 404 for a mystery bag but returns 200 for ordinary products.

Disabled by the merchant or blocked by anti-bot rules. A 403 or 404 on products.json usually means an anti-bot block or the merchant's setup, like a headless front end that doesn't serve the endpoint. Residential IPs can avoid anti-bot blocks. An endpoint that the merchant disabled stays closed to every IP, so use the Storefront API or HTML scraping instead.

To distinguish between the 2 causes, retry the same request through a Decodo residential proxy. Your proxy username and password are on the Proxy setup tab under Residential in the Decodo dashboard. If the status code stays the same, the merchant likely disabled the endpoint. If it changes to 200, the block was IP-based:

from curl_cffi import requests


proxy_url = (
    "http://user-YOUR_PROXY_USERNAME-country-us"
    ":YOUR_PROXY_PASSWORD@gate.decodo.com:7000"
)
proxies = {"http": proxy_url, "https": proxy_url}


stores = ["https://www.gymshark.com", "https://skims.com",
          "https://jadedldn.com"]
for store in stores:
    direct = requests.get(
        f"{store}/products.json?limit=1",
        impersonate="chrome", timeout=15
    ).status_code
    via_proxy = requests.get(
        f"{store}/products.json?limit=1",
        impersonate="chrome",
        proxies=proxies, timeout=45
    ).status_code
    print(f"{store}: direct={direct}, via US proxy={via_proxy}")

Jaded London's status code changes to 200 through the proxy, so its block was IP-based. For Gymshark and SKIMS, the codes stay the same, which points to a block set by the merchant:

https://www.gymshark.com: direct=403, via US proxy=403
https://skims.com: direct=404, via US proxy=404
https://jadedldn.com: direct=403, via US proxy=200

For SKIMS, use the Storefront API, which it still serves. For Gymshark, use HTML scraping, which takes product URLs from the sitemap and extracts JSON-LD from each page. Proxies help with HTML scraping too, because it makes thousands of page requests. To avoid requesting each page yourself, use Decodo's /map to list the URLs and /crawl to fetch the pages in one job.

Choose a method for your store

Ask these 3 questions, in this order:

  1. Does the Storefront API return 200? If yes, use it.
  2. If not, does products.json return 200? If yes, use it.
  3. If not, does either endpoint return 200 through a residential proxy? If yes, keep using that endpoint through Decodo residential proxies. If not, use HTML scraping or Decodo's /map and /crawl.
Flowchart to decide whether to use Storefront API.

Each method also returns different fields. Check that your method has the data you need:

Method

Price

Currency

Availability

Stock level

Requests for a full catalog

Storefront API

Exact

✅

✅

Needs an access token

1 per 250 products

products.json

Exact, as a string

❌

✅

❌

1 per 250 products, up to 25,000

.js endpoint

Exact, in cents

❌

✅

inventory_quantity, if the store exposes it

1 per product

JSON-LD (HTML scraping)

Can lack cents

✅

✅

❌

1 per product page

Query the Storefront API without a token

Shopify's Storefront API is the documented way to read a store's catalog, and it supports tokenless access for product queries. Unlike products.json, the Storefront API returns prices with their currency, accepts a country code for localized pricing, and uses cursor-based pagination with no 25,000-product limit.

Send a GraphQL query to /api/{version}/graphql.json on the store's own domain. This function paginates the whole catalog, 250 products per request:

import time
from curl_cffi import requests


API_VERSION = "2026-10"
QUERY = """
query Products($cursor: String, $country: CountryCode)
  @inContext(country: $country) {
  products(first: 250, after: $cursor) {
    pageInfo { hasNextPage endCursor }
    nodes {
      handle
      title
      variants(first: 100) {
        pageInfo { hasNextPage }
        nodes {
          id
          sku
          availableForSale
          price { amount currencyCode }
          compareAtPrice { amount }
        }
      }
    }
  }
}
"""




def storefront_products(store_url, country="US"):
    """Yield every product from the tokenless Storefront API."""
    url = f"{store_url}/api/{API_VERSION}/graphql.json"
    cursor = None
    while True:
        resp = requests.post(
            url,
            json={"query": QUERY,
                  "variables": {"cursor": cursor, "country": country}},
            impersonate="chrome",
            timeout=30,
        )
        resp.raise_for_status()
        body = resp.json()
        if "errors" in body:
            raise RuntimeError(body["errors"][0]["message"])
        page = body["data"]["products"]
        for p in page["nodes"]:
            if p["variants"]["pageInfo"]["hasNextPage"]:
                print(f"Warning: {p['handle']} has over 100 variants")
        yield from page["nodes"]
        if not page["pageInfo"]["hasNextPage"]:
            return
        cursor = page["pageInfo"]["endCursor"]
        time.sleep(1)  # pause 1 second between pages




start = time.time()
products = list(storefront_products("https://skims.com"))
variants = [v for p in products for v in p["variants"]["nodes"]]
first = variants[0]
print(f"Products: {len(products)}, variants: {len(variants)}")
print(f"Time:     {time.time() - start:.0f} seconds")
print(f"First:    {first['sku']}, {first['price']['amount']} "
      f"{first['price']['currencyCode']}, "
      f"in stock: {first['availableForSale']}")

SKIMS blocks products.json, but its Storefront API works onskims.com:

Products: 4262, variants: 44244
Time:     41 seconds
First:    BR-BAN-9167-ONX-XXS, 34.0 USD, in stock: True

Fetching all 4,262 products took 18 requests, while HTML scraping needs one request per product page. The function pauses one second between pages, and in our tests 1 to 2 requests per second stayed under Shopify's bot and crawler limits. Among the 8 stores tested, the API worked on all but Gymshark, whose front end doesn't serve /api.

Three details matter in production. For stock levels, use the .js endpoint, because quantityAvailable and metafields (custom product fields) need an access token. Shopify reports this query's cost as 430 (requestedQueryCost in the response), which leaves room for more fields under the tokenless limit of 1,000. Shopify also applies IP-level bot protection, so spread large monitoring jobs across rotating proxies.

Read the Storefront API record

For each variant, the API returns price as an object with amount and currencyCode, such as 34.0 and USD. Convert amount, which is a string, to a number before you compare prices. compareAtPrice is null unless the store sets one, and a variant is on sale only when its compareAtPrice amount is higher than its price amount. availableForSale is the availability flag.

Variant IDs are global IDs, such as gid://shopify/ProductVariant/…, and the number at the end matches the variant ID in products.json. The query reads up to 100 variants per product and prints a warning for any product that has more.

Scrape Shopify product data with products.json

The Shopify products.json endpoint returns the catalog in pages of up to 250 products.

Set up the request function

The products.json, sitemap, and HTML scraping methods below share one retry wrapper. Define it once:

from curl_cffi import requests
import time


MAX_RETRIES = 4




def fetch_with_retry(url, max_retries=MAX_RETRIES):
    """Retry network errors, 429, and 5xx. Fail fast on other 4xx."""
    for attempt in range(max_retries):
        try:
            resp = requests.get(
                url, impersonate="chrome", timeout=30
            )
        except Exception:
            if attempt == max_retries - 1:
                raise
            time.sleep(2 ** attempt)
            continue
        if resp.status_code == 429:
            if attempt == max_retries - 1:
                break
            wait = 10 * 2 ** attempt
            print(f"  Rate limited. Waiting {wait}s...")
            time.sleep(wait)
            continue
        if resp.status_code >= 500 and attempt < max_retries - 1:
            time.sleep(2 ** attempt)
            continue
        resp.raise_for_status()  # 403, 404, and other 4xx fail at once
        return resp
    raise RuntimeError(f"Still rate limited after {max_retries} tries: {url}")

On a 429, the wrapper retries with exponential backoff (10, 20, then 40 seconds), because Shopify can take about a minute to accept requests again. For other 4xx responses, such as a 404 on a deleted product, the wrapper raises an error immediately instead of retrying. At scale, rotating proxies make those waits rarer.

Fetch and paginate

The scraper paginates the catalog and stops at the first page with fewer than 250 products:

STORE_URL = "https://www.allbirds.com"




def scrape_shopify_products(store_url, path=""):
    """Page through products.json for a store or a collection path."""
    all_products = []
    for page in range(1, 101):  # Shopify stops at 25,000 products
        url = f"{store_url}{path}/products.json?limit=250&page={page}"
        products = fetch_with_retry(url).json().get("products", [])
        all_products.extend(products)
        print(f"Page {page}: {len(products)} products")
        if len(products) < 250:
            break
        time.sleep(2)
    else:
        print("Warning: reached the 25,000-product cap")
    return all_products




products = scrape_shopify_products(STORE_URL)
print(f"Total: {len(products)} products")

The output for Allbirds shows 368 products across 2 pages:

Page 1: 250 products
Page 2: 118 products
Total: 368 products

The 2-second delay keeps the loop well under the burst limits measured in the rate limits section. The code sets limit=250, the maximum, so each request returns 250 products instead of the default 30.

Shopify limits pagination to 25,000 products. When page × limit goes above 25,000, Shopify returns 400 Bad Request. So page 100 is the last one at limit=250, and the loop stops there with a warning. For larger catalogs, scrape collection by collection or use the Storefront API, which has no such limit.

Neither products.json nor the sitemap is an exact list of live product pages. On Fenty Beauty, 117 products in products.json were missing from the sitemap, and their URLs redirected to other pages. On Taylor Stitch, a later check found 2,872 products in the sitemap and 3,896 in products.json, and the sampled missing pages returned 200. The store's published count in /meta.json also matched products.json, so use it as the reference count.

Read the product record

This is the first Allbirds product, with only the fields that price and stock monitoring need:

{
  "id": 7292464824400,
  "title": "Women's Wool Cruiser - Port (Port Sole)",
  "handle": "womens-wool-cruiser-port-port-sole",
  "vendor": "Allbirds",
  "product_type": "",
  "updated_at": "2026-11-10T00:18:36-08:00",
  "variants": [
    {
      "id": 41990816137296,
      "title": "5",
      "sku": "A12858W050",
      "price": "120.00",
      "compare_at_price": null,
      "available": false,
      "updated_at": "2026-11-10T00:18:36-08:00"
    }
  ]
}

Convert prices to numbers before you compare them, because they're strings. Don't assume every field has a value, as the empty product_type here shows. The product and each variant include updated_at, which you can store and compare between runs.

When a product is on sale, compare_at_price holds the original price, and price holds the sale price. Some stores leave compare_at_price null when there's no sale, and some set it to 0.00. Consider a variant on sale only when its compare_at_price is higher than its price. Automatic discounts and discount codes can apply at checkout without changing price, so the price field isn't always what a shopper pays.

products.json has no currency field, so record which market each price comes from, or use the Storefront API, which returns the currency. For stock levels, use the .js endpoint below.

Get more detailed product data with the .js endpoint

Unlike products.json, the /products/{handle}.js endpoint from Shopify's Ajax Product API includes barcodes, the media[] array, and stock levels where the store exposes them:

def get_product_details(store_url, handle):
    """Fetch enriched product data via the .js endpoint."""
    url = f"{store_url}/products/{handle}.js"
    response = fetch_with_retry(url)
    return response.json()




data = get_product_details(
    "https://www.allbirds.com", "mens-tree-runners"
)
print(f"Title:       {data['title']}")
print(f"Available:   {data['available']}")
print(f"Price range: "
      f"${data['price_min']/100:.2f} - "
      f"${data['price_max']/100:.2f}")
print(f"Variants:    {len(data['variants'])}")
print(f"Media items: {len(data.get('media', []))}")


v = data["variants"][0]
print(f"\nEnriched variant fields:")
print(f"  SKU:            {v['sku']}")
print(f"  Price:          ${v['price']/100:.2f}")
print(f"  Inventory qty:  {v.get('inventory_quantity')}")
print(f"  Barcode:        {v.get('barcode')}")

The output for the Men's Tree Runner includes the extra fields that products.json doesn't have:

Title:       Men's Tree Runner - Jet Black (White Sole)
Available:   True
Price range: $70.00 - $70.00
Variants:    7
Media items: 4


Enriched variant fields:
  SKU:            TR3MJBW080
  Price:          $70.00
  Inventory qty:  31
  Barcode:        843416184854

The .js endpoint returns prices in the minor currency unit, unlike products.json. For USD, the minor currency unit is cents (7000 = $70.00).

inventory_quantity depends on what each store reports. Fenty Beauty and Kylie Cosmetics leave it empty, and Taylor Stitch appears to limit it to 40. Check the values on your target store before you rely on them. On stores that block .js, such as SKIMS, the public endpoints give the availability flag but not stock levels.

Tracking stock across a full catalog takes 1 .js request per product. For that volume, use rotating proxies.

Scrape a specific Shopify collection

Append /products.json to a collection URL to get only the products in that collection. Pass the collection path to scrape_shopify_products() as its path argument:

sneakers = scrape_shopify_products(
    "https://www.allbirds.com", path="/collections/mens-sneakers"
)
print(f"Total in mens-sneakers: {len(sneakers)} products")

The mens-sneakers collection has 132 products, so 1 request returns all of them:

Page 1: 132 products
Total in mens-sneakers: 132 products

List all collections

The /collections.json endpoint returns the list of collections, with a product count for each:

def get_all_collections(store_url):
    """Fetch every collection with its handle, title, and product count."""
    collections = []
    for page in range(1, 101):
        url = f"{store_url}/collections.json?limit=250&page={page}"
        batch = fetch_with_retry(url).json().get("collections", [])
        collections.extend(batch)
        if len(batch) < 250:
            break
        time.sleep(1)
    return collections




collections = get_all_collections("https://www.allbirds.com")
print(f"Total: {len(collections)} collections")

Allbirds has 1,349 collections:

Total: 1349 collections

For stores with more than 25,000 products, scrape by collection, because the limit applies to each collection separately. Deduplicate by product id when you combine the results, because products can appear in several collections. Products that aren't in any collection won't appear, so compare your total with the store's published product count in /meta.json.

Extract product URLs from the XML sitemap

Shopify's /sitemap.xml is a sitemap index that points to child sitemaps. The child sitemap URLs contain query parameters that you can't guess, so read the index first and use each product sitemap URL exactly as listed. On stores that use Shopify Markets (Shopify's feature for selling in several countries), skip the localized sitemaps, which list the same products again. Fenty Beauty, for example, repeats its product sitemaps for 190 locales, so 380 sitemaps list 181,739 URLs for about 950 products.

The function reuses fetch_with_retry():

import xml.etree.ElementTree as ET
from urllib.parse import urlparse


NS = {"ns": "http://www.sitemaps.org/schemas/sitemap/0.9"}




def get_product_urls(store_url):
    """Extract product URLs from the store's primary-market sitemaps."""
    response = fetch_with_retry(f"{store_url}/sitemap.xml")
    root = ET.fromstring(response.content)


    # Keep product sitemaps at the root path. Shopify Markets adds a copy
    # per locale (/en-ca/sitemap_products_1.xml...) with the same products.
    product_sitemaps = []
    for sm in root.findall("ns:sitemap", NS):
        loc = sm.find("ns:loc", NS).text
        if "products" in loc and urlparse(loc).path.startswith("/sitemap"):
            product_sitemaps.append(loc)


    urls = []
    for sitemap_url in product_sitemaps:
        response = fetch_with_retry(sitemap_url)
        sub_root = ET.fromstring(response.content)
        urls.extend(
            url_elem.find("ns:loc", NS).text
            for url_elem in sub_root.findall("ns:url", NS)
            if "/products/" in url_elem.find("ns:loc", NS).text
        )
    return list(dict.fromkeys(urls))  # dedupe, keep order




product_urls = get_product_urls("https://www.allbirds.com")
print(f"Found {len(product_urls)} product URLs")
for url in product_urls[:3]:
    print(url)

On Allbirds, the function finds 368 product URLs, the same count that products.json returned:

Found 368 product URLs
https://www.allbirds.com/products/mens-wool-runners
https://www.allbirds.com/products/womens-wool-runners-natural-black
https://www.allbirds.com/products/womens-wool-runner-up-mizzles-natural-grey

For stores that disable products.json, use these URLs for HTML scraping in the next section. Decodo's /map returns the same product URLs in 1 call, as shown in Crawl an entire Shopify store with /map and /crawl.

Scrape Shopify HTML when products.json is disabled

Some stores block both products.json and the Storefront API. When both return a 403 or 404, even through a residential proxy, extract product data from the HTML pages instead.

Many Shopify themes embed a <script type="application/ld+json"> block on product pages with schema.org Product structured data. The markup varies by theme. Some themes use Product, others use ProductGroup with a nested hasVariant array, and some put the price on the group instead of each variant. The parser handles all 3 cases and returns every variant:

from bs4 import BeautifulSoup
import json




def parse_jsonld(html):
    """Return name, brand, and every variant from a product's JSON-LD."""
    soup = BeautifulSoup(html, "html.parser")
    for script in soup.find_all("script", type="application/ld+json"):
        try:
            data = json.loads(script.string)
        except (json.JSONDecodeError, TypeError):
            continue
        for item in data if isinstance(data, list) else [data]:
            if not isinstance(item, dict):
                continue
            if item.get("@type") not in ("Product", "ProductGroup"):
                continue
            offers = item.get("offers") or []
            offers = offers if isinstance(offers, list) else [offers]
            if item.get("hasVariant"):
                # Some themes put offers on the group, not on each variant
                pairs = [(v, (v.get("offers") or offers or [{}]))
                         for v in item["hasVariant"]]
            else:
                pairs = [(o, [o]) for o in offers]  # 1 Offer per variant
            variants = []
            for v, offer in pairs:
                offer = offer[0] if isinstance(offer, list) else offer
                variants.append({
                    "sku": v.get("sku"),
                    "size": v.get("size"),
                    "price": offer.get("price"),
                    "currency": offer.get("priceCurrency"),
                    "in_stock": str(offer.get("availability")).endswith(
                        "InStock"),
                })
            brand = item.get("brand")
            if isinstance(brand, dict):
                brand = brand.get("name")
            return {"name": item.get("name"), "brand": brand,
                    "variants": variants}
    return None




def scrape_product_from_html(url):
    """Fetch a product page and extract its JSON-LD."""
    response = fetch_with_retry(url)
    return parse_jsonld(response.text)




product = scrape_product_from_html(
    "https://www.taylorstitch.com/products/"
    "drift-boardshort-in-ivory-floral-2604"
)
first = product["variants"][0]
print(f"Name:      {product['name']}")
print(f"Variants:  {len(product['variants'])}")
print(f"In stock:  {sum(v['in_stock'] for v in product['variants'])}")
print(f"First:     {first['sku']}, size {first['size']}, "
      f"{first['price']} {first['currency']}")

The JSON-LD on this Taylor Stitch product page lists all 10 sizes:

Name:      The Drift Board Short in Ivory Floral
Variants:  10
In stock:  2
First:     2604DBIF28, size 28, 118.0 USD

Compare JSON-LD values with the price the page shows before you trust them at scale, because each theme builds its own JSON-LD. On Allbirds, 78 of 368 products had a JSON-LD price without cents, for example 15 for a product priced $15.60 in products.json. JSON-LD usually has no compare-at price either.

Gymshark's JSON-LD and the product data in its inline scripts both remove the cents from sale prices. The JSON-LD lists 30 for Gymshark's Running T-Shirt, but the product page shows $30.40:

Gymshark's Running T-Shirt listing.

On theme-based stores, the ShopifyAnalytics.meta object in the page source has exact prices in cents, such as 1560 for the $15.60 Allbirds product. Use it where JSON-LD lacks cents or is missing, as on Jeffree Star Cosmetics. With Beautiful Soup, find the script tag that contains var meta =, and parse the JSON after it. The object holds variant IDs and SKUs, but no availability.

Scraping each product page is slow on large catalogs. At about 4 seconds per page, including a 1-second pause, Gymshark's 2,919 products would take more than 3 hours one page at a time. Fetching pages in parallel, through rotating proxies or Decodo's /crawl, reduces that time. A 200-page Gymshark crawl finished in under a minute, compared with about 13 minutes for the same 200 pages one at a time.

Handle rate limits and anti-bot protections

Shopify doesn't publish rate limits for products.json, but it enforces them. Rapid requests from the same IP trigger 429 responses, with no Retry-After header.

Respect the request cadence

We measured these limits on products.json from a single home IP. The middle column counts requests sent as fast as possible before the first 429. In the last column, both clients send 5 requests per second:

Client

Burst before first 429

First 429 at 5 req/s

Plain Requests (Chrome User-Agent)

About 30 to 65 requests

After 13 to 14 s

curl_cffi (Chrome)

About 150 to 200 requests

After 47 to 52 s

The limit applies per IP and per store, and it depends on the client. The limit works like the leaky bucket that Shopify uses for its documented APIs. A fast burst fills the bucket, and it drains over time. When the bucket is full, Shopify returns a 429, not an empty array, and requests succeed again within about a minute.

A 2-second delay between paginated requests stays under these limits, and a delay of 1 to 2 seconds works for HTML product pages. The fetch_with_retry() wrapper above already handles the occasional 429. For more options, see retry logic for Python requests.

Because the limit is per store, a 429 from one store doesn't affect other stores on the same IP. Scrape several stores in parallel, one worker per store, instead of adding pauses between stores:

from concurrent.futures import ThreadPoolExecutor


STORES = [
    "https://www.allbirds.com",
    "https://www.taylorstitch.com",
    "https://www.redbullshopus.com",
]


# The rate limit is per store, so each store gets its own worker
with ThreadPoolExecutor(max_workers=len(STORES)) as pool:
    results = dict(zip(STORES, pool.map(scrape_shopify_products, STORES)))


for store, items in results.items():
    print(f"{store}: {len(items)} products")

The 3 workers print their page lines mixed together. These are the totals at the end:

https://www.allbirds.com: 368 products
https://www.taylorstitch.com: 3886 products
https://www.redbullshopus.com: 928 products

Common failures and their causes. These are the errors you'll see in the terminal, and what each one means:

  • If the product count is far below the number of product URLs in the sitemap, pagination stopped early. Check the log for 429s and other errors.
  • If products.json returns HTTP Error 401 and the homepage redirects to /password, the store is password-protected. Password protection is common before launch or on wholesale-only stores, and there's no public catalog to collect until the store opens.
  • If a sitemap fails with xml.etree.ElementTree.ParseError: no element found, its URL is usually missing the query parameters. Fetch the sitemap index (/sitemap.xml) first and use the exact child sitemap URL from it.
  • If products.json raises JSONDecodeError, the endpoint returned an HTML page instead of JSON. Retry through a residential proxy.
  • If a request fails with HTTP Error 430, Shopify's security rejected it as possibly malicious, as its response codes explain. Retry it through a residential proxy as well.

Use proxies to scrape Shopify stores at scale

At scale, proxies help in 3 ways. They let you send parallel requests to one large store, replace a blocked IP, and see HTML pages with another market's prices.

Residential proxies use IP addresses that ISPs assign to real household devices. If a store blocks your own IP, it can still respond to a residential proxy IP. Rotating proxies give each request a new IP through a single gateway address.

Proxy traffic is billed per GB, and Shopify's compressed responses keep that traffic small. A 250-product products.json page is roughly 90 to 140 KB after compression, so a catalog of a few thousand products uses a few MB. Decodo's residential plans include a free trial and a pay-as-you-go option.

Configure Decodo residential proxies

First, create an account and open the Proxy setup tab under Residential in the dashboard. The tab shows your proxy username and password, and generates ready-to-copy endpoints for the location, session type, and protocol you select. The residential proxy quick start guide explains the full setup.

Decodo dashboard showing the residential proxy interface.

Scrape Shopify without blocks

Enhance your web scraper with Decodo residential proxies, offering 115M+ ethically-sourced IPs, advanced geo-targeting options, a 99.86% success rate, an average response time under 0.6s, and more.

The dashboard's generated endpoints use port 10000, and either port works. The format below uses gate.decodo.com:7000 for every location, and sets the country, session type, and session duration through username parameters:

user-USERNAME-country-COUNTRY:PASSWORD@gate.decodo.com:7000

By default, each request gets a new IP. This default works well for products.json pagination, because IP rotation spreads the page requests across IPs, each with its own rate limit. Rotate the IP but keep the same impersonate setting, so every request has a consistent, real-browser fingerprint. For cookie-based flows, such as a chosen currency, use a sticky session by adding session and sessionduration (in minutes) to the username, as in user-USERNAME-session-1-sessionduration-10.

Get prices for a specific market

When you set a country with the @inContext directive, the Storefront API returns that country's catalog and currency, if the store sells there. For HTML pages, a geo-targeted proxy can do the same. This query reads one Fenty Beauty product in 3 countries:

from curl_cffi import requests


API_VERSION = "2026-10"


PRICE_QUERY = """
query Price($handle: String!, $country: CountryCode)
  @inContext(country: $country) {
  product(handle: $handle) {
    variants(first: 1) { nodes { price { amount currencyCode } } }
  }
}
"""
url = f"https://fentybeauty.com/api/{API_VERSION}/graphql.json"
for country in ["US", "CA", "GB"]:
    resp = requests.post(
        url,
        json={"query": PRICE_QUERY,
              "variables": {"handle": "holiday-glow-bundle",
                            "country": country}},
        impersonate="chrome",
        timeout=30,
    )
    product = resp.json()["data"]["product"]
    price = product["variants"]["nodes"][0]["price"]
    print(f"{country}: {price['amount']} {price['currencyCode']}")

The output shows each country's price:

US: 101.0 USD
CA: 160.0 CAD
GB: 101.0 USD

Canada is one of Fenty Beauty's markets, so the Storefront API returns the price in CAD. The UK isn't one of its markets, so the Storefront API uses the store's primary market and currency instead.

With products.json, the URL subfolder selects the market, not the IP. /en-ca/products.json returns the same CAD prices, but no currency field. Use the Storefront API when you need the currency code.

A subfolder works only for markets that the store serves on that domain, so check the sitemap index for the locales that exist. A missing subfolder returns 404, for example /en-gb/ on Fenty Beauty.

Unlike products.json, HTML pages can switch currency by IP geolocation. Fenty Beauty shows USD to US visitors and CAD to Canadian visitors. To scrape the pages that shoppers in one market see, add the country parameter to the proxy username, for example user-USERNAME-country-ca. Decodo's residential pool covers 195+ countries.

Scrape Shopify with the Decodo Web Data API

The code above works for most public Shopify stores. At 50+ stores on a daily schedule, though, retry logic, proxy rotation, and fallback chains become a separate project. Decodo's Web Data API reduces that work to a single HTTP call per page, with proxies, JavaScript rendering, and anti-bot handling built in. The Shopify Scraper API page shows the same API applied to Shopify.

One API key gives you these endpoints:

  • /scrape fetches one URL and returns HTML, Markdown, or parsed JSON.
  • /map lists a site's URLs from its sitemap and page links in a single synchronous call.
  • /crawl collects a site's pages in an asynchronous job.
  • /search returns search results for a query.

For Shopify, /scrape replaces the HTTP layer of the scripts above, and /map and /crawl replace the sitemap parsing and page fetching.

Scrape a product page with /scrape

The Web Data API quick start guide shows how to get an API key. The API code uses the standard Requests library (pip install requests). The earlier snippets import curl_cffi under the same name, requests, so put the API code in a new file. Copy parse_jsonld() from the HTML scraping section into it, along with its from bs4 import BeautifulSoup line:

import requests
import json
import time


API_URL = "https://data.decodo.com/v1"
API_KEY = "YOUR_API_KEY"
HEADERS = {
    "Accept": "application/json",
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json",
}




def api_scrape(url, **params):
    """Fetch one URL through the Web Data API /scrape endpoint."""
    payload = {"url": url, "geo": "United States", **params}
    error = None
    for attempt in range(3):
        try:
            resp = requests.post(
                f"{API_URL}/scrape", headers=HEADERS,
                json=payload, timeout=180
            )
        except requests.RequestException as e:
            error = repr(e)
        else:
            if resp.status_code in (401, 403):  # bad key or no access
                raise RuntimeError(f"{resp.status_code}: {resp.text[:200]}")
            body = resp.json() if resp.status_code == 200 else {}
            if body.get("results"):
                return body["results"][0]
            error = f"{resp.status_code}: {resp.text[:200]}"
        # wait, then try again
        time.sleep(2 ** attempt)
    raise RuntimeError(f"/scrape failed for {url}: {error}")




# Gymshark's storefront blocks products.json, .js, and collections.json
result = api_scrape(
    "https://www.gymshark.com/products/gymshark-crest-t-shirt-white-aw21",
    proxy_pool="standard",
)
product = parse_jsonld(result["content"])
variants = product["variants"]
print(f"Status code: {result['status_code']}")
print(f"Product:     {product['name']}")
print(f"Variants:    {len(variants)}, "
      f"{sum(v['in_stock'] for v in variants)} in stock")
print(f"Price:       {variants[0]['price']} {variants[0]['currency']}")

The API returns the product page, and parse_jsonld() reads every variant from its JSON-LD:

Status code: 200
Product:     Crest T-Shirt
Variants:    7, 7 in stock
Price:       22 USD

The price matches the $22 on the page. The returned HTML also has the displayed price, so use a CSS selector where JSON-LD prices have no cents, as on Gymshark sale items.

A few parameters matter for Shopify:

  • proxy_pool sets the proxy type. "standard" works for simple pages, including typical Shopify product pages. The default, "premium", is built for sites with complex anti-bot measures.
  • headless renders the page in a headless browser ("headless": "html"), for sites that render their content client-side with JavaScript. Shopify themes usually put the JSON-LD in the server-rendered HTML, so requests without browser rendering are enough.
  • geo sets the country the request comes from, so the store serves that market's catalog and prices. Set it on every Shopify request, because stores can redirect visitors by country. For example, Gymshark redirects visitors from Spain to its EU store, with euro prices. api_scrape() uses United States by default.

If the API rejects the key (401 or 403), api_scrape() stops immediately and shows the API's message.

Fetch Shopify products.json with /scrape

The same call works for products.json. The content field holds the JSON body as a string:

result = api_scrape(
    "https://www.allbirds.com/products.json?limit=250&page=1",
    proxy_pool="standard",
)
products = json.loads(result["content"])["products"]
print(f"Page 1: {len(products)} products")

A single request returns 250 products:

Page 1: 250 products

Use this approach to monitor many stores that don't block products.json, without running your own proxies. Each request returns 250 products, and the API rotates IPs for you.

The Web Data API pricing page lists the current plans, including a free plan for testing. The full parameter list, including browser actions for JavaScript-heavy pages, is in the scrape parameters docs. Decodo also has an official Python SDK for the Web Data API.

Crawl an entire Shopify store with /map and /crawl

A Shopify crawler on the Web Data API has 2 steps. One discovers URLs and the other extracts their data, as explained in crawling vs. scraping. To crawl a Shopify store, first use /map to list the product URLs, so you know how many pages to crawl. /crawl then reads the same sitemap and fetches the pages as an asynchronous job.

The crawl runs on Decodo's servers, which read the sitemap, route requests through proxies, and fetch pages in parallel. Every page request goes through the premium proxy pool, the one built for sites with complex anti-bot measures.

The examples below crawl Gymshark, whose storefront returns errors on both JSON endpoints. Add the code to the file from the previous section, because it reuses API_URL, HEADERS, and parse_jsonld().

Map every product URL with /map

The /map endpoint lists a site's URLs in one synchronous call, from its sitemap and the links on the page you submit. /map is the API version of the sitemap function above, and a quick way to find all URLs on a domain before you crawl it.

Send the store URL with select_paths to keep only product pages:

resp = requests.post(
    f"{API_URL}/map",
    headers=HEADERS,
    json={
        "url": "https://www.gymshark.com",
        "sitemap": "only",
        "select_paths": ["^/products/"],
    },
    timeout=180,
)
result = resp.json()["results"][0]
product_urls = [link["url"] for link in result["content"]["links"]]


print(f"sitemap_status: {result['sitemap_status']}")
print(f"Product URLs:   {len(product_urls)}")
for url in product_urls[:3]:
    print(url)

The call took about 12 seconds and returned every product URL in the sitemap:

sitemap_status: only
Product URLs:   2919
https://www.gymshark.com/products/gift-card
https://www.gymshark.com/products/gymshark-fit-seamless-cropped-leggings-smokey-grey
https://www.gymshark.com/products/gymshark-scoop-neck-training-sports-bra-brown

On all 6 stores we mapped, /map returned every primary-market product URL in Shopify's sitemap index.

These /map parameters matter for Shopify, and the map parameters docs describe the rest:

  • sitemap sets where the URLs come from. "only" uses the sitemap alone, "include" (the default) adds the links on the page, and "skip" ignores the sitemap. The response's sitemap_status confirms which source the URLs came from.
  • select_paths and exclude_paths are regex filters on the URL path. ^/products/ keeps only paths that start with /products/, so it also removes localized URLs like /es-US/products/{handle} that Gymshark's sitemap lists. Add "exclude_paths": ["gift-card"] to exclude the gift card product.

To try the same request without code, open the Web Data API playground in the dashboard. Select Map, enter the store URL, and under Advanced settings, set Sitemap to Only and Select paths to ^/products/. The JSON response appears below the form, with its status code and response time.

Decodo dashboard showing the Playground functionality and Web Data API map capabilties

Crawl the store with /crawl

The /crawl endpoint runs as an asynchronous job. You start it, poll its status (or set a callback_url for a webhook), then fetch the results. With "sitemap": "only", /crawl fetches the sitemap URLs that match select_paths.

These functions start a crawl, wait for it, and download the pages:

def start_crawl(store_url, limit):
    """Start a /crawl job for a store's product pages."""
    resp = requests.post(
        f"{API_URL}/crawl",
        headers=HEADERS,
        json={
            "url": store_url,
            "sitemap": "only",
            "select_paths": ["^/products/"],
            "limit": limit,
            "output": "html",
            "geo": "United States",
        },
        timeout=60,
    )
    resp.raise_for_status()
    return resp.json()["crawl_id"]




def wait_for_crawl(crawl_id, poll_every=10):
    """Poll the status endpoint until the crawl stops."""
    while True:
        status = requests.get(
            f"{API_URL}/crawl/{crawl_id}/status",
            headers=HEADERS, timeout=60
        ).json()
        print(
            f"  {status['status']}: "
            f"{status['completed']}/{status['discovered']} pages, "
            f"{status['failed']} failed"
        )
        if status["status"] != "pending":
            return status
        time.sleep(poll_every)




def crawl_pages(crawl_id):
    """Yield crawled pages, following the `next` cursor between batches."""
    url = f"{API_URL}/crawl/{crawl_id}?type=content"
    while url:
        for attempt in range(5):
            try:
                resp = requests.get(url, headers=HEADERS, timeout=120)
                if resp.status_code == 200:
                    break
            except requests.RequestException:
                pass
            time.sleep(2 ** attempt)  # wait, then retry
        else:
            raise RuntimeError(f"Could not fetch {url}")
        batch = resp.json()
        yield from batch.get("url", [])  # pages arrive in "url"
        url = batch.get("next")




crawl_id = start_crawl("https://www.gymshark.com", limit=100)
wait_for_crawl(crawl_id)


products, failed = [], []
for page in crawl_pages(crawl_id):
    item = parse_jsonld(page.get("content") or "")
    if page["status"] == "done" and item:
        item["url"] = page["url"]
        products.append(item)
    else:
        failed.append(page["url"])


variant_count = sum(len(p["variants"]) for p in products)
print(f"Parsed {len(products)} products ({variant_count} variants), "
      f"{len(failed)} failed pages")

The crawl finished in under a minute, and every page had JSON-LD:

  pending: 0/0 pages, 0 failed
  pending: 0/0 pages, 0 failed
  pending: 61/100 pages, 0 failed
  pending: 97/100 pages, 0 failed
  pending: 99/100 pages, 0 failed
  done: 100/100 pages, 0 failed
Parsed 100 products (676 variants), 0 failed pages

The parameters that matter for a Shopify crawl are below, and the crawl parameters docs describe the rest:

  • limit sets the maximum number of pages in the job. Start with a small value to check the output, then increase it to the /map count.
  • output sets the result format. Use "html" to keep the <script> tags that hold the JSON-LD. The default, "markdown", works best for text content.
  • max_duration stops a long crawl after a set number of seconds and keeps the pages already collected.

Crawls of a few hundred product pages finished in about a minute. A 200-page Gymshark crawl took 57 seconds, and all 368 Allbirds pages took 46 seconds. Polling every 10 seconds is enough.

For scheduled jobs, set callback_url (and a passthrough value to verify the sender) instead of polling, and download the results when the callback arrives.

Cost is per request, and each job's status includes a requests count, which the full crawl script saves in its JSON file. The billing page lists the current rates for each plan and the responses that aren't billed.

When you scrape Shopify stores that serve products.json, /scrape is the more cost-efficient path. Allbirds' full catalog takes 2 requests through products.json, compared with a 368-page crawl. Use /crawl for stores that block both the Storefront API and products.json, or when you need the product pages as shoppers see them.

Complete script

Save the script as shopify_scraper.py and pass it one or more store URLs, for example python shopify_scraper.py https://www.allbirds.com https://kyliecosmetics.com. This Shopify web scraper tries the Storefront API first, then products.json, and then HTML scraping, which reads the JSON-LD on each product page:

"""Shopify Store Scraper: Storefront API, products.json, then JSON-LD.


Usage: python shopify_scraper.py [STORE_URL ...]
"""


from curl_cffi import requests
from curl_cffi.requests.exceptions import HTTPError
from bs4 import BeautifulSoup
from datetime import datetime
from urllib.parse import urlparse
import xml.etree.ElementTree as ET
import json
import csv
import time
import sys


# ---- Configuration ----
STORE_URL = "https://www.allbirds.com"


# Optional: route requests through Decodo residential proxies
PROXIES = None
# PROXY_USER = "YOUR_PROXY_USERNAME"
# PROXY_PASS = "YOUR_PROXY_PASSWORD"
# proxy_url = (f"http://user-{PROXY_USER}-country-us:"
#              f"{PROXY_PASS}@gate.decodo.com:7000")
# PROXIES = {"http": proxy_url, "https": proxy_url}


DELAY_BETWEEN_PAGES = 2
MAX_RETRIES = 4
MAX_HTML_PAGES = None  # set to e.g. 50 for a quick test of the fallback


NS = {"ns": "http://www.sitemaps.org/schemas/sitemap/0.9"}
API_VERSION = "2026-10"
STOREFRONT_QUERY = """
query Products($cursor: String) {
  products(first: 250, after: $cursor) {
    pageInfo { hasNextPage endCursor }
    nodes {
      id title handle vendor
      variants(first: 100) {
        pageInfo { hasNextPage }
        nodes {
          id title sku availableForSale
          price { amount currencyCode }
          compareAtPrice { amount }
        }
      }
    }
  }
}
"""




# ---- Fetching ----
def fetch_with_retry(url, max_retries=MAX_RETRIES):
    for attempt in range(max_retries):
        try:
            resp = requests.get(
                url, impersonate="chrome", proxies=PROXIES, timeout=30
            )
        except Exception:
            if attempt == max_retries - 1:
                raise
            time.sleep(2 ** attempt)
            continue
        if resp.status_code == 429:
            if attempt == max_retries - 1:
                break
            wait = 10 * 2 ** attempt
            print(f"  Rate limited. Waiting {wait}s...")
            time.sleep(wait)
            continue
        retry_403 = PROXIES and resp.status_code == 403  # new IP next try
        if (resp.status_code >= 500 or retry_403) \
                and attempt < max_retries - 1:
            time.sleep(2 ** attempt)
            continue
        resp.raise_for_status()  # other 4xx fail at once
        return resp
    raise RuntimeError(f"Still rate limited after {max_retries} tries: {url}")




def is_shopify_store(store_url):
    """products.json first, then cdn.shopify.com assets as a backup."""
    try:
        r = requests.get(f"{store_url}/products.json?limit=1",
                         impersonate="chrome", proxies=PROXIES, timeout=15)
        if r.status_code == 200 and "products" in r.json():
            return True
    except Exception:
        pass
    try:
        r = requests.get(store_url, impersonate="chrome",
                         proxies=PROXIES, timeout=15)
        return "cdn.shopify.com" in r.text
    except Exception:
        return False




def gid_to_int(gid):
    return int(gid.rsplit("/", 1)[1])  # gid://shopify/Product/123 -> 123




def money(m):
    return f"{float(m['amount']):.2f}" if m else None




def post_with_retry(url, payload, max_retries=MAX_RETRIES):
    """POST with the same retry rules as fetch_with_retry()."""
    for attempt in range(max_retries):
        try:
            resp = requests.post(url, json=payload, impersonate="chrome",
                                 proxies=PROXIES, timeout=30)
        except Exception:
            if attempt == max_retries - 1:
                raise
            time.sleep(2 ** attempt)
            continue
        retry = resp.status_code == 429 or resp.status_code >= 500
        if retry and attempt < max_retries - 1:
            time.sleep(10 * 2 ** attempt if resp.status_code == 429
                       else 2 ** attempt)
            continue
        resp.raise_for_status()
        return resp




def storefront_products(store_url):
    """All products from the tokenless Storefront API, in the products.json
    shape, so detect_changes() works on runs from either method."""
    url = f"{store_url}/api/{API_VERSION}/graphql.json"
    products, cursor = [], None
    while True:
        resp = post_with_retry(url, {"query": STOREFRONT_QUERY,
                                     "variables": {"cursor": cursor}})
        body = resp.json()
        if "errors" in body:
            raise RuntimeError(body["errors"][0]["message"])
        page = body["data"]["products"]
        for p in page["nodes"]:
            if p["variants"]["pageInfo"]["hasNextPage"]:
                print(f"  Warning: {p['handle']} has over 100 variants")
            products.append({
                "id": gid_to_int(p["id"]), "title": p["title"],
                "handle": p["handle"], "vendor": p["vendor"],
                "variants": [{
                    "id": gid_to_int(v["id"]), "title": v["title"],
                    "sku": v["sku"], "price": money(v["price"]),
                    "currency": v["price"]["currencyCode"],
                    "compare_at_price": money(v["compareAtPrice"]),
                    "available": v["availableForSale"],
                } for v in p["variants"]["nodes"]],
            })
        print(f"  Storefront API: {len(products)} products")
        if not page["pageInfo"]["hasNextPage"]:
            return products
        cursor = page["pageInfo"]["endCursor"]
        time.sleep(1)




def paginate_products(base_url):
    all_products = []
    for page in range(1, 101):  # Shopify stops at 25,000 products
        url = f"{base_url}/products.json?limit=250&page={page}"
        products = fetch_with_retry(url).json().get("products", [])
        all_products.extend(products)
        print(f"  Page {page}: {len(products)} products")
        if len(products) < 250:
            break
        time.sleep(DELAY_BETWEEN_PAGES)
    else:
        print("  Warning: reached the 25,000-product cap")
    return all_products




def get_product_urls_from_sitemap(store_url):
    r = fetch_with_retry(f"{store_url}/sitemap.xml")
    root = ET.fromstring(r.content)
    product_sitemaps = []
    for sm in root.findall("ns:sitemap", NS):
        loc = sm.find("ns:loc", NS).text
        if "products" in loc and urlparse(loc).path.startswith("/sitemap"):
            product_sitemaps.append(loc)
    urls = []
    for sitemap_url in product_sitemaps:
        r = fetch_with_retry(sitemap_url)
        sub_root = ET.fromstring(r.content)
        urls.extend(
            u.find("ns:loc", NS).text
            for u in sub_root.findall("ns:url", NS)
            if "/products/" in u.find("ns:loc", NS).text
        )
    return list(dict.fromkeys(urls))




def handle_of(url):
    return urlparse(url).path.split("/products/")[1].strip("/")




# ---- Parsing ----
def parse_jsonld(html):
    soup = BeautifulSoup(html, "html.parser")
    for s in soup.find_all("script", type="application/ld+json"):
        try:
            d = json.loads(s.string)
        except (json.JSONDecodeError, TypeError):
            continue
        for item in d if isinstance(d, list) else [d]:
            if not isinstance(item, dict):
                continue
            if item.get("@type") not in ("Product", "ProductGroup"):
                continue
            offers = item.get("offers") or []
            offers = offers if isinstance(offers, list) else [offers]
            if item.get("hasVariant"):
                pairs = [(v, (v.get("offers") or offers or [{}]))
                         for v in item["hasVariant"]]
            else:
                pairs = [(o, [o]) for o in offers]
            variants = []
            for v, offer in pairs:
                offer = offer[0] if isinstance(offer, list) else offer
                variants.append({
                    "sku": v.get("sku"),
                    "size": v.get("size"),
                    "price": offer.get("price"),
                    "currency": offer.get("priceCurrency"),
                    "in_stock": str(offer.get("availability")).endswith(
                        "InStock"),
                })
            brand = item.get("brand")
            if isinstance(brand, dict):
                brand = brand.get("name")
            return {"name": item.get("name"), "brand": brand,
                    "variants": variants}
    return None




# ---- Strategy ----
def scrape_with_fallback(store_url):
    try:
        products = storefront_products(store_url)
        if products:
            return products, "storefront_api"
        print("  Storefront API returned no products")
    except Exception as e:  # not served on this domain, or an API error
        print(f"  Storefront API unavailable: {str(e)[:60]}")
    try:
        products = paginate_products(store_url)
        if products:
            return products, "products.json"
    except HTTPError as e:  # 403 or 404: blocked, so fall back
        print(f"  products.json blocked: {e}")


    urls = get_product_urls_from_sitemap(store_url)
    print(f"  {len(urls)} product URLs in the sitemap")
    print("  Falling back to JSON-LD on each product page...")
    products, failed = [], []
    for i, url in enumerate(urls[:MAX_HTML_PAGES]):
        if i % 50 == 0:
            print(f"  HTML scrape: {i}/{len(urls[:MAX_HTML_PAGES])}")
        try:
            p = parse_jsonld(fetch_with_retry(url).text)
            if p:
                p["url"] = url
                products.append(p)
        except HTTPError as e:
            failed.append({"url": url, "error": str(e)})
        time.sleep(1)
    if failed:
        with open("failed_urls.json", "w") as f:
            json.dump(failed, f, indent=2)
        print(f"  {len(failed)} URLs failed - logged to failed_urls.json")
    return products, "sitemap+jsonld"




# ---- Output ----
def save_json(products, store_url, method):
    output = {
        "metadata": {
            "store_url": store_url,
            "scraped_at": datetime.now().isoformat(),
            "method": method,
            "total_products": len(products),
        },
        "products": products,
    }
    host = urlparse(store_url).netloc
    filename = f"products_{host}_{datetime.now():%Y%m%d_%H%M%S}.json"
    with open(filename, "w") as f:
        json.dump(output, f, indent=2)
    print(f"\nSaved {len(products)} products to {filename}")




def save_csv(products, store_url, method):
    host = urlparse(store_url).netloc
    filename = f"products_{host}_{datetime.now():%Y%m%d_%H%M%S}.csv"
    with open(filename, "w", newline="") as f:
        w = csv.writer(f)
        w.writerow(["product_id", "variant_id", "title", "handle", "url",
                    "vendor", "variant", "sku", "price", "currency",
                    "compare_at_price", "available"])
        for p in products:
            if method in ("storefront_api", "products.json"):
                url = f"{store_url}/products/{p['handle']}"
                for v in p.get("variants", []):
                    w.writerow([p["id"], v["id"], p["title"], p["handle"],
                                url, p.get("vendor"), v.get("title"),
                                v.get("sku"), v.get("price"),
                                v.get("currency", ""),
                                v.get("compare_at_price"),
                                v.get("available")])
            else:  # JSON-LD items have no Shopify IDs
                for v in p["variants"]:
                    w.writerow(["", "", p["name"], handle_of(p["url"]),
                                p["url"], p.get("brand"), v.get("size"),
                                v.get("sku"), v.get("price"),
                                v.get("currency"), "", v.get("in_stock")])
    print(f"Saved CSV to {filename}")




# ---- Entry point ----
def blocked_status(store_url):
    """Return 403 or 429 if the store blocks this IP, else None."""
    try:
        status = requests.get(store_url, impersonate="chrome",
                              proxies=PROXIES, timeout=15).status_code
    except Exception:
        return None
    return status if status in (403, 429) else None




def scrape_store(store_url):
    print(f"Target store: {store_url}")
    if not is_shopify_store(store_url):
        status = blocked_status(store_url)
        if status:
            print(f"ERROR: the store returned {status} to this IP. "
                  "Turn on PROXIES above and run again.")
        else:
            print("ERROR: target does not appear to be a Shopify store")
        return False


    print("Confirmed Shopify store. Starting scrape...")
    products, method = scrape_with_fallback(store_url)
    if not products:
        print("ERROR: no products scraped")
        return False


    save_json(products, store_url, method)
    save_csv(products, store_url, method)
    print(f"Done. Method: {method}\n")
    return True




def main():
    # python shopify_scraper.py https://store-a.com https://store-b.com
    stores = sys.argv[1:] or [STORE_URL]
    results = []
    for url in stores:
        try:
            results.append(scrape_store(url.rstrip("/")))
        except Exception as e:  # one failing store doesn't stop the others
            print(f"ERROR: {url} failed: {e}\n")
            results.append(False)
    sys.exit(0 if all(results) else 1)




if __name__ == "__main__":
    main()

This is the output for Allbirds and Kylie Cosmetics. Allbirds shows 317 products instead of 368, because its catalog shrank between runs (products.json showed the same drop):

Target store: https://www.allbirds.com
Confirmed Shopify store. Starting scrape...
  Storefront API: 250 products
  Storefront API: 317 products


Saved 317 products to products_www.allbirds.com_20261112_073245.json
Saved CSV to products_www.allbirds.com_20261112_073245.csv
Done. Method: storefront_api


Target store: https://kyliecosmetics.com
Confirmed Shopify store. Starting scrape...
  Storefront API: 250 products
  Storefront API: 262 products


Saved 262 products to products_kyliecosmetics.com_20261112_073247.json
Saved CSV to products_kyliecosmetics.com_20261112_073247.csv
Done. Method: storefront_api

Each store gets its own JSON and CSV file, named after its domain and the run time. The JSON file holds a metadata block and the full products array, which detect_changes() in the scheduling section compares between runs. The CSV has one row per variant, and its currency column is filled when the data comes from the Storefront API or JSON-LD. To load the data elsewhere, such as a database, follow the guide to saving scraped data.

Without arguments, the script scrapes STORE_URL. If a store fails, for example because it blocks your IP, the script prints the error and continues with the next store. To route requests through Decodo residential proxies, uncomment the proxy lines and add your credentials. With proxies enabled, the script retries a 403 on a new IP.

For a long list of stores, run scrape_store() in a thread pool with one worker per store, as in the rate limits section. The script reads each store's primary market. For another market's prices, add the @inContext directive and the country variable from Get prices for a specific market to its query.

The script handled every type of store tested without code changes. Allbirds, Fenty Beauty, Kylie Cosmetics, and SKIMS used the Storefront API, each in under a minute. On Gymshark, the script switched to HTML scraping automatically. On 12 more random stores from Shopify's Global Catalog, the script worked as is on 11, and through Decodo residential proxies on the 12th.

Shopify crawler script with /map and /crawl

The second script collects a store's product data through Decodo's Web Data API instead. The crawler maps the product URLs, runs one crawl, parses the JSON-LD, and saves one row per variant as JSON and CSV. Save it as shopify_crawler.py. It uses Requests and Beautiful Soup, not curl_cffi (pip install requests beautifulsoup4):

"""Crawl a Shopify store's product pages with the Decodo Web Data API."""


import requests
from bs4 import BeautifulSoup
from datetime import datetime
import json
import csv
import time


# ---- Configuration ----
API_URL = "https://data.decodo.com/v1"
API_KEY = "YOUR_API_KEY"
STORE_URL = "https://www.gymshark.com"
LIMIT = 100  # pages per job; None = every URL /map found
GEO = "United States"


HEADERS = {
    "Accept": "application/json",
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json",
}




# ---- Web Data API calls ----
def map_product_urls(store_url):
    """List product URLs with /map (sizes the crawl before you pay)."""
    resp = requests.post(
        f"{API_URL}/map",
        headers=HEADERS,
        json={"url": store_url, "sitemap": "only",
              "select_paths": ["^/products/"]},
        timeout=180,
    )
    if resp.status_code != 200 or "results" not in resp.json():
        print(f"  /map returned {resp.status_code}, continuing without it")
        return []
    links = resp.json()["results"][0]["content"]["links"]
    return [link["url"] for link in links]




def start_crawl(store_url, limit):
    resp = requests.post(
        f"{API_URL}/crawl",
        headers=HEADERS,
        json={
            "url": store_url,
            "sitemap": "only",
            "select_paths": ["^/products/"],
            "limit": limit,
            "output": "html",
            "geo": GEO,
        },
        timeout=60,
    )
    resp.raise_for_status()
    return resp.json()["crawl_id"]




def wait_for_crawl(crawl_id, poll_every=10):
    while True:
        status = requests.get(
            f"{API_URL}/crawl/{crawl_id}/status",
            headers=HEADERS, timeout=60
        ).json()
        print(f"  {status['status']}: "
              f"{status['completed']}/{status['discovered']} pages, "
              f"{status['failed']} failed")
        if status["status"] != "pending":
            return status
        time.sleep(poll_every)




def crawl_pages(crawl_id):
    url = f"{API_URL}/crawl/{crawl_id}?type=content"
    while url:
        for attempt in range(5):
            try:
                resp = requests.get(url, headers=HEADERS, timeout=120)
                if resp.status_code == 200:
                    break
            except requests.RequestException:
                pass
            time.sleep(2 ** attempt)  # wait, then retry
        else:
            raise RuntimeError(f"Could not fetch {url}")
        batch = resp.json()
        yield from batch.get("url", [])  # pages arrive in "url"
        url = batch.get("next")




# ---- Parsing ----
def parse_jsonld(html):
    """Return name, brand, and every variant from a product's JSON-LD."""
    soup = BeautifulSoup(html, "html.parser")
    for script in soup.find_all("script", type="application/ld+json"):
        try:
            data = json.loads(script.string)
        except (json.JSONDecodeError, TypeError):
            continue
        for item in data if isinstance(data, list) else [data]:
            if not isinstance(item, dict):
                continue
            if item.get("@type") not in ("Product", "ProductGroup"):
                continue
            offers = item.get("offers") or []
            offers = offers if isinstance(offers, list) else [offers]
            if item.get("hasVariant"):
                # Some themes put offers on the group, not on each variant
                pairs = [(v, (v.get("offers") or offers or [{}]))
                         for v in item["hasVariant"]]
            else:
                pairs = [(o, [o]) for o in offers]  # 1 Offer per variant
            variants = []
            for v, offer in pairs:
                offer = offer[0] if isinstance(offer, list) else offer
                variants.append({
                    "sku": v.get("sku"),
                    "size": v.get("size"),
                    "price": offer.get("price"),
                    "currency": offer.get("priceCurrency"),
                    "in_stock": str(offer.get("availability")).endswith(
                        "InStock"),
                })
            brand = item.get("brand")
            if isinstance(brand, dict):
                brand = brand.get("name")
            return {"name": item.get("name"), "brand": brand,
                    "variants": variants}
    return None




def to_rows(item, url):
    """One CSV row per variant."""
    return [{"url": url, "name": item["name"], **v} for v in item["variants"]]




# ---- Entry point ----
def main():
    print(f"Target store: {STORE_URL}")
    urls = map_product_urls(STORE_URL)
    print(f"/map found {len(urls)} product URLs")


    limit = LIMIT or len(urls)
    if not limit:
        raise SystemExit("Set LIMIT: no /map count to size the crawl")
    crawl_id = start_crawl(STORE_URL, limit)
    print(f"Crawl started: {crawl_id}")
    status = wait_for_crawl(crawl_id)


    rows, failed = [], []
    for page in crawl_pages(crawl_id):
        item = parse_jsonld(page.get("content") or "")
        if page["status"] == "done" and item:
            rows.extend(to_rows(item, page["url"]))
        else:
            failed.append(page["url"])


    stamp = f"{datetime.now():%Y%m%d_%H%M%S}"
    with open(f"crawl_{stamp}.json", "w") as f:
        json.dump({"store_url": STORE_URL, "crawl_id": crawl_id,
                   "status": status, "products": rows, "failed": failed},
                  f, indent=2)
    with open(f"crawl_{stamp}.csv", "w", newline="") as f:
        fields = list(rows[0]) if rows else ["url"]
        writer = csv.DictWriter(f, fieldnames=fields)
        writer.writeheader()
        writer.writerows(rows)
    print(f"\nSaved {len(rows)} variant rows to crawl_{stamp}.json and .csv")
    print(f"Failed or no JSON-LD: {len(failed)}")




if __name__ == "__main__":
    main()

This is the output with LIMIT set to 50. /map found 2,999 product URLs this time instead of 2,919, because Gymshark's catalog changed between runs:

Target store: https://www.gymshark.com
/map found 2999 product URLs
Crawl started: cc44fa54-eae2-4f32-b6f7-5c7e9982c8b9
  pending: 0/0 pages, 0 failed
  pending: 19/50 pages, 0 failed
  done: 50/50 pages, 0 failed


Saved 338 variant rows to crawl_20261112_064508.json and .csv
Failed or no JSON-LD: 0

The CSV has one row per size, so you can track the availability of each one. Gymshark's JSON-LD repeats the same SKU on every size, so key the rows by URL and size. These leggings were on sale:

url,name,sku,size,price,currency,in_stock
https://www.gymshark.com/products/gymshark-fit-seamless-cropped-leggings-smokey-grey,Fit Seamless Cropped Leggings,GLLG4276-SMG,xs,9,USD,False
https://www.gymshark.com/products/gymshark-fit-seamless-cropped-leggings-smokey-grey,Fit Seamless Cropped Leggings,GLLG4276-SMG,s,9,USD,True
https://www.gymshark.com/products/gymshark-fit-seamless-cropped-leggings-smokey-grey,Fit Seamless Cropped Leggings,GLLG4276-SMG,m,9,USD,False

The HTML that /crawl returns also has the displayed price, so parse it for exact sale prices on Gymshark. Set LIMIT to None to crawl every URL that /map found.

Automate scraping on a schedule

Price monitoring and inventory tracking need recurring runs. On a server, cron is the standard way to schedule web scraping tasks.

Schedule with cron

On Linux or macOS, add the line below with crontab -e. This line uses the full path to Python (here, a virtualenv in .venv), because cron runs with a minimal PATH. The store URLs come from stores.txt, one per line. flock -n skips the run if the previous one is still running, and the lock is released even if a run crashes:

# Run daily at 3:00 AM, skip if the previous run is still going
0 3 * * * cd /home/user/scraper && flock -n scraper.lock .venv/bin/python shopify_scraper.py $(cat stores.txt) >> scraper.log 2>&1

flock is included in util-linux on Linux. On macOS, install it with brew install flock. On Windows, use Task Scheduler and set If the task is already running to Do not start a new instance.

A scheduled script usually runs on a cloud server, and stores can treat datacenter IPs as bot traffic. Enable the script's residential proxy lines before you schedule it.

Detect price changes between runs

The function below compares 2 runs of the complete script by variant ID. Shopify variant IDs are unique and don't change, while merchants can rename a product handle. The function reports price, compare-at price, and availability changes, plus new and removed variants. It works with Storefront API and products.json runs, which include variant IDs:

import json




def detect_changes(current_products, previous_file):
    """Compare price, compare-at price, and availability by variant ID."""
    try:
        with open(previous_file) as f:
            previous = json.load(f)["products"]
    except (FileNotFoundError, KeyError):
        return []


    def by_variant(products):
        return {v["id"]: (p["handle"], v)
                for p in products for v in p.get("variants", [])}


    old, new = by_variant(previous), by_variant(current_products)
    changes = []
    for vid, (handle, v) in new.items():
        if vid not in old:
            changes.append({"variant_id": vid, "handle": handle,
                            "change": "new"})
            continue
        before = old[vid][1]
        for field in ("price", "compare_at_price", "available"):
            if before.get(field) != v.get(field):
                changes.append({"variant_id": vid, "handle": handle,
                                "change": field, "old": before.get(field),
                                "new": v.get(field)})
    for vid in old.keys() - new.keys():
        changes.append({"variant_id": vid, "handle": old[vid][0],
                        "change": "removed"})
    return changes

JSON-LD runs have no variant IDs, so compare their rows by URL and size instead.

Validate each run before you use its changes

A run can finish without errors and still be wrong, for example when pagination stops early or a price parses as zero.

validate_run() rejects a run when its product count falls below 90% of the count the store publishes in /meta.json. A blocked /meta.json also rejects the run, while a missing one (404, as on SKIMS) holds it for review. It also holds zero prices for review, along with any price change above 50% that detect_changes() reports. The demo loads the current run and the previous run from the complete script's files:

import json
from curl_cffi import requests




def validate_run(current_products, previous_file, store_url,
                 min_share=0.9, max_jump=0.5):
    """Check a run before you act on its changes."""
    problems, review = [], []


    # Completeness: compare with the store's own product count
    meta = requests.get(f"{store_url}/meta.json",
                        impersonate="chrome", timeout=15)
    if meta.status_code == 200:
        expected = meta.json().get("published_products_count") or 0
        if len(current_products) < expected * min_share:
            problems.append(f"only {len(current_products)} of "
                            f"{expected} products")
    elif meta.status_code == 404:  # the store doesn't publish /meta.json
        review.append({"change": "count not checked: no /meta.json"})
    else:  # a blocked /meta.json must not pass the run unchecked
        problems.append(f"/meta.json returned {meta.status_code}, "
                        "so the count wasn't checked")


    # Prices: a missing or zero price needs a human look
    for p in current_products:
        for v in p.get("variants", []):
            if float(v.get("price") or 0) <= 0:
                review.append({"handle": p["handle"],
                               "variant_id": v["id"],
                               "change": "zero price"})


    # Large jumps: hold them for review instead of alerting
    for c in detect_changes(current_products, previous_file):
        if c["change"] == "price" and float(c["old"]) > 0:
            if abs(float(c["new"]) / float(c["old"]) - 1) > max_jump:
                review.append(c)
    return problems, review




STORE_URL = "https://www.allbirds.com"
CURRENT = "products_www.allbirds.com_20261112_073245.json"  # this run
PREVIOUS = "products_www.allbirds.com_20261110_141453.json"  # last run


with open(CURRENT) as f:
    current = json.load(f)["products"]
for name, run in [("Full run", current), ("Page 1 only", current[:250])]:
    problems, review = validate_run(run, PREVIOUS, STORE_URL)
    if problems:
        print(f"{name}: rejected, {'; '.join(problems)}")
    else:
        print(f"{name}: accepted, {len(review)} changes held for review")

The full Allbirds run passes, and a copy truncated after page 1 is rejected:

Full run: accepted, 0 changes held for review
Page 1 only: rejected, only 250 of 317 products

Product counts change between runs. Allbirds' products.json count fell from 368 to 317 in 2 days. A fixed count, or the last run's total, would have rejected this good run. On stores without /meta.json, use the number of product URLs in the sitemap instead, which can be lower than the published count.

For a daily run, put the detect_changes() and validate_run() code, with its imports but without the demo lines, in daily_check.py, and add the code below. The file names include a timestamp, so the function sorts them and compares each store's newest run with the one before it. It skips JSON-LD runs, such as Gymshark's, because they have no variant IDs:

import glob
from urllib.parse import urlparse




def daily_check(stores_file="stores.txt"):
    """Validate each store's newest run against the run before it."""
    for url in open(stores_file).read().split():
        url = url.rstrip("/")
        host = urlparse(url).netloc
        files = sorted(glob.glob(f"products_{host}_*.json"))
        if len(files) < 2:
            print(f"{host}: waiting for a second run")
            continue
        with open(files[-1]) as f:
            run = json.load(f)
        if run["metadata"]["method"] == "sitemap+jsonld":
            print(f"{host}: JSON-LD run, compare rows by URL and size")
            continue
        problems, review = validate_run(run["products"], files[-2], url)
        if problems:
            print(f"{host}: rejected, {'; '.join(problems)}")
            continue
        changes = detect_changes(run["products"], files[-2])
        print(f"{host}: accepted, {len(changes)} changes, "
              f"{len(review)} held for review")




daily_check()

This is the output with an Allbirds run from 2 days earlier and a single Kylie Cosmetics run:

www.allbirds.com: accepted, 98 changes, 0 held for review
kyliecosmetics.com: waiting for a second run

To run the check every day, replace the cron line with this one, which runs daily_check.py after the scraper:

# Run daily at 3:00 AM: scrape, then validate and compare
0 3 * * * cd /home/user/scraper && flock -n scraper.lock sh -c '.venv/bin/python shopify_scraper.py $(cat stores.txt); .venv/bin/python daily_check.py' >> scraper.log 2>&1

If the store blocks your server's IP, send the /meta.json request through the scraper's proxies too, or the check rejects every run. For JSON-LD stores, compare rows by URL and size, and check the count against the number of product URLs in the sitemap. Then push the accepted changes to a database, spreadsheet, or notification system.

If you prefer visual workflows to cron scripts, use Decodo's n8n integration.

Final thoughts

For web scraping Shopify stores, start with the Storefront API, which needs no access token and worked on 7 of the 8 stores tested. Test each store first, and retry a 403 or 404 through a Decodo residential proxy, because the block may depend on your IP. For daily monitoring, schedule the complete script, check each run with validate_run(), and reject any run below 90% of the store's published product count. Where a store blocks both endpoints, Decodo's /map lists the product URLs and /crawl fetches the pages in parallel, not one at a time.

For related eCommerce scraping tutorials, see how to scrape Target product data, scraping Amazon product data, scraping Etsy, and price scraping.

Decodo's Web Data API includes a free plan, so test /map and /crawl on your own target store before you scale.

Skip the boilerplate

Track competitor pricing across thousands of Shopify stores with Decodo's Web Data API.

Share article:

About the author

Lukas Mikelionis

Senior Account Manager

Lukas is a seasoned enterprise sales professional with extensive experience in the SaaS industry. Throughout his career, he has built strong relationships with Fortune 500 technology companies, developing a deep understanding of complex enterprise needs and strategic account management.

Connect with Lukas via LinkedIn.

All information on Decodo Blog is provided on an as is basis and for informational purposes only. We make no representation and disclaim all liability with respect to your use of any information contained on Decodo Blog or any third-party websites that may belinked therein.

Frequently asked questions

How does products.json work?

Append /products.json to any Shopify store domain. The endpoint returns up to 250 products per page as JSON, with titles, prices, variants, images, and availability. Add ?page=N&limit=250 to paginate, up to 25,000 products. No authentication is needed on public stores, but some merchants disable the endpoint.

Does Shopify have an official API for product data?

Yes. The Storefront API supports tokenless access for product and collection queries, with exact prices, currency, and localized pricing. Stock levels and metafields need an access token. Tokenless queries allow a query complexity of up to 1,000, enough to fetch 250 products per request.

What data can you scrape from Shopify?

Public product catalog data, not orders, customers, or analytics. The Storefront API and /products.json return prices, availability, variants, and images. The /products/{handle}.js endpoint adds barcodes and, where the store exposes them, stock levels. The XML sitemap lists the product URLs.

What if products.json is disabled?

Try the Storefront API first, since it can work even on stores that block products.json, such as SKIMS. Otherwise, Decodo's Web Data API lists the product URLs with /map and collects the pages with /crawl. To collect the pages yourself, parse the sitemap for product URLs and extract JSON-LD from each page.

How do you scrape an entire Shopify store?

Paginate the Storefront API or /products.json, which return every product in pages of 250. If a store blocks both, Decodo's Web Data API /map lists the product URLs from its sitemap, and /crawl fetches those pages in one parallel job. Then parse each page's JSON-LD.

Can you scrape Shopify stores for free?

Yes. Shopify's Storefront API and /products.json need no API key or payment, and Python with curl_cffi is enough for most stores. At scale, Shopify rate-limits each IP, so add rotating proxies. Decodo's Web Data API has a free plan for testing /map and /crawl on blocked stores.

What proxies work for Shopify scraping?

Rotating residential proxies. These proxies spread pagination across many IPs, and a store that blocks your own IP can still respond to them. If the merchant disabled products.json, use the Storefront API or Decodo's /crawl instead. Decodo's Shopify proxies page lists plans for Shopify targets.

Does Shopify allow scraping?

Shopify limits automated traffic rather than banning it. Its Storefront API applies bot and crawler limits. In a test of 8 large Shopify stores, robots.txt allowed product pages and disallowed cart, checkout, and account paths. Individual merchants can block more, and each store's terms of service still apply.

Is it legal to scrape Shopify stores?

Scraping public product data is common, but legality depends on your jurisdiction, the store's terms, and how you use the data. Avoid personal data and logged-in pages, respect robots.txt, and stop if the owner asks. For details, see the guide on whether web scraping is legal. For commercial use, ask a lawyer.

Python logo over a web-scraping UI showing 'Start scraping', 'Response' JSON snippet and 'Results' list on dotted background

Scraping Amazon Product Data Using Python: Step-by-Step Guide

This comprehensive guide will teach you how to scrape Amazon product data using Python. Whether you’re an eCommerce professional, researcher, or developer, you’ll learn to create a solution to extract valuable insights from Amazon’s marketplace. By following this guide, you’ll acquire practical knowledge on setting up your scraping environment, overcoming common challenges, and efficiently collecting the needed data.

Response panel showing JSON 'results' with 'id','title','url' beside UI labeled 'eCommerce store' and 'Scraping' tooltip

How to Scrape Etsy in 2026

Etsy is a global marketplace with millions of handmade, vintage, and unique products across every category imaginable. Scraping Etsy listings gives you access to valuable market data – competitor pricing, trending products, seller performance, and customer sentiment. In this guide, we'll show you how to scrape Etsy using Python, Playwright, and residential proxies to extract product titles, prices, ratings, shop names, and URLs from any Etsy search or category page.

How to Scrape Target Product Data: A Complete Guide for Beginners and Pros

Target is one of the largest retailers in the US, offering a wide range of products, from electronics to groceries. Scraping product data can help you track prices, monitor trends, or build comparison tools to enhance your purchasing decisions. This guide outlines the process, provides suggestions, and provides instructions on how to extract data, such as prices and ratings, efficiently.

© 2018-2026 decodo.com (formerly smartproxy.com). All Rights Reserved