{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Variant Availability & Price Evidence Monitor",
    "description": "Check if selected Shopify variants (size, color) are in stock or sold out, and save the raw price as evidence. Restock and competitor variant watch. $0.005 per product check; blocked, failed or unknown checks are free. No login, proxy or browser.",
    "version": "0.1",
    "x-build-id": "UUsTJ6kWadxWtw5CF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latentlark~shopify-variant-availability-price-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latentlark-shopify-variant-availability-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/latentlark~shopify-variant-availability-price-monitor/runs": {
      "post": {
        "operationId": "runs-sync-latentlark-shopify-variant-availability-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/latentlark~shopify-variant-availability-price-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-latentlark-shopify-variant-availability-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": [
          "watchlist"
        ],
        "properties": {
          "watchlist": {
            "title": "Selected variants",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Each item is one public Shopify product URL plus the variant ID to watch. Duplicate product and variant pairs are collapsed. The prefill is a real product on Shopify's public Dawn theme demo, checked with the documented Ajax product endpoint.",
            "items": {
              "type": "object",
              "required": [
                "productUrl",
                "variantId"
              ],
              "properties": {
                "productUrl": {
                  "title": "Product URL",
                  "type": "string",
                  "description": "HTTPS product URL. The Actor requests only /{locale}/products/{handle}.js on that host.",
                  "editor": "textfield",
                  "example": "https://theme-dawn-demo.myshopify.com/products/thelma-sandal"
                },
                "variantId": {
                  "title": "Variant ID",
                  "type": "string",
                  "description": "Numeric Shopify variant ID. A variant query on the product URL is ignored.",
                  "editor": "textfield",
                  "pattern": "^[1-9][0-9]{0,24}$",
                  "example": "39576998346841"
                },
                "label": {
                  "title": "Label",
                  "type": "string",
                  "description": "Optional name for matching this row to an ad or campaign. It is not sent to Shopify.",
                  "editor": "textfield",
                  "maxLength": 120
                },
                "locale": {
                  "title": "Locale path",
                  "type": "string",
                  "description": "Optional locale prefix such as en or en-ca. This does not emulate a shopper's country. Currency is reported only when the response actually contains it, otherwise unknown.",
                  "editor": "textfield",
                  "pattern": "^[a-z]{2}(-[a-z]{2})?$"
                }
              }
            }
          },
          "previousSnapshot": {
            "title": "Previous completed snapshot",
            "type": "object",
            "description": "Optional immutable snapshot copied from an earlier run's OUTPUT.snapshot. Records from a different scope are ignored. This is an explicit baseline, not a shared lock."
          },
          "stateScope": {
            "title": "State scope",
            "pattern": "^[A-Za-z0-9_-]{1,64}$",
            "type": "string",
            "description": "Optional persistence name for a local or non-task run. An Apify task ID always wins so two tasks cannot be pointed at each other."
          },
          "maxProducts": {
            "title": "Product cap",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Optional cap of 5 or less. Larger values are rejected.",
            "default": 5
          },
          "maxVariants": {
            "title": "Variant cap",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Optional cap of 20 or less. Larger values are rejected.",
            "default": 20
          },
          "maxRequests": {
            "title": "Request cap",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Counts robots, product, currency, redirects, and the single retry. Cannot exceed 12.",
            "default": 12
          },
          "timeoutSeconds": {
            "title": "Timeout seconds",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Wall-clock budget for this run. Cannot exceed 60.",
            "default": 60
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}