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
| Shopify Ajax Product API | WooCommerce Store API | Adobe Commerce GraphQL | |
|---|---|---|---|
| Typical request | GET /products/{handle}.js | GET /wp-json/wc/store/v1/products | POST /graphql with a products query |
| Authentication | None | None for reading products | None for storefront catalog queries; customer data needs a token |
| Scope | One product by handle | Published products only | Products visible in the store view queried |
| Paging | Not applicable | per_page default 10, maximum 100; totals in X-WP-Total and X-WP-TotalPages | pageSize and currentPage arguments |
| Documented limits | At most 250 variants in the variants array | Rate limiting optional and off by default; if enabled, the default is 25 requests per 10 seconds | Anonymous REST catalog access off by default |
| Prices | In the presentment currency | As configured in the store | Per 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.
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
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.
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_page | Requests to list the catalog | Minimum time if the store enables the default limit (25 per 10 s) |
|---|---|---|
| 10 (default) | 1,000 | 400 seconds |
| 100 (maximum) | 100 | 40 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.
