# Product Page Extractor: Price, Stock, GTIN from Any Shop (`tagadanar/product-page-extractor`) Actor

Paste product page URLs from any online shop and get one clean row each: name, price, currency, availability, brand, SKU, GTIN, rating, images, variants. $1.00 per 1,000 products with a price + $0.001 per run.

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

## Pricing

from $0.70 / 1,000 product with a prices

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

## Product Page Extractor: Price, Stock, GTIN from Any Shop

Paste product page URLs from **any online shop** and get back **one clean row per product**: name, brand, price and currency, list (compare-at) price, availability, condition, SKU, GTIN / EAN / UPC, MPN, rating and review count, images, variants (size, colour, pack) with their own prices, seller, shop name, breadcrumb category and a description. It reads what the page itself publishes for search engines and shopping feeds: schema.org **JSON-LD** (including `@graph`, `ProductGroup` with `hasVariant`, `AggregateOffer`), **microdata**, and **OpenGraph / product meta tags**. When a **Shopify** or **WooCommerce** page carries no price or name in its markup, the actor reads that shop's own public product endpoint for that one product. Every field says where it came from.

**$1.00 per 1,000 products with a price on Free ($0.70 on Gold), plus $0.001 per run. Platform usage is included.** Pages without a price, pages that are not products, pages that do not exist, shops that refuse the visit and pages robots.txt rules out are listed with the reason and **not charged**. No API key, no login, no browser, no proxy bill.

### What you get

One flat row per URL, in the order the shops answered. Fields the page does not publish are null.

| Field | What it is |
| --- | --- |
| `status` | `PRODUCT` (charged), or a free status: `PRODUCT_NO_PRICE`, `NO_PRODUCT`, `NOT_FOUND`, `REFUSED`, `ROBOTS_DISALLOWED`, `NOT_ANSWERED`, `INVALID_INPUT` |
| `name`, `brand` | Product name and brand (or manufacturer, or Shopify vendor) |
| `sku`, `gtin`, `mpn`, `productId` | Identifiers as the shop declares them (`gtin` covers GTIN-8/12/13/14, EAN, UPC, ISBN) |
| `price`, `currency` | The price and its ISO currency code. With several offers or variants: the variant the URL selects (`?variant=`), else the lowest price |
| `listPrice` | The list / compare-at / strikethrough price, only when it is above `price` |
| `lowPrice`, `highPrice`, `offerCount` | The price range across offers or variants, and how many there are |
| `availability`, `inStock` | schema.org availability (`InStock`, `OutOfStock`, `PreOrder`, `BackOrder`, `Discontinued` ...) and a yes/no |
| `condition`, `priceValidUntil`, `seller` | Offer details when declared |
| `ratingValue`, `bestRating`, `ratingCount`, `reviewCount` | The aggregate rating shown on the page |
| `category`, `breadcrumbs` | The declared category, else the last breadcrumb; the breadcrumb trail (home link dropped) |
| `image`, `images`, `imageCount` | Main image and every product image (one URL per picture, the widest size) |
| `variantCount`, `variants` | How many variants, and each one's `name`, `sku`, `gtin`, `price`, `currency`, `availability`, `color`, `size`, `url`, `image` |
| `description` | Plain text, cut at `maxDescriptionLength` characters |
| `shopName`, `platform` | The shop's name, and its platform when the page shows it (`shopify`, `woocommerce`, `magento`, `bigcommerce`, `prestashop`, `salesforce-commerce-cloud`, `wix`, `squarespace`) |
| `canonicalUrl`, `finalUrl`, `pageTitle`, `language` | Page details |
| `priceSource`, `sources` | Where the price came from, and a map of each field to its source: `json-ld`, `microdata`, `shopify-api`, `woocommerce-api` or `opengraph` |
| `httpStatus`, `error`, `errorMessage` | For rows that were not charged: what happened (`HTTP_403`, `CHALLENGE`, `NO_PRICE`, `ROBOTS`, `TIMEOUT` ...) |
| `extractedAt` | When the page was read (ISO 8601) |

