{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Store Intelligence & B2B Leads",
    "description": "Ultra-cost-effective 100% HTTP pay-per-use alternative to Store Leads ($250-$950/mo) and StoreCensus. Extracts 50+ Shopify apps, ad pixels, Shopify Plus signals, theme, catalog pricing & activity recency, missing-app sales angles, and verified public contacts.",
    "version": "1.0",
    "x-build-id": "x1UKhAy3ehtHpnD1p"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~shopify-store-intelligence-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-shopify-store-intelligence-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/vesper_studio~shopify-store-intelligence-leads/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-shopify-store-intelligence-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/vesper_studio~shopify-store-intelligence-leads/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-shopify-store-intelligence-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": {
          "urls": {
            "title": "Shopify Store URLs or Domains",
            "type": "array",
            "description": "List of Shopify store URLs or bare domains (e.g. 'allbirds.com', 'https://www.beardbrand.com', 'https://www.cabaia.fr').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stores": {
            "title": "Store Objects (Clay / Google Sheets / n8n JSON)",
            "type": "array",
            "description": "Optional array of objects like { \"url\": \"beardbrand.com\", \"accountOwner\": \"Alex\" }. All extra input columns are preserved in output for seamless Clay/n8n round-tripping.",
            "default": []
          },
          "searchQueries": {
            "title": "Keyword / Category Store Discovery Queries (Optional)",
            "type": "array",
            "description": "Optional niche keywords (e.g. 'organic skincare', 'specialty coffee') to discover candidate Shopify stores from public search results before analyzing them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxSearchResultsPerQuery": {
            "title": "Max Discovered Stores Per Query",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum candidate domains collected per keyword discovery query.",
            "default": 10
          },
          "requiredApps": {
            "title": "Filter: Required Apps or Ad Pixels",
            "type": "array",
            "description": "Only emit stores that have ALL listed apps or ad pixels installed (e.g. ['Klaviyo', 'Meta']). Leave empty for no filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludedApps": {
            "title": "Filter: Excluded Apps (Competitor Displacement)",
            "type": "array",
            "description": "Exclude stores already using any listed app (e.g. ['Recharge', 'Gorgias']) — ideal for SaaS outbound prospecting.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minProducts": {
            "title": "Filter: Minimum Published Products",
            "minimum": 0,
            "type": "integer",
            "description": "Only emit stores with at least this many published/sampled products (0 = no minimum).",
            "default": 0
          },
          "currency": {
            "title": "Filter: Store Currency (ISO-4217)",
            "type": "string",
            "description": "Optional 3-letter currency filter (e.g. 'USD', 'EUR', 'GBP'). Leave empty to include all currencies.",
            "default": ""
          },
          "activeWithinDays": {
            "title": "Filter: Active Within Last N Days",
            "minimum": 0,
            "type": "integer",
            "description": "Only emit stores whose latest product update (`latestProductUpdatedAt`) occurred within the last N days (0 = disable filter).",
            "default": 0
          },
          "onlyShopify": {
            "title": "Only Emit Confirmed Shopify Stores",
            "type": "boolean",
            "description": "When enabled, skips non-Shopify domains instead of outputting them with `isShopify: false`. Discovered search results always filter to Shopify only.",
            "default": false
          },
          "crawlContactPages": {
            "title": "Crawl Contact & Legal Policy Pages",
            "type": "boolean",
            "description": "Inspect /pages/contact, /policies/legal-notice, and /policies/privacy-policy to extract public emails, E.164 phone numbers, and social links.",
            "default": true
          },
          "defaultCountry": {
            "title": "Default Phone Country (ISO-2)",
            "type": "string",
            "description": "Fallback ISO-3166-1 alpha-2 country code (e.g. 'US', 'FR', 'GB') for E.164 phone normalization when store country is unavailable.",
            "default": "US"
          },
          "maxConcurrency": {
            "title": "Max Concurrent Stores",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Bounded concurrent store workers (recommended 4-6 for 256-512 MB RAM and polite Shopify rate limits).",
            "default": 4
          },
          "timeoutMs": {
            "title": "HTTP Timeout (ms)",
            "minimum": 3000,
            "maximum": 30000,
            "type": "integer",
            "description": "Per-request HTTP timeout in milliseconds.",
            "default": 10000
          },
          "proxyConfiguration": {
            "title": "Optional Proxy Configuration",
            "type": "object",
            "description": "Disabled by default (zero-proxy 100% HTTP). Enable Apify Proxy only for very large batch runs.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}