{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Products Scraper",
    "description": "Scrape products from any Shopify store: prices, sale prices, discounts, stock, variants, SKUs, images. Filter by sale, discount and price; sort across stores (biggest discount, cheapest, newest). Price and stock monitoring. From $0.40 per 1,000 products.",
    "version": "0.2",
    "x-build-id": "wBBDYWFjBlcFsI0kS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tacps126~shopify-products/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tacps126-shopify-products",
        "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/tacps126~shopify-products/runs": {
      "post": {
        "operationId": "runs-sync-tacps126-shopify-products",
        "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/tacps126~shopify-products/run-sync": {
      "post": {
        "operationId": "run-sync-tacps126-shopify-products",
        "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": "Store, collection or product links",
            "type": "array",
            "description": "Any Shopify store address (whole catalog), a collection link (`.../collections/sale`) or a product link (`.../products/...`). Bare domains like `allbirds.com` work too.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of products to return across all links.",
            "default": 1000
          },
          "maxItemsPerStore": {
            "title": "Max products per link",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Optional cap per store or collection, so one big catalog can't use up the whole \"Max products\"."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep a product only if its title, type, brand or tags contain any of these words, e.g. `hoodie`, `serum`.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip products mentioning",
            "type": "array",
            "description": "Drop products whose title, type, brand or tags contain any of these, e.g. `gift card`, `sample`.",
            "items": {
              "type": "string"
            }
          },
          "vendors": {
            "title": "Brands / vendors",
            "type": "array",
            "description": "Keep only products from these brands (as the store names them), e.g. `Allbirds`.",
            "items": {
              "type": "string"
            }
          },
          "productTypes": {
            "title": "Product types",
            "type": "array",
            "description": "Keep only these product types (as the store names them), e.g. `Shoes`, `Lipstick`.",
            "items": {
              "type": "string"
            }
          },
          "onlyAvailable": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products with at least one variant in stock.",
            "default": false
          },
          "onlyOnSale": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Keep only discounted products (sale price below the compare-at price).",
            "default": false
          },
          "minDiscountPercent": {
            "title": "Minimum discount (%)",
            "minimum": 1,
            "maximum": 99,
            "type": "integer",
            "description": "Keep only products discounted by at least this much, e.g. `30` for 30% off or more."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest product price to keep, in the store's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest product price to keep, in the store's currency."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "default",
              "priceLow",
              "priceHigh",
              "discountHigh",
              "newest",
              "recentlyUpdated",
              "title"
            ],
            "type": "string",
            "description": "Order the results across all stores before 'Max products' cuts the list, e.g. the 100 biggest discounts over ten stores. Products without the sorted field come last.",
            "default": "default"
          },
          "includePriceHistory": {
            "title": "Include price history",
            "type": "boolean",
            "description": "Add `priceHistory` to each product: the earlier prices we have recorded for it (first seen, last change, lowest and highest price, dated changes). History builds up over time, so a product seen for the first time has only today's price.",
            "default": false
          },
          "eventTypes": {
            "title": "Only products with these recent events",
            "type": "array",
            "description": "Keep only products whose latest event is one of these, within the last Event window days: a launch feed (launched), a price-drop feed, new sales, restocks. Every product also carries its latest event as lastEvent. Events build up as stores are read on different days.",
            "items": {
              "type": "string",
              "enum": [
                "launched",
                "price-drop",
                "price-rise",
                "sale-started",
                "sale-ended",
                "back-in-stock",
                "sold-out"
              ],
              "enumTitles": [
                "Launched",
                "Price drop",
                "Price rise",
                "Sale started",
                "Sale ended",
                "Back in stock",
                "Sold out"
              ]
            }
          },
          "eventWithinDays": {
            "title": "Event window (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "With Only products with these recent events: how recent the event must be.",
            "default": 7
          },
          "includeDescriptionHtml": {
            "title": "Include description HTML",
            "type": "boolean",
            "description": "Also return the original formatted description (`descriptionHtml`). Plain-text `description` is always included.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new products",
            "type": "boolean",
            "description": "Return only products that no earlier run with the same links has delivered. You pay only for new results.",
            "default": false
          },
          "includeChanged": {
            "title": "...and changed products",
            "type": "boolean",
            "description": "With \"Only new products\": also return products whose price, sale price, stock or title changed since they were last delivered - ideal for price and stock monitoring.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name for the monitoring history, so several monitors can run side by side. Leave empty to derive it from the links."
          },
          "delivery": {
            "title": "Send results to Slack, Discord, a webhook or Google Sheets",
            "type": "object",
            "description": "Webhook: {\"webhookUrl\": \"https://...\", \"format\": \"json\" | \"slack\" | \"discord\", \"onlyWhenResults\": true, \"includeItems\": 10}. Google Sheets: {\"spreadsheetId\": \"<id from the sheet URL>\", \"sheetName\": \"Sheet1\"} plus the service account key below; share the sheet with the service account's e-mail first. Leave empty to only save results in the dataset."
          },
          "googleServiceAccountJson": {
            "title": "Google service account key (for Sheets)",
            "type": "string",
            "description": "Only for Google Sheets delivery: paste the service account's JSON key. Stored encrypted; the account sees only sheets you share with it."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most stores. Turn on for stores that limit repeated visits or for very frequent runs.",
            "default": {
              "useApifyProxy": false
            }
          },
          "dedupe": {
            "title": "Deduplicate",
            "type": "boolean",
            "description": "Drop the same product appearing in several links.",
            "default": true
          },
          "tenantId": {
            "title": "Tenant ID",
            "type": "string",
            "description": "Optional label used to keep separate histories for different clients or teams."
          },
          "debug": {
            "title": "Debug",
            "type": "boolean",
            "description": "Save extra diagnostics with the run (for support requests).",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}