{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Store Scraper – Products, Variants, Prices & Stock",
    "description": "Scrape any Shopify store via its public JSON endpoints: all products or chosen collections, variants with SKU, barcode, price, compare-at price, availability and inventory, images, tags and clean descriptions. Dedupe across collections, 24 h cache, regex filters, store contact & apps add-on.",
    "version": "1.1",
    "x-build-id": "iWglRuoCKYlNGuxy5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/budoucnost-ai~shopify-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-budoucnost-ai-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/budoucnost-ai~shopify-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-budoucnost-ai-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/budoucnost-ai~shopify-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-budoucnost-ai-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": "Shopify store URLs",
            "type": "array",
            "description": "One store per line: a domain (deathwishcoffee.com), a homepage URL, a collection URL (…/collections/sale) or a product URL (…/products/some-handle). Collection and product URLs scrape only that collection/product. Any store on Shopify works – no API key needed. A URL that is not a Shopify store returns one free error row with notShopify = true.",
            "default": [
              {
                "url": "https://www.deathwishcoffee.com"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "collections": {
            "title": "Collections (handles)",
            "type": "array",
            "description": "Collection handles to scrape in every store, e.g. \"sale\", \"new-arrivals\", \"all\". Empty = the whole catalogue (/products.json). A product listed in several collections is returned once with all of them in foundInCollections.",
            "items": {
              "type": "string"
            }
          },
          "productHandles": {
            "title": "Product handles",
            "type": "array",
            "description": "Specific product handles (the last part of /products/<handle>) to fetch in every store, in addition to or instead of listing.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products (total)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many unique products across all stores. Each product is charged once even with expandVariants on.",
            "default": 100
          },
          "maxItemsPerStore": {
            "title": "Max products per store",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "0 = no per-store limit.",
            "default": 0
          },
          "expandVariants": {
            "title": "One row per variant",
            "type": "boolean",
            "description": "Output one dataset row per variant (size/colour/SKU) with the product fields repeated and the variant in `variant`. Still charged once per product.",
            "default": false
          },
          "onlyAvailable": {
            "title": "Only in-stock products",
            "type": "boolean",
            "description": "Skip products where no variant is available (not charged).",
            "default": false
          },
          "includeStoreInfo": {
            "title": "Store info add-on",
            "type": "boolean",
            "description": "Adds one row per store (type = store) with currency, country, locale, theme, contact e-mails and phones from the homepage and contact page, social links, detected apps (Klaviyo, Judge.me, Yotpo, Recharge, Gorgias…) and collection count. Charged per store as the store-info event.",
            "default": false
          },
          "source": {
            "title": "Catalogue source",
            "enum": [
              "auto",
              "sitemap"
            ],
            "type": "string",
            "description": "auto = /products.json listing (250 products per request, cheapest and fastest; falls back to the sitemap automatically when Shopify keeps throttling). sitemap = read product handles from the store's sitemap and fetch each product via /products/<handle>.json – slower, but returns inventoryQuantity and barcode per variant and works when the listing endpoint is rate-limited.",
            "default": "auto"
          },
          "includeDescriptionHtml": {
            "title": "Include description HTML",
            "type": "boolean",
            "description": "Besides the clean descriptionText also store the original body_html.",
            "default": false
          },
          "excludeIds": {
            "title": "Skip product IDs or handles",
            "type": "array",
            "description": "Product IDs or handles you already have; they are skipped and never charged.",
            "items": {
              "type": "string"
            }
          },
          "includeRegex": {
            "title": "Keep only products matching regex",
            "type": "string",
            "description": "Case-insensitive regular expression tested against title, handle, vendor, product type, tags, variant titles/SKUs/prices/availability and the first 2000 characters of the description. Only matching products are stored and charged, e.g. \"hoodie|sweatshirt\" or \"^(?!.*gift card)\"."
          },
          "excludeRegex": {
            "title": "Skip products matching regex",
            "type": "string",
            "description": "Same text as above; matching products are skipped (not charged), e.g. \"gift card|sample\"."
          },
          "cacheHours": {
            "title": "Cache (hours)",
            "minimum": 0,
            "maximum": 2160,
            "type": "integer",
            "description": "Product pages are cached in a named key-value store \"shopify-store-cache\" in your Apify account and reused by your later runs for this many hours (0 = off). Repeated runs of the same stores are then faster and gentler on the store.",
            "default": 24
          },
          "useSharedCache": {
            "title": "Shared cache",
            "type": "boolean",
            "description": "Reuse pages fetched by any user of this actor within the last cacheHours (served from a cache the actor keeps, max 14 days). Faster, cheaper for you in compute and it avoids Shopify's per-IP rate limits. Turn off (or set cacheHours to 0) when you need prices fresh at this minute.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests. Shopify throttles /products.json per IP; keep this low (2–5) unless you use many proxies.",
            "default": 4
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Random delay around this value before every request.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy by default: Shopify rate-limits storefront JSON per IP across all stores and shared datacenter IPs are often exhausted (HTTP 429). products.json is tiny (~100 KB per 250 products), so residential adds well under $0.01 per 1 000 products. Switch to datacenter groups only for small stores if you want.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}