# Shopify Scraper (`autofacts/shopify`) Actor

Shopify online store collection and product data extractor. Supports realtime price/stock monitor. Crawl product list or single product in a structured form, including title,description,price,sku, etc.

- **URL**: https://apify.com/autofacts/shopify.md
- **Developed by:** [Richard Feng](https://apify.com/autofacts) (community)
- **Categories:** Developer tools, E-commerce
- **Stats:** 2,140 total users, 35 monthly users, 99.9% runs succeeded, 68 bookmarks
- **User rating**: 4.27 out of 5 stars

## Pricing

$5.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper

**Shopify Scraper is a professional-grade crawling tool designed to extract high-fidelity product data from any e-commerce store built on the Shopify platform. This version uses the **Pay-Per-Event** pricing model, meaning you only pay for the products and collections you actually scrape.

### Why Use Shopify Scraper?

- **📊 Market Research**: Analyze competitor pricing, inventory, product variants, and descriptions to sharpen your strategy.
- **📈 Trend Monitoring**: Track new product launches and stock status changes across multiple brands in real-time.
- **🗂️ Data Aggregation**: Build comprehensive product catalogs by aggregating data from various Shopify-based stores.
- **🎯 Marketing Insights**: Understand how successful brands structure their metadata, tags, and categories.

> 🔄 Just need a one-time dump of data? Check out our [Shopify Scraper (PPE)](https://apify.com/autofacts/shopify-scraper-ppe) actor.

### Key Features

- **🔍 Search Support**: Find products by keyword using the built-in search functionality.
- **🎁 Product Recommendations**: Optionally fetch recommended products for each item (configurable limit).
- **🚀 Store-wide Extraction**: Capable of crawling an entire store's catalog, from collections to individual products.
- **🎯 Precision Targeting**: Fetch specific collections or singular product URLs with surgical precision.
- **💱 Currency Normalization**: Automatically handles currency selection and formats prices (multiplied by 100) to ensure financial accuracy without floating-point errors.
- **📦 Comprehensive Data**: Extracts everything: titles, descriptions, images, options (size/color), variants, and real-time stock status.
- **🛡️ Resilience**: Includes logic to bypass common gateway restrictions and handle "InStock"/"OutOfStock" parsing robustly.

### Important Note

On certain Shopify websites, multiple SKUs may be visually merged into a single product page. Please be aware that this scraper treats each SKU as an individual product entry and does not perform any merging of these SKUs.

### How it Works

#### 1. Verification

Before running the scraper, verify your target is a Shopify store:

1. Navigate to `https://<domain>/admin` (e.g., `https://gymshark.com/admin`).
2. If you see a Shopify login page, the site is compatible.

#### 2. Configuration

The scraper accepts a JSON input defining the target URLs and scraping behavior.

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | Array | Yes | A list of URLs to scrape (Homepage, Collection, or Product URLs). |
| `proxy` | Object | Yes | Proxy configuration. **Residential proxies are highly recommended** to avoid blocks. |
| `maxRequestsPerCrawl` | Integer | No | Limit the number of products scraped. Set to `0` for unlimited (default `100`). |
| `maxRecommendationsPerProduct` | Integer | No | Number of recommended products to fetch per product. Set to `0` to disable (default `0`). Max `20`. |
| `query` | String | No | Search query to find specific products. |

##### Input Examples

| Use Case | Input JSON |
| :--- | :--- |
| Scrape all products from a store | `{ "startUrls": [{ "url": "https://kith.com" }], "maxRequestsPerCrawl": 0, "proxy": { "useApifyProxy": true } }` |
| Scrape products from a collection | `{ "startUrls": [{ "url": "https://kith.com/collections/kith-tops" }], "maxRequestsPerCrawl": 0, "proxy": { "useApifyProxy": true } }` |
| Scrape a single product page | `{ "startUrls": [{ "url": "https://kith.com/products/kith-williams-iii-hoodie-black" }], "proxy": { "useApifyProxy": true } }` |
| Search products by keyword | `{ "startUrls": [{ "url": "https://kith.com" }], "query": "hoodie", "proxy": { "useApifyProxy": true } }` |
| Fetch product with recommendations | `{ "startUrls": [{ "url": "https://kith.com/products/kith-williams-iii-hoodie-black" }], "maxRecommendationsPerProduct": 10, "proxy": { "useApifyProxy": true } }` |
| Limit total scraped results | `{ "startUrls": [{ "url": "https://kith.com" }], "maxRequestsPerCrawl": 100, "proxy": { "useApifyProxy": true } }` |
| Scrape with custom currency | `{ "startUrls": [{ "url": "https://kith.com/collections/kith-tops?currency=EUR" }], "proxy": { "useApifyProxy": true } }` |

#### 3. Output

Data is stored in the default dataset. The scraper outputs either **Product** or **Collection** objects.

<details>
<summary><strong>View Product Output Example</strong></summary>

```json
{
 "source": {
  "id": "8286037409920",
  "canonicalUrl": "https://kith.com/products/dm41758001",
  "retailer": "Dr. Martens",
  "language": "en",
  "currency": "USD",
  "createdUTC": 1765831308000,
  "updatedUTC": 1766980752000,
  "publishedUTC": 1765903710000
 },
 "title": "Dr. Martens Penton Brogue Emboss Leather Loafers - Black",
 "description": "<p>Penton Brogue Emboss Leather Loafers silhouette</p>\n<p>Leather upper</p>\n<p>Goodyear Welted upper</p>\n<p>Wax coating </p>\n<p>Round toe</p>\n<p>Reinforced toe cap</p>\n<p>All-over croc embossed</p>\n<p>Structured heel </p>\n<p>Bex sole </p>\n<p>Cemented rubber outsole </p>\n<p> </p>\n<p>Style: dm41758001</p>\n<p>Color: Black </p>\n<p>Material: Leather</p>",
 "brand": "Dr. Martens",
 "categories": [
  "Loafers"
 ],
 "tags": [
  "121525",
  "121525inlinefw",
  "dm41758001",
  "dr. martens",
  "Dr. Martens Penton Brogue Emboss Leather Loafers - Black",
  "flow_tagged:types",
  "footwear",
  "inlinefw121525",
  "limit-quantity-two",
  "loafer",
  "loafers",
  "mens",
  "primary",
  "square-footwear"
 ],
 "variants": [
  {
   "id": "45137286234240",
   "title": "3",
   "sku": "15089867",
   "options": [
    "3"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286267008",
   "title": "3.5",
   "sku": "15089868",
   "options": [
    "3.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286299776",
   "title": "4",
   "sku": "15089869",
   "options": [
    "4"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286332544",
   "title": "4.5",
   "sku": "15089870",
   "options": [
    "4.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286365312",
   "title": "5",
   "sku": "15089871",
   "options": [
    "5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "InStock"
   }
  },
  {
   "id": "45137286398080",
   "title": "5.5",
   "sku": "15089872",
   "options": [
    "5.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286430848",
   "title": "6",
   "sku": "15089873",
   "options": [
    "6"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "InStock"
   }
  },
  {
   "id": "45137286463616",
   "title": "6.5",
   "sku": "15089874",
   "options": [
    "6.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286496384",
   "title": "7",
   "sku": "15089875",
   "options": [
    "7"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "InStock"
   }
  },
  {
   "id": "45137286529152",
   "title": "7.5",
   "sku": "15089876",
   "options": [
    "7.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286561920",
   "title": "8",
   "sku": "15089877",
   "options": [
    "8"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "InStock"
   }
  },
  {
   "id": "45137286594688",
   "title": "8.5",
   "sku": "15089878",
   "options": [
    "8.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286627456",
   "title": "9",
   "sku": "15089879",
   "options": [
    "9"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286660224",
   "title": "9.5",
   "sku": "15089880",
   "options": [
    "9.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286692992",
   "title": "10",
   "sku": "15089881",
   "options": [
    "10"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286725760",
   "title": "10.5",
   "sku": "15089882",
   "options": [
    "10.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286758528",
   "title": "11",
   "sku": "15089883",
   "options": [
    "11"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "InStock"
   }
  },
  {
   "id": "45137286791296",
   "title": "11.5",
   "sku": "15089884",
   "options": [
    "11.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286824064",
   "title": "12",
   "sku": "15089885",
   "options": [
    "12"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "InStock"
   }
  },
  {
   "id": "45137286856832",
   "title": "12.5",
   "sku": "15089886",
   "options": [
    "12.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286889600",
   "title": "13",
   "sku": "15089887",
   "options": [
    "13"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286922368",
   "title": "13.5",
   "sku": "15089888",
   "options": [
    "13.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286955136",
   "title": "14",
   "sku": "15089889",
   "options": [
    "14"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137286987904",
   "title": "14.5",
   "sku": "15089890",
   "options": [
    "14.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137287020672",
   "title": "15",
   "sku": "15089891",
   "options": [
    "15"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137287053440",
   "title": "15.5",
   "sku": "15089892",
   "options": [
    "15.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137287086208",
   "title": "16",
   "sku": "15089893",
   "options": [
    "16"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137287118976",
   "title": "16.5",
   "sku": "15089894",
   "options": [
    "16.5"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137287151744",
   "title": "17",
   "sku": "15089895",
   "options": [
    "17"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  },
  {
   "id": "45137287184512",
   "title": "18",
   "sku": "15089896",
   "options": [
    "18"
   ],
   "price": {
    "current": 18000,
    "previous": 0,
    "stockStatus": "OutOfStock"
   }
  }
 ],
 "medias": [
  {
   "id": "41601988165760",
   "type": "Image",
   "url": "https://cdn.shopify.com/s/files/1/0094/2252/files/41758001_3.jpg?v=1765831319",
   "variantIds": [],
   "alt": "Dr. Martens Penton Brogue Emboss Leather Loafers - Black"
  },
  {
   "id": "41601988198528",
   "type": "Image",
   "url": "https://cdn.shopify.com/s/files/1/0094/2252/files/41758001.jpg?v=1765831318",
   "variantIds": [],
   "alt": "Dr. Martens Penton Brogue Emboss Leather Loafers - Black"
  },
  {
   "id": "41601988231296",
   "type": "Image",
   "url": "https://cdn.shopify.com/s/files/1/0094/2252/files/41758001_1.jpg?v=1765831319",
   "variantIds": [],
   "alt": "Dr. Martens Penton Brogue Emboss Leather Loafers - Black"
  },
  {
   "id": "41601988264064",
   "type": "Image",
   "url": "https://cdn.shopify.com/s/files/1/0094/2252/files/41758001_2.jpg?v=1765831319",
   "variantIds": [],
   "alt": "Dr. Martens Penton Brogue Emboss Leather Loafers - Black"
  },
  {
   "id": "41601988296832",
   "type": "Image",
   "url": "https://cdn.shopify.com/s/files/1/0094/2252/files/41758001_4.jpg?v=1765831319",
   "variantIds": [],
   "alt": "Dr. Martens Penton Brogue Emboss Leather Loafers - Black"
  }
 ],
 "options": [
  {
   "type": "Size",
   "values": [
    {
     "id": "3",
     "name": "3"
    },
    {
     "id": "3.5",
     "name": "3.5"
    },
    {
     "id": "4",
     "name": "4"
    },
    {
     "id": "4.5",
     "name": "4.5"
    },
    {
     "id": "5",
     "name": "5"
    },
    {
     "id": "5.5",
     "name": "5.5"
    },
    {
     "id": "6",
     "name": "6"
    },
    {
     "id": "6.5",
     "name": "6.5"
    },
    {
     "id": "7",
     "name": "7"
    },
    {
     "id": "7.5",
     "name": "7.5"
    },
    {
     "id": "8",
     "name": "8"
    },
    {
     "id": "8.5",
     "name": "8.5"
    },
    {
     "id": "9",
     "name": "9"
    },
    {
     "id": "9.5",
     "name": "9.5"
    },
    {
     "id": "10",
     "name": "10"
    },
    {
     "id": "10.5",
     "name": "10.5"
    },
    {
     "id": "11",
     "name": "11"
    },
    {
     "id": "11.5",
     "name": "11.5"
    },
    {
     "id": "12",
     "name": "12"
    },
    {
     "id": "12.5",
     "name": "12.5"
    },
    {
     "id": "13",
     "name": "13"
    },
    {
     "id": "13.5",
     "name": "13.5"
    },
    {
     "id": "14",
     "name": "14"
    },
    {
     "id": "14.5",
     "name": "14.5"
    },
    {
     "id": "15",
     "name": "15"
    },
    {
     "id": "15.5",
     "name": "15.5"
    },
    {
     "id": "16",
     "name": "16"
    },
    {
     "id": "16.5",
     "name": "16.5"
    },
    {
     "id": "17",
     "name": "17"
    },
    {
     "id": "18",
     "name": "18"
    }
   ]
  }
 ]
}
````

</details>

<details>
<summary><strong>View Collection Output Example</strong></summary>

```json
{
 "id": "448305135744",
 "title": "&Kin Winter 2025",
 "handle": "kin-winter-2025",
 "description": "<p>An exclusive partnership with Giorgio Armani as the official suiting partner for &amp;Kin, reintroducing the Traveller and the Artist silhouettes. Discover unbranded staples made from ultra-soft cashmere, pony hair leather, extra-fine merino wool, and luxe French terry, as well as textured finishes such as Basketweave knit and Tile Herringbone. <br></p>",
 "productsCount": 30,
 "updatedUTC": 1766923230000,
 "publishedUTC": 1761312567000
}
```

</details>

***

### Troubleshooting

| Issue | Possible Cause | Solution |
| :--- | :--- | :--- |
| **0 Results Found** | The site may not be Shopify-based or has strong anti-bot protection. | Verify with the `/admin` trick. Try using residential proxies. |
| **Access Denied / 403** | Your IP has been flagged. | Enable `useApifyProxy` and ensure you have sufficient proxy quota. |
| **Incorrect Price** | Currency mismatch or raw integer format. | Remember prices are x100 (e.g., 2000 = 20.00). Ensure `?currency=XYZ` param is used if supported. |

***

### TODO

- \[ ] Review fetch support
- \[ ] Real stock monitoring
- \[ ] 7/30 day sales estimation

# Actor input Schema

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

Start URLs of Shopify site to start the actor. Site root url, category page urls, product page urls are all supported.

## `maxRequestsPerCrawl` (type: `integer`):

The maximum number of records that will be saved to the resulting dataset. The scraper will stop when this limit is reached. <br><br>If set to <code>0</code>, there is no limit.

## `maxRecommendationsPerProduct` (type: `integer`):

The maximum number of recommended products to fetch per product. Set to 0 to disable. Default is 0, max is 20.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## `query` (type: `string`):

Search query to find products.

## `maxResults` (type: `integer`):

Maximum number of results to return. Hidden parameter, overrides maxRequestsPerCrawl if set.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://kith.com/collections/kith-tops-1"
    }
  ],
  "maxRequestsPerCrawl": 100,
  "maxRecommendationsPerProduct": 0,
  "proxy": {
    "useApifyProxy": true
  },
  "maxResults": 0
}
```

# Actor output Schema

## `products` (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 = {
    "startUrls": [
        {
            "url": "https://kith.com/collections/kith-tops-1"
        }
    ],
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("autofacts/shopify").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://kith.com/collections/kith-tops-1" }],
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("autofacts/shopify").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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://kith.com/collections/kith-tops-1"
    }
  ],
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call autofacts/shopify --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=autofacts/shopify",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Shopify Scraper",
        "description": "Shopify online store collection and product data extractor. Supports realtime price/stock monitor. Crawl product list or single product in a structured form, including title,description,price,sku, etc.",
        "version": "1.2",
        "x-build-id": "l8Jgg07MYIZroyvUf"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/autofacts~shopify/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-autofacts-shopify",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/autofacts~shopify/runs": {
            "post": {
                "operationId": "runs-sync-autofacts-shopify",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/autofacts~shopify/run-sync": {
            "post": {
                "operationId": "run-sync-autofacts-shopify",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Shopify site start urls",
                        "type": "array",
                        "description": "Start URLs of Shopify site to start the actor. Site root url, category page urls, product page urls are all supported.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxRequestsPerCrawl": {
                        "title": "Max result records",
                        "minimum": 0,
                        "type": "integer",
                        "description": "The maximum number of records that will be saved to the resulting dataset. The scraper will stop when this limit is reached. <br><br>If set to <code>0</code>, there is no limit.",
                        "default": 100
                    },
                    "maxRecommendationsPerProduct": {
                        "title": "Max recommended products",
                        "minimum": 0,
                        "maximum": 20,
                        "type": "integer",
                        "description": "The maximum number of recommended products to fetch per product. Set to 0 to disable. Default is 0, max is 20.",
                        "default": 0
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used by your crawler."
                    },
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Search query to find products."
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of results to return. Hidden parameter, overrides maxRequestsPerCrawl if set.",
                        "default": 0
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
