# Extract Product Prices and Metadata from Store Pages

**Use case:** 

Extract public product names, prices, SKUs, GTINs, availability and ratings from supported JSON-LD, Microdata, OpenGraph or semantic HTML. Start with a sample product page, then add your own URLs or discover pages through sitemaps. Export structured product records without writing CSS selectors.

## Input

```json
{
  "urls": [
    "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
  ],
  "discoverFromSitemap": false,
  "sitemapUrlPattern": "/product",
  "maxProducts": 3,
  "maxConcurrency": 25,
  "timeoutSecs": 15
}
```

## Output

```json
{
  "productUrl": {
    "label": "Product URL",
    "format": "string"
  },
  "domain": {
    "label": "Store domain",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "name": {
    "label": "Product name",
    "format": "string"
  },
  "brand": {
    "label": "Brand",
    "format": "string"
  },
  "sku": {
    "label": "SKU",
    "format": "string"
  },
  "gtin": {
    "label": "GTIN / EAN / UPC",
    "format": "string"
  },
  "mpn": {
    "label": "Manufacturer part number",
    "format": "string"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "availability": {
    "label": "Availability",
    "format": "string"
  },
  "inStock": {
    "label": "In stock",
    "format": "boolean"
  },
  "ratingValue": {
    "label": "Rating",
    "format": "number"
  },
  "reviewCount": {
    "label": "Review count",
    "format": "number"
  },
  "sellerName": {
    "label": "Seller",
    "format": "string"
  },
  "category": {
    "label": "Category",
    "format": "string"
  },
  "imageUrl": {
    "label": "Main image",
    "format": "string"
  },
  "allImages": {
    "label": "All images",
    "format": "array"
  },
  "descriptionSnippet": {
    "label": "Description snippet",
    "format": "string"
  },
  "extractionMethod": {
    "label": "Extraction method",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  },
  "errorMessage": {
    "label": "Error details",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Universal Ecommerce Schema Product Price Scraper Actor is ready to run with the inputs already set for "Extract Product Prices and Metadata from Store Pages". [Sign up or log in](https://console.apify.com/create-task-from-example/4ZDgYl6ENymf4GaRd) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract Product Prices and Metadata from Store Pages" task

The Universal Ecommerce Schema Product Price Scraper Actor will start running based on the input automatically. You can also change all the input fields, like product or store urls, discover products from sitemaps, and more, to match your specific use case.

### 3. Receive the "Extract Product Prices and Metadata from Store Pages" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as product url, store domain, status, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Extract Product Prices and Metadata from Store Pages" task via API](https://apify.com/arezdev/universal-ecommerce-schema-product-price-scraper.md).

## FAQ

### Do I need to configure CSS selectors?

No. The Actor reads supported product metadata and semantic markup in the downloaded HTML. Start with an individual product URL to check the fields a store publishes.

### Does it work with every e-commerce website?

The product data must be present in a supported form in the HTTP response. JavaScript-only stores, protected pages or pages without recognizable product evidence may return errors. Compatibility depends on page markup.

### How do I discover products from a sitemap?

Enable sitemap discovery and set a literal path substring that matches the store's product URLs. The default /product may need to become /p/ or another path. The filter is case-insensitive and is not a regular expression.

### Why can a successful product have no price or stock value?

Valid product metadata can exist without a published price or availability. Missing fields remain empty. Source metadata can be stale or differ from location-specific, session-specific or checkout pricing.

### Can the task compare changes between runs?

This Actor returns product snapshots. Compare stable product identifiers or source URLs in your own workflow when you need historical price or availability changes.

## About this Actor

This example demonstrates how to use [Universal Ecommerce Schema Product Price Scraper](https://apify.com/arezdev/universal-ecommerce-schema-product-price-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/arezdev/universal-ecommerce-schema-product-price-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/arezdev/universal-ecommerce-schema-product-price-scraper.md

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`).
