{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Products Scraper: Prices, Stock, Change Monitor",
    "description": "Every product of a Shopify store (title, vendor, tags, variant prices, compare-at, SKU, stock, images, dates) for store domains; $0.90 per 1,000 products. Monitor mode returns new, removed, repriced and sold-out products. Custom domains and headless shops, free error rows.",
    "version": "0.1",
    "x-build-id": "XwjR03c7UjJU2evWF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arcadium~shopify-products/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arcadium-shopify-products",
        "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/arcadium~shopify-products/runs": {
      "post": {
        "operationId": "runs-sync-arcadium-shopify-products",
        "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/arcadium~shopify-products/run-sync": {
      "post": {
        "operationId": "run-sync-arcadium-shopify-products",
        "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",
        "properties": {
          "storeUrls": {
            "title": "Shopify stores, collections or products",
            "type": "array",
            "description": "Example: [\"allbirds.com\", \"https://kith.com/collections/kith-tops\", \"gymsharkusa.myshopify.com\"]. One entry per store: a domain (custom domains work), a store URL, a collection URL (only that collection) or a product URL (only that product). Headless stores are found through their myshopify.com domain. Up to 1,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "products",
              "monitor"
            ],
            "type": "string",
            "description": "'products' (default): one row per product with all variants, prices, stock and images. 'monitor': compares each store with your previous run and returns only what changed (new and removed products, price and discount changes, back in stock / out of stock per variant) plus one summary row per store. The first monitor run is a cheap baseline.",
            "default": "products"
          },
          "maxProductsPerStore": {
            "title": "Max products per store (products mode)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Example: 100. Upper limit of product rows per store or collection; 0 = the whole catalog (Shopify lists at most 25,000 per store). Monitor mode always reads the whole catalog."
          },
          "includeDescription": {
            "title": "Include descriptions",
            "type": "boolean",
            "description": "Default on. Adds the product description as plain text (HTML removed, up to 10,000 characters). Products mode only.",
            "default": true
          },
          "includeVariantDetails": {
            "title": "Add barcode, stock count and weight per variant",
            "type": "boolean",
            "description": "Default off. Reads each product's own page once more for the variant barcode (GTIN/UPC/EAN), inventory quantity where the store publishes it, inventory policy and weight. One extra request per product; charged as a detailed product. Products mode only."
          },
          "includeCollections": {
            "title": "Add collection membership",
            "type": "boolean",
            "description": "Default off. Reads the store's collections and adds the collection handles each product belongs to (`collections`). Costs time on stores with many collections; see the limit below. Products mode only."
          },
          "maxCollectionsPerStore": {
            "title": "Max collections to read per store",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Example: 50. With collection membership on, read at most this many non-empty collections per store (default 200).",
            "default": 200
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "Example: `EUR`. Three-letter currency code. Prices come in this currency where the store sells in it (Shopify Markets); otherwise in the store's default currency, which the `currency` field of every row states. Empty = the store's default currency."
          },
          "stateKey": {
            "title": "Watchlist name (monitor mode)",
            "pattern": "^[A-Za-z0-9-]{1,40}$",
            "type": "string",
            "description": "Example: `competitors-weekly`. Names the saved state (1-40 letters, digits or dashes) so several watchlists can run side by side. Changes are counted against the last monitor run with the same name. A new name starts a new baseline.",
            "default": "default"
          },
          "maxChangesPerStore": {
            "title": "Max change rows per store (monitor mode)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Example: 200. Upper limit of change rows per store and run; the rest is reported on the next run and counted in `changesDeferred`. Protects the budget when a store reprices its whole catalog.",
            "default": 1000
          },
          "requestIntervalMs": {
            "title": "Pause between requests to one store (ms)",
            "minimum": 200,
            "maximum": 10000,
            "type": "integer",
            "description": "Example: 1000. Minimum gap between two requests to the same store, in milliseconds (200-10,000). The default keeps well inside Shopify's rate limits.",
            "default": 500
          },
          "includeErrorRows": {
            "title": "Add a row for stores that failed",
            "type": "boolean",
            "description": "Default on. Adds a free `error` row (code + message) for every input that could not be read: not a Shopify store, product list turned off, password-protected, not found or rate limited.",
            "default": true
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Example: 3. How often a request is retried after a temporary error or a rate limit (0-10).",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy (advanced)",
            "type": "object",
            "description": "Leave empty. The actor uses the cheapest proxy that works (datacenter). Set your own proxy only if you must."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}