{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Store Catalog, Price-Drop & Restock Monitor",
    "description": "Extract Shopify store catalogs, SKU variants, discounts & stock status via keyless /products.json. Track price drops, new launches & restocks across runs with persistent snapshot diffing.",
    "version": "1.0",
    "x-build-id": "8Oz2EOxhmj9q3hgWX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gridline-labs~shopify-price-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gridline-labs-shopify-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/gridline-labs~shopify-price-monitor/runs": {
      "post": {
        "operationId": "runs-sync-gridline-labs-shopify-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/gridline-labs~shopify-price-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-gridline-labs-shopify-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": [
          "storeUrls"
        ],
        "properties": {
          "storeUrls": {
            "title": "Shopify Store Domains or URLs",
            "type": "array",
            "description": "List of Shopify store domains or URLs (e.g. 'allbirds.com', 'https://chubbiesshorts.com', 'gymshark.com').",
            "items": {
              "type": "string"
            }
          },
          "collectionHandle": {
            "title": "Collection Handle (Optional)",
            "type": "string",
            "description": "Optional Shopify collection slug (e.g. 'new-arrivals', 'mens-shoes') to scope /collections/<handle>/products.json instead of the full catalog.",
            "default": ""
          },
          "outputMode": {
            "title": "Output Mode",
            "enum": [
              "products",
              "changes_only"
            ],
            "type": "string",
            "description": "Choose 'products' to emit all matching catalog products ($1.50 / 1k), or 'changes_only' to persist snapshots and emit only NEW_PRODUCT, PRICE_DROP, PRICE_INCREASE, BACK_IN_STOCK, OUT_OF_STOCK, and SALE delta alerts ($2.50 / 1k, $0 for unchanged items).",
            "default": "products"
          },
          "keywords": {
            "title": "Product Title / Tag Keywords",
            "type": "array",
            "description": "Optional case-insensitive keywords matched against product title, tags, vendor, and productType (OR logic).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "vendors": {
            "title": "Vendors / Brands Filter",
            "type": "array",
            "description": "Optional case-insensitive vendor/brand substring filters (OR logic).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productTypes": {
            "title": "Product Types Filter",
            "type": "array",
            "description": "Optional case-insensitive product_type filters (OR logic), e.g. ['Shoes', 'Jackets'].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "inStockOnly": {
            "title": "In-Stock Products Only",
            "type": "boolean",
            "description": "When enabled, emit only products with at least one available variant.",
            "default": false
          },
          "onSaleOnly": {
            "title": "On-Sale / Discounted Products Only",
            "type": "boolean",
            "description": "When enabled, emit only products with a compare-at price strictly higher than current price.",
            "default": false
          },
          "minDiscountPct": {
            "title": "Minimum Discount (%)",
            "minimum": 0,
            "maximum": 99,
            "type": "number",
            "description": "Only emit products discounted by at least this percentage (0–99).",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "number",
            "description": "Minimum variant price filter (store currency). Set 0 to disable.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "number",
            "description": "Maximum variant price filter (store currency). Set 0 to disable.",
            "default": 0
          },
          "includeDescription": {
            "title": "Include Plain-Text Product Description",
            "type": "boolean",
            "description": "Include stripped plain-text description from body_html (up to 4,000 chars).",
            "default": false
          },
          "maxProductsPerStore": {
            "title": "Max Products Per Store",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum products to fetch/emit per store (up to 5,000).",
            "default": 100
          },
          "maxResults": {
            "title": "Max Total Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum total dataset records to emit across all stores (up to 10,000).",
            "default": 250
          },
          "concurrency": {
            "title": "Parallel Stores",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of Shopify stores to fetch concurrently (1–10).",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}