# Product Page Extractor — Structured Product Data, No Proxy (`teal_blacksmith/product-page-extractor`) Actor

Structured product data (name, brand, SKU, GTIN, price, currency, availability, images, variants, rating) from product page URLs and Shopify / WooCommerce store URLs. $0.0015 per product read; unreadable pages are free. Plain HTTP, no proxy, no browser, robots.txt respected.

- **URL**: https://apify.com/teal_blacksmith/product-page-extractor.md
- **Developed by:** [도영 김](https://apify.com/teal_blacksmith) (community)
- **Categories:** E-commerce, Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 product reads

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 Page Extractor — structured product data, no proxy

Give it product page URLs (or a Shopify / WooCommerce store URL) and get clean, normalized product rows back: **name, brand, SKU, GTIN/MPN, price, currency, availability, images, description, variants, rating, canonical URL** — plus the method that produced each value. Plain HTTP only: **no proxy, no browser, no add-ons.**

- **$0.0015 per product read** (that is **$1.50 per 1,000 products**). Pay-per-event, event `product`.
- **Only rows with status `ok` are charged.** Pages that could not be read, have no product data, are blocked, are refused by `robots.txt` or belong to an unsupported marketplace are returned as free status rows.
- A store URL is charged once per product it returns, never per page request.
- You control the cost: `maxProducts` caps the whole run, `maxPagesPerStore` caps list pages per store, and the Actor also stops at your **Max total charge** — it never saves a paid row it could not charge.

### What it reads

For a **product page URL** the Actor fetches the HTML and tries, in this order, filling only fields that are still empty:

1. **schema.org JSON-LD** — `Product`, `ProductGroup` (variants), `Offer`, `AggregateOffer`, `@graph`, `@id` references, `aggregateRating`. Product items that only appear inside a category `ItemList` are ignored (a category page is not a product page).
2. **Microdata** — `itemscope` / `itemprop` Product with nested Offer.
3. **OpenGraph / product meta tags** — `og:title`, `product:price:amount`, `product:price:currency`, `product:availability` … (used only when the page declares `og:type=product` or has a price meta tag, so an ordinary page's `og:title` is not mistaken for a product).
4. **Platform endpoints**, only when the page itself is incomplete (no price, no variants, or a variable product):
   - **Shopify**: `/products/<handle>.js` (variants, options, SKUs, availability, prices; currency from the page or `/meta.json`).
   - **WooCommerce**: Store API `/wp-json/wc/store/v1/products?slug=<slug>` (and `?type=variation&parent=<id>` for variation prices).

For a **store URL** (root `https://shop.example.com/`, a Shopify `/collections/<name>`, or `/shop`, `/store`, `/products`):

- **Shopify** `/products.json?limit=250&page=N`, then **WooCommerce** Store API `/wp-json/wc/store/v1/products?per_page=100&page=N`, up to `maxPagesPerStore` pages and `maxProducts` products.
- Stores that expose neither endpoint return one `no_product_data` row (`NO_STORE_API`) — the Actor does not crawl arbitrary category pages.

Every `ok` row has `method` (the first method that produced data: `json-ld`, `microdata`, `opengraph`, `shopify-js`, `shopify-products-json`, `woocommerce-store-api`), `methods` (all that contributed), and `platform` (`shopify`, `woocommerce` or `null`).

A product counts as `ok` only when it has a **name and (a price or an availability)**. Nothing is guessed: a value that the page does not publish stays `null` (for example GTIN is returned only when the page publishes a valid 8/12/13/14-digit code).

### Prices

Prices are numbers in the page's own currency, parsed from formats such as `1.299,00 €`, `$1,299.00`, `1 299,00`, `12,50` and `1,23,456.00`. `currency` is an ISO code taken from structured data; a bare `$` sign is **not** turned into USD because it is ambiguous. For variable products `price` is the lowest price and `priceHigh` the highest. Shopify `.js` prices (cents) and WooCommerce minor-unit prices are converted for you.

### Status of every input URL

| Status | Meaning | Charged |
|---|---|---|
| `ok` | Product data read (name plus price or availability) | **yes, per product** |
| `no_product_data` | Page or endpoint read, but no product data. Reason `PAGE_TRUNCATED` means the page's HTML is larger than the 3 MB read limit, so it was cut off before the product data was found (very large shop pages do this) — the row is free and the limit cannot be raised. Reason `JS_RENDERING_SUSPECTED` means the page looks like it needs a browser (not supported). `NO_STORE_API` means a store root without a Shopify/WooCommerce list endpoint | no |
| `blocked` | 403 / 429 / bot challenge page. The Actor does **not** try to bypass it | no |
| `unreachable` | DNS, connection or TLS failure, HTTP 4xx/5xx, or a redirect to another domain | no |
| `timeout` | Not read within the per-URL time limit | no |
| `robots_disallowed` | `robots.txt` forbids the page (or `robots.txt` answered 5xx) | no |
| `budget_stopped` | Not read or not chargeable because Max total charge, `maxProducts` or the run time limit was reached | no |
| `unsupported_domain` | A large marketplace whose terms forbid scraping — see below | no |
| `invalid_input` | Not a URL, a private/internal address, or a duplicate input | no |

Reason codes are in `reasons` (for example `UNSUPPORTED_DOMAIN`, `ROBOTS_DISALLOWED`, `CHALLENGE_PAGE`, `HTTP_5XX`, `DNS_FAILED`, `REDIRECTED_TO_OTHER_DOMAIN`, `JS_RENDERING_SUSPECTED`, `PAGE_TRUNCATED`, `BUDGET_LIMIT`, `MAX_PRODUCTS_REACHED`, `DUPLICATE_INPUT`).

### Marketplaces that are refused (unsupported_domain)

To stay on the right side of site terms, the Actor **does not send any request** to large marketplaces and retail platforms whose terms forbid automated collection — **Amazon, eBay, Walmart, AliExpress, Alibaba, Temu, Shein, Etsy, Target, Best Buy, Costco, Home Depot, Lowe's, Wayfair, Macy's, Coupang, Gmarket, Naver Shopping/SmartStore, Rakuten, Mercado Libre, Shopee, Lazada, Flipkart, Zalando, Allegro, Otto, Cdiscount, bol, Kaufland** and similar — plus search engines and social networks. They come back as free `unsupported_domain` rows.

This list is **not exhaustive**: a site that is not on it is not thereby permitted. You are responsible for checking that you may read the sites you submit. This Actor is built for independent shops, brand stores and platform stores (Shopify, WooCommerce, BigCommerce, Magento and custom shops that publish schema.org data).

### Politeness

- Requests to one website are sent **one at a time** with a pause (default 500 ms; a larger `robots.txt` Crawl-delay overrides it up to 10 s), however many URLs you submit.
- `robots.txt` is read once per site and respected (`respectRobotsTxt`, on by default). Switch it off only for sites you own or have permission to read.
- Hard limits: at most 8 requests per product page URL (including `robots.txt` and platform endpoints), `maxPagesPerStore` list pages per store, a per-URL time limit, and a 3 MB cap on HTML. Redirects are followed only within the same site and every hop is checked again. Private/internal addresses are refused.
- The Actor identifies itself with the User-Agent `ProductPageExtractor/0.1 (Apify Actor; …)`.

### Input

| Field | Default | Notes |
|---|---|---|
| `urls` | three public demo shops | 1–2000 product page or store URLs (strings) |
| `maxProducts` | 100 | 1–10,000. Hard cap for the whole run (charged products) |
| `maxPagesPerStore` | 3 | 1–20 list pages per store URL (Shopify 250 products/page, WooCommerce 100) |
| `respectRobotsTxt` | true | |
| `timeoutPerUrlSecs` | 60 | 5–300 |
| `maxConcurrency` | 5 | 1–20 input URLs at a time; one request at a time per website regardless |
| `delayBetweenRequestsMs` | 500 | 200–5000 minimum pause per website |

Example:

```json
{
  "urls": [
    "https://demo.woostify.com/product/sport-sandal/",
    "https://web-scraping.dev/product/1",
    "https://scrapeme.live/shop/Bulbasaur/"
  ],
  "maxProducts": 20,
  "maxPagesPerStore": 1
}
```

### Output

One dataset row per product (`ok`) and per input URL that produced no product. Example `ok` row (shortened):

```json
{
  "index": 1,
  "inputUrl": "https://web-scraping.dev/product/1",
  "status": "ok",
  "reasons": [],
  "url": "https://web-scraping.dev/product/1",
  "canonicalUrl": "https://web-scraping.dev/product/1",
  "name": "Box of Chocolate Candy",
  "brand": "web-scraping.dev",
  "sku": null,
  "gtin": null,
  "price": 9.99,
  "priceHigh": 19.99,
  "currency": "USD",
  "availability": "InStock",
  "images": ["https://…"],
  "ratingValue": 4.7,
  "reviewCount": 10,
  "variants": [],
  "method": "json-ld",
  "methods": ["json-ld", "opengraph"],
  "platform": null,
  "charged": true
}
```

Fields: `index`, `inputUrl`, `status`, `reasons`, `url`, `canonicalUrl`, `name`, `brand`, `sku`, `gtin`, `mpn`, `price`, `priceHigh`, `currency`, `availability` (`InStock`, `OutOfStock`, `PreOrder`, `BackOrder`, …), `images` (up to 20), `description` (plain text, up to 5,000 characters), `ratingValue`, `ratingBest` (the scale the shop publishes, usually 5 — some shops use 100), `reviewCount`, `variants` (up to 100; each with `name`, `sku`, `gtin`, `price`, `currency`, `availability`, `options`), `method`, `methods`, `platform`, `httpRequests`, `durationMs`, `charged`.

The run summary (key-value store record `SUMMARY`) counts rows per status, per extraction method and per platform and shows whether the run stopped early (`stoppedReason`: `max-products`, `budget-limit` or `run-timeout`). It contains no product values and no site names.

### Limits you should know

- **No JavaScript rendering.** Pages whose product data only exists after scripts run, and sites that sit behind bot protection, return `no_product_data` or `blocked` — the Actor will not fake a browser or try to get around protection.
- Store enumeration works for **Shopify** (`/products.json`) and **WooCommerce** (Store API) shops that leave those public endpoints on. Shopify stores can turn off `/products.json`; some WooCommerce shops disable the Store API.
- Variant prices for WooCommerce variable products use an extra Store API request that depends on the shop's plugin version; when it is unavailable the variants come back with options but without prices.
- Data is only as good as what the shop publishes. Prices and stock are a snapshot at read time; the Actor does not check that they are correct.
- Prices and availability are public product information, but the shop's own terms still apply to how you use the data.

### Cost examples

| Run | Charged |
|---|---|
| 1,000 product pages, 900 readable | 900 × $0.0015 = $1.35 |
| One Shopify store, 250 products in one list page | 250 × $0.0015 = $0.375 |
| 100 URLs, all blocked or unsupported | $0 |

Set **Max total charge** on the run to cap spending; the Actor reads it and stops cleanly.

### For agents and MCP clients

- No credentials, cookies or API keys are needed.
- Every input URL gets a `status` (`ok`, `no_product_data`, `blocked`, `unreachable`, `timeout`, `robots_disallowed`, `budget_stopped`, `unsupported_domain`, `invalid_input`) and machine-readable `reasons`.
- Rows are bounded: up to 20 `images`, a `description` of up to 5,000 characters and up to 100 `variants` per product.
- Cost is bounded before the run starts: `maxProducts × $0.0015`, or lower with a maximum charge; only `ok` rows are charged.
- Use it from Claude, Cursor or any MCP client through the Apify MCP server (`https://mcp.apify.com`) — the tool arguments come from this Actor's input schema.

# Actor input Schema

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

Up to 2000 URLs per run. A product page URL returns that product. A store root URL (https://shop.example.com/), a Shopify collection URL (/collections/…) or a shop list URL (/shop) returns the products of a Shopify or WooCommerce store, up to 'Max products' and 'Max list pages per store'. Large marketplaces whose terms forbid scraping (Amazon, eBay, Walmart, AliExpress, Temu, Etsy, Target, Best Buy, Coupang and similar) are refused with status unsupported_domain and are free. The same URL listed twice is read and charged once.

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

Hard cap on the number of products returned (and charged) in the whole run. When a store has more products, the run stops at this number and the summary says so. Use this together with Max total charge to bound cost.

## `maxPagesPerStore` (type: `integer`):

Hard cap on product list pages requested per store URL (Shopify returns up to 250 products per page, WooCommerce up to 100). Does not apply to single product page URLs.

## `respectRobotsTxt` (type: `boolean`):

When on, robots.txt is read first (once per site) and disallowed pages and endpoints are not requested; Crawl-delay is honored up to 10 seconds. Turn off only for sites you own or have permission to read.

## `timeoutPerUrlSecs` (type: `integer`):

The Actor stops working on one input URL after this many seconds. A URL that could not be read by then gets the status timeout and is not charged.

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

How many input URLs are read at the same time. Requests to the same website are always sent one at a time, with a pause between them, no matter how high this is.

## `delayBetweenRequestsMs` (type: `integer`):

Minimum pause between two requests to the same website. A larger robots.txt Crawl-delay overrides it (up to 10 seconds).

## Actor input object example

```json
{
  "urls": [
    "https://demo.woostify.com/product/sport-sandal/",
    "https://web-scraping.dev/product/1",
    "https://scrapeme.live/shop/Bulbasaur/"
  ],
  "maxProducts": 100,
  "maxPagesPerStore": 3,
  "respectRobotsTxt": true,
  "timeoutPerUrlSecs": 60,
  "maxConcurrency": 5,
  "delayBetweenRequestsMs": 500
}
```

# Actor output Schema

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

One row per product (status ok) or per input URL that could not be read, with the normalized product fields, the extraction method, reason codes and whether the row was charged.

## `summary` (type: `string`):

Counts per status, per extraction method and per platform, requests, whether the run stopped early and why, and billing counts. Contains no product values and no website names.

# 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://demo.woostify.com/product/sport-sandal/",
        "https://web-scraping.dev/product/1",
        "https://scrapeme.live/shop/Bulbasaur/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("teal_blacksmith/product-page-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://demo.woostify.com/product/sport-sandal/",
        "https://web-scraping.dev/product/1",
        "https://scrapeme.live/shop/Bulbasaur/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("teal_blacksmith/product-page-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://demo.woostify.com/product/sport-sandal/",
    "https://web-scraping.dev/product/1",
    "https://scrapeme.live/shop/Bulbasaur/"
  ]
}' |
apify call teal_blacksmith/product-page-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,teal_blacksmith/product-page-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/lDpG9QfgEFgeei9B1/builds/EzYXw2AW8NxpKX3u3/openapi.json
