{
  "openapi": "3.0.1",
  "info": {
    "title": "Agentic Commerce Readiness Audit",
    "description": "Rules-based storefront audit with mandatory UCP/ACP assessment, read-only browser evidence and optional merchant exports.",
    "version": "0.3",
    "x-build-id": "h6EaMeeYi0q93VOZa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/busy_evidence~agentic-commerce-readiness-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-busy_evidence-agentic-commerce-readiness-audit",
        "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/busy_evidence~agentic-commerce-readiness-audit/runs": {
      "post": {
        "operationId": "runs-sync-busy_evidence-agentic-commerce-readiness-audit",
        "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/busy_evidence~agentic-commerce-readiness-audit/run-sync": {
      "post": {
        "operationId": "run-sync-busy_evidence-agentic-commerce-readiness-audit",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Storefront",
            "type": "array",
            "description": "Exactly one public HTTPS storefront. No IP literals, credentials or custom ports.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "productUrls": {
            "title": "Product seeds",
            "type": "array",
            "description": "Optional same-host public HTTPS product URLs; maximum 20.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "policyUrls": {
            "title": "Policy seeds",
            "type": "array",
            "description": "Optional same-host public HTTPS policy URLs; maximum 20.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "auditTasks": {
            "title": "Deterministic tasks",
            "type": "array",
            "description": "Only product_price_availability, delivery_information and returns_warranty_information are supported. No custom shopping prose.",
            "default": [
              "product_price_availability",
              "delivery_information",
              "returns_warranty_information"
            ],
            "items": {
              "type": "string"
            }
          },
          "renderMode": {
            "title": "Rendering",
            "enum": [
              "auto",
              "http"
            ],
            "type": "string",
            "description": "auto requests guarded browser evidence; http collects no screenshots. Unavailable browser evidence remains incomplete.",
            "default": "auto"
          },
          "captureScreenshots": {
            "title": "Capture screenshots",
            "type": "boolean",
            "description": "Bounded viewport PNGs in auto mode; appearance is not checkout verification.",
            "default": true
          },
          "maxPagesPerSite": {
            "title": "HTML page attempts",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Unique page-attempt cap, including failures.",
            "default": 20
          },
          "maxProductPages": {
            "title": "Product slots",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Frozen sample slots, including inaccessible products; cannot exceed page attempts.",
            "default": 5
          },
          "maxBrowserPages": {
            "title": "Browser pages",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Rendering budget; v1 renders at most two preflight-accessible pages.",
            "default": 2
          },
          "maxSitemapFiles": {
            "title": "Sitemap files",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum inspected sitemap/index documents.",
            "default": 5
          },
          "maxCandidateUrls": {
            "title": "Candidate URLs",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Bounded discovery candidate count.",
            "default": 500
          },
          "maxNetworkRequests": {
            "title": "Network attempts",
            "minimum": 5,
            "maximum": 500,
            "type": "integer",
            "description": "Shared actual-attempt cap including robots, redirects, protocols, pages and assets.",
            "default": 200
          },
          "maxBrowserRequestsPerPage": {
            "title": "Browser requests per page",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Browser request subcap; disallowed traffic is aborted.",
            "default": 40
          },
          "maxRedirects": {
            "title": "Page redirects",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Each redirect is scope/robots/DNS checked. Protocol discovery never follows redirects.",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 30,
            "type": "integer",
            "description": "Per-request bounded timeout.",
            "default": 20
          },
          "maxDurationSecs": {
            "title": "Site deadline seconds",
            "minimum": 30,
            "maximum": 600,
            "type": "integer",
            "description": "Overall collection deadline; output persistence may take additional time.",
            "default": 300
          },
          "requestIntervalMillis": {
            "title": "Primary interval milliseconds",
            "minimum": 2000,
            "maximum": 30000,
            "type": "integer",
            "description": "Minimum primary-request spacing; applicable robots delay can increase it.",
            "default": 2000
          },
          "maxResponseBytes": {
            "title": "Text response bytes",
            "minimum": 65536,
            "maximum": 3145728,
            "type": "integer",
            "description": "Decoded text cap per response; cannot exceed total response bytes.",
            "default": 3145728
          },
          "maxTotalResponseBytes": {
            "title": "Total response bytes",
            "minimum": 1048576,
            "maximum": 52428800,
            "type": "integer",
            "description": "Shared decoded remote body byte budget.",
            "default": 31457280
          },
          "catalogImport": {
            "title": "Optional catalog source",
            "type": "object",
            "description": "Exactly one explicit default key-value-store key, e.g. {\"key\":\"CATALOG\"}, or same-store public HTTPS CSV/JSON URL, e.g. {\"url\":\"https://your-store.co.uk/catalog.csv\"}. URLs use the guarded shared transport/robots/budgets. No credentials, named store, local path or archive."
          },
          "catalogColumnMap": {
            "title": "Catalog column mapping",
            "type": "object",
            "description": "Canonical field to supplied CSV header mapping. Native BigCommerce export headers are not assumed."
          },
          "catalogContext": {
            "title": "Catalog provenance",
            "type": "object",
            "description": "Declare capturedAt, storefrontUrl, UK channel, currency, taxIncluded and priceList context."
          },
          "merchantEvidence": {
            "title": "Sanitized protocol declarations",
            "type": "array",
            "description": "Up to 10 declarations with protocol, connector name/version, enabled, version, public documentationUrl, capturedAt, declarations and optional static example. Attachment references use explicit default-store keys only; never secrets or customer/order data.",
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}