# Compare Shopify Store SKU Prices and Gross Margins

**Use case:** 

Fictional two-store Shopify product records compare matching SKUs and user-declared same-currency listed prices, with optional cost-based gross margin estimates. Provides SKU evidence, buyer caveats and CSV reports. No real store or hidden sales are scraped. Running uses live Apify pricing.

## Input

```json
{
  "products": [
    {
      "id": 101,
      "storeHost": "demo-shop.myshopify.com",
      "handle": "sky-blue-widget",
      "title": "Sky Blue Everyday Widget",
      "vendor": "PAL Demo",
      "product_type": "Accessories",
      "body_html": "<p>A reusable everyday accessory with durable materials, practical sizing and detailed care instructions for reliable daily use.</p>",
      "images": [
        {
          "src": "https://cdn.example.org/widget-blue.jpg",
          "alt": ""
        }
      ],
      "variants": [
        {
          "id": 1001,
          "sku": "WIDGET-BLUE",
          "price": "29.00",
          "compare_at_price": "39.00",
          "available": true,
          "option1": "Blue"
        }
      ]
    }
  ],
  "previousProducts": [],
  "competitorProducts": [
    {
      "id": 201,
      "storeHost": "sample-competitor.myshopify.com",
      "handle": "blue-competitor-widget",
      "title": "Competitor Blue Everyday Widget",
      "vendor": "PAL Demo",
      "product_type": "Accessories",
      "body_html": "<p>A reusable everyday accessory with durable materials, practical sizing and detailed care instructions for reliable daily use.</p>",
      "images": [
        {
          "src": "https://cdn.example.org/competitor-blue.jpg",
          "alt": "Blue accessory"
        }
      ],
      "variants": [
        {
          "id": 2001,
          "sku": "WIDGET-BLUE",
          "price": "27.50",
          "available": true,
          "option1": "Blue"
        }
      ]
    }
  ],
  "publicStores": [],
  "currencyByStore": {
    "demo-shop.myshopify.com": "USD",
    "sample-competitor.myshopify.com": "USD"
  },
  "costBySku": {
    "WIDGET-BLUE": "12.00"
  },
  "maxPages": 1,
  "pageSize": 2,
  "fullSnapshotConfirmed": false
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type",
    "format": "string"
  },
  "store": {
    "label": "Store"
  },
  "sku": {
    "label": "Sku"
  },
  "productTitle": {
    "label": "Product title"
  },
  "changeType": {
    "label": "Change type"
  },
  "priority": {
    "label": "Priority"
  },
  "action": {
    "label": "Action"
  },
  "productsAnalyzed": {
    "label": "Products analyzed"
  },
  "qualityFindings": {
    "label": "Quality findings"
  },
  "snapshotChanges": {
    "label": "Snapshot changes"
  }
}
```

## How it works

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

The Shopify Products Scraper, Audit & Price Comparison | PAL Actor is ready to run with the inputs already set for "Compare Shopify Store SKU Prices and Gross Margins". [Sign up or log in](https://console.apify.com/create-task-from-example/bFmyp72QRxYtr5VxK) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare Shopify Store SKU Prices and Gross Margins" task

The Shopify Products Scraper, Audit & Price Comparison | PAL Actor will start running based on the input automatically. You can also change all the input fields, like current product records (fictional demo prefilled), previous catalog snapshot (optional), and more, to match your specific use case.

### 3. Receive the "Compare Shopify Store SKU Prices and Gross Margins" 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 record type, store, sku, 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 "Compare Shopify Store SKU Prices and Gross Margins" task via API](https://apify.com/practical_ai_lab_jp/pal-shopify-commerce-intelligence-suite.md).

## FAQ

### Does this example require Shopify Admin credentials?

No. The example uses fictional product data; live public feed scans require permission and robots.txt access.

### Are the price or margin figures real sales?

No. Listed prices and any user-supplied unit costs are demonstrations; the tool never infers sales, private stock or actual profits.

### Are Apify runs free?

Configuring input is free; execution can incur a report event and actor-start usage. Check live Apify Pricing before running.

## About this Actor

This example demonstrates how to use [Shopify Products Scraper, Audit & Price Comparison | PAL](https://apify.com/practical_ai_lab_jp/pal-shopify-commerce-intelligence-suite.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/practical_ai_lab_jp/pal-shopify-commerce-intelligence-suite.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/practical_ai_lab_jp/pal-shopify-commerce-intelligence-suite.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`).
