{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Tech Stack, Klaviyo & Ad Pixel Auditor (Clay-Ready)",
    "description": "Qualify Shopify stores for e-commerce and paid-media agencies. Detect 85+ apps, Klaviyo retention gaps, and exact Meta, TikTok, and Google Ads pixel IDs at high speed.",
    "version": "3.5",
    "x-build-id": "706SdTfftACAfIR3X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sayod111~shopify-klaviyo-pixel-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sayod111-shopify-klaviyo-pixel-auditor",
        "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/sayod111~shopify-klaviyo-pixel-auditor/runs": {
      "post": {
        "operationId": "runs-sync-sayod111-shopify-klaviyo-pixel-auditor",
        "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/sayod111~shopify-klaviyo-pixel-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-sayod111-shopify-klaviyo-pixel-auditor",
        "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": "Store Domains or URLs",
            "maxItems": 10000,
            "type": "array",
            "description": "List of store domains or URLs to analyze (e.g., allbirds.com, gymshark.com, https://example.com/collections/best-sellers).",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.allbirds.com"
            ]
          },
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "store_audit_leads",
              "catalog_bestsellers",
              "velocity_monitor",
              "full_intelligence",
              "mcp_quick_lookup"
            ],
            "type": "string",
            "description": "Select the commercial workflow to execute.",
            "default": "store_audit_leads"
          },
          "maxProductsPerStore": {
            "title": "Max Products Per Store",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of products to extract per store (sorted by best-selling where supported).",
            "default": 50
          },
          "targetAgencyService": {
            "title": "Target Agency Service (Pitch Scoring Lens)",
            "enum": [
              "all",
              "email_sms",
              "paid_ads",
              "cro_design",
              "bnpl_payments",
              "logistics"
            ],
            "type": "string",
            "description": "Tailors the 0-100 agency opportunity score and outreach pitch angles to your exact service.",
            "default": "all"
          },
          "extractContacts": {
            "title": "Extract Merchant Contacts & Socials",
            "type": "boolean",
            "description": "Crawl policy/contact pages to find merchant emails, phones, WhatsApp links, CR/VAT IDs, and social handles.",
            "default": true
          },
          "verifyEmailMx": {
            "title": "Verify Email Domains via Async DNS MX",
            "type": "boolean",
            "description": "Check if an email domain has MX records. MX presence does not verify mailbox existence or delivery.",
            "default": true
          },
          "includeCollections": {
            "title": "Include Collections & Categories Summary",
            "type": "boolean",
            "description": "Fetch public store collections or WooCommerce categories.",
            "default": true
          },
          "includeExecutiveBrief": {
            "title": "Generate Executive Agency Briefs",
            "type": "boolean",
            "description": "Generate deterministic, evidence-backed executive outreach briefs per store (always enabled in full_intelligence mode).",
            "default": false
          },
          "monitorNamespace": {
            "title": "Monitor Namespace (For Cross-Run Velocity & Price Diffs)",
            "type": "string",
            "description": "Optional campaign name (e.g., my-competitors-2026) to persist snapshots in a named Apify Key-Value Store and detect price drops, stockouts, restocks, and estimated units sold across runs.",
            "default": ""
          },
          "maxConcurrency": {
            "title": "Max Concurrent Stores",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of stores processed concurrently.",
            "default": 8
          },
          "requestTimeoutSeconds": {
            "title": "HTTP Timeout Per Request (Seconds)",
            "minimum": 4,
            "maximum": 60,
            "type": "number",
            "description": "Maximum seconds to wait per HTTP request.",
            "default": 15
          },
          "maxBudgetUsd": {
            "title": "Optional Max Charge Budget (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional limit for custom PPE events. Synthetic Apify start charge is managed by Apify. Set 0 to accept platform charge limits.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings. Most Shopify/WooCommerce/Salla stores work without proxies; enable only for strict targets.",
            "default": {
              "useApifyProxy": false
            }
          },
          "includeClayFlatColumns": {
            "title": "Include Clay-ready Flat Columns",
            "type": "boolean",
            "description": "Add scalar contact, technology, pricing and maturity fields to each store audit for spreadsheet and CRM exports.",
            "default": true
          },
          "includeBenchmarkSummary": {
            "title": "Include Cross-Store Benchmark",
            "type": "boolean",
            "description": "Append a niche benchmark when at least two stores contribute audit metrics.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}