Shopify, WooCommerce and Magento: How Each Exposes Product Data

Cover for “Shopify, WooCommerce and Magento: How Each Exposes Product Data”: public storefront endpoints of Shopify, WooCommerce and Adobe Commerce with price and stock fields

4 min read

Shopify, WooCommerce and Adobe Commerce (the platform formerly called Magento) each publish a documented, public way to read storefront product data. These interfaces exist to show products to shoppers, through themes, apps and headless storefronts. Each also draws the line between public and private in a different place. Where a store you are permitted to collect from runs on one of these platforms, the documented storefront interface is usually lighter and more stable than parsing pages. Here is what each gives you, its documented limits, and what it leaves out.

Key takeaways

  • All three platforms document a public storefront interface: Shopify’s Ajax Product API, the WooCommerce Store API and Adobe Commerce GraphQL.
  • Shopify’s Ajax API returns one product per request, with at most 250 variants in the variants array.
  • The WooCommerce Store API is unauthenticated, lists published products only and pages up to 100 items at a time.
  • Adobe Commerce blocks anonymous access to its REST catalog endpoints by default. Its GraphQL catalog queries, used by headless storefronts, work without a customer token.
  • A platform’s documentation tells you what is possible, not what a given store allows. Check robots.txt, terms and the store’s own settings.

Three platforms, three public interfaces

Where each platform draws the public line

Documented access layers for product data on three commerce platforms

ShopifyStorefront pagespublicAjax Product APIone product per requestAdmin APIneeds credentialsStore adminmerchant onlyWooCommerceStorefront pagespublicStore APIpublished products onlyWC REST APIneeds credentialsWordPress adminmerchant onlyAdobe CommerceStorefront pagespublicGraphQL storefront queriesdocumented, publicREST catalog endpointsanonymous access off by defaultAdmin panelmerchant onlyRenderedDocumentedAuthenticatedPrivatepublic above, credentials below
Sources: Shopify Ajax Product API; WooCommerce Store API; Adobe Commerce anonymous API security; checked October 30, 2026. Individual stores can change settings and themes. Graphic: JsonEngine.
Shopify Ajax Product APIWooCommerce Store APIAdobe Commerce GraphQL
Typical requestGET /products/{handle}.jsGET /wp-json/wc/store/v1/productsPOST /graphql with a products query
AuthenticationNoneNone for reading productsNone for storefront catalog queries; customer data needs a token
ScopeOne product by handlePublished products onlyProducts visible in the store view queried
PagingNot applicableper_page default 10, maximum 100; totals in X-WP-Total and X-WP-TotalPagespageSize and currentPage arguments
Documented limitsAt most 250 variants in the variants arrayRate limiting optional and off by default; if enabled, the default is 25 requests per 10 secondsAnonymous REST catalog access off by default
PricesIn the presentment currencyAs configured in the storePer store view, with currency in the response

Sources: Shopify, WooCommerce and Adobe Commerce developer documentation, checked October 30, 2026.

Shopify: one product per request

The Ajax Product API returns a product’s JSON when you append .js to its URL. You need the product’s handle, which usually comes from the store’s sitemap or collection pages. We walk through discovery in scraping Shopify products. Prices come in the store’s presentment currency, so record which market or currency the request was made in.

Python
import requests

UA = {"User-Agent": "ExampleCollector/1.0 (+https://example.com/bot)"}
r = requests.get("https://shop.example.com/products/trail-jacket.js", headers=UA, timeout=(5, 30))
r.raise_for_status()
product = r.json()
variants = product["variants"]          # at most 250 in this array

The variant cap is a property of this response, not of the store. A product with many options can have more combinations than the array shows.

Options multiply; the response doesn't

How a documented response cap can hide variants on a large product

0100200300400250: maximum in the variants array250 returned110 not in the response10 sizes × 12 colors × 3 lengths = 360 combinationsVariants per product. Hypothetical product; the cap applies to this endpoint's response, not to what the store can sell.Check the product's own option counts before assuming the array is complete.
Source: Shopify Ajax Product API reference, checked October 30, 2026. Product is hypothetical. Graphic: JsonEngine.

