# Shopify Store Intelligence (`vesperxiv/shopify-store-intelligence`) Actor

Audit public Shopify storefronts for lead building: product count, price bands, categories, installed apps, contact and social links, newsletter capture, and pitch triggers — no login, no API key.

- **URL**: https://apify.com/vesperxiv/shopify-store-intelligence.md
- **Developed by:** [Vesper](https://apify.com/vesperxiv) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 price per audited stores

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Shopify Store Intelligence

Audit public Shopify storefronts and turn each one into a sales lead — no login, no API key, no proxy needed.

For every store you give it, the Actor returns:

- **Catalog**: product count, price min / median / max, price bands, top product categories, tags and vendors, sold-out rate
- **Tech hints**: installed apps detected from homepage scripts — Klaviyo, Yotpo, Judge.me, Loox, Recharge, Afterpay, Klarna, Meta Pixel, TikTok Pixel and more
- **Contact & social**: public contact email, contact page, Instagram / Facebook / TikTok / YouTube / X / Pinterest links
- **Newsletter capture**: whether the store collects emails, and with which tool
- **Pitch triggers**: ready-made outreach angles, e.g. `no-newsletter-capture`, `no-reviews-app`, `high-sold-out-rate`, `no-email-marketing-app`, `tiny-catalog`

Built for ecommerce agencies, Shopify app vendors and DTC consultants who prospect stores at scale.

### How it works

1. **Products** — reads the storefront's public `/products.json` (paginated, up to `maxProductsPerStore` products) and computes price stats, categories and sold-out rates.
2. **Homepage scan** — fetches the homepage and matches known app/script fingerprints, social links, newsletter forms and contact details.
3. **Fallback** — if `/products.json` is blocked (some large stores return 403), the product count is taken from `/sitemap.xml` instead and the store is marked `partial`, not dropped.
4. **Discovery (optional)** — give a `discoverKeyword` (e.g. `handmade candles`) and the Actor finds candidate stores via web search, then audits each one and flags non-Shopify results instead of failing.

One store failing never kills the run: every store gets its own row with `status` `ok`, `partial` or `failed` and an `error` message when applicable.

### Input

| Field | Description |
|---|---|
| `storeDomains` | Shopify store domains or URLs to audit, e.g. `["allbirds.com", "tentree.com"]` |
| `discoverKeyword` | Optional category/keyword to discover stores (e.g. `skincare`) |
| `maxStores` | Max stores per run (1–100, default 20) |
| `maxProductsPerStore` | Max products read per store (50–1000, default 250) |
| `includeHomepageScan` | Scan the homepage for apps/social/newsletter (default true) |

### Output

One dataset row per store. Example (abridged):

```json
{
  "domain": "allbirds.com",
  "storeName": "Allbirds",
  "isShopify": true,
  "status": "ok",
  "productCount": 120,
  "priceCurrency": "USD",
  "priceMin": 15.0,
  "priceMedian": 98.0,
  "priceMax": 180.0,
  "priceBands": {"under $25": 5, "$25–$50": 12, "$50–$100": 20, "$100–$250": 3, "$250+": 0},
  "productCategories": [{"category": "Shoes", "count": 42}],
  "soldOutRate": 0.12,
  "techHints": [{"name": "Klaviyo", "category": "email-marketing"}],
  "socialLinks": {"instagram": "https://www.instagram.com/allbirds"},
  "contactEmail": "help@allbirds.com",
  "hasNewsletter": true,
  "pitchTriggers": ["no-reviews-app"]
}
```

A `SUMMARY` record in the key-value store holds run totals (`audited`, `ok`, `partial`, `failed`, `chargedStoreAudits`).

### Pricing

Pay per event — **$0.005 per audited store** (`store-audit` event). Failed stores are not charged. Platform compute usage applies on top per your Apify plan.

### Limitations

- Only public storefront data is used. Stores that block `/products.json` (e.g. Gymshark returns 403 from some IPs) report a sitemap-based product count and no price stats.
- Some stores serve a minimal shell page on the bare domain; the Actor retries `www.` when the first homepage is small. `*.myshopify.com` homepages often refuse datacenter connections, so those stores get full product data but limited tech/social detection.
- App detection is fingerprint-based: an app is listed only when its scripts are visible on the homepage. Apps loaded only on product or checkout pages are missed.
- Prices are variant prices as listed; currency comes from the homepage when detectable, otherwise `null`.
- Discovery is best-effort web search: results are candidates, and each is verified as Shopify during the audit.
- Respect each store's `robots.txt` and terms of service; the Actor uses a standard browser user-agent and modest concurrency (5 stores at a time).

# Actor input Schema

## `discoverKeyword` (type: `string`):

Optional category or keyword (e.g. "handmade candles", "skincare") used to discover candidate Shopify stores via web search. Discovered stores are audited the same way; non-Shopify results are flagged, not dropped.

## `includeHomepageScan` (type: `boolean`):

Fetch the homepage to detect installed apps, social links, newsletter capture, contact email and currency. Turn off to audit products.json only.

## `maxProductsPerStore` (type: `integer`):

Maximum products read from /products.json per store (250 per page). Price bands and categories are computed from these.

## `maxStores` (type: `integer`):

Maximum number of stores to audit in one run (explicit domains first, then discovered ones).

## `storeDomains` (type: `array`):

Shopify store domains (or full URLs) to audit, one per item. Example: allbirds.com. Leave empty to audit only stores found via discoverKeyword.

## Actor input object example

```json
{
  "discoverKeyword": "",
  "includeHomepageScan": true,
  "maxProductsPerStore": 250,
  "maxStores": 20,
  "storeDomains": [
    "allbirds.com",
    "tentree.com",
    "mvmt.com"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing one audited store per row.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "discoverKeyword": "",
    "includeHomepageScan": true,
    "maxProductsPerStore": 250,
    "maxStores": 20,
    "storeDomains": [
        "allbirds.com",
        "tentree.com",
        "mvmt.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesperxiv/shopify-store-intelligence").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "discoverKeyword": "",
    "includeHomepageScan": True,
    "maxProductsPerStore": 250,
    "maxStores": 20,
    "storeDomains": [
        "allbirds.com",
        "tentree.com",
        "mvmt.com",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("vesperxiv/shopify-store-intelligence").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "discoverKeyword": "",
  "includeHomepageScan": true,
  "maxProductsPerStore": 250,
  "maxStores": 20,
  "storeDomains": [
    "allbirds.com",
    "tentree.com",
    "mvmt.com"
  ]
}' |
apify call vesperxiv/shopify-store-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesperxiv/shopify-store-intelligence"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/q28qLmWFIVqQ9cVkn/builds/kgJLIGcD7vDr6hP0E/openapi.json
