# Shopify & WooCommerce Scraper: Product Price & Stock Checker (`dojito/us-product-price-stock`) Actor

Get price, currency, in-stock status, SKU/GTIN and brand from public product pages of US and Canadian online stores (Shopify, WooCommerce, BigCommerce, Magento and any site with schema.org Product data). Obeys robots.txt, 2-second pacing per site, no login, no personal data.

- **URL**: https://apify.com/dojito/us-product-price-stock.md
- **Developed by:** [Dongjin Kim](https://apify.com/dojito) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product results

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 Price & Stock Checker for US Online Stores** checks **price, currency, in-stock status, SKU / GTIN and brand** on public product pages of US and Canadian online stores — Shopify, WooCommerce, BigCommerce, Magento, Squarespace and any other site that publishes schema.org `Product` data for search engines.

Give it product URLs (or a collection page, or the store's sitemap) and get a clean table back. Run it on a schedule to track price changes and restocks.

### How to use

1. Click **Start** — the input is prefilled with a public test store, so you can see a result in a few seconds.
2. Replace the URL in **Product page URLs** with the product pages you want to check. To check a whole category page, add it and set **Product URL pattern** (e.g. `/products/`).
3. Set **Max results** to cap what you pay, then click **Start**.
4. Open the **Output** tab for the prices table (export as JSON, CSV or Excel), and the **Run report** for any URL that was skipped and why. To track changes, save the input as a task and add a **Schedule** (e.g. daily).

**Polite by design:** obeys robots.txt, waits at least 2 seconds between requests to the same site, never logs in, never collects personal data, and refuses sites whose terms of use forbid scraping. No proxy rotation, no CAPTCHA solving, no headless browser — if a site says no, we stop.

### What you get

One row per product (or per variant: size / color). These are the first two rows of a real run (2026-10-15) with the input example below plus two URLs that were skipped for free (an Amazon page: `terms_of_use`; a robots.txt-disallowed page: `robots_txt`). The store is webscraper.io's public scraper test store, which publishes price but not stock or SKU — real Shopify / WooCommerce stores usually fill `inStock`, `availability` and `sku` too:

```json
[
{"url": "https://webscraper.io/test-sites/e-commerce/allinone/product/60", "domain": "webscraper.io", "name": "Asus VivoBook X441NA-GA190", "brand": null, "sku": null, "gtin": null, "mpn": null, "price": 295.99, "currency": "USD", "listPrice": null, "lowPrice": null, "highPrice": null, "availability": null, "inStock": null, "condition": null, "seller": null, "image": "https://webscraper.io/images/test-sites/e-commerce/items/cart2.png", "productUrl": null, "ratingValue": null, "reviewCount": 14, "variantOf": null, "source": "microdata", "scrapedAt": "2026-10-15T03:19:14+00:00"},
{"url": "https://webscraper.io/test-sites/e-commerce/allinone/product/61", "domain": "webscraper.io", "name": "Prestigio SmartBook 133S Dark Grey", "brand": null, "sku": null, "gtin": null, "mpn": null, "price": 299.0, "currency": "USD", "listPrice": null, "lowPrice": null, "highPrice": null, "availability": null, "inStock": null, "condition": null, "seller": null, "image": "https://webscraper.io/images/test-sites/e-commerce/items/cart2.png", "productUrl": null, "ratingValue": null, "reviewCount": 8, "variantOf": null, "source": "microdata", "scrapedAt": "2026-10-15T03:19:16+00:00"}
]
```

All fields: `url`, `domain`, `name`, `brand`, `sku`, `gtin`, `mpn`, `price`, `currency`, `listPrice` (strikethrough / MSRP if the store publishes it), `lowPrice` / `highPrice` (price ranges), `availability` (schema.org value: InStock, OutOfStock, PreOrder, BackOrder, SoldOut, LimitedAvailability…), `inStock` (true / false / null if the page doesn't say), `condition`, `seller`, `image`, `productUrl`, `ratingValue`, `reviewCount`, `variantOf`, `source` (json-ld, microdata or opengraph), `scrapedAt` (UTC).

Export as JSON, CSV, Excel or via the Apify API, or connect to Google Sheets, Zapier and Make.

### Use cases

- **Competitor price monitoring** for small e-commerce brands — schedule a daily run on 50 competitor products.
- **Restock alerts** — run hourly, filter `inStock = true`, send yourself a webhook.
- **MAP (minimum advertised price) checks** for brands selling through independent retailers.
- **Catalog snapshots** of a supplier's public store (with `sitemapUrls` + `productUrlPattern`).

### Input

| Field | What it does |
|---|---|
| `startUrls` | Product pages. You can also add a category / collection page — then set `productUrlPattern` and the actor follows matching links on that page (one level). |
| `productUrlPattern` | Regular expression for product URLs, e.g. `/products/` (Shopify) or `/product/` (WooCommerce). Leave empty if all start URLs are product pages. |
| `sitemapUrls` | Optional store sitemap(s), e.g. `https://store.com/sitemap.xml`. Indexes are followed (max 20 files). Needs `productUrlPattern`. |
| `maxItems` | Stop after this many result rows (default 100, max 5,000). |
| `includeVariants` | On (default): one row per variant. Off: one row per product with the lowest price, `lowPrice`/`highPrice`, and `inStock` = any variant in stock. |
| `requestIntervalSecs` | Seconds between requests to the same site (min 2). A longer `Crawl-delay` in robots.txt wins. Different sites are interleaved. |

Example — the input behind the rows above (a category page plus one product page from webscraper.io's scraper test store; this is also the prefilled input's store):

```json
{
  "startUrls": [
    { "url": "https://webscraper.io/test-sites/e-commerce/allinone/computers/laptops" },
    { "url": "https://webscraper.io/test-sites/e-commerce/allinone/product/60" }
  ],
  "productUrlPattern": "/e-commerce/allinone/product/\\d+$",
  "maxItems": 25,
  "includeVariants": true,
  "requestIntervalSecs": 2
}
```

### Pricing

**$3.00 per 1,000 results** (pay per event: $0.003 per result row, plus Apify's standard actor-start event of $0.00005 per run). You only pay for rows with product data — URLs that were skipped (robots.txt, terms of use, no product data, errors) are free and listed in the run report. Checking 50 products every day for a month ≈ 1,500 rows ≈ $4.50. Set a **maximum cost per run** and the actor stops cleanly when it is reached (`stoppedAtMaxCharge` in the run report); rows are saved page by page, so you keep everything you paid for.

### What gets skipped, and why

Every skipped URL is listed in the **RUN_REPORT** record of the run's key-value store, with a reason:

| reason | meaning |
|---|---|
| `robots_txt` | The site's robots.txt disallows the page for our bot — or robots.txt itself answered 401 / 403 / a server error or couldn't be reached, which means "treat the whole site as closed" ([RFC 9309](https://www.rfc-editor.org/rfc/rfc9309#section-2.3.1.4)). We don't work around it. |
| `terms_of_use` | The site's terms of use prohibit robots / scraping (e.g. Amazon, Target, eBay, Craigslist, Kijiji). No request is sent. |
| `blocked_site` | A large retailer or marketplace this actor never touches (e.g. Walmart, Best Buy, Etsy, Home Depot US). |
| `private_page` | Login, account, cart, checkout or order pages. Never fetched. |
| `no_product_data` | The page has no schema.org Product or Open Graph price data. |
| `http_error` | The page returned an error (404, 403, 5xx after retries), or 429 "too many requests": we retry only when the site asks us to wait 30 seconds or less, and after two 429s in a row from one site we skip the rest of that site's URLs without sending more requests (listed in `rateLimitedHosts`). |
| `redirect_blocked` | The page redirected to another site, or to a blocked / private / robots-disallowed page. Not followed. |

### Limits — be aware

- The actor reads the **structured data the store publishes**. Most Shopify / WooCommerce / BigCommerce themes include it; if a store doesn't, you get `no_product_data` (free).
- **Shopify product pages often answer bot requests with HTTP 429 (rate limited).** In our test of 20 Shopify stores, 13 returned 429 on product pages; those URLs end as `http_error` and are not charged. Some large stores behind bot protection also answer 403 to robots.txt; the actor then treats the whole site as closed (`robots_txt`, free).
- Prices rendered only by JavaScript after page load, and prices behind a login or a ZIP-code selector, are not read.
- Big marketplaces and the largest retailers are deliberately not supported (see above). If you need them, use their official APIs (e.g. Amazon Product Advertising API, eBay Browse API, Best Buy Developer API).
- One request per 2 seconds per site: 1,000 products from a single store take about 35 minutes. Spreading products over several stores is faster.

### Responsible use

- You decide which URLs to check. Only use it on pages you are allowed to access, and read the store's terms if you plan heavy use.
- The bot identifies itself: `DojitoPriceStockBot/1.0 (+https://apify.com; contact djkim@dojito.com)`. Store owners can block it in robots.txt and it will obey.
- Output contains product facts only. Reviews, reviewer names and any other personal data are never returned.
- Background reading on scraping public, logged-out pages: [Apify — Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/), [hiQ Labs v. LinkedIn](https://en.wikipedia.org/wiki/HiQ_Labs_v._LinkedIn), [RFC 9309 Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309). General information, not legal advice — ask a lawyer about your own use.

### FAQ

**Can it check Amazon or Walmart prices?** No. Their terms forbid scraping, so the actor refuses those URLs. Use their official APIs.

**Why is `inStock` empty for some rows?** The store didn't publish an availability value on that page. We don't guess.

**Can I get a price history?** Schedule the actor (e.g. daily) and each run's dataset is a snapshot with `scrapedAt`. Append them to a Google Sheet via the integration.

**Is the price in USD?** It's the currency the store publishes (`currency` column: USD, CAD, …). No conversion.

### More tools from this developer

Other public actors by [dojito](https://apify.com/dojito):

- [ATS Job Board Feed](https://apify.com/dojito/ats-job-boards-feed) — every open job from Greenhouse, Lever, Ashby, Recruitee, Personio and Teamtailor boards in one schema, from their documented public APIs and feeds.
- [Sitemap URL Extractor](https://apify.com/dojito/sitemap-url-extractor) — every URL in a website's sitemaps with lastmod, changefreq, priority and hreflang alternates. Never downloads the pages themselves.
- [Wayback Machine Snapshot History](https://apify.com/dojito/wayback-snapshot-history) — every Internet Archive capture of a URL, folder or whole domain from the official CDX API, or one summary row per URL.
- [Domain RDAP & DNS Lookup](https://apify.com/dojito/domain-rdap-dns-lookup) — registered or available, registrar, created and expiry dates, nameservers and DNSSEC from the registry's RDAP server, plus DNS records. One row per domain.

Using them together:

- **Checking a domain before you buy or link to it:** run Domain RDAP & DNS Lookup for registration status, expiry date and DNS, then Wayback Machine Snapshot History with Match = "Domain + subdomains" and Output = "Summary" to see when the site was first and last archived and how often its content changed.
- **Site migration or content audit:** list a site's URLs with Sitemap URL Extractor, then paste the pages you care about into Wayback Machine Snapshot History (Output = "Summary") to get each page's first and last capture.

***

Not affiliated with Shopify, WooCommerce, BigCommerce or any store. Built on the Polite Web Scraper Kit (robots.txt, pacing, retries).

# Actor input Schema

## `startUrls` (type: `array`):

Paste public product pages to check, e.g. https://store.example.com/products/blue-mug. To check a whole category / collection page, add it here and set 'Product URL pattern': the actor then follows matching links on that page (one level, no pagination). Login, account, cart and checkout URLs are never fetched.

## `productUrlPattern` (type: `string`):

Enter a regular expression that product links / sitemap entries must match, e.g. /products/ (Shopify) or /product/ (WooCommerce). Leave empty if every start URL is a product page. Required with sitemaps.

## `sitemapUrls` (type: `array`):

Add the store's sitemap(s) to check its whole catalog, e.g. https://store.example.com/sitemap.xml. Sitemap indexes are followed (max 20 files); product URLs are picked with 'Product URL pattern'.

## `maxItems` (type: `integer`):

Set the most result rows you want (you pay per row). This also caps the number of product pages fetched.

## `includeVariants` (type: `boolean`):

Turn on to get one row per variant (size / color), each with its own price, SKU and stock. Turn off to get one row per product with the lowest price, lowPrice / highPrice, and inStock = any variant in stock.

## `requestIntervalSecs` (type: `number`):

Set the seconds to wait between requests to the same site (minimum 2). A longer Crawl-delay in the site's robots.txt wins. Different sites are interleaved, so many sites in one run go faster.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://webscraper.io/test-sites/e-commerce/allinone/product/60"
    }
  ],
  "maxItems": 100,
  "includeVariants": true,
  "requestIntervalSecs": 2
}
```

# Actor output Schema

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

One row per product (or per variant) that had schema.org / Open Graph price data. Each row is one paid result.

## `runReport` (type: `string`):

JSON: rows, skipped counts by reason (robots_txt, terms_of_use, blocked_site, private_page, no_product_data, http_error, redirect_blocked), up to 1,000 skipped URLs with details, request count, rate-limited hosts. Free.

# 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 = {
    "startUrls": [
        {
            "url": "https://webscraper.io/test-sites/e-commerce/allinone/product/60"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dojito/us-product-price-stock").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 = { "startUrls": [{ "url": "https://webscraper.io/test-sites/e-commerce/allinone/product/60" }] }

# Run the Actor and wait for it to finish
run = client.actor("dojito/us-product-price-stock").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 '{
  "startUrls": [
    {
      "url": "https://webscraper.io/test-sites/e-commerce/allinone/product/60"
    }
  ]
}' |
apify call dojito/us-product-price-stock --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dojito/us-product-price-stock"
        }
    }
}
```

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/uR4o8Fxk3VgRB84hG/builds/EFIfvpeJngNX1ei8e/openapi.json