Example row (shortened):

```json
{"status":"PRODUCT","name":"Four Blue Glazed Mugs","price":55,"currency":"GBP","availability":"InStock","inStock":true,"condition":"New","sku":"1153335","seller":"Cox & Cox","platform":"magento","breadcrumbs":["Home Furnishings","Accessories","Kitchen Tableware","Mugs & Jugs"],"priceSource":"json-ld"}
```

### Who uses it

- **Price monitoring and competitor tracking**: schedule a list of competitor product URLs and get price, list price and stock every day, across Shopify, WooCommerce, Magento and independent stores, in one schema.
- **Catalog and feed builders**: turn supplier or brand product pages into rows with GTIN, SKU, brand, images and variants for a marketplace, a comparison site or a Google Merchant feed.
- **MAP and reseller compliance**: check what resellers display for your products (price, availability, seller) without logging in anywhere.
- **AI agents and research**: give an agent a product URL and get structured facts back, with the source of every field.

### Examples

Prefill (a Shopify, a WooCommerce and a BigCommerce product):

```json
{"urls":["https://www.deathwishcoffee.com/products/valhalla-java-dark-chocolate-bark","https://nalgene.com/product/32oz-wide-mouth-mythical-creatures-2-0/","https://cornerstone-light-demo.mybigcommerce.com/all/able-brewing-system/"]}
```

A daily price check with short rows (no description, no variant list):

```json
{"urls":["https://www.coxandcox.co.uk/four-blue-glazed-mugs/","https://www.bulk.com/uk/products/vegan-protein-pancake-mix/vser-vpan"],"maxDescriptionLength":0,"maxVariants":0}
```

A catalog import with full descriptions and every variant, markup only (no platform fallback requests):

```json
{"urls":["https://www.allbirds.com/products/womens-wool-cruiser-port-port-sole"],"maxDescriptionLength":20000,"maxVariants":250,"platformFallbacks":false}
```

### Results, zeros and errors

- **Charged**: a page whose markup (or its Shopify / WooCommerce product endpoint) declares a product **and a price**. A price of 0 that the shop itself declares (a free product) counts.
- **Free**: `PRODUCT_NO_PRICE` (a product without a price in the markup, usually because the shop draws the price with JavaScript), `NO_PRODUCT` (the page answered but declares no product), `NOT_FOUND` (404 / 410), `REFUSED` (the shop answered 401/403/429/503 or a bot check), `ROBOTS_DISALLOWED` (robots.txt rules out the path, or its comments reserve the site against automated access; the page is not fetched), `NOT_ANSWERED` (timeout, DNS, TLS or connection error, a maintenance page, or a robots.txt that could not be read), `INVALID_INPUT` (not a URL, or a home page).
- The run ends **succeeded** when at least one product was delivered, or when every URL got a definite answer (no product, not found, robots.txt). It ends **failed** only when no shop answered at all, so a scheduled run that silently got nothing is visible.
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

#### What it does not do

