# Shopify product data collection (`data_dino/shopify-products`) Actor

💰 $1.00 per 1000 items❗Collect structured product data from Shopify store product URLs — titles, pricing, variants, images, descriptions, and store metadata — for e-commerce research, competitive analysis, and catalog enrichment.

- **URL**: https://apify.com/data\_dino/shopify-products.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Shopify Product Data Collection

Collect structured product data from Shopify store product URLs. This Apify actor extracts product titles, pricing, variants, images, descriptions, and store metadata — then delivers each successful product page as a structured dataset item.

It is designed for teams that need cost-efficient product data collection from known Shopify stores for e-commerce research, competitive analysis, price monitoring, or catalog enrichment.

### Why use this actor?

- **Cost-conscious collection** — submit only the product URLs you need instead of crawling entire storefronts.
- **Batch-friendly performance** — process multiple product URLs in one run, with execution designed to maintain useful throughput as the workload changes.
- **Decision-ready product data** — collect titles, pricing, variants, images, descriptions, and store metadata in one record.
- **Consistent dataset output** — every successful product keeps its original URL and follows the same predictable structure.
- **Apify-native workflow** — schedule runs, monitor progress, and export the resulting dataset in the formats your downstream workflow already uses.

### What you can collect

Each product page may include the following publicly visible information:

| Category | Fields |
|---|---|
| Product identity | Original product URL, title, description, handle |
| Pricing | Price, compare-at price, currency, availability |
| Variants | Option names and values, variant-specific pricing and availability |
| Media | Image URLs, featured image |
| Store metadata | Store name, store domain |
| SEO metadata | Page title, meta description |

The actor keeps the source product URL with every record, making it easy to trace a finding back to the originating page.

### Input

Provide one or more Shopify product page URLs in `startUrls`. The field is required and accepts Apify request-list objects.

| Field | Type | Required | Description |
|---|---|---|---|
| `startUrls` | Array of objects | Yes | Product URLs to collect. Each object uses the form `{ "url": "https://store.example.com/products/example-product" }`. |
| `maxItems` | Integer | No | Maximum number of product records across all supplied URLs. Defaults to `5`. |

#### Example input

The actor is prefilled with five product URLs so you can test a small batch immediately:

```json
{
  "startUrls": [
    { "url": "https://www.allbirds.com/products/mens-tree-runners" }
  ],
  "maxItems": 5
}
```

You can replace these examples with up to five product detail URLs for the default test batch. Use product detail page URLs rather than collection pages, search-result pages, or storefront directory pages.

### Output

The actor pushes one dataset item for each successfully retrieved product, up to `maxItems` across the run. A representative result looks like this:

```json
{
  "product": {
    "id": 7558389334172,
    "title": "Example Product",
    "handle": "example-product",
    "body_html": "<p>A detailed product description...</p>",
    "vendor": "Example Brand",
    "variants": [
      { "title": "Small / Red", "price": "29.99", "available": true, "sku": "EXAMPLE-S-R" }
    ],
    "images": [
      { "src": "https://cdn.shopify.com/.../product-image.jpg" }
    ]
  },
  "url": "https://store.example.com/products/example-product.json",
  "store": "store.example.com",
  "image_urls": []
}
```

The `product` object preserves fields returned by Shopify's public product JSON endpoint. `image_urls` is empty unless image collection is enabled by the underlying scraper. Missing fields are omitted or retained as Shopify returns them; they are not invented.

### Built for practical workflows

- **E-commerce research** — collect product catalogs, pricing, and availability from Shopify stores.
- **Competitive analysis** — monitor competitor product catalogs, pricing changes, and inventory signals.
- **Price monitoring** — track product prices and compare-at pricing over scheduled runs.
- **Catalog enrichment** — feed structured product data into your own catalog, spreadsheet, or warehouse.

### How to run

1. Open the actor in Apify.
2. Add one or more Shopify product page URLs to `startUrls`.
3. Start the run.
4. Review the dataset or export it as JSON, CSV, Excel, or another supported format.

### Important limitations

- The actor is focused on known product page URLs; it is not a storefront-discovery or collection-pagination actor.
- Results depend on the information publicly displayed on each product page at run time.
- Product availability, pricing, and variant data can change as the store updates its catalog.
- Not all Shopify stores expose the same product data structure; some fields may be absent on certain stores.
- A run reports failed URLs separately from successful records; validate the dataset before using it for irreversible business decisions.

Use the collected information in accordance with Shopify's terms, applicable privacy requirements, and your organization's data-use policies.

# Actor input Schema

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

One or more Shopify product page URLs to collect. Use product detail pages rather than collection, search-result, or storefront directory URLs.

## `maxItems` (type: `integer`):

Maximum number of product records to collect across all supplied URLs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.allbirds.com/products/mens-tree-runners"
    },
    {
      "url": "https://www.allbirds.com/products/womens-tree-runners"
    },
    {
      "url": "https://www.allbirds.com/products/mens-wool-runners"
    },
    {
      "url": "https://www.allbirds.com/products/womens-wool-runners"
    },
    {
      "url": "https://www.allbirds.com/products/tree-dasher-2"
    }
  ],
  "maxItems": 5
}
```

# Actor output Schema

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

Structured Shopify product records collected during the run.

# 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://www.allbirds.com/products/mens-tree-runners"
        },
        {
            "url": "https://www.allbirds.com/products/womens-tree-runners"
        },
        {
            "url": "https://www.allbirds.com/products/mens-wool-runners"
        },
        {
            "url": "https://www.allbirds.com/products/womens-wool-runners"
        },
        {
            "url": "https://www.allbirds.com/products/tree-dasher-2"
        }
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/shopify-products").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://www.allbirds.com/products/mens-tree-runners" },
        { "url": "https://www.allbirds.com/products/womens-tree-runners" },
        { "url": "https://www.allbirds.com/products/mens-wool-runners" },
        { "url": "https://www.allbirds.com/products/womens-wool-runners" },
        { "url": "https://www.allbirds.com/products/tree-dasher-2" },
    ],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/shopify-products").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://www.allbirds.com/products/mens-tree-runners"
    },
    {
      "url": "https://www.allbirds.com/products/womens-tree-runners"
    },
    {
      "url": "https://www.allbirds.com/products/mens-wool-runners"
    },
    {
      "url": "https://www.allbirds.com/products/womens-wool-runners"
    },
    {
      "url": "https://www.allbirds.com/products/tree-dasher-2"
    }
  ],
  "maxItems": 5
}' |
apify call data_dino/shopify-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_dino/shopify-products"
        }
    }
}

```

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/KQh5fdZ5BB8fDi5YS/builds/ZiA7Zv73NMs61enf6/openapi.json
