# Shopify Product & Pricing Feed Extractor (`apex_data_tools/shopify-product-pricing-feed-extractor`) Actor

Extract normalized product, pricing, variant, and image data from publicly accessible Shopify storefronts with clean AI-ready Markdown.

- **URL**: https://apify.com/apex_data_tools/shopify-product-pricing-feed-extractor.md
- **Developed by:** [Vishal Sharma](https://apify.com/apex_data_tools) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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

## 🛍️ Shopify Product & Pricing Feed Extractor (AI & MCP Ready)

Extract clean, normalized product catalogs, pricing, variants, SKUs, image URLs, and **AI-ready Markdown** from any publicly accessible Shopify storefront, collection, or product URL.

Built for **AI Shopping Agents, RAG pipelines, E-commerce Competitor Price Tracking, and Catalog Analytics**.

***

### 🚀 Key Features

- **Full Storefront & Collection Discovery:** Automatically discovers products via `robots.txt` sitemaps, nested sitemap indexes, and paginated `/collections/` pages.
- **3-Tier Precision Extraction:** Combines `application/ld+json` structured data, embedded Shopify product JSON, and DOM metadata fallbacks so you never miss variants or prices.
- **Exact Variant & Pricing Math:** Extracts active selling prices, compare-at (original) prices, currency ISO codes, SKUs, barcodes, and stock availability using exact decimal math.
- **AI-Friendly Markdown Export:** Generates a clean, token-efficient Markdown summary per product (stripped of cookie banners, scripts, and nav menus)—ready to feed directly into LLMs, vector databases, or MCP agents.
- **Strict Budget & Rate-Limit Safety:** Respects `robots.txt`, handles pagination loops safely, and enforces strict `maxProducts` and `maxPagesPerStore` guardrails.

***

### 📥 Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | Array | *Required* | Public Shopify store homepages, collection URLs (`/collections/...`), or direct product URLs (`/products/...`). |
| `maxProducts` | Integer | `1000` | Maximum unique products to extract across the run. |
| `maxPagesPerStore` | Integer | `100` | Maximum crawled pages per store domain. |
| `includeVariants` | Boolean | `true` | Include full variant breakdown (IDs, SKUs, options, prices, stock state). |
| `includeMarkdown` | Boolean | `true` | Include clean LLM-ready Markdown representation in each record. |

***

### 📤 Sample Output (JSON)

````json
{
  "schema_version": "1.0",
  "record_type": "shopify_product",
  "product_key": "kyliecosmetics.com:cashmere-muse-eau-de-parfum",
  "product_id": "9175025090802",
  "store_domain": "kyliecosmetics.com",
  "canonical_url": "[https://kyliecosmetics.com/products/cashmere-muse-eau-de-parfum](https://kyliecosmetics.com/products/cashmere-muse-eau-de-parfum)",
  "title": "Cashmere Muse Eau De Parfum",
  "vendor": "kylie-fragrance",
  "currency": "USD",
  "price_min": "68.00",
  "price_max": "68.00",
  "available": true,
  "variants": [
    {
      "variant_id": "49834184638706",
      "price": "68.00",
      "sku": "KF161"
    }
  ],
  "markdown": "# Cashmere Muse Eau De Parfum\n\n**Brand:** kylie-fragrance\n**Price:** USD 68.00..."
}



# Actor input Schema

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

Enter the public Shopify storefront homepage, a collection URL, or individual product URL. Multiple URLs are supported.
## `maxProducts` (type: `integer`):

Maximum number of unique product records to publish across the entire run.
## `maxPagesPerStore` (type: `integer`):

Maximum total crawled pages per unique store domain, including collection, product, and sitemap pages.
## `maxConcurrency` (type: `integer`):

Maximum number of concurrent crawl tasks. Keep this low for responsible storefront extraction.
## `maxTasksPerMinute` (type: `integer`):

Global Crawlee task limit for controlling crawl speed across the run.
## `includeVariants` (type: `boolean`):

Include publicly available variant IDs, titles, SKUs, options, availability, and prices.
## `includeMarkdown` (type: `boolean`):

Add a clean, product-specific Markdown representation to each dataset record.
## `proxyConfiguration` (type: `object`):

Configure Apify Proxy or authorized custom proxies for reliable public storefront access. Proxy use does not override access restrictions.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://example.myshopify.com"
    }
  ],
  "maxProducts": 1000,
  "maxPagesPerStore": 100,
  "maxConcurrency": 2,
  "maxTasksPerMinute": 20,
  "includeVariants": true,
  "includeMarkdown": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
````

# Actor output Schema

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

Dataset containing all extracted Shopify product and pricing records.

# 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://example.myshopify.com"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("apex_data_tools/shopify-product-pricing-feed-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 = {
    "startUrls": [{ "url": "https://example.myshopify.com" }],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("apex_data_tools/shopify-product-pricing-feed-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 '{
  "startUrls": [
    {
      "url": "https://example.myshopify.com"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call apex_data_tools/shopify-product-pricing-feed-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apex_data_tools/shopify-product-pricing-feed-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/rE8ybZOsS0DNY58rb/builds/amQuKYywtKmxf7cSj/openapi.json
