# Checkout Detector (`brave_zygantrum/checkout-detector`) Actor

Detects if a website has an active checkout/payment capability. Returns checkout type, payment providers, detection method, and confidence. HTTP-first, browser only as fallback.

- **URL**: https://apify.com/brave\_zygantrum/checkout-detector.md
- **Developed by:** [Etan gentil](https://apify.com/brave_zygantrum) (community)
- **Categories:** AI, E-commerce, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $30.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Checkout Detector

Detects whether a website has an **active checkout / payment capability**, identifies the **payment providers** and **e‑commerce platform**, and tells you whether the checkout is **reachable without a signup wall**.

Built for bulk enrichment (Clay / CRM): give it a bare domain, get back a clean `true/false` plus the supporting detail.

---

### ⚡ How it works — HTTP‑first, browser only as fallback

Most detectors launch a full browser on every site. A browser costs **10–40× more compute and runs 10–50× slower** than a plain HTTP request, and the most reliable checkout signals (response headers, `Content‑Security‑Policy`, loaded SDKs, JSON‑LD, platform APIs) don't need one. So this Actor inverts the usual order:

````

TIER 1 — HTTP only (no browser)            resolves the large majority of sites
• one homepage GET → HTML + headers + CSP + Set‑Cookie
• parallel platform API probes:
/products.json · /wp-json/wc/store/v1/cart · /rest/V1/store/storeConfigs · robots.txt
• match curated payment/platform fingerprints (Wappalyzer methodology)

GATE
• decisive signal            → return immediately (no browser)
• commercial but unconfirmed → render once (Tier 2)
• no commercial signal       → return false (no browser)

TIER 2 — ONE passive Playwright render (only when needed)
• reads JS globals (window.Shopify / Stripe / Paddle …), dataLayer,
localStorage cart keys, and the fully‑hydrated DOM
• strictly passive: no clicking, no add‑to‑cart, no cart mutation

````

The browser launches only on the minority of sites Tier 1 can't resolve — that's where the cost saving comes from, with recall held steady by the passive render.

#### Detection model

Signals are graded, not summed into a fragile weighted score:

- **Decisive** (any one ⇒ `has_checkout: true`): Shopify `/products.json`, WooCommerce Store API, Magento `storeConfigs`, `shopify-checkout-api-token`, JSON‑LD `Product`+price, cart `<form action>`, third‑party hosted checkout (Gumroad, Lemon Squeezy, Paddle, FastSpring, Chargebee, Recurly, Snipcart, Kit), a payment SDK in `script-src`, a platform/PSP JS global, a store response‑header or cookie.
- **Corroborating** (combine for the SaaS / ambiguous middle): pricing page + signup CTA, dataLayer e‑commerce events, e‑commerce cookies, product URLs, shipping/billing fields, visible prices, PSP allowed in CSP, card‑brand mentions.
- **Negative**: parked domain, sales‑gated with no self‑serve, contact‑sales‑only without prices.

---

### 📥 Input

| Field | Type | Default | Description |
|---|---|---|---|
| `url` | String | **required** | URL or bare domain (e.g. `example.com` or `https://example.com`) |
| `timeoutSeconds` | Integer | `30` | Max time for the browser fallback. Tier 1 (HTTP) is much faster and ignores this. |

```json
{ "url": "https://zuvees.ae", "timeoutSeconds": 30 }
````

***

### 📤 Output

One JSON object per run, pushed to the dataset.

| Field | Type | Description |
|---|---|---|
| `domain` | String | Root domain analyzed |
| `has_checkout` | Boolean | `true` if an active checkout/payment capability was detected |
| `checkout_type` | String | `ecommerce` · `saas` · `third_party` · `donation` · `unknown` |
| `checkout_accessible` | Boolean | `true` if reachable without a signup/login wall (inferred SaaS = `false`) |
| `detection_method` | String | The single strongest signal used (e.g. `shopify_products_json`, `psp_sdk`, `cart_form`) |
| `payment_providers` | Array | Detected gateways / methods (e.g. `["Stripe", "Apple Pay", "Visa"]`) |
| `ecommerce_platform` | String | Detected platform (e.g. `Shopify`, `WooCommerce`), or `null` |
| `confidence` | Number | `0.0`–`1.0` |
| `scraping_status` | Object | `{ tier, browser_used, blocked, error, time_elapsed_ms }` |

**Example (Shopify store):**

```json
{
  "domain": "zuvees.ae",
  "has_checkout": true,
  "checkout_type": "ecommerce",
  "checkout_accessible": true,
  "detection_method": "shopify_products_json",
  "payment_providers": ["Apple Pay", "Google Pay", "Visa", "Mastercard"],
  "ecommerce_platform": "Shopify",
  "confidence": 0.95,
  "scraping_status": { "tier": "http", "browser_used": false, "blocked": false, "error": null, "time_elapsed_ms": 2310 }
}
```

`scraping_status.browser_used: false` means the result came from the cheap HTTP tier — most rows will look like this.

***

### 💡 Clay / CRM usage

- **Filter prospects:** keep rows where `has_checkout = true` (add `checkout_accessible = true` to target self‑serve commerce, or `checkout_type = "saas"` for subscription products).
- **Personalize:** reference `ecommerce_platform` or `payment_providers` in outreach.
- **Cost:** `browser_used = false` rows are the cheapest; the Actor only spends a browser render when a site looks commercial but HTTP couldn't confirm it.
- Pair with the **Pricing Detector** Actor for a full monetization view.

Detection fingerprints are curated from the open Wappalyzer methodology (categories: *Payment processor*, *Ecommerce*) plus active platform API probes the standard tech‑detectors don't perform.

# Actor input Schema

## `url` (type: `string`):

Website URL or bare domain to analyze for checkout capability (e.g. example.com or https://example.com)

## `timeoutSeconds` (type: `integer`):

Maximum execution time per page for the browser fallback. Tier 1 (HTTP) is much faster and ignores this.

## Actor input object example

```json
{
  "url": "https://wexa.ai",
  "timeoutSeconds": 30
}
```

# 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 = {
    "url": "https://wexa.ai"
};

// Run the Actor and wait for it to finish
const run = await client.actor("brave_zygantrum/checkout-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 = { "url": "https://wexa.ai" }

# Run the Actor and wait for it to finish
run = client.actor("brave_zygantrum/checkout-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 '{
  "url": "https://wexa.ai"
}' |
apify call brave_zygantrum/checkout-detector --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Checkout Detector",
        "description": "Detects if a website has an active checkout/payment capability. Returns checkout type, payment providers, detection method, and confidence. HTTP-first, browser only as fallback.",
        "version": "1.0",
        "x-build-id": "Fx3sQaN06RM1TrVgg"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/brave_zygantrum~checkout-detector/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-brave_zygantrum-checkout-detector",
                "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/brave_zygantrum~checkout-detector/runs": {
            "post": {
                "operationId": "runs-sync-brave_zygantrum-checkout-detector",
                "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/brave_zygantrum~checkout-detector/run-sync": {
            "post": {
                "operationId": "run-sync-brave_zygantrum-checkout-detector",
                "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",
                "required": [
                    "url"
                ],
                "properties": {
                    "url": {
                        "title": "URL",
                        "type": "string",
                        "description": "Website URL or bare domain to analyze for checkout capability (e.g. example.com or https://example.com)",
                        "default": "https://wexa.ai"
                    },
                    "timeoutSeconds": {
                        "title": "Timeout (seconds)",
                        "minimum": 10,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Maximum execution time per page for the browser fallback. Tier 1 (HTTP) is much faster and ignores this.",
                        "default": 30
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
