# Shopify App & Theme Detector (`brotherly_elm/shopify-app-detector`) Actor

Detect public Shopify theme, app-extension, and tool signals from robots.txt and homepage GET requests only. Output contains identifiers and signal fields, not page text.

- **URL**: https://apify.com/brotherly_elm/shopify-app-detector.md
- **Developed by:** [Iris](https://apify.com/brotherly_elm) (community)
- **Categories:** Developer tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 store rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 App & Theme Detector

Identify public Shopify storefront signals from each submitted domain. The Actor requests `robots.txt` first and, only when allowed, the homepage. It uses GET requests only; it does not render JavaScript or visit product, search, cart, account, checkout, admin, or other paths.

### Captured-response replay evidence

A single live response capture was replayed offline. In that replay, **175 of 191 store inputs with HTTP 200** were classified as Shopify, with a **median of 8 distinct identifiers** per answered Shopify-positive store. **0 of 25 controls** were classified as Shopify. Among the 175 answered Shopify-positive rows, non-null output counts were: theme details **161/175**, currency **175/175**, country **175/175**, and locale **175/175**. The sample contains 20 replay rows validated against the packaged output schema. These are response-derived signals; they do not establish market prevalence, app installation, or coverage.

### Shopify identification

`isShopify` is true only when at least two independent Shopify marker names are present:

- `inline_shopify_object` — an inline Shopify object
- `inline_shopify_theme` — an inline Shopify theme object
- `shopify_cdn_asset` — a Shopify CDN asset URL
- `shopify_platform_markup` — Shopify route, section, or feature markup

The `markers` array lists the names found. The two inline markers count as a single signal class; classification additionally requires a CDN-asset or platform-markup signal. A free-text theme name is not used as a Shopify marker.

### Output fields

One row is emitted per submitted input (up to the configured maximum):

- `input`: normalized input host identifier; invalid input is shown as `[invalid]`.
- `finalURL`: final homepage origin after permitted redirects, or `null` if no homepage response was obtained. Paths and query strings are not returned.
- `status`: result state, including `ok`, `http_error`, `network_error`, `robots_error`, `robots_incomplete`, `robots_disallowed`, `redirected_elsewhere`, `request_limit`, `forbidden`, `rate_limited`, `invalid_input`, or `self_test`.
- `httpStatus`: HTTP status from the server, or `null` when no HTTP response exists.
- `truncated`: whether a response exceeded the 3,000,000-byte analysis cap.
- `isShopify`: whether at least two qualifying Shopify markers agreed.
- `markers`: the marker names found; no source excerpts are returned.
- `theme.schemaName`, `theme.schemaVersion`, `theme.themeStoreId`: values from inline Shopify theme schema fields; each may be `null`. Schema names are restricted to a conservative allowlist. Free-text theme names, generic theme IDs, and phone-shaped values are suppressed.
- `currency`, `country`, `locale`: validated codes read from inline Shopify objects when present; otherwise `null`.
- `appExtensionHandles`: extension handle identifiers parsed from Shopify extension asset URLs.
- `apps`: one object per extension handle, with `handle`, `name`, and `category`; unmapped handles use their raw handle and category `unmapped`.
- `fingerprintHits`: authored fingerprint matches with only `name`, `category`, `kind`, and `token`.

The offline `selfTest` returns a synthetic `fixture.example` row and performs no network request.

### Limits and interpretation

- The Actor checks `robots.txt` before the homepage and honors a homepage disallow. Requests are GET-only and limited to those two paths. Same-registrable-domain redirects are followed for at most three hops; a redirect outside that domain is not followed.
- At most four requests are made per registrable domain per run, including redirects. Each request has a 10-second timeout and reads at most 3,000,000 response bytes. After an HTTP 403 or 429, the Actor makes no further request to that host during that run.
- Inputs are capped at 500 domains. Requests are sequential. No browser rendering, interaction, login, or client-side execution occurs.
- Apps that load only after interaction or are detected only server-side are not seen. A missing app, theme, or fingerprint marker is not proof that it is absent. A host fingerprint in page source can be a link or DNS prefetch rather than an installed or active tool; these are signals, not proof of installation.
- Output is limited to identifiers and signal fields. It does not include page text, page titles, email addresses, phone numbers, or response bodies.

### Price

PAY_PER_EVENT: **$0.003 per store row plus $0.00005 per Actor start**.

### Affiliation

This Actor is not affiliated with, endorsed by, or sponsored by Shopify or any detected app vendor.

# Actor input Schema

## `stores` (type: `array`):

Public website domains or HTTP(S) homepage URLs.

## `maxDomains` (type: `integer`):

Maximum domains to inspect; the Actor supports at most 500.

## `selfTest` (type: `boolean`):

Emit a synthetic fixture row without making network requests.

## Actor input object example

```json
{
  "stores": [
    "adoredvintage.com",
    "artisaire.com",
    "beardbrand.com"
  ],
  "maxDomains": 3,
  "selfTest": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

Items in the default dataset, one row per submitted input.

# 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 = {
    "stores": [
        "adoredvintage.com",
        "artisaire.com",
        "beardbrand.com"
    ],
    "maxDomains": 3,
    "selfTest": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("brotherly_elm/shopify-app-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 = {
    "stores": [
        "adoredvintage.com",
        "artisaire.com",
        "beardbrand.com",
    ],
    "maxDomains": 3,
    "selfTest": False,
}

# Run the Actor and wait for it to finish
run = client.actor("brotherly_elm/shopify-app-detector").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 '{
  "stores": [
    "adoredvintage.com",
    "artisaire.com",
    "beardbrand.com"
  ],
  "maxDomains": 3,
  "selfTest": false
}' |
apify call brotherly_elm/shopify-app-detector --silent --output-dataset

```

## MCP server setup

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

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/i13KpHCLAeXgMOfff/builds/CsIqJUPLCx8yewSxD/openapi.json
