{
  "openapi": "3.0.1",
  "info": {
    "title": "DigiCrem B2B Catalog Delta Intelligence",
    "description": "Compare customer-supplied product JSON snapshots to detect new products, price, stock-status and specification changes. No Shopify account required; authorized Shopify inputs optional.",
    "version": "0.1",
    "x-build-id": "A5MIwhfjPVz3QORDq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digicrem~digicrem-catalog-delta-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digicrem-digicrem-catalog-delta-intelligence",
        "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/digicrem~digicrem-catalog-delta-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-digicrem-digicrem-catalog-delta-intelligence",
        "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/digicrem~digicrem-catalog-delta-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-digicrem-digicrem-catalog-delta-intelligence",
        "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": {
          "storeUrls": {
            "title": "Authorized public Shopify storefront root URL",
            "minItems": 1,
            "maxItems": 1,
            "type": "array",
            "description": "Only for explicitly authorized Shopify input. Leave omitted for direct JSON snapshot input.",
            "items": {
              "type": "string"
            }
          },
          "sourceType": {
            "title": "Catalog input method",
            "enum": [
              "shopify",
              "snapshot"
            ],
            "type": "string",
            "description": "snapshot = compare data you supply; no Shopify website needed. Shopify is only for an explicitly authorized catalog.",
            "default": "snapshot"
          },
          "maxProductsPerStore": {
            "title": "Maximum products per run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Capped scans are incomplete and never used to confirm removals.",
            "default": 250
          },
          "confirmRemovalsAfterMisses": {
            "title": "Complete scans required for removal",
            "minimum": 2,
            "maximum": 5,
            "type": "integer",
            "description": "Product removal is confirmed only after repeated full successful same-scope scans.",
            "default": 2
          },
          "scope": {
            "title": "Source scope",
            "type": "string",
            "description": "Reserved for a verified stable collection scope; empty means full catalog.",
            "default": ""
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Optional explicit market or region. Different regions never share a baseline.",
            "default": ""
          },
          "currency": {
            "title": "Currency code",
            "type": "string",
            "description": "Optional currency confirmed by the storefront owner. Never inferred.",
            "default": ""
          },
          "stateKeyPrefix": {
            "title": "Watchlist identifier",
            "type": "string",
            "description": "Optional private namespace for separate watchlists.",
            "default": "default"
          },
          "previewOnly": {
            "title": "Preview only (no billable events)",
            "type": "boolean",
            "description": "False: paid Apify scan/change events per published price. True: preview without custom scan/change events (Apify platform costs may remain).",
            "default": false
          },
          "catalogId": {
            "title": "Snapshot catalog identifier",
            "type": "string",
            "description": "Required for snapshot input. Stable identifier of the customer's own catalog across calls (3-64 ASCII letters/numbers/._-)."
          },
          "catalogProducts": {
            "title": "Customer-supplied product snapshot JSON",
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "description": "Required for snapshot input. List of 1-500 objects with stable id, title, price, available, sku, vendor. Send the full same-scope list on each run. No external fetch.",
            "items": {
              "type": "object"
            }
          },
          "catalogComplete": {
            "title": "Full catalog snapshot is complete",
            "type": "boolean",
            "description": "Required for snapshot input. True only if this is a complete, same-scope catalog; false preserves existing baseline and never claims removals.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}