# Shopify Scraper - Products, Prices, Stock & Price Tracker (`olsols4/shopify-store-products`) Actor

Every product, variant, price, sale price and stock flag from any Shopify store, many stores per run. Change mode returns only new products and price or stock changes since the last run.

- **URL**: https://apify.com/olsols4/shopify-store-products.md
- **Developed by:** [Olly](https://apify.com/olsols4) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.56 / 1,000 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 Scraper - Products, Prices, Stock & Price Tracker

**Scrape every product from any Shopify store and track price and stock changes over time.** Get titles, vendors, product types, tags, every variant with SKU and barcode, price, compare-at (sale) price, stock status, images and URLs. Run many stores at once, and switch on change mode to get only what changed since your last run.

✅ Full catalogue in seconds   ✅ Many stores per run   ✅ Price, sale and stock change tracking   ✅ Product or per-variant rows   ✅ Collection scraping   ✅ $0.80 per 1,000 rows

### What can you use it for?

- **Competitor price monitoring**: schedule daily runs and get only price drops, new sale prices and restocks
- **Dropshipping and product research**: see what top stores sell, at what price, and what's in stock
- **Catalogue and SKU matching**: per-variant rows with SKU, barcode and options
- **Lead generation for agencies and apps**: see which brands sell what, and how big their catalogue is
- **Market research**: price ranges, discounts and assortment across a niche

### Quick start

Click **Start** with the prefilled input: it returns 25 tentree products with prices and stock in a few seconds for **$0.02**. Then add your own stores and raise *Max rows per store*.

### How to use it

1. Add store URLs or domains: `tentree.com`, `https://www.deathwishcoffee.com`. Add `/collections/<name>` to scrape one collection.
2. Choose **product rows** (variants nested) or **one row per variant**.
3. Optional: keywords, in stock only, description and all images.
4. For monitoring, switch on **Only new products and price/stock changes** and schedule it.
5. Click **Start** and export JSON, CSV or Excel, or use the API.

#### Input example

```json
{
  "stores": ["https://www.tentree.com", "https://www.brooklinen.com/collections/sheets"],
  "onlyAvailable": true,
  "onlyChanges": true
}
```

### Output (product mode)

```json
{
  "store": "https://www.allbirds.com",
  "productId": 6537291759696,
  "title": "Men's Tree Runners",
  "vendor": "Allbirds",
  "productType": "Shoes",
  "tags": ["mens", "runners"],
  "price": 98.0,
  "compareAtPrice": null,
  "priceMin": 98.0,
  "priceMax": 98.0,
  "compareAtPriceMax": null,
  "onSale": false,
  "available": true,
  "variantCount": 14,
  "url": "https://www.allbirds.com/products/mens-tree-runners",
  "image": "https://cdn.shopify.com/s/files/...",
  "variants": [{"id": 3934, "title": "8", "sku": "TR-M-8", "price": "98.00", "compareAtPrice": null, "available": true}],
  "change": "updated"
}
```

`change` appears in change mode: `new` or `updated` (price, sale price or stock moved).

### How much does it cost?

**$0.80 per 1,000 rows**, proxy included, nothing else. Stores that aren't on Shopify, or that block catalogue access, cost nothing. In change mode you only pay for changed rows. Paid Apify plans get Store discounts automatically:

| Apify plan | Price per 1,000 rows |
|---|---|
| Free | $0.80 |
| Starter (Bronze) | $0.72 |
| Scale (Silver) | $0.64 |
| Business (Gold) | $0.56 |

**Examples:** a 700-product store = **$0.56**. Daily tracking of 10 stores with ~150 changes a day = **$0.12 a day**.

### Use it via API

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("olsols4/shopify-store-products").call(run_input={
    "stores": ["tentree.com"], "outputPerVariant": True})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["title"], row["variantTitle"], row["price"], row["available"])
```

Send results to Google Sheets, Slack, Make, Zapier, n8n or a webhook through Apify integrations.

### FAQ

**Which stores work?** Stores built on Shopify that keep the standard public catalogue enabled, which is most of them. A few large brands block automated catalogue access, and some rate-limit it at times (HTTP 429, shown in the log); those return nothing and cost nothing.

**What currency are prices in?** The store's default currency.

**Does it get exact stock quantities?** It gets in-stock / sold-out per variant, which is what Shopify makes public.

### Support

Need a field or found a store that fails? Open an issue on the **Issues** tab. Issues are answered within a few days.

# Actor input Schema

## `stores` (type: `array`):

Store URLs or domains (tentree.com, https://www.deathwishcoffee.com). Add /collections/<name> to scrape one collection.

## `maxProductsPerStore` (type: `integer`):

Upper limit of rows saved per store. Lower it for quick, cheap tests; raise it for full catalogues.

## `outputPerVariant` (type: `boolean`):

Off: one row per product with variants nested. On: one row per size/colour variant with SKU, barcode and price.

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

Keep only products whose title, type, tags or vendor contain any of these.

## `onlyAvailable` (type: `boolean`):

Skip sold-out products (or variants).

## `onlyChanges` (type: `boolean`):

For scheduled price monitoring: remembers the last run for each store and returns only new products and ones whose price, sale price or stock changed (you only pay for those).

## `includeDescription` (type: `boolean`):

Adds the product description text and every image URL.

## `maxConcurrency` (type: `integer`):

How many stores to fetch in parallel.

## `useApifyProxy` (type: `boolean`):

Route requests through Apify's datacenter proxy so big stores don't rate-limit the run. Included in the price.

## Actor input object example

```json
{
  "stores": [
    "https://www.tentree.com",
    "https://www.deathwishcoffee.com",
    "https://www.brooklinen.com/collections/sheets"
  ],
  "maxProductsPerStore": 25,
  "outputPerVariant": false,
  "keywords": [
    "runner",
    "wool"
  ],
  "onlyAvailable": false,
  "onlyChanges": false,
  "includeDescription": false,
  "maxConcurrency": 5,
  "useApifyProxy": true
}
```

# Actor output Schema

## `overview` (type: `string`):

Products in a table view.

## `allItems` (type: `string`):

Every row with all fields.

# 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 = {
    "stores": [
        "https://www.tentree.com"
    ],
    "maxProductsPerStore": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("olsols4/shopify-store-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 = {
    "stores": ["https://www.tentree.com"],
    "maxProductsPerStore": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("olsols4/shopify-store-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 '{
  "stores": [
    "https://www.tentree.com"
  ],
  "maxProductsPerStore": 25
}' |
apify call olsols4/shopify-store-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,olsols4/shopify-store-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/cXKwF1Sbf44dhEGj3/builds/eUhohRzUistikHB70/openapi.json
