{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Products Scraper & Price Monitor",
    "description": "Scrape any Shopify store's products, prices, variants, SKUs and stock, or monitor stores for price drops, restocks, new and removed products. Store, collection or product URLs. Filters, barcodes (GTIN). Fast, no login.",
    "version": "0.0",
    "x-build-id": "tcGXP1Zeu2Hb85icu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/copperlark~shopify-products-price-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-copperlark-shopify-products-price-monitor",
        "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/copperlark~shopify-products-price-monitor/runs": {
      "post": {
        "operationId": "runs-sync-copperlark-shopify-products-price-monitor",
        "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/copperlark~shopify-products-price-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-copperlark-shopify-products-price-monitor",
        "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": [
          "stores"
        ],
        "properties": {
          "stores": {
            "title": "Stores, collections or products",
            "type": "array",
            "description": "Shopify store domains (allbirds.com), collection URLs (https://store.com/collections/sale) or product URLs. A store reads its whole catalog; a collection reads just that collection.",
            "items": {
              "type": "string"
            }
          },
          "outputLevel": {
            "title": "One result per",
            "enum": [
              "product",
              "variant"
            ],
            "type": "string",
            "description": "Product rows carry every variant's price, SKU and stock in a list. Variant rows are flat, easier for spreadsheets and per-size stock tracking. You pay per result either way.",
            "default": "product"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many results in total (0 = no limit). Keeps test runs cheap.",
            "default": 0
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Keep products whose title, vendor, type or tags contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop products whose title, vendor, type or tags contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "vendors": {
            "title": "Vendors / brands",
            "type": "array",
            "description": "Keep only these vendors (exact names as the store lists them, case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "productTypes": {
            "title": "Product types",
            "type": "array",
            "description": "Keep only these product types (exact, case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "In the store's currency. Products are kept if any variant is in range."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "In the store's currency."
          },
          "onlyAvailable": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Keep only products (or variants) that can be bought now.",
            "default": false
          },
          "onlyOnSale": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Keep only products with a compare-at price above the current price.",
            "default": false
          },
          "createdWithinDays": {
            "title": "New arrivals: published within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products published in the last N days (0 = any)."
          },
          "monitoringId": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Any name, e.g. competitor-prices. Runs with the same name compare against the snapshot saved by the previous run (kept in a key-value store in your own account). Leave empty for a normal full scrape."
          },
          "changeTypes": {
            "title": "Changes to report",
            "type": "array",
            "description": "Leave empty for all. Changes you leave out are not reported later either.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "removed",
                "price_down",
                "price_up",
                "back_in_stock",
                "out_of_stock",
                "variant_added",
                "variant_removed"
              ],
              "enumTitles": [
                "New products",
                "Removed products",
                "Price drops",
                "Price increases",
                "Back in stock",
                "Out of stock",
                "New variants (product level)",
                "Removed variants (product level)"
              ]
            }
          },
          "firstRun": {
            "title": "First monitoring run",
            "enum": [
              "full",
              "quiet"
            ],
            "type": "string",
            "description": "The first run has nothing to compare with. Choose whether it returns the current catalog or just saves it.",
            "default": "full"
          },
          "includeDetails": {
            "title": "Barcodes (GTIN/UPC/EAN) and stock details",
            "type": "boolean",
            "description": "Adds each variant's barcode, whether stock is tracked, stock count and backorder policy where the store exposes them, and weight. One extra request per returned product, so runs are slower.",
            "default": false
          },
          "maxProductsPerStore": {
            "title": "Max products read per input",
            "minimum": 0,
            "type": "integer",
            "description": "Read at most this many products from each store or collection (0 = all). In monitoring mode a partial read can't detect removed products.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most stores. Use a proxy if a store rate-limits you.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}