{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Store Products, Pricing, Stock & Apps Catalog Scraper",
    "description": "Fast pure-HTTP Shopify product, variant, SKU, price, discount & stock extractor with collection filtering, store-level tech/theme/app audits (Klaviyo, Yotpo, Gorgias, Shop Pay, Triple Whale) & stateful price/stock diffing.",
    "version": "1.0",
    "x-build-id": "1TYDN0mThenmCHHS9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~shopify-store-products-pricing-catalog-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-shopify-store-products-pricing-catalog-scraper",
        "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/regpulse-data~shopify-store-products-pricing-catalog-scraper/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-shopify-store-products-pricing-catalog-scraper",
        "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/regpulse-data~shopify-store-products-pricing-catalog-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-shopify-store-products-pricing-catalog-scraper",
        "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": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "extract_products",
              "store_audit",
              "price_stock_diff"
            ],
            "type": "string",
            "description": "Select 'extract_products' to extract normalized product & variant catalog records, 'store_audit' for 1 competitive intelligence & tech-stack audit summary per store, or 'price_stock_diff' for stateful monitoring of new products, price drops/hikes, stock-outs, restocks, and removed listings across runs.",
            "default": "extract_products"
          },
          "storeUrl": {
            "title": "Single Shopify Store URL or Domain",
            "type": "string",
            "description": "Optional single Shopify storefront URL or domain (e.g., 'https://www.allbirds.com' or 'brooklinen.com'). Merged with storeUrls if both are provided."
          },
          "storeUrls": {
            "title": "Shopify Store URLs / Domains",
            "type": "array",
            "description": "One or more Shopify storefront URLs or domains to scrape or audit. Leave empty for a fast zero-config sample run on https://www.allbirds.com (25 products).",
            "items": {
              "type": "string"
            }
          },
          "collectionHandle": {
            "title": "Collection Handle (Optional)",
            "type": "string",
            "description": "Optional Shopify collection handle (e.g., 'bath-1' or 'mens-runners') to scope extraction to /collections/{handle}/products.json instead of the full catalog."
          },
          "query": {
            "title": "Keyword Search Query",
            "type": "string",
            "description": "Case-insensitive keyword filter matching product title, vendor, productType, tags, or variant SKUs."
          },
          "vendors": {
            "title": "Filter by Vendors / Brands",
            "type": "array",
            "description": "Case-insensitive filter matching product vendor/brand names.",
            "items": {
              "type": "string"
            }
          },
          "productTypes": {
            "title": "Filter by Product Types / Categories",
            "type": "array",
            "description": "Case-insensitive filter matching Shopify product_type values (e.g., 'Shoes', 'Pillowcases').",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Filter by Product Tags",
            "type": "array",
            "description": "Case-insensitive filter matching Shopify product tags (matches if any product tag equals or contains any specified tag).",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum product price filter (matches products where minPrice >= minPrice)."
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "number",
            "description": "Optional maximum product price filter (matches products where minPrice <= maxPrice)."
          },
          "onlyInStock": {
            "title": "Only In-Stock Products",
            "type": "boolean",
            "description": "When enabled, returns only products with at least one available variant in stock.",
            "default": false
          },
          "onlyOnSale": {
            "title": "Only On-Sale / Discounted Products",
            "type": "boolean",
            "description": "When enabled, returns only products with a compare-at price higher than their active price.",
            "default": false
          },
          "includeVariants": {
            "title": "Include Full Variant Array",
            "type": "boolean",
            "description": "Include detailed variant objects (variantId, title, sku, price, compareAtPrice, available, options, grams) on every product record.",
            "default": true
          },
          "maxProductsPerStore": {
            "title": "Max Products per Store",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of matched products to collect per Shopify storefront (also controls sample size in store_audit mode).",
            "default": 250
          },
          "maxResults": {
            "title": "Maximum Total Records to Deliver",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global cap on billed records pushed to the dataset (1 to 10,000). Defaults to 25 for zero-config empty input runs, or 250 when stores are specified.",
            "default": 250
          },
          "watchlistStateKey": {
            "title": "Watchlist State Key (for price_stock_diff Mode)",
            "type": "string",
            "description": "Named state key inside the persistent Key-Value Store used to diff prices, stock statuses, and product additions/removals across scheduled runs.",
            "default": "SHOPIFY_PRICE_STOCK_WATCHLIST_SNAPSHOT"
          },
          "requestDelayMs": {
            "title": "Delay Between Paginated Requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Polite delay in milliseconds between consecutive paginated JSON requests to the same storefront to avoid Shopify rate limits.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}