---
title: "Shopify Scraper or API: What You Get | Perceptlayer"
description: "A Shopify scraper vs a 1-credit products call: a recorded store page of 30 products with variant SKUs, prices and stock flags, and the cost per product tracked."
url: https://perceptlayer.com/blog/shopify-scraper-vs-api
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Shopify Scraper or API: What You Get

16 Nov 2026 Perceptlayer 8 min read

A Shopify scraper is code that reads the public product pages of a store built on Shopify and pulls out titles, prices, variants, stock status and images. You maintain the fetching, the parsing and the paging, for every store you track. The alternative is `GET /v1/shopify/products`, which takes a store's domain and returns its public storefront products as JSON, variants included, at 1 credit a call. This post compares the two on a recorded call, works out the cost per product tracked, and gives a verdict per use case.

## Key takeaways

-   `GET /v1/shopify/products` requires only `store` (a domain, up to 255 characters) and takes optional `page`, `limit` and `collection`; each successful call costs 1 credit.
-   The recorded call for `store=allbirds.com` returned `count` 30 products with `next_page` 2, and a store-level `currency` of USD.
-   Each product carries `title`, `handle`, `vendor`, `tags`, `price_min`, `price_max`, `available`, `options`, `images` and `variants[]`, and each variant its own `sku`, `price` and `available`.
-   At 30 products a call, reading a 600-product store is 20 calls × 1 credit = 20 credits, or about 0.033 credits per product per check.
-   This reads public storefront product data, the same products any visitor sees. It isn't a way into a store's back office, orders or customers.

## What would a Shopify scraper have to handle?

A scraper for Shopify stores has the usual three parts (a fetcher, a parser and a monitor), with one twist: you rarely track one store. Each store you add has its own page layout, its own product URLs and its own way of showing sizes, colours and stock, so a parser that works on one store can return nothing useful on the next. The work grows with the number of stores, not just the number of products.

The fetcher has to find every product: walk collection or listing pages, follow pagination, and avoid counting the same product twice when it appears in several collections. The parser has to get beyond the visible price. A product page shows one price and one selected size, while the data you usually want sits per variant: each size or colour with its own SKU, price and stock flag. Pulling that out of page markup is the part most likely to break when a store redesigns.

The monitor is what tells you a run went wrong, because a broken parser tends to return empty fields rather than errors. You also need pacing, retries and storage. None of this is specific to Shopify; it's what any multi-site scraper costs to keep running. Before you collect from any store, read that store's terms, and if a store blocks automated traffic, stop rather than work around it.

## What does the products endpoint return?

The products endpoint returns one page of a store's public products, each with its variants, options and images already split into fields. You pass the store's domain in `store`; `page` and `limit` control paging and `collection` narrows the read to one collection. One request, one credit, and no parser of your own.

| Parameter | Type | Required | Documented constraint |
| --- | --- | --- | --- |
| `store` | string | yes | Up to 255 characters |
| `page` | integer | no | No further constraint documented |
| `limit` | integer | no | No further constraint documented |
| `collection` | string | no | Up to 255 characters |

This is the recorded request:

```bash
curl "https://api.perceptlayer.com/v1/shopify/products?store=allbirds.com" \
  -H "X-API-Key: $API_KEY"
```

And the recorded response, trimmed to the first product:

```json
{
  "success": true,
  "data": {
    "store": "allbirds.com",
    "page": 1,
    "limit": 30,
    "next_page": 2,
    "currency": "USD",
    "count": 30,
    "products": [
      {
        "id": 7292464824400,
        "title": "Women's Wool Cruiser - Port (Port Sole)",
        "handle": "womens-wool-cruiser-port-port-sole",
        "url": "https://allbirds.com/products/womens-wool-cruiser-port-port-sole",
        "vendor": "Allbirds",
        "tags": [
          "11/3/26 DROP",
          …
        ],
        "description_html": "<p>Innovation meets individuality in the Wool Cruiser, …",
        "published_at": "2026-11-04T15:48:27-08:00",
        "created_at": "2026-02-04T17:37:18-08:00",
        "updated_at": "2026-11-12T05:01:31-08:00",
        "available": true,
        "price_min": 120,
        "price_max": 120,
        "options": [
          {
            "name": "Size",
            "position": 1,
            "values": [
              "5",
              "5.5"
            ]
          }
        ],
        "variants": [
          {
            "id": 41990816137296,
            "title": "5",
            "option1": "5",
            "sku": "A12858W050",
            "price": 120,
            "available": false,
            "grams": 1000,
            "requires_shipping": true,
            "taxable": true,
            "position": 1
          },
          …
        ],
        "images": [
          {
            "id": 38092255035472,
            "src": "https://cdn.shopify.com/s/files/1/1104/4168/files/A12858W090-PORT_SIDE_TRANSPARENT.png?v=1793836076",
            "width": 2000,
            "height": 2000,
            "position": 1
          },
          …
        ]
      },
      …
    ]
  },
  "meta": {
    "request_id": "req_91a533fca14245c29898ff0cd3538c6f",
    "credits_charged": 1,
    "credits_remaining": 1911
  }
}
```

