{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Store Scraper: Products, Prices, Variants, Stock",
    "description": "Scrape the full public product catalog of any Shopify store: prices, sale and discount detection, every variant with SKU and stock status, images, tags, collections and store info (currency, country). Clear error rows for non Shopify sites. No login, no API key.",
    "version": "1.0",
    "x-build-id": "Ame1zLi0FW4RkyFyh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~shopify-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-shopify-store-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/zhtech~shopify-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-shopify-store-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/zhtech~shopify-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-shopify-store-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",
        "required": [
          "storeUrls"
        ],
        "properties": {
          "storeUrls": {
            "title": "Store URLs or domains",
            "type": "array",
            "description": "Shopify stores to scrape. Accepted: a domain (allbirds.com), a store URL (https://www.allbirds.com), a myshopify domain (brand.myshopify.com), a collection URL (https://store.com/collections/sale, scrapes only that collection) or a product URL (https://store.com/products/handle, scrapes only that product). Non Shopify sites and stores with a disabled product feed get a clear error row.",
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerStore": {
            "title": "Max products per store",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of products saved for each store (after filters). 0 means the whole catalog (Shopify serves up to 25,000 products per feed).",
            "default": 100
          },
          "maxTotalProducts": {
            "title": "Max products in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on products for the whole run, across all stores. 0 means no overall cap.",
            "default": 0
          },
          "variantMode": {
            "title": "Variants output",
            "enum": [
              "nested",
              "rows"
            ],
            "type": "string",
            "description": "Nested: one row per product with a variants array (sizes, colors, SKUs) inside. Separate rows: one row per variant with the product fields repeated, easiest for spreadsheets. You pay per product either way.",
            "default": "nested"
          },
          "includeStoreInfo": {
            "title": "Store info row",
            "type": "boolean",
            "description": "Adds one row per store with its public details from /meta.json: name, description, currency, country, city, ships to countries, published product and collection counts.",
            "default": true
          },
          "includeCollections": {
            "title": "Collections list",
            "type": "boolean",
            "description": "Adds one row per collection of the store (title, handle, URL, product count). Useful to discover collection handles for the filter below.",
            "default": false
          },
          "includeProducts": {
            "title": "Scrape products",
            "type": "boolean",
            "description": "Turn off to only collect store info and/or collections without products.",
            "default": true
          },
          "collections": {
            "title": "Only these collections",
            "type": "array",
            "description": "Collection handles (sale, mens-shoes) or collection URLs. When set, products are read from /collections/<handle>/products.json of every store instead of the full catalog. Products in several collections are saved once.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Keep only products whose title, handle, vendor, product type or tags contain at least one of these words (case insensitive).",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop products whose title, handle, vendor, product type or tags contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "vendors": {
            "title": "Vendors / brands",
            "type": "array",
            "description": "Keep only products from these vendors (exact name, case insensitive).",
            "items": {
              "type": "string"
            }
          },
          "productTypes": {
            "title": "Product types",
            "type": "array",
            "description": "Keep only products of these product types (exact name, case insensitive), for example Shoes or T-Shirts.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Keep only products that have at least one of these tags (exact tag, case insensitive).",
            "items": {
              "type": "string"
            }
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products with at least one available variant. In separate rows mode, sold out variants are dropped too.",
            "default": false
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Keep only products with at least one variant priced below its compare at price.",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "type": "string",
            "description": "Keep only products with at least one variant at or above this price, in the store's currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "string",
            "description": "Keep only products with at least one variant at or below this price, in the store's currency. Leave empty for no maximum."
          },
          "createdAfter": {
            "title": "Created after",
            "type": "string",
            "description": "Keep only products created on or after this date. YYYY-MM-DD, a full ISO timestamp, or relative like 7 days, 2 weeks, 1 month. Great for new product monitoring."
          },
          "updatedAfter": {
            "title": "Updated after",
            "type": "string",
            "description": "Keep only products updated on or after this date (price, stock or content changes). Same formats as above."
          },
          "descriptionFormat": {
            "title": "Description format",
            "enum": [
              "text",
              "html",
              "both",
              "none"
            ],
            "type": "string",
            "description": "Plain text (clean, readable), raw HTML, both, or none (smaller output).",
            "default": "text"
          },
          "maxConcurrency": {
            "title": "Stores in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many stores are scraped at the same time. Requests to one store are always sequential and spaced out.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Delay between requests to one store (ms)",
            "minimum": 250,
            "maximum": 10000,
            "type": "integer",
            "description": "Polite pause between two requests to the same store. Raise it if a store rate limits you.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed for most stores. If a store blocks or rate limits requests, enable Apify Proxy (datacenter is usually enough).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}