{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Products Scraper - Variants, Stock, API",
    "description": "Scrape every product of any Shopify store by its domain, headless Hydrogen stores included, past Shopify's 25,000 item limit. Get variants with SKU, barcode, prices, compare-at prices, stock counts, images and video in any market's currency. Real-time API, JSON or CSV, pay per product.",
    "version": "0.1",
    "x-build-id": "IesYROAd8dLwq35ZY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~shopify-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-shopify-products-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/automation_craft~shopify-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-shopify-products-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/automation_craft~shopify-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-shopify-products-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": {
          "startUrls": {
            "title": "Stores, collections or products",
            "type": "array",
            "description": "One entry per line: a store domain or URL (allbirds.com, https://kith.com), a <shop>.myshopify.com domain, a bare myshopify handle (kithnyc), a collection link (/collections/<handle>) or a product link (/products/<handle>). Headless stores built on Hydrogen are read on their own domain; a store whose front hides Shopify is read through the myshopify domain its home page names. Up to 1,000 entries. An entry that is not one of these, or that repeats an earlier one, is skipped with a free status row.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search words",
            "type": "array",
            "description": "Optional. Each store entry is searched for each query with the store's own Shopify search, instead of read whole. Each row says which query found it (searchQuery) and where the words were found (searchMatchedIn: title, vendor, productType, tags, description or none). Plain words only, up to 100 queries.",
            "items": {
              "type": "string"
            }
          },
          "onlyExactSearchMatches": {
            "title": "Only rows that carry the search words",
            "type": "boolean",
            "description": "On (the default): a row found by a search is delivered only when every search word appears in its title, vendor, product type, tags or description; the others are left out for free. Off: every row Shopify's search returns is delivered.",
            "default": true
          },
          "maxProductsPerStore": {
            "title": "Max products per store",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most products delivered for each store entry (and for each search query of it). Default 10,000."
          },
          "maxItems": {
            "title": "Max products in the run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most products the whole run delivers, over every entry. Default and largest value 100,000."
          },
          "outputMode": {
            "title": "Output rows",
            "enum": [
              "product",
              "variant"
            ],
            "type": "string",
            "description": "product: one row per product with its variants in a list. variant: one row per variant, the product's fields repeated on each; still one Product charge per product.",
            "default": "product"
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "oldest",
              "price_low",
              "price_high",
              "best_selling",
              "title",
              "recently_updated"
            ],
            "type": "string",
            "description": "The order products are read in. Shopify stops any one ordered list at 25,000 products; Newest first and Oldest first read past that limit in date windows, the other orders stop there and the store row says so.",
            "default": "newest"
          },
          "country": {
            "title": "Market (country)",
            "type": "string",
            "description": "Optional two letter country code (GB, DE, JP). Prices and currency as the store sells in that country (Shopify Markets). Every row carries market: the country asked, the country Shopify applied and the currency; a store that does not sell there gives its default market with marketApplied false."
          },
          "onlyAvailable": {
            "title": "Only products available for sale",
            "type": "boolean",
            "description": "Leave out products that cannot be bought now (checked on every row).",
            "default": false
          },
          "onlyOnSale": {
            "title": "Only products on sale",
            "type": "boolean",
            "description": "Keep only products with at least one variant whose compare at price is above its price (checked on every row).",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Optional. Keep only products whose lowest variant price is at least this, in the row's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Optional. Keep only products whose lowest variant price is at most this, in the row's currency."
          },
          "productTypes": {
            "title": "Product types",
            "type": "array",
            "description": "Optional. Keep only products whose product type is one of these (exact, case aside).",
            "items": {
              "type": "string"
            }
          },
          "excludeProductTypes": {
            "title": "Leave out product types",
            "type": "array",
            "description": "Optional. Leave out products whose product type is one of these (exact, case aside).",
            "items": {
              "type": "string"
            }
          },
          "vendors": {
            "title": "Vendors (brands)",
            "type": "array",
            "description": "Optional. Keep only products whose vendor is one of these (exact, case aside).",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Optional. Keep only products that carry at least one of these tags (exact, case aside).",
            "items": {
              "type": "string"
            }
          },
          "excludeTags": {
            "title": "Leave out tags",
            "type": "array",
            "description": "Optional. Leave out products that carry any of these tags (exact, case aside).",
            "items": {
              "type": "string"
            }
          },
          "createdAfter": {
            "title": "Created on or after",
            "type": "string",
            "description": "Optional date (YYYY-MM-DD). Keep only products created on or after it."
          },
          "updatedAfter": {
            "title": "Updated on or after",
            "type": "string",
            "description": "Optional date (YYYY-MM-DD). Keep only products updated on or after it."
          },
          "includeInventory": {
            "title": "Real stock counts (add-on)",
            "type": "boolean",
            "description": "Read each delivered product's stock door: the stock count of each variant where the store publishes it, its inventory policy and tracking, and quantity price breaks. Charged as Real inventory only for a product that carried at least one count.",
            "default": false
          },
          "includeRecommendations": {
            "title": "Recommendations (add-on)",
            "type": "boolean",
            "description": "Add the store's own related products of each delivered product (a recommendations list). Charged as Recommendations only for a product with at least one.",
            "default": false
          },
          "includeProductPage": {
            "title": "Product page facts (add-on)",
            "type": "boolean",
            "description": "Read each delivered product's page: its rating and review count from the page's structured data, and its information panels (tabs and accordions) with their text. Charged as Product page only for a product whose page gave a rating, a review count or a panel.",
            "default": false
          },
          "includeCollections": {
            "title": "Collections (add-on)",
            "type": "boolean",
            "description": "Deliver one row per collection of each store (id, handle, title, description, image, update date, link). Charged as Collection per row.",
            "default": false
          },
          "maxCollectionsPerStore": {
            "title": "Max collections per store",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "With the Collections add-on: the most collection rows delivered for each store. Default 1,000."
          },
          "extendOutputFunction": {
            "title": "Extend output function",
            "type": "string",
            "description": "Optional JavaScript function (row) => value, run on each delivered row in a sealed process with no network, no files and no environment; its value (JSON, up to 100 KB) is stored on the row as custom. Example: (row) => ({ firstSku: row.variants[0]?.sku }). A function that fails or takes over a second leaves custom empty and says why in customError."
          },
          "appendToDatasetId": {
            "title": "Also copy rows to a dataset",
            "type": "string",
            "description": "Optional. After each delivery is charged, its product, variant and collection rows are also copied to this dataset of yours. A failed copy is counted in the summary and never charged again."
          },
          "runLabel": {
            "title": "Run label",
            "type": "string",
            "description": "Optional text stamped on every product, variant, collection and store row as runLabel."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Left empty, the run reads Shopify from its own address and moves a refused call to Apify datacenter proxies, then residential, at no extra charge. Apify proxy groups or your own proxy links replace the run's own address for every call."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}