### Why read variants, not just the product?

The product-level fields can hide what changed. In the recording, the first product is `available: true`, yet both variants shown, sizes 5 and 5.5, are `available: false`; the second product's same two sizes are `available: true`. A tracker that stores only the product flag misses which sizes sold out. Key your history on `variants[].id` or `sku`, and store `price` and `available` per variant.

`price_min` and `price_max` are worth keeping too: when they differ, variants are priced differently, and a change in either is a quick signal that something moved. The `currency` sits once at the top of `data`, not on each price, so store it with every run.

### How does paging work?

The response reports `page` 1, `limit` 30, `count` 30 and `next_page` 2, and the endpoint takes `page` and `limit` parameters, so the names match. Request the next page with `page=2` and check in the playground what it returns for your store, including how the last page looks, before you automate it. Each page is another call at 1 credit.

## How do a scraper and the endpoint compare?

A scraper costs engineering time per store and fails quietly when a layout changes; the endpoint costs a credit per page and returns named JSON fields. The table compares them for a recurring job, such as checking prices and stock across a set of competitor stores every day.

|  | DIY Shopify scraper | Shopify products endpoint |
| --- | --- | --- |
| Setup | Fetcher, per-store parsers, paging, storage, monitoring | API key in the `X-API-Key` header |
| Adding a store | Check its layout, adjust or write a parser | Pass its domain in `store` |
| Variant data | Parsed from page markup, per store | `variants[]` with `id`, `sku`, `price`, `available`, `option1` |
| Images | Collected and deduplicated yourself | `images[]` with `src`, `width`, `height`, `position` |
| When a store redesigns | Parser returns empty fields until you fix it | You read named JSON fields; there's no parser of yours to fix |
| Paging | Walk collection pages, dedupe products | `page` and `limit`; response reports `next_page` and `count` |
| Content outside product data | Whatever you can parse from the page | Not included: only the fields in the response |
| Speed | As fast as you can fetch politely | 1 request a second free, at least 5 a second paid |
| Cost | Hosting and your time | 1 credit per successful call; failed calls cost 0 |

### What does tracking a product cost?

On the endpoint, the cost follows pages, not products. At the recorded 30 products a call, one check of a 600-product store is 600 ÷ 30 = 20 calls, so 20 credits, or about 0.033 credits per product. Narrow with `collection` when you only care about one range, and the call count drops with it.

| Plan | Arithmetic | Credits |
| --- | --- | --- |
| One 600-product store, once | 20 pages × 1 credit | 20 |
| One 600-product store, daily for 30 days | 20 × 30 × 1 credit | 600 |
| 10 stores of 600 products, daily for 30 days | 10 × 20 × 30 × 1 credit | 6,000 |
| 10 stores, one 90-product collection each, daily for 30 days | 10 × 3 × 30 × 1 credit | 900 |

The 100 free credits on signup cover five full reads of a 600-product store, enough to test change detection before you commit. The 10-store daily plan at 6,000 credits a month fits the Starter pack's 10,000; a year of it, 72,000 credits, fits the Growth pack's 200,000. Purchased credits last 12 months, with no subscription. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how debits work.

## How do you detect price and stock changes?

Change detection is a comparison of today's variants with yesterday's: key each variant by its `id`, and report any change in `price` or `available`. The Python script below reads page 1 of each store, saves a JSON snapshot, and prints the differences from the last run. It reads only fields in the recorded response.

```python
import json
import os
import pathlib

import requests

API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/shopify/products"
STORES = ["allbirds.com"]
SNAPSHOT = pathlib.Path("shopify_snapshot.json")

def variants(store, page=1):
    r = requests.get(URL, params={"store": store, "page": page},
                     headers={"X-API-Key": API_KEY}, timeout=60)
    r.raise_for_status()
    data = r.json()["data"]
    for product in data["products"]:
        for v in product["variants"]:
            yield str(v["id"]), {
                "store": store,
                "product": product["title"],
                "sku": v["sku"],
                "price": v["price"],
                "available": v["available"],
                "currency": data["currency"],
            }

previous = json.loads(SNAPSHOT.read_text()) if SNAPSHOT.exists() else {}
current = {}
for store in STORES:
    current.update(variants(store))

for vid, now in current.items():
    before = previous.get(vid)
    if before is None:
        print("new", now["sku"], now["product"], now["price"])
    elif before["price"] != now["price"]:
        print("price", now["sku"], before["price"], "->", now["price"])
    elif before["available"] != now["available"]:
        print("stock", now["sku"], "in stock" if now["available"] else "sold out")

SNAPSHOT.write_text(json.dumps(current))
```

