{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify & WooCommerce Store Leads: Emails, Apps, Pixels $2/1K",
    "description": "Discover active leads from 16,000+ Shopify & WooCommerce stores (10K+ Shopify, 6K+ Woo) + live web long-tail search, OR enrich your own domains. Extracts emails (CF & policy), phones, addresses, 65+ apps, Web Pixels 2.0, Shopify Plus & monthly tech spend. Cross-run deduplication!",
    "version": "1.2",
    "x-build-id": "Pznegyelg8B7u6lP3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kkhome~store-tech-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kkhome-store-tech-leads",
        "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/kkhome~store-tech-leads/runs": {
      "post": {
        "operationId": "runs-sync-kkhome-store-tech-leads",
        "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/kkhome~store-tech-leads/run-sync": {
      "post": {
        "operationId": "run-sync-kkhome-store-tech-leads",
        "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": {
          "domains": {
            "title": "Store Domains or URLs to Analyze (Optional)",
            "type": "array",
            "description": "Drop Shopify, WooCommerce, or DTC store domains (e.g. 'beardbrand.com', 'kyliecosmetics.com', 'nalgene.com') for live enrichment. Leave empty to discover leads by niche, platform, tech stack, and budget below.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Niche / Product / Keyword Filter",
            "type": "string",
            "description": "Search stores by product niche or category (e.g. 'coffee', 'skincare', 'jewelry', 'pickleball', 'matcha', 'supplements', 'pet'). Automatically triggers live web discovery for ultra-niche keywords."
          },
          "platformFilter": {
            "title": "Ecommerce Platform",
            "enum": [
              "any",
              "shopify",
              "woocommerce"
            ],
            "type": "string",
            "description": "Filter by underlying ecommerce platform (supports thousands of verified Shopify and WooCommerce stores).",
            "default": "any"
          },
          "countryFilter": {
            "title": "Country or Currency Filter (Optional)",
            "type": "string",
            "description": "2-letter ISO country code (e.g. 'US', 'GB', 'CA', 'AU', 'DE', 'FR', 'NL') or currency code ('USD', 'GBP', 'EUR')."
          },
          "onlyWithEmail": {
            "title": "Only Deliver Stores With Verified Contact Email",
            "type": "boolean",
            "description": "When enabled, stores without a discoverable public business email are skipped so you only pay for contactable leads.",
            "default": false
          },
          "onlyShopifyPlus": {
            "title": "Only Shopify Plus Enterprise Stores",
            "type": "boolean",
            "description": "High-budget filter: only return enterprise stores exhibiting Shopify Plus signals ($2,300+/mo platform tier).",
            "default": false
          },
          "minTechSpendUsd": {
            "title": "Minimum Estimated Monthly Tech Spend (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out zero-budget hobby stores by requiring a minimum estimated monthly SaaS/platform spend based on detected paid apps (e.g. 100 or 250).",
            "default": 0
          },
          "requiredTech": {
            "title": "Must Use App / Ad Pixel (Optional)",
            "type": "string",
            "description": "Only return stores actively running this app, pixel, or payment tool (e.g. 'Klaviyo', 'Judge.me', 'Gorgias', 'Recharge', 'TikTok Pixel', 'Meta Pixel')."
          },
          "missingTech": {
            "title": "Missing App / Ad Pixel — Agency Pitch Filter (Optional)",
            "type": "string",
            "description": "Agency pitch filter: ONLY return stores that DO NOT have this app or ad pixel installed (e.g. requiredTech='Klaviyo' + missingTech='TikTok Pixel')."
          },
          "requiredSocial": {
            "title": "Required Social Channel (Optional)",
            "enum": [
              "none",
              "any",
              "instagram",
              "tiktok",
              "facebook",
              "youtube",
              "linkedin",
              "pinterest",
              "twitter"
            ],
            "type": "string",
            "description": "Require stores to have an active social profile (ideal for UGC, creator, and paid-social agencies).",
            "default": "none"
          },
          "minMedianPrice": {
            "title": "Minimum Median Product Price",
            "minimum": 0,
            "type": "integer",
            "description": "Require a minimum median catalog product price (e.g. 25).",
            "default": 0
          },
          "minProductsCount": {
            "title": "Minimum Sampled Products",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of active products sampled in the store catalog.",
            "default": 0
          },
          "skipPreviousStores": {
            "title": "Skip Previously Delivered Stores (No Store Billed Twice)",
            "type": "boolean",
            "description": "Persists delivered store domains in your Apify account's named Key-Value Store ('noctua-store-leads-history') and automatically skips them on future runs so recurring Clay/n8n schedules always return fresh net-new leads.",
            "default": false
          },
          "dedupListName": {
            "title": "Deduplication List Name",
            "type": "string",
            "description": "Campaign bucket name used when 'Skip Previously Delivered Stores' is enabled (allows separate history pools per client or campaign).",
            "default": "default"
          },
          "excludeDomains": {
            "title": "Exclude CRM / Existing Client Domains (Optional)",
            "type": "array",
            "description": "List of domains to exclude from results and billing.",
            "items": {
              "type": "string"
            }
          },
          "offset": {
            "title": "Index Pagination Offset",
            "minimum": 0,
            "type": "integer",
            "description": "Skip the first N matching candidate stores in index discovery mode.",
            "default": 0
          },
          "liveWebDiscovery": {
            "title": "Enable Live Web Long-Tail Discovery",
            "type": "boolean",
            "description": "Automatically discovers fresh niche stores from the live web whenever the built-in index has fewer matches than maxResults.",
            "default": true
          },
          "maxResults": {
            "title": "Max Store Leads",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of verified store profiles to output and charge for in this run.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}