# Universal E-Commerce Schema & Product API (JSON-LD, OG & MCP) (`deliberate_gratitude_shj/universal-ecommerce-schema-api`) Actor

Zero-browser Universal E-Commerce Product Schema Extractor in 128 MB RAM. Parses JSON-LD (Product, ProductGroup, Offer, AggregateOffer, AggregateRating, @graph), OpenGraph product tags, Microdata, and store sitemaps into one clean normalized JSON schema.

- **URL**: https://apify.com/deliberate_gratitude_shj/universal-ecommerce-schema-api.md
- **Developed by:** [Apex Automation Labs](https://apify.com/deliberate_gratitude_shj) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 products parsed

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/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

## Universal E-Commerce JSON-LD Price Scraper & Product Schema API

Extract **clean, normalized product JSON** (`name`, `brand`, `sku`, `gtin`, `mpn`, `price`, `currency`, `availability`, `condition`, `ratingValue`, `reviewCount`, `category`, `images`, `description`, `platformHint`, `extractionSource`) from **any e-commerce store** (`Shopify`, `WooCommerce`, `BigCommerce`, `Magento`, `Squarespace`, `PrestaShop`, or custom stores) in **128 MB RAM** using **pure Node.js / TypeScript (`fetch` + `cheerio`)**—with **zero Playwright, zero Puppeteer, and zero headless browsers**.

Priced at **$1.50 per 1,000 parsed products** (`$0.0015 / product`, **$0 start fee**), built by **Apex Automation Labs** for **cross-platform price intelligence**, **catalog normalization**, **n8n / Make.com automations**, and **AI Agents via Apify MCP**.

#### Verified Apify Cloud Benchmarks (128 MB RAM)

- **Fast Batch Run (`pwcNW5aVXyuWuXBni`, 3 global product URLs):** Completed in **2.91s total** (**392 ms** extraction time) using **39.7 MB peak RAM** (`23.5 MB` average) and **`0.0001012` Compute Units** (`~0.0337 CU / 1,000 URLs`).
- **Diverse 5-Store Run (`Ota4q2m8SYxmCdSwv`, WooCommerce + BigCommerce `ProductGroup` + Shopify + 2 custom stores):** Extracted **5/5 products** using **73.1 MB peak RAM** (`61.7 MB` average), **`0.00159` Compute Units**, and **$0.000458** platform cost (**93.9%–99%+ net compute margin**).

***

### Zero-Browser HTTP API vs Headless Browser Scrapers

| Metric / Capability | Universal E-Commerce JSON-LD Price Scraper (This Actor) | Headless Browser E-Commerce Scrapers (Chromium / Playwright) |
|---|---|---|
| **Container RAM Footprint** | **39.7–73.1 MB peak** (runs in **128 MB RAM**) | 1,024–4,096 MB RAM per container |
| **Extraction Speed (3 Fast URLs)** | **2.91s total** (**392 ms** extraction) | 20–60+ seconds (browser launch + asset loading) |
| **Compute Cost per 1,000 Products** | **~0.0337 CU** (~$0.013 Apify compute) | 0.40–1.50+ CU ($0.16–$0.60+ compute) |
| **Pricing per 1,000 Products** | **$1.50 / 1,000 products** (`$0` start fee) | $4.00–$15.00+ / 1,000 products |
| **Cross-Platform CSS Maintenance** | Zero brittle CSS selectors — reads `JSON-LD` (`@graph`, `ProductGroup`, `UnitPriceSpecification`), `OpenGraph` & `Microdata` | Breaks whenever a store changes theme HTML/CSS classes |
| **Sitemap Product Discovery** | Auto-discovers products from `sitemap_products_1.xml`, `product-sitemap.xml`, `xmlsitemap.php` & `sitemap.xml` | Requires manual category pagination rules per platform |
| **Billing on Non-Product Pages** | **$0.00 charge** on 404s, articles, or homepages (`isProduct: false`) | Bills runtime/start fee regardless of page type |

***

### Key Schema Normalization & Storefront Support

- **Universal 3-Layer Schema Engine (`JSON-LD` -> `OpenGraph` -> `Microdata`):**
  - Parses `<script type="application/ld+json">` including `@graph` arrays, `Product`, `ProductGroup` (`hasVariant`), `Offer`, `AggregateOffer`, `UnitPriceSpecification`, `AggregateRating`, `Brand` (`@id` resolution), and `BreadcrumbList` categories.
  - Falls back automatically to OpenGraph product tags (`product:price:amount`, `og:price:currency`, `og:title`, `og:image`, `product:availability`, `product:brand`) and Schema.org Microdata (`[itemscope][itemtype*="schema.org/Product"]`).
- **Automatic Platform Fingerprinting:** Tags `platformHint` across `shopify`, `woocommerce`, `bigcommerce`, `magento`, `squarespace`, `wix`, `prestashop`, `shopware`, `salesforce-commerce`, `ecwid`, `webflow`, or `custom`.
- **Optional `sitemap.xml` Product Discovery:** Enable `discoverFromSitemap: true` on any store root or sitemap URL to discover and parse products up to `maxProducts`.

***

### Quick Start Input JSON

Click **Start** immediately using the built-in defaults, or customize:

```json
{
  "urls": [
    "https://woocommerce.com/products/woocommerce-subscriptions/",
    "https://mountaincrestgardens.com/gasteraloe-flow/",
    "https://www.ifixit.com/products/pro-tech-toolkit",
    "https://www.adafruit.com/product/4295",
    "https://www.prusa3d.com/product/original-prusa-mk4s-3d-printer-kit/"
  ],
  "discoverFromSitemap": false,
  "maxProducts": 25,
  "includeImages": true,
  "includeDescription": true,
  "maxDescriptionChars": 1200,
  "concurrency": 5,
  "timeoutMs": 12000
}
```

#### Key Input Parameters

- **`urls` / `url`**: Pass a batch list of product URLs (`urls`) or a single `url` shorthand for MCP tool calls.
- **`discoverFromSitemap`** *(default `false`)*: Probes `robots.txt` and common e-commerce sitemaps (`sitemap_products_1.xml`, `product-sitemap.xml`, `xmlsitemap.php`, `sitemap.xml`).
- **`maxProducts`** *(default `25`, max `5000`)*: Strict Pay-Per-Event spending cap across the entire run.
- **`productUrlPattern`** *(optional)*: Regex or substring filter (e.g. `/products/`) for discovered sitemap URLs.
- **`includeImages` & `includeDescription` & `maxDescriptionChars`**: Control payload size for AI agents and MCP context windows.

***

### Sample Output JSON (Verified Live Cloud Run)

```json
{
  "url": "https://www.ifixit.com/products/pro-tech-toolkit",
  "canonicalUrl": "https://www.ifixit.com/products/pro-tech-toolkit",
  "platformHint": "shopify",
  "name": "iFixit Pro Tech® Toolkit: Computer, Phone, Electronics Repair Kit",
  "brand": "iFixit",
  "sku": "IF145-307-4",
  "gtin": "856235006429",
  "mpn": null,
  "price": 74.99,
  "currency": "USD",
  "availability": "InStock",
  "condition": null,
  "ratingValue": 4.9,
  "reviewCount": 3287,
  "category": "Store > Tools > Toolkits",
  "images": [
    "https://cdn.shopify.com/s/files/1/0045/4092/4007/files/ckpuwVFwUFVCivaY_886e6aeb-2f68-4886-8dd3-fc2c3c838c50.jpg?v=1788368294"
  ],
  "description": "The original electronics toolkit: Designed for computer, smartphone, tablet, and gaming repair, backed by thousands of free instructions.",
  "extractionSource": "json-ld",
  "finalUrl": "https://www.ifixit.com/products/pro-tech-toolkit",
  "ok": true,
  "isProduct": true,
  "statusCode": 200,
  "redirected": false,
  "redirectHops": 0,
  "skippedReason": null,
  "error": null,
  "responseTimeMs": 410,
  "extractedAt": "2026-12-05T17:00:00.000Z"
}
```

***

### MCP & n8n Quick-Start

#### Native MCP Integration (`mcp.apify.com`)

Connect this Actor directly to **Claude Desktop**, **Cursor**, or **Windsurf** via Apify's official Streamable HTTP MCP server. Replace `<YOUR_APIFY_TOKEN>` with your Apify API token.

##### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "universal-ecommerce-schema": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?actors=deliberate_gratitude_shj/universal-ecommerce-schema-api",
        "--header",
        "Authorization: Bearer <YOUR_APIFY_TOKEN>"
      ]
    }
  }
}
```

##### Cursor (`.cursor/mcp.json`) & Windsurf (`mcp_config.json`)

```json
{
  "mcpServers": {
    "universal-ecommerce-schema": {
      "url": "https://mcp.apify.com/?actors=deliberate_gratitude_shj/universal-ecommerce-schema-api",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

*(In Windsurf `~/.codeium/windsurf/mcp_config.json`, replace `"url"` with `"serverUrl"`.)*

##### Ready-to-Use AI Agent Prompts

1. **Cross-Store Competitor Price Check:** *"Use `universal-ecommerce-schema-api` to parse these WooCommerce, Shopify, and BigCommerce product URLs and compare prices, currencies, SKUs, and `InStock` availability."*
2. **Sitemap Product Catalog Discovery:** *"Run `universal-ecommerce-schema-api` on `https://example-store.com` with `discoverFromSitemap: true`, `productUrlPattern: '/product/'`, and `maxProducts: 20`."*

#### n8n & Make.com Synchronous API Setup

Import-ready workflow JSON is available in [`distribution/n8n_workflow.json`](https://github.com/tikzyre8-cmyk/universal-ecommerce-schema-api/blob/main/distribution/n8n_workflow.json).

- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/deliberate_gratitude_shj~universal-ecommerce-schema-api/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>`
- **Headers:** `Content-Type: application/json`
- **Body:**

```json
{
  "urls": [
    "https://woocommerce.com/products/woocommerce-subscriptions/",
    "https://mountaincrestgardens.com/gasteraloe-flow/",
    "https://www.ifixit.com/products/pro-tech-toolkit"
  ],
  "maxProducts": 25
}
```

- **Make.com:** Add **Apify -> Run an Actor** (`deliberate_gratitude_shj/universal-ecommerce-schema-api`, **Run synchronously** enabled), then sync normalized prices, GTINs, SKUs, and stock flags into Google Sheets, Airtable, or Slack alerts.

***

### Transparent Pay-Per-Event Pricing

Simple, predictable **Pay-Per-Event (PPE)** billing — **$0.00 actor start fee** and **$0.0015 per parsed product** (`$1.50` per `1,000` URLs). Test free inside Apify's monthly $5 developer credit (3,300+ product URLs/month free).

| Parsed Products | Event Rate (`product-parsed`) | Estimated Total Cost |
|---:|---:|---:|
| **25 products** (Default Cap) | $0.0015 / URL | **$0.0375** |
| **100 products** | $0.0015 / URL | **$0.15** |
| **1,000 products** | $0.0015 / URL | **$1.50** |
| **5,000 products** | $0.0015 / URL | **$7.50** |

*404 responses, unreachable domains, and non-product pages (`isProduct: false`) are returned cleanly at **$0.00 charge**.*

***

### Frequently Asked Questions (FAQ)

**1. Which e-commerce platforms does this JSON-LD product scraper support?**\
It works across **Shopify**, **WooCommerce**, **BigCommerce**, **Magento**, **Squarespace**, **PrestaShop**, **Shopware**, **Salesforce Commerce**, **Wix**, **Ecwid**, **Webflow**, and any custom storefront publishing Schema.org JSON-LD, OpenGraph product meta tags, or Microdata.

**2. How does it handle complex schemas like `@graph`, `ProductGroup`, or `UnitPriceSpecification`?**\
The JSON-LD parser recursively unwraps `@graph` arrays, resolves `@id` brand references, reads `ProductGroup.hasVariant` prices, and extracts `UnitPriceSpecification.price` when `Offer.price` is nested inside `priceSpecification`.

**3. Are 404 pages or non-product blog/category URLs charged?**\
No. The `product-parsed` event (`\$0.0015`) is only charged when `ok: true` and `isProduct: true` (valid product schema detected). Invalid or non-product URLs appear in the dataset at **$0.00 charge**.

**4. Can it discover product URLs automatically when I only have the store homepage?**\
Yes. Set `discoverFromSitemap: true` (optionally with `productUrlPattern`, e.g. `"/products/"`) and the Actor probes `robots.txt` plus common sitemaps (`sitemap_products_1.xml`, `product-sitemap.xml`, `xmlsitemap.php`, `sitemap.xml`).

**5. When should I use the dedicated Shopify scraper instead of this universal schema scraper?**\
If you specifically want Shopify's `/products.json` and `/collections/{handle}/products.json` full variant SKUs and `compare_at_price` arrays at `\$1.00 / 1k products`, use our [Shopify Public Catalog & Price Monitor](https://apify.com/deliberate_gratitude_shj/shopify-catalog-monitor); for multi-platform stores (`WooCommerce`, `BigCommerce`, `Magento`, custom JSON-LD), use this Actor.

***

### More Fast Zero-Browser Tools by Apex Automation Labs

| Tool | Primary Use Case | Pricing (PPE, $0 Start) | Verified Peak RAM & Speed | Apify Store Link |
|---|---|---|---|---|
| **ATS Job Board Scraper API** | Greenhouse, Lever, Ashby, Workable, SmartRecruiters & `/careers` discovery | **$2.00 / 1k jobs** | 75.1 MB RAM · 3.39s (3 boards) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/ats-jobs-extractor) |
| **Technical SEO Broken Link Checker** | 4xx/5xx links, `#fragment` anchors, redirects, JSON-LD & `llms.txt` | **$2.00 / 1k pages** | 59.1 MB RAM · 4.23s (5 pages) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/http-seo-link-auditor) |
| **Domain Security & Tech Stack API** | DNS, email host, SPF/DMARC score, RDAP age, SSL/TLS & CDN stack | **$2.00 / 1k domains** | 58.5 MB RAM · 2.45s analysis (5 domains) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/domain-intel-api) |
| **Shopify Product & Price Scraper API** | Catalogs, variants, compare-at discounts, SKUs, stock & sitemaps | **$1.00 / 1k products** | 54.1 MB RAM · 2.59s (30 products) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/shopify-catalog-monitor) |
| **B2B Website Email & Contact Extractor** | Role vs. personal emails, phones, 7 social profiles & JSON-LD | **$2.00 / 1k domains** | 101.1 MB RAM · 5.06s extraction (5 domains) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/b2b-contact-social-extractor) |
| **Website to Markdown Crawler (RAG & n8n)** | Clean LLM Markdown, token counts, boilerplate stripping & `/llms.txt` | **$1.00 / 1k pages** | 39.8 MB RAM · 2.97s (5 sites) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/fast-http-markdown-crawler) |

