# Shopify & WooCommerce Prices, Stock & SKU Scraper (`plainkitbin/shopify-woocommerce-products`) Actor

Give one or more online store URLs and get the public product catalog as rows: title, vendor, type, price, compare-at price, currency, availability, SKU, product link and image. Reads Shopify products.json, the WooCommerce Store API or schema.org Product data. No login, no bypass.

- **URL**: https://apify.com/plainkitbin/shopify-woocommerce-products.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 store product rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Shopify and WooCommerce Products and Prices Scraper: Many Stores per Run, Collections, No Login

### Introduction

Give this Actor one or more online store addresses (up to 50 Shopify or WooCommerce stores in one run, or a Shopify collection URL) and it returns the store's public product catalog as dataset table rows: title, vendor, product type, price, compare-at price, currency, availability, SKU, product link, image link and last update time. It is built for price monitoring, competitor assortment checks, catalog research and feeding a spreadsheet or database with a repeatable pull.

This Actor is an independent tool and is not affiliated with Shopify, WooCommerce, Automattic or any store.

### What it reads, in this order for each store

1. **Shopify public JSON**: `/products.json` (250 products per page) or, when you give a collection URL, `/collections/<handle>/products.json`. The store currency comes from the store's public `/meta.json`.
2. **WooCommerce Store API**: `/wp-json/wc/store/v1/products` (100 products per page).
3. **Fallback**: schema.org `Product` data (JSON-LD) on the product pages you list in `productPageUrls`.

The first source that returns products wins for that store. A store that has none of the three ends with one status row.

### Input

- `storeUrls`: one to 50 https store addresses.
- `productPageUrls`: optional https product pages for the fallback.
- `maxProducts`: the most product rows over all stores together (1 to 10000, default 100).
- `inStockOnly`: optional boolean (default false); when enabled, return and charge only products where available is true (at least one variant is in stock).
- `keywords`: optional list of case-insensitive keywords matched against product title, vendor, product type, SKU, and variant titles/SKUs. Non-matching products are skipped and not charged.

### Output

One row per product with these fields: `store_host`, `platform` (`shopify`, `woocommerce` or `jsonld`), `product_id`, `title`, `vendor`, `product_type`, `price`, `compare_at_price`, `currency`, `available`, `sku`, `product_url`, `image_url`, `updated_at`, and a `variants` array.

For a Shopify product with several variants the row shows the lowest variant price and that variant's compare-at price; `available` is true when any variant is in stock. Every Shopify product row includes a `variants` array holding each variant's `id`, `title`, `sku`, `price`, `compare_at_price`, `available`, `option1`, `option2`, `option3`, and `barcode` (null when absent; inventory counts are not returned or claimed). WooCommerce rows include the `variants` array when present in the fetched Store API payload, or an empty list otherwise. A store that cannot be read ends with one row whose `product_id` and `title` hold a status code: `STATUS_ACCESS_REFUSED` (the store answered 401, 403 or 429), `STATUS_ROBOTS_DISALLOWED`, `STATUS_OFF_HOST_REDIRECT` or `STATUS_NO_CATALOG`. Status rows are never charged.

### Pricing

Pay per event: **$0.0009** per product row on the FREE plan (event `store-product`); paid Apify plans get lower prices. Each row is pushed first and charged right after the push. A refused charge stops the run, and that last row stays delivered and uncharged. Status rows and failed requests are not charged. Rows already delivered by an earlier attempt of the same run are skipped and not charged again.

### What it does not do

- It needs no login and sends no cookies. There is no login, no account and no API key of yours involved.
- It does not bypass anything: no CAPTCHA solving, no bot-wall workaround, no proxy rotation, no spoofed browser. A 401, 403 or 429 ends that store with a status row, with no retry loop.
- It contacts only the hosts you put in the input (https only; a redirect is followed only to the same host with or without `www.`). It reads `robots.txt` and does not fetch a path the file disallows for it. It pauses one second between requests.
- It returns no personal data: no reviews, no customer, seller-person or contact fields. Product text goes through a contact-data scrubber that removes e-mail addresses and phone numbers.
- It does not render JavaScript, so a store that shows prices only after script execution and offers none of the three sources gives a status row.
- It does not log in to private catalogs, wholesale areas or carts.

### Your responsibility

You choose the stores. Read each store's terms and your local law before you collect its data; use only stores whose terms allow reading the public catalog, and keep your request volume reasonable. The Actor reads public pages and public endpoints only, but you remain responsible for how you use the data.

# Actor input Schema

## `storeUrls` (type: `array`):

One to 50 online store addresses, https only, for example https://shop.example.com. For a Shopify collection give the collection URL, for example https://shop.example.com/collections/summer-sale. You are responsible for the stores you list: use only stores whose terms allow reading their public catalog.

## `productPageUrls` (type: `array`):

Optional product pages, https only, up to 200. They are read only when the store address gives no Shopify or WooCommerce catalog, or when the page's host has no store URL. The Actor reads the schema.org Product data on the page.

## `maxProducts` (type: `integer`):

The most product rows to return over all stores together (1 to 10000). Each row is one charged event.

## `inStockOnly` (type: `boolean`):

When enabled, return and charge only products where available is true (at least one variant is in stock).

## `keywords` (type: `array`):

Optional case-insensitive keywords matched against product title, vendor, product type, SKU, and variant titles/SKUs. Non-matching products are skipped and not charged.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "productPageUrls": [],
  "maxProducts": 5,
  "inStockOnly": false,
  "keywords": []
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items produced by this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "storeUrls": [
        "https://www.allbirds.com"
    ],
    "maxProducts": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/shopify-woocommerce-products").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "storeUrls": ["https://www.allbirds.com"],
    "maxProducts": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/shopify-woocommerce-products").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "maxProducts": 5
}' |
apify call plainkitbin/shopify-woocommerce-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainkitbin/shopify-woocommerce-products"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4CfjLqiMhgfNAJlld/builds/DjZIn9Q1tAnwPkE8m/openapi.json