WooCommerce: a paged catalog

WooCommerce describes its Store API as public endpoints for customer-facing cart, checkout and product functionality. It is unauthenticated and “does not provide access to sensitive store data”. The products endpoint lists published products and pages through them with page and per_page, reporting totals in response headers.

Python
import time, requests

UA = {"User-Agent": "ExampleCollector/1.0 (+https://example.com/bot)"}
url = "https://shop.example.com/wp-json/wc/store/v1/products"
page, pages, items = 1, 1, []
while page <= pages:
    r = requests.get(url, params={"per_page": 100, "page": page}, headers=UA, timeout=(5, 30))
    r.raise_for_status()
    pages = int(r.headers.get("X-WP-TotalPages", 1))
    items.extend(r.json())
    page += 1
    time.sleep(2)                       # a polite pace, whatever the store's limit

Page size changes the request count a lot. For a catalog of 10,000 published products:

per_pageRequests to list the catalogMinimum time if the store enables the default limit (25 per 10 s)
10 (default)1,000400 seconds
100 (maximum)10040 seconds

Calculation from the documented defaults. A polite collector should run well below any limit; the 2-second pause in the example turns 100 requests into a little over 3 minutes.

We cover paging limits on other kinds of sites in pagination limits in e-commerce.

Adobe Commerce: GraphQL for the storefront

Adobe Commerce documents that “by default, Commerce now prevents anonymous users from accessing the APIs that could reveal sensitive information”. The affected REST endpoints include products, categories, stock statuses and CMS content, and the setting that controls this is called Allow Anonymous Guest Access. That is the store owner’s decision; collectors should treat the default as a closed door, not as something to probe. Headless storefronts built on Adobe Commerce, such as those using its PWA Studio, read the catalog through GraphQL, where catalog queries work without a customer token.

GraphQL
{
  products(search: "jacket", pageSize: 20, currentPage: 1) {
    total_count
    items {
      sku
      name
      price_range {
        minimum_price { final_price { value currency } }
      }
    }
  }
}

Adobe Commerce installations vary a lot. Versions, extensions and store views all affect what a query returns, so test each store separately.

What none of them gives you

  • Permission. A public interface is designed for shoppers’ browsers. Whether you may collect from it at scale depends on the store’s robots.txt, terms and any limits it sets.
  • Context you didn’t request. Prices can depend on market, currency, store view or customer group. Record the context of every request.
  • Completeness guarantees. Response caps, unpublished products and per-store customizations all mean “everything the endpoint returned” is not always “everything the store sells”.
  • History. Each response is the state at that moment. Keeping a price history is your job; see where e-commerce data actually lives for how this compares with page-embedded data.

Quick answers

Does WooCommerce have a public API for products?

Yes. The WooCommerce Store API is unauthenticated and customer-facing. Its products endpoint lists published products, with per_page defaulting to 10 and allowing up to 100.

How do I get Shopify product data as JSON?

Shopify’s Ajax Product API returns a product’s JSON at /products/{handle}.js. It returns one product per request and at most 250 variants in the variants array.

Can I read Magento product data without logging in?

Adobe Commerce blocks anonymous access to its REST catalog endpoints by default. Its GraphQL catalog queries, used by headless storefronts, don’t need a customer token.

Is the WooCommerce Store API rate limited?

Rate limiting is optional and off by default. If a store enables it, the default is 25 requests per 10 seconds. Collect well below any limit regardless.

Does a public storefront API mean I may scrape the store?

No. It means the platform exposes the data to shoppers’ browsers. Check the store’s robots.txt and terms, and stop if the store refuses or limits you.

Platform-aware collection

We use each platform’s documented storefront interface where a store permits it, and fall back to page data only when it doesn’t. See custom datasets or ask about a store.