*Explore the open-source portfolio hub on GitHub: [Apex Automation Labs (`tikzyre8-cmyk`)](https://github.com/tikzyre8-cmyk/tikzyre8-cmyk) · [All Actors on Apify Store](https://apify.com/deliberate_gratitude_shj).*

# Actor input Schema

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

One or more product page URLs (or store root / sitemap.xml URLs when Sitemap Discovery is enabled). Automatically normalized and deduplicated.

## `url` (type: `string`):

Optional single URL shorthand (handy for single-product MCP tool calls from Claude, Cursor, or n8n). Overrides default urls when provided alone.

## `discoverFromSitemap` (type: `boolean`):

When enabled, probes each target domain's robots.txt and e-commerce sitemaps (sitemap.xml, sitemap_products_1.xml, product-sitemap.xml, xmlsitemap.php) to discover product pages automatically up to maxProducts.

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

Maximum number of URLs/products to process. Acts as a strict Pay-Per-Event spending cap ($0.0015 / parsed product).

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

Optional substring or regex pattern (e.g. '/products/' or '/product/') to filter discovered sitemap URLs before fetching product pages.

## `includeImages` (type: `boolean`):

Include deduplicated images\[] array on each output item. Disable for ultra-compact MCP/LLM payloads.

## `includeDescription` (type: `boolean`):

Strip HTML tags and decode entities into a clean plain-text description.

## `maxDescriptionChars` (type: `integer`):

Truncate long product descriptions cleanly at word boundaries (0 = keep full description).

## `concurrency` (type: `integer`):

Maximum number of HTTP requests executed in parallel.

## `timeoutMs` (type: `integer`):

Strict HTTP timeout per request in milliseconds.

## Actor input object example

```json
{
  "urls": [
    "https://woocommerce.com/products/woocommerce-subscriptions/",
    "https://mountaincrestgardens.com/gasteraloe-flow/",
    "https://www.ifixit.com/products/pro-tech-toolkit",
    "https://www.adafruit.com/product/4295",
    "https://www.prusa3d.com/product/original-prusa-mk4s-3d-printer-kit/"
  ],
  "discoverFromSitemap": false,
  "maxProducts": 25,
  "includeImages": true,
  "includeDescription": true,
  "maxDescriptionChars": 1200,
  "concurrency": 5,
  "timeoutMs": 12000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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://woocommerce.com/products/woocommerce-subscriptions/",
        "https://mountaincrestgardens.com/gasteraloe-flow/",
        "https://www.ifixit.com/products/pro-tech-toolkit",
        "https://www.adafruit.com/product/4295",
        "https://www.prusa3d.com/product/original-prusa-mk4s-3d-printer-kit/"
    ],
    "maxProducts": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("deliberate_gratitude_shj/universal-ecommerce-schema-api").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://woocommerce.com/products/woocommerce-subscriptions/",
        "https://mountaincrestgardens.com/gasteraloe-flow/",
        "https://www.ifixit.com/products/pro-tech-toolkit",
        "https://www.adafruit.com/product/4295",
        "https://www.prusa3d.com/product/original-prusa-mk4s-3d-printer-kit/",
    ],
    "maxProducts": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("deliberate_gratitude_shj/universal-ecommerce-schema-api").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://woocommerce.com/products/woocommerce-subscriptions/",
    "https://mountaincrestgardens.com/gasteraloe-flow/",
    "https://www.ifixit.com/products/pro-tech-toolkit",
    "https://www.adafruit.com/product/4295",
    "https://www.prusa3d.com/product/original-prusa-mk4s-3d-printer-kit/"
  ],
  "maxProducts": 25
}' |
apify call deliberate_gratitude_shj/universal-ecommerce-schema-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deliberate_gratitude_shj/universal-ecommerce-schema-api"
        }
    }
}
```

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/CxgeyQ1JilYZVqgtM/builds/CsV45HJeNAekD0t7a/openapi.json
