# Product Scraper — Shopify Prices, Stock & Variants (`crawlhex/product-data-extractor`) Actor

Extract product prices, currency, stock, brand, images and source identifiers from supported public URLs. Includes observed Shopify variants and structured-data extraction.

- **URL**: https://apify.com/crawlhex/product-data-extractor.md
- **Developed by:** [Riftanvil](https://apify.com/crawlhex) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 46.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 successful product checks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Product Scraper — Shopify Prices, Stock and Variants

Turn product-page URLs into **structured product data** for catalog enrichment, price audits and commerce workflows. Collect exact prices, currency, source stock signals, brand, images and available identifiers. Shopify products include observed variants with their own prices, options and source IDs.

### Get product data in three steps

1. Paste public product-page URLs into **urls**.
2. Keep concurrency at 1 and choose a result/request budget.
3. Click **Start**, then export the dataset as **JSON, CSV or Excel**.

You bring the product links. No login, proxy or product-category crawler is required for the tested sources.

#### Easy input: one Shopify product

```json
{
  "urls": ["https://www.allbirds.com/products/mens-tree-runners"],
  "maxConcurrency": 1,
  "policy": {
    "maxRequests": 10,
    "maxRetries": 0,
    "delayMs": 1000
  }
}
```

This is a public live example. Product details, prices and availability can change.

#### Example: check a list of products

```json
{
  "urls": [
    "https://www.allbirds.com/products/mens-tree-runners",
    "https://www.glossier.com/products/boy-brow",
    "https://www.ikea.com/us/en/p/billy-bookcase-white-20522046/"
  ],
  "maxResults": 10,
  "maxConcurrency": 1,
  "policy": {
    "maxRequests": 20,
    "maxRetries": 0,
    "delayMs": 1000
  }
}
```

These individual URLs passed recorded private cloud checks. That does not guarantee every product on these stores or future availability.

### Who is this product scraper for?

- **Catalog teams:** enrich an existing product URL list with source names, identifiers, brand and images.
- **Pricing analysts:** export comparable observations for review in spreadsheets.
- **Commerce developers:** receive typed product fields for downstream APIs and data pipelines.
- **Variant audits:** inspect observed Shopify sizes/colors, source SKUs, barcodes and individual prices.

To compare observations across runs and return changes, use the separate Product Price and Stock Monitor. This extractor returns a fresh observation each run.

### What data can I extract?

| Field | Meaning |
|---|---|
| name, url, id | Product name, supplied public URL and source identity |
| price, currency | Exact decimal-string price and explicit source currency |
| availability | in_stock, out_of_stock, preorder or unknown |
| sku, gtin, mpn | Source identifiers where supplied |
| brand, category, descriptionText | Available source product details |
| imageUrls | Public source image URLs |
| variants | Shopify variant IDs, options, prices, stock, SKU and barcode |
| observedAt, strategy | Observation time and extraction method |

Missing fields stay missing or unknown. Source barcodes are preserved but not independently checksum-verified.

#### Recorded output example

```json
{
  "name": "Men's Tree Runner - Jet Black (White Sole)",
  "url": "https://www.allbirds.com/products/mens-tree-runners",
  "id": "4870548979792",
  "price": "70.00",
  "priceMax": "70.00",
  "priceBasis": "range_minimum",
  "currency": "USD",
  "availability": "in_stock",
  "brand": "Allbirds",
  "observedAt": "2026-11-10T17:58:33.211Z"
}
```

This is a shortened recorded product result. The actual row includes additional fields and observed variants.

### How Shopify variant prices work

Without a variant selection, price is the **lowest observed variant price**, priceMax is the highest, and priceBasis is range_minimum. The range includes unavailable variants. Aggregate SKU/barcode fields stay null when no single variant is selected.

To read one specific variant, use its public product URL with ?variant=SOURCE_ID:

```json
{
  "urls": [
    "https://www.allbirds.com/products/mens-tree-runners?variant=33179624669264"
  ],
  "maxConcurrency": 1,
  "policy": {
    "maxRequests": 10,
    "maxRetries": 0,
    "delayMs": 1000
  }
}
```

The selected variant must actually exist. Its priceBasis becomes selected_variant. Missing or duplicate selections fail instead of silently choosing another variant.

The public Shopify Ajax API can expose at most 250 variants. variantsMayBeTruncated is true at that limit; larger hidden variant sets are not claimed complete.

### Supported product data

Shopify extraction reads the product page, a locale-aware public product .js endpoint and anonymous cart currency. All requests are read-only; the Actor does not add items to a cart or log in. A Shopify check normally needs three source requests.

Other product pages need usable schema.org JSON-LD or scoped microdata. WooCommerce and BigCommerce demo samples passed alongside the commercial examples; this is structured-data support, not a guarantee for every store on those platforms.

Generic multi-offer ambiguity and AggregateOffer ranges are rejected. The Actor does not guess currency from a symbol or choose an arbitrary generic offer. Catalog/category discovery, sitemaps, ratings/review collection and marketplace search are not included.

### Pricing

Confirm effective prices on the **Pricing** tab and set a spending limit. Configured HTTP-only pricing is:

- **USD 0.002 per successful product check**.
- **USD 0.001 automatic startup per run**.
- No second fee for writing that product's result row.

One successful product would cost **USD 0.003**; 100 successful products in one run would cost **USD 0.201**. These examples assume the required 512 MB configuration. Failed extraction has no product-check fee, but startup may still apply to invalid or failed runs. Set a spending limit.

Priced checks require 512 MB, concurrency 1 and HTTP extraction. Browser-based pricing has not been validated and is not included.

### Common questions

**Does this scrape any online store?** No. It needs the supported public Shopify response or unambiguous JSON-LD/microdata. No universal retailer coverage is claimed.

**Which country's price will I get?** The anonymous source response's locale/server context determines the currency and price. This is not a guarantee of the price a shopper in a particular country sees.

**Are shipping, taxes and subscriptions normalized?** No. The Actor preserves the supported source price. Shipping/tax normalization and Shopify selling-plan pricing are unsupported.

**Can I monitor prices automatically?** This Actor extracts snapshots. Use the separate monitor for previous/current comparisons, then configure Apify tasks, schedules or integrations for your workflow.

**What happens on a blocked page?** The Actor returns an explicit error and stops that source. It does not switch identities, bypass challenges or automatically use proxies.

### Troubleshooting and support

Increase policy.maxRequests for a longer list; Shopify needs extra product/currency reads. Policy also controls pacing, timeouts, retries and response limits. Only transient network/5xx errors retry within budget. 401/403/404/429 stop the source.

Inspect Run metrics for partial failures and completed-check receipts. A receipt records measured work, not proof of payment. For help, share the **public product URL and run ID** through Issues, without credentials or confidential inputs.

### AI agent integration

**Actor identifier:** crawlhex/product-data-extractor. **Task:** extract a current product observation from supplied public product URLs. Useful for catalog enrichment and price audits. Supported sources expose Shopify product data or unambiguous structured product markup; universal retailer coverage, product discovery and historical tracking are not included.

Read the [listing as Markdown](https://apify.com/crawlhex/product-data-extractor.md) for input schema, examples and pricing. The [Apify MCP server](https://docs.apify.com/mcp) supports discovery and Actor details; an authorized client can run a specifically selected Actor. No separate Crawlhex MCP server is needed. Keep credentials in the client's authentication settings, not in Actor input or public prompts.

Small product extraction input:

```json
{
  "urls": ["https://www.allbirds.com/products/mens-tree-runners"],
  "maxResults": 1,
  "maxConcurrency": 1,
  "policy": {"maxRequests": 10, "maxRetries": 0, "delayMs": 1000}
}
```

Successful output includes observed prices/currency, source stock signals and available identifiers/variants. A product's price may be a range minimum; inspect priceBasis, priceMax and variant selection before comparing it. Unknown stock is not out-of-stock. Error records are extraction failures, not product facts. This Actor takes snapshots; use crawlhex/product-price-stock-monitor for saved comparisons. Execution requires 512 MB, concurrency 1 and a spending cap. Successful checks and startup have the fees documented above; no free or unlimited execution is implied.

Use the **latest** build for the documented inputs and pricing. Historical experimental builds are not supported for paid use.

# Actor input Schema

## `urls` (type: `array`):

Public HTTPS product URLs without embedded credentials or fragments; variant query parameters are preserved.

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

Use 1 concurrent target for validated paid accounting.

## `maxResults` (type: `integer`):

Optional maxResults; validated by the Actor.

## `policy` (type: `object`):

Optional policy; validated by the Actor.

## `domainPolicies` (type: `object`):

Optional domainPolicies; validated by the Actor.

## Actor input object example

```json
{
  "urls": [
    "https://www.allbirds.com/products/mens-tree-runners"
  ],
  "maxConcurrency": 1,
  "maxResults": 3,
  "policy": {
    "maxRequests": 10,
    "maxRetries": 0,
    "delayMs": 1000
  },
  "domainPolicies": {}
}
```

# Actor output Schema

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

No description

## `metrics` (type: `string`):

No description

## `sourceChecks` (type: `string`):

No description

# 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 = {
    "urls": [
        "https://www.allbirds.com/products/mens-tree-runners"
    ],
    "maxConcurrency": 1,
    "maxResults": 3,
    "policy": {
        "maxRequests": 10,
        "maxRetries": 0,
        "delayMs": 1000
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlhex/product-data-extractor").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 = {
    "urls": ["https://www.allbirds.com/products/mens-tree-runners"],
    "maxConcurrency": 1,
    "maxResults": 3,
    "policy": {
        "maxRequests": 10,
        "maxRetries": 0,
        "delayMs": 1000,
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawlhex/product-data-extractor").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 '{
  "urls": [
    "https://www.allbirds.com/products/mens-tree-runners"
  ],
  "maxConcurrency": 1,
  "maxResults": 3,
  "policy": {
    "maxRequests": 10,
    "maxRetries": 0,
    "delayMs": 1000
  }
}' |
apify call crawlhex/product-data-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlhex/product-data-extractor"
        }
    }
}
```

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/meEVtZiK3p3LbxFE0/builds/VD2EMh2XpgVMkj5HY/openapi.json
