# Shopify Theme Detector (`scoutlayer/shopify-theme-detector`) Actor

A powerful Apify Actor that detects the active Shopify theme from any store URL — extracting theme name, version, schema, and Theme Store origin. Only charges for successful extractions.

- **URL**: https://apify.com/scoutlayer/shopify-theme-detector.md
- **Developed by:** [Scoutlayer](https://apify.com/scoutlayer) (community)
- **Categories:** E-commerce, SEO tools, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 result storeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

Detect the active theme on any Shopify storefront. Given one or more store URLs, the actor fetches each page, checks for Shopify signals, and returns fully flattened theme metadata. Built by the team behind [Applora](https://applora.ai) — if you're researching Shopify *apps* rather than storefronts, Applora tracks the whole App Store (apps, categories, keywords, reviews, rankings) daily and serves it live.

**You are only charged for URLs where theme data was successfully extracted.** URLs that are not Shopify stores, or Shopify stores using a fully custom theme, are recorded in the run stats but do not count toward your usage.

### Features

- **Shopify Detection**: Identifies Shopify stores by the presence of `cdn.shopify.com` in the page HTML
- **Theme Metadata**: Extracts theme name, ID, schema name, schema version, role, and theme store ID
- **Theme Style**: Captures the active style variant (`theme_style_id` and `theme_style_handle`)
- **Theme Store Flag**: Reports `is_theme_store_theme` — whether the theme originates from the public Shopify Theme Store
- **Custom Theme Handling**: Shopify stores that use a fully custom theme (no standard Shopify script) are detected as Shopify but skipped from results and logged in stats

### Input

| Field      | Type    | Required | Default | Description                                          |
| ---------- | ------- | -------- | ------- | ---------------------------------------------------- |
| `urls`     | array   | Yes      | —       | Store URLs to check, e.g. `["https://allbirds.com"]` |
| `maxItems` | integer | No       | `100`   | Maximum number of URLs to process                    |

### Output

#### Dataset

Only URLs where theme data was **successfully extracted** (`theme_detected: true`) appear in the dataset.

```json
{
  "url": "https://allbirds.com",
  "handle": "allbirds",
  "locale": "en",
  "theme_name": "Horizon",
  "theme_id": 141419118701,
  "theme_schema_name": "Horizon",
  "theme_schema_version": "3.2.1",
  "theme_store_id": 2481,
  "theme_role": "main",
  "theme_handle": "horizon",
  "theme_style_id": null,
  "theme_style_handle": null,
  "is_theme_store_theme": true,
  "scraped_at": "2025-06-29T10:00:00.000Z"
}
```

| Field                  | Type            | Description                                                                |
| ---------------------- | --------------- | -------------------------------------------------------------------------- |
| `url`                  | string          | The input URL                                                              |
| `handle`               | string | null  | Store subdomain, e.g. `allbirds` (from `allbirds.myshopify.com`)           |
| `locale`               | string | null  | Active store locale, e.g. `en`                                             |
| `theme_name`           | string | null  | Display name of the active theme                                           |
| `theme_id`             | number | null  | Shopify internal theme ID                                                  |
| `theme_schema_name`    | string | null  | Theme schema name (may differ from display name for customised themes)     |
| `theme_schema_version` | string | null  | Semantic version of the theme schema, e.g. `3.2.1`                         |
| `theme_store_id`       | number | null  | Theme Store listing ID; `null` for custom or private themes                |
| `theme_role`           | string | null  | Theme role, typically `main`                                               |
| `theme_handle`         | string | null  | URL handle of the theme in the Theme Store; `null` if not from Theme Store |
| `theme_style_id`       | number | null  | Active style variant ID                                                    |
| `theme_style_handle`   | string | null  | Active style variant handle                                                |
| `is_theme_store_theme` | boolean | null | `true` if the theme originates from the public Shopify Theme Store         |
| `scraped_at`           | string          | ISO 8601 timestamp of when the URL was scraped                             |

#### Stats (Key-Value Store)

After each run, a `stats` record is saved to the key-value store with a full breakdown of all processed URLs:

```json
{
  "total": 10,
  "succeeded": 6,
  "failed": 1,
  "not_shopify": ["https://wordpress-site.com", "https://not-a-store.com"],
  "shopify_no_theme": ["https://headless-shopify-store.com"]
}
```

| Field              | Description                                                                                  |
| ------------------ | -------------------------------------------------------------------------------------------- |
| `total`            | Total number of URLs processed                                                               |
| `succeeded`        | URLs where theme data was extracted and saved to the dataset                                 |
| `failed`           | URLs that could not be fetched (network errors, HTTP errors, etc.)                           |
| `not_shopify`      | URLs with no `cdn.shopify.com` signal — not identified as Shopify stores                     |
| `shopify_no_theme` | Confirmed Shopify stores where the theme script could not be parsed (custom/headless themes) |

### Usage Examples

#### Detect theme for a single store

```json
{
  "urls": ["https://allbirds.com"]
}
```

#### Batch detect themes for multiple stores

```json
{
  "urls": ["https://allbirds.com", "https://gymshark.com", "https://fashionnova.com"],
  "maxItems": 50
}
```

***

Built by the team behind [Applora](https://applora.ai) — Shopify App Store intelligence (apps, categories, keywords, reviews, rankings) tracked daily and queryable live via dashboard or [MCP](https://applora.ai/#mcp).

# Actor input Schema

## `urls` (type: `array`):

List of store URLs to check. Each URL is fetched and parsed for Shopify theme data.

## `maxItems` (type: `integer`):

Maximum number of URLs to process.

## Actor input object example

```json
{
  "urls": [
    "https://example.myshopify.com"
  ],
  "maxItems": 100
}
```

# Actor output Schema

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

URL of the dataset with the results

## `crawlStats` (type: `string`):

Statistics about the crawl process

# 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 = {
    "urls": [
        "https://example.myshopify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scoutlayer/shopify-theme-detector").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 = { "urls": ["https://example.myshopify.com"] }

# Run the Actor and wait for it to finish
run = client.actor("scoutlayer/shopify-theme-detector").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "urls": [
    "https://example.myshopify.com"
  ]
}' |
apify call scoutlayer/shopify-theme-detector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scoutlayer/shopify-theme-detector",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/FCrE3IVDetPXKu3r6/builds/XCzOsDgZrzBusAfPq/openapi.json
