{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Store Leads & Intelligence",
    "description": "Search our pre-indexed Shopify leads database in <0.5s or bulk-analyze custom storeUrls for 50+ SaaS apps, ad pixels, pricing, discounts, public emails & phones.",
    "version": "0.0",
    "x-build-id": "QU0dIlUNtLhNjUEv6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gridline_data~shopify-store-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gridline_data-shopify-store-intel",
        "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/gridline_data~shopify-store-intel/runs": {
      "post": {
        "operationId": "runs-sync-gridline_data-shopify-store-intel",
        "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/gridline_data~shopify-store-intel/run-sync": {
      "post": {
        "operationId": "run-sync-gridline_data-shopify-store-intel",
        "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": {
          "mode": {
            "title": "Execution Mode",
            "enum": [
              "auto",
              "search_database",
              "analyze_urls"
            ],
            "type": "string",
            "description": "Auto picks database search when searchKeywords/filters are provided without custom storeUrls, or URL analysis when custom storeUrls are provided.",
            "default": "auto"
          },
          "searchKeywords": {
            "title": "Search Keywords (Discovery Mode)",
            "type": "array",
            "description": "Find live Shopify stores matching any keyword across brand name, description, product categories, and sample SKUs (e.g., 'coffee', 'skincare', 'dog', 'supplement').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "primaryNiche": {
            "title": "Filter by Industry Niche",
            "enum": [
              "Any",
              "Beauty & Skincare",
              "Food & Coffee",
              "Health & Supplements",
              "Pets",
              "Footwear",
              "Apparel & Fashion",
              "Home & Living",
              "Fitness & Outdoors",
              "Jewelry & Watches",
              "Bags & Travel",
              "Electronics & Tech",
              "Baby & Kids",
              "Eyewear & Accessories",
              "Art & Stationery",
              "Automotive & Moto",
              "General DTC"
            ],
            "type": "string",
            "description": "Filter pre-indexed stores by one of 15 verified DTC e-commerce verticals.",
            "default": "Any"
          },
          "countries": {
            "title": "Filter by Country Codes (ISO-2)",
            "type": "array",
            "description": "Optional ISO-2 country filter (e.g., 'US', 'GB', 'CA', 'AU'). Leave empty for global.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "requiredApps": {
            "title": "Must Have Apps / Ad Pixels",
            "type": "array",
            "description": "Only return stores that HAVE all listed apps/pixels installed (e.g., 'Meta Pixel', 'TikTok Pixel', 'Triple Whale'). Filtered-out stores are never charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeApps": {
            "title": "Exclude Stores Already Using Apps",
            "type": "array",
            "description": "Exclude stores that already use these apps — ideal for SaaS sales prospecting (e.g., exclude 'Klaviyo' or 'Gorgias' to find greenfield prospects).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "requiredTags": {
            "title": "Filter by Commercial Tags",
            "type": "array",
            "description": "Filter by auto-computed tags: 'active-advertiser', 'missing-email-marketing', 'missing-reviews', 'missing-helpdesk', 'has-email', 'has-phone', 'high-ticket-100+', 'mid-ticket-35+', 'on-sale-promo', 'active-launching', 'mature-brand-1yr+', 'shopify-plus-likely'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minMedianPrice": {
            "title": "Minimum Median Product Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include stores whose USD-equivalent median SKU price is at or above this amount (e.g., 35 for higher-margin DTC brands)."
          },
          "maxMedianPrice": {
            "title": "Maximum Median Product Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper bound on USD-equivalent median SKU price."
          },
          "maxDaysSinceLaunch": {
            "title": "Max Days Since Last New Product Added",
            "minimum": 1,
            "type": "integer",
            "description": "Filter for actively growing stores (e.g., 90 = launched a new SKU within the past 90 days)."
          },
          "maxTrancoRank": {
            "title": "Max Global Traffic Rank (Tranco Top 1M)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional global web traffic filter (lower rank = higher traffic, e.g., 100000 returns stores ranked within the Global Top 100K websites)."
          },
          "onlyWithContacts": {
            "title": "Only Return Stores with Public Email or Phone",
            "type": "boolean",
            "description": "When enabled, only returns stores that have at least one verified public business email or customer phone number.",
            "default": false
          },
          "minHealthScore": {
            "title": "Minimum Store Health Score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Filter out low-activity or empty stores using our deterministic 0-100 Store Health Score.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "store_health_score",
              "sales_opportunity_score",
              "tranco_rank",
              "price_median",
              "products_sampled",
              "days_since_last_product_added"
            ],
            "type": "string",
            "description": "Choose how matching stores are ranked (keyword searches automatically boost direct brand and category matches first).",
            "default": "store_health_score"
          },
          "maxStores": {
            "title": "Max Stores to Return (Database Search)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of matching stores returned in Search Database mode.",
            "default": 25
          },
          "storeUrls": {
            "title": "Specific Store URLs / Domains (Bulk Analyze Mode)",
            "type": "array",
            "description": "Provide explicit store domains or URLs to analyze/enrich (e.g., 'allbirds.com', 'colourpop.com'). Leave untouched when using Search Keywords or Niche Discovery.",
            "items": {
              "type": "string"
            }
          },
          "liveRefresh": {
            "title": "Force Real-Time Live Refresh",
            "type": "boolean",
            "description": "When false (default), pre-indexed stores return in <0.5s at near-zero compute cost. Enable to re-fetch live HTML and today's exact pricing/discounts in real time.",
            "default": false
          },
          "skipNonShopify": {
            "title": "Skip Non-Shopify Websites (0 Charge)",
            "type": "boolean",
            "description": "When enabled (default), non-Shopify websites in storeUrls are skipped automatically with zero charge. Disable if you want non-Shopify verification rows included.",
            "default": true
          },
          "maxProductsPerStore": {
            "title": "Max Products Sampled per Store (Live Mode)",
            "minimum": 0,
            "maximum": 2500,
            "type": "integer",
            "description": "Maximum public products fetched from /products.json per store when running live analysis or product export.",
            "default": 250
          },
          "exportProducts": {
            "title": "Also Export Individual Product Rows",
            "type": "boolean",
            "description": "Outputs flattened BI-ready product rows (record_type='product') for each matched store (billed separately at $1/1K products).",
            "default": false
          },
          "sinceDate": {
            "title": "Incremental Filter: Products Updated Since (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO date (e.g., '2026-11-01'). When exportProducts is enabled, only exports products created/updated on or after this date.",
            "default": ""
          },
          "fetchContactPage": {
            "title": "Check Public Contact Page (Live Mode)",
            "type": "boolean",
            "description": "Check /pages/contact for public support emails and phone numbers when running live extraction.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max Concurrent Stores (Live Mode)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of stores analyzed concurrently when running live HTTP requests.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "Optional Apify Proxy settings. Not required for database search or standard public Shopify storefronts.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}