{
  "openapi": "3.0.1",
  "info": {
    "title": "Zid Product Export Intelligence",
    "description": "Turn merchant-owned, merchant-authorized, or otherwise licensed Zid product exports into stable evidence, freshness, source-rights context, gaps, review priority, and human actions—without storefront scraping, login, API calls, URL fetching, or automatic merchandising decisions.",
    "version": "0.2",
    "x-build-id": "cuVfPygyoJ3n2liNE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zinin~zid-store-products/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zinin-zid-store-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/zinin~zid-store-products/runs": {
      "post": {
        "operationId": "runs-sync-zinin-zid-store-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/zinin~zid-store-products/run-sync": {
      "post": {
        "operationId": "run-sync-zinin-zid-store-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": {
          "schemaVersion": {
            "title": "Contract version",
            "enum": [
              "2.0"
            ],
            "type": "string",
            "description": "Closed public input contract version.",
            "default": "2.0"
          },
          "authorization": {
            "title": "Authorization confirmation",
            "enum": [
              "I confirm I am authorized to process and deliver these product records"
            ],
            "type": "string",
            "description": "Required for products. This is a buyer attestation, not independent verification by the Actor.",
            "default": "I confirm I am authorized to process and deliver these product records"
          },
          "sourceContext": {
            "title": "Source context",
            "enum": [
              "zid_merchant_export",
              "merchant_owned_export",
              "merchant_authorized_integration",
              "other_licensed_catalog_export"
            ],
            "type": "string",
            "description": "Buyer-attested origin category for the authorized product export.",
            "default": "zid_merchant_export"
          },
          "products": {
            "title": "Authorized product records",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "One to 100 closed merchant-authorized product rows. Unknown fields and malformed rows are rejected or counted as invalid; duplicate sourceName+shop+productId identities are delivered once.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "productId",
                "shop",
                "name",
                "price",
                "currency",
                "sourceName",
                "sourceLicense"
              ],
              "properties": {
                "productId": {
                  "title": "Product ID",
                  "description": "Stable identifier from the authorized source export.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 180,
                  "pattern": "\\S"
                },
                "shop": {
                  "title": "Merchant/shop label",
                  "description": "Buyer-supplied merchant or shop label; not independently verified.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 240,
                  "pattern": "\\S"
                },
                "name": {
                  "title": "Product name",
                  "description": "Buyer-supplied product name.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300,
                  "pattern": "\\S"
                },
                "price": {
                  "title": "Base price",
                  "description": "Nonnegative base price supplied by the authorized source; not tax or shipping advice.",
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "currency": {
                  "title": "Currency",
                  "description": "Three-letter currency code normalized to uppercase; no conversion is performed.",
                  "type": "string",
                  "pattern": "^[A-Za-z]{3}$"
                },
                "salePrice": {
                  "title": "Sale price",
                  "description": "Optional nonnegative supplied sale price that must not exceed base price.",
                  "type": "number",
                  "nullable": true,
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "productUrl": {
                  "title": "Recorded product URL",
                  "description": "Optional HTTPS evidence reference; recorded but never fetched or verified.",
                  "type": "string",
                  "nullable": true,
                  "pattern": "^https://[^\\s]+$",
                  "maxLength": 800
                },
                "imageUrl": {
                  "title": "Recorded image URL",
                  "description": "Optional HTTPS evidence reference; recorded but never fetched, rendered or licensed.",
                  "type": "string",
                  "nullable": true,
                  "pattern": "^https://[^\\s]+$",
                  "maxLength": 800
                },
                "category": {
                  "title": "Category",
                  "description": "Optional buyer-supplied category label; no taxonomy mapping is performed.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 240,
                  "pattern": "\\S"
                },
                "sourceName": {
                  "title": "Authorized source label",
                  "description": "Traceable buyer-supplied label for the authorized export or integration.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                },
                "sourceLicense": {
                  "title": "Rights statement",
                  "description": "Buyer-supplied statement describing processing and downstream delivery rights; recorded but not verified.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500,
                  "pattern": "\\S"
                },
                "sourceRetrievedAt": {
                  "title": "Source retrieved at",
                  "description": "Optional UTC time when the buyer's authorized source export was obtained.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 40,
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$"
                }
              }
            }
          },
          "items": {
            "title": "Legacy Zid shop names",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Migration-only legacy input. It never triggers a storefront request and produces one free diagnostic row.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 240,
              "pattern": "\\S"
            }
          },
          "maxConcurrency": {
            "title": "Legacy concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Migration-only and ignored because the current Actor makes no network requests."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}