{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Products Scraper - Shopify Store API",
    "description": "Get any public Shopify store's product catalog as JSON, with per-variant price, SKU, stock status, barcode, images and optional real inventory, recommendations and information panels. 20% cheaper than the leading Shopify scraper; only public product catalogs are read.",
    "version": "0.1",
    "x-build-id": "Q7EiafTeXDsdw0jiW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/krammer~shopify-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-krammer-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/krammer~shopify-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-krammer-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/krammer~shopify-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-krammer-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": "Shopify site start urls",
            "type": "array",
            "description": "Start URLs of a Shopify site. A store root, a collection page and a product page are all supported.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "domains": {
            "title": "Store domains (whole store)",
            "type": "array",
            "description": "One store per entry, such as <code>kith.com</code>. Each store's whole catalog is scraped, up to <b>Max result records</b>. Any page of the store works too: the path is ignored. To scrape only a collection or one product, use <b>Shopify site start urls</b> instead.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keep only products whose title, vendor, product type or tags contain this text (case-insensitive)."
          },
          "maxRequestsPerCrawl": {
            "title": "Max result records",
            "minimum": 0,
            "type": "integer",
            "description": "The most records the whole run saves, across every store and start URL. Each record is one billed result, so this caps what the run's records cost. <code>0</code> = no limit, the default.",
            "default": 0
          },
          "maxProductsPerStore": {
            "title": "Max products per store",
            "minimum": 0,
            "type": "integer",
            "description": "The most products saved from each store, so one large catalog cannot use up the run before the next store is reached. <code>0</code> = no per-store limit, the default. Collection records and recommended products do not count towards it.",
            "default": 0
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of results to return. Hidden parameter, overrides maxRequestsPerCrawl if set.",
            "default": 0
          },
          "maxRecommendationsPerProduct": {
            "title": "Max recommended products",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "The maximum number of recommended products to fetch per product. Recommendations are returned nested inside the product record and are billed per recommended product. Set to 0 to disable, max is 20.",
            "default": 0
          },
          "grabRealInventory": {
            "title": "Grab real inventory (experimental)",
            "type": "boolean",
            "description": "Fetch each product's real per-variant inventory count from its storefront payload. Billed as a separate event for every product that comes back with a real stock count. Only works for stores that publish their stock numbers there; others report inventory as unknown and are not billed for it. Off by default.",
            "default": false
          },
          "maxInventoryFetches": {
            "title": "Max inventory detail-fetches per run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on the extra per-product fetches used to read inventory. Advanced, not shown in the form: unlimited unless set. Only applies when 'Grab real inventory' is enabled.",
            "default": 0
          },
          "grabStorefrontDetail": {
            "title": "Grab storefront detail (selling plans & video)",
            "type": "boolean",
            "description": "Fetch each product's storefront payload for selling plans (subscriptions, pre-orders), video media, and the product's price span. Costs one extra request per product, is not billed as a separate event, and is off by default.",
            "default": false
          },
          "maxStorefrontFetches": {
            "title": "Max storefront fetches per run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on the extra per-product storefront fetches. Advanced, not shown in the form: unlimited unless set. Only applies when 'Grab storefront detail' is enabled.",
            "default": 0
          },
          "grabContentSections": {
            "title": "Grab product information panels (tabs & accordions)",
            "type": "boolean",
            "description": "Also return the labelled information panels the store shows outside the description, such as Features, Materials or Care, in a <code>contentSections</code> field. Costs one extra page request per product; a product without panels is not billed.",
            "default": false
          },
          "maxContentSectionFetches": {
            "title": "Max panel fetches per run",
            "minimum": 0,
            "type": "integer",
            "description": "Caps how many product pages the panel extraction may fetch in one run. Advanced, not shown in the form: unlimited unless set. Only applies when 'Grab product information panels' is on.",
            "default": 0
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Leave empty to send requests directly from Apify. Add an Apify Proxy configuration only if a store refuses non-proxied requests."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}