- **No JavaScript rendering.** The actor reads the HTML the shop sends. Most shops put their product data there for search engines; a shop that only draws its price in the browser gives `PRODUCT_NO_PRICE` (free).
- **Big walled retailers.** The actor visits as itself (its user agent names this page) from Apify's servers, without residential proxies or browser disguises. Most large retailers turn that visitor away: in our tests Etsy, Home Depot, Newegg, Lego and Costco refused it, eBay's and Best Buy's robots.txt reserve their sites against automated access (so they are not fetched), Walmart's page carried no price in its markup and Amazon's no structured product data. All of those rows are free. IKEA's product pages worked. For Amazon use [Amazon Product Scraper](https://apify.com/tagadanar/amazon-product-scraper).
- **One product per URL.** Category and search pages are not expanded; give the product pages themselves.

#### Politeness

robots.txt is read once per shop and obeyed (our group if one exists, else `*`; `Crawl-delay` honoured up to 10 s). Requests to one shop are spaced by at least one second and never run in parallel; different shops are read in parallel. A `429` or `503` with a short `Retry-After` pauses that shop and is retried once. Private and local network addresses are never fetched.

### Pricing

- $0.001 per run (start).
- $1.00 per 1,000 products with a price on Free, with lower prices on higher Apify plans ($0.70 per 1,000 on Gold). Platform usage is included.
- Everything else is free: no-price, no-product, not-found, refused, robots.txt and unanswered rows.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**Which shops work?** Any shop whose product pages publish schema.org product data, microdata or product meta tags, which is what Google Shopping and rich results ask shops to publish: Shopify, WooCommerce, Magento / Adobe Commerce, BigCommerce and many custom stores. Try a few of your URLs with the prefill settings first: the `status` column tells you at once what each shop gives.

**Why is a price different from what I see in my browser?** Prices can follow the visitor's country, currency, login or cart. The actor reports what the shop declares to an anonymous visitor from Apify's servers, in the currency the page declares.

**Does it follow redirects?** Yes, up to 8, each hop checked against that host's robots.txt. `finalUrl` shows where the page ended.

**How fast is it?** Different shops are read in parallel; one shop gets at most one request per second (robots.txt may ask for more), so 1,000 URLs from a single shop need at least 17 minutes. The default run timeout is one hour; raise it for longer single-shop lists.

**Can I get every product of a shop?** This actor reads the product URLs you give it. For a whole Shopify store, list its product URLs from the store's sitemap first.

### Data use

The actor reads public product pages that the shops publish for search engines and shoppers, at a polite pace, as an identified visitor, and obeys each shop's robots.txt. It collects product facts, not personal data. You are responsible for using the data in line with each shop's terms and the law that applies to you.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/product-page-extractor/changelog.md

# Actor input Schema

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

Product pages from any online shop (Shopify, WooCommerce, Magento, BigCommerce, independent stores), one URL per line. Each URL gives one row; only rows with a product and a price are charged. Up to 10,000 URLs per run.

## `maxDescriptionLength` (type: `integer`):

The product description is cut at this many characters. 0 leaves it out. Default 1,000, max 20,000.

## `maxVariants` (type: `integer`):

At most this many variants (size, colour, pack) are listed in the variants field; variantCount always gives the full count. 0 leaves the list out. Default 50, max 250.

## `platformFallbacks` (type: `boolean`):

When a Shopify or WooCommerce page has no price or name in its markup, read the shop's own public product endpoint (Shopify product .js, WooCommerce Store API) for that one product. One extra request, same shop, no extra charge.

## Actor input object example

```json
{
  "urls": [
    "https://www.deathwishcoffee.com/products/valhalla-java-dark-chocolate-bark",
    "https://nalgene.com/product/32oz-wide-mouth-mythical-creatures-2-0/",
    "https://cornerstone-light-demo.mybigcommerce.com/all/able-brewing-system/"
  ],
  "maxDescriptionLength": 1000,
  "maxVariants": 50,
  "platformFallbacks": true
}
```

# Actor output Schema

## `dataset` (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.deathwishcoffee.com/products/valhalla-java-dark-chocolate-bark",
        "https://nalgene.com/product/32oz-wide-mouth-mythical-creatures-2-0/",
        "https://cornerstone-light-demo.mybigcommerce.com/all/able-brewing-system/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/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://www.deathwishcoffee.com/products/valhalla-java-dark-chocolate-bark",
        "https://nalgene.com/product/32oz-wide-mouth-mythical-creatures-2-0/",
        "https://cornerstone-light-demo.mybigcommerce.com/all/able-brewing-system/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/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://www.deathwishcoffee.com/products/valhalla-java-dark-chocolate-bark",
    "https://nalgene.com/product/32oz-wide-mouth-mythical-creatures-2-0/",
    "https://cornerstone-light-demo.mybigcommerce.com/all/able-brewing-system/"
  ]
}' |
apify call tagadanar/product-page-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tagadanar/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/PgdCUUNTmFZjM3GgE/builds/9UCD6dR8HbEuzqKeV/openapi.json