Extend `variants` to further pages once you've confirmed paging for your stores, and run it from cron once a day. Errors come back with an HTTP status and a JSON body with `code`, `message` and `request_id`; a 429 or 503 carries `Retry-After`, and treat `invalid_parameters` (422) as a bug in your store list. The [errors docs](https://docs.perceptlayer.com/errors) list every code.

## Which route fits your job?

Pick by how many stores you track, how often, and whether the fields in the response cover what you need. If they do, the endpoint removes per-store parsing, which is the expensive part of a Shopify scraper. If you need something the response doesn't carry, only a page fetcher gets it.

-   **Daily price and stock tracking across competitor stores**: use the endpoint. Key on `variants[].id`, store `price` and `available`, and budget about 0.033 credits per product per check.
-   **Building a product catalogue with SKUs and images**: use the endpoint. `sku`, `options`, `images` and `description_html` come back per product, with no parser per store.
-   **Watching one collection or new arrivals**: pass `collection`, and compare `published_at` across runs to spot new products.
-   **Data that isn't in the response**, such as page content a store adds around its products: you need a page fetcher, and the per-store parsing that comes with it.
-   **Your own store's data**: use what you already have as the merchant. This endpoint reads the public storefront, the same view a visitor gets.
-   **A one-off look at a few products**: open the store in a browser.
-   **An agent researching products**: give it the endpoint through the MCP server, as the [AI agents docs](https://docs.perceptlayer.com/ai-agents) describe.

For the wider picture of retail price data, [Google Shopping Scraper or API](https://perceptlayer.com/blog/google-shopping-scraper-vs-api) compares offers across sellers, and [AliExpress Scraper or API](https://perceptlayer.com/blog/aliexpress-scraper-vs-api) covers a marketplace. To check the fields against a store you track, run `products` in the playground on the [Shopify API page](https://perceptlayer.com/apis/shopify), then [get a free API key](https://perceptlayer.com/signup).

## APIs in this post

-   [Shopify **1 credit per call** · 1 endpoint](https://perceptlayer.com/apis/shopify)

## Frequently asked questions

### Is scraping Shopify stores allowed?

It depends on each store's terms and the law where you operate, so read the terms of every store you collect from and get legal advice for commercial use. Don't get around blocks or other protections. Public product facts such as titles, prices and stock flags are a different matter from personal data; the products endpoint returns product data only.

### Can I get every product in a store?

The recorded call returned `count` 30 with `next_page` 2, and the endpoint takes `page` and `limit`, so you read a store page by page at 1 credit each. A 600-product store at 30 a page is 20 calls. Use `collection` to read only part of a store. Check in the playground how paging behaves for the stores you track.

### Does the Shopify endpoint return stock levels?

It returns stock flags, not quantities. Each product has `available`, and each variant has its own `available` boolean next to its `sku` and `price`. In the recorded response, a product marked `available: true` has two sizes marked `available: false`, so track the variant flags to see which sizes sold out.

### Does a failed call cost credits?

No. Only a successful response debits credits. A failed call returns an HTTP status and a JSON error with `code`, `message` and `request_id`, plus `X-Credits-Used: 0`. A rate-limited call returns 429 with a `Retry-After` header giving the seconds to wait. Requests have no idempotency key, so a client timeout may hide a call that succeeded.

### How fast can I check many stores?

Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second (60 a minute), so a 200-call daily run takes under four minutes. Paying accounts run at least 5 requests a second (300 a minute). The [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the rate each pack includes.

shopify ecommerce product data scraping price monitoring

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Nov 2026 Perceptlayer 9 min read
    
    ## [Google Shopping Scraper or API: What You Get](https://perceptlayer.com/blog/google-shopping-scraper-vs-api)
    
    A Google Shopping scraper vs one GET at 1 credit: the recorded iphone 15 search with source, extracted\_price and product\_id, and the cost per item tracked.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 13 Nov 2026 Perceptlayer 8 min read
    
    ## [Amazon Scraper or API: Search, Offers and Reviews](https://perceptlayer.com/blog/amazon-scraper-vs-api)
    
    An Amazon scraper vs 18 endpoints at 1 credit a call: a recorded laptop stand search with asin, price.amount and rating, and the domains each call takes.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 8 Nov 2026 Perceptlayer 8 min read
    
    ## [AliExpress Scraper or API: What You Get](https://perceptlayer.com/blog/aliexpress-scraper-vs-api)
    
    An AliExpress scraper vs 1-credit endpoints: a recorded search with 60 products a page, price.amount, sold\_count and is\_sponsored, and cost per product.
