# Shopify Store Radar — Products, Prices & Stock Changes (`drizzly_twilight/shopify-store-radar`) Actor

Track any Shopify store: full catalog with price, compare-at price, discount %, variant-level stock, and the changes since the last run (new, delisted, price up/down, sold out, back in stock). Reads Shopify's official UCP agent endpoint instead of scraping.

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

## Pricing

$2.00 / 1,000 products

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 Store Radar

Track any Shopify store's full catalog — prices, discounts, variant-level stock — and get told **exactly what changed** since the last run.

Built on **UCP** (Universal Commerce Protocol), the machine-readable product feed Shopify publishes for AI agents. That means no HTML scraping and no CSS selectors that break every other week — plus variant-level stock that `/products.json` does not expose.

### What you get

One row per product:

| Field | Meaning |
|---|---|
| `store` | Domain you asked for |
| `productId`, `handle`, `url` | Identity and link |
| `title`, `vendor`, `productType`, `tags` | Basic merchandising data |
| `priceMin` / `priceMax` | Price range across variants |
| `compareAtPrice` | The "was" price (strike-through) |
| `discountPct` | Effective discount, e.g. `58.6` |
| `currency` | Currency of the prices |
| `available` | `true` if **any** variant is in stock |
| `variantCount`, `variants[]` | Per-variant SKU, price and stock |
| `imageUrl` | Main product image |
| `sitemapUpdatedAt` | Last time the merchant touched the product page |
| `changeType` | `new` / `delisted` / `price_drop` / `price_rise` / `sold_out` / `back_in_stock` |
| `previousPrice`, `changePct` | For price changes |
| `firstSeenAt`, `lastSeenAt` | When this actor first/last saw the product |

### Why this actor and not a scraper

Shopify exposes `/products.json` on most stores, and plenty of scrapers use it. Two problems with that:

1. **It rate limits globally per IP.** Hit a few stores in a row and every request returns `429` for minutes.
2. **It only tells you in-stock true/false**, with no real stock data.

The UCP endpoint is an official protocol endpoint, it exposes variant-level availability and price ranges, and it is versioned — so it does not break silently.

#### About rate limits (measured, not assumed)

UCP is not a free-for-all. In testing:

| Test | Result |
|---|---|
| 45 requests to one store, 1s apart | all OK |
| 40 pages of a very large catalog, no delay | `429`, ~1h cool-down |
| Hitting store A until throttled, then store B | store B unaffected |

So throttling is **per store and burst-sensitive**, not a global IP ban. That is why this actor spaces page requests (`pageDelaySec`, default 1s) and, when a store hands back a long cool-down, reports it in `storesFailed` instead of stalling the run. If a big store throttles you, raise `pageDelaySec` to 2–3s or lower `maxProductsPerStore`.

### Input

```json
{
  "stores": ["allbirds.com", "fashionnova.com"],
  "maxProductsPerStore": 250,
  "detectChanges": true,
  "onlyChanges": false,
  "includeSitemap": true
}
```

| Input | Default | Notes |
|---|---|---|
| `stores` | — | Required. Domains or full URLs, up to 50. |
| `maxProductsPerStore` | `250` | `0` = whole catalog. One product = one billed item. |
| `detectChanges` | `true` | Snapshot is kept per store between runs. |
| `onlyChanges` | `false` | Return only changed products — cheap for daily schedules. |
| `includeSitemap` | `true` | Adds `sitemapUpdatedAt`. A few seconds per store. |
| `requestTimeoutSec` | `45` | Per-request timeout. |

### Use cases

- **Competitor monitoring** — schedule daily runs and read the `changes` view to see who cut prices, what sold out, what they launched.
- **Assortment research** — pull a whole category from 10 brands and compare price points and discount depth.
- **Restock alerts** — run hourly on a few SKUs you care about, filter for `back_in_stock`.
- **Discount hunting** — sort by `discountPct` to find real markdowns instead of the perennial "was" prices.
- **Market entry** — count products per type and median price to size a niche before you build for it.

#### Running this continuously

Apify can schedule this actor (Apache-style cron) — for example every day at 08:00 UTC with `onlyChanges: true`. Each run compares against the snapshot left by the previous one, so you accumulate a price history without re-reading everything you already know.

### Coverage

UCP is rolling out across Shopify. Most large stores already publish it. A store that does not will be reported in the run log and in the `SUMMARY` record (`storesFailed`) rather than failing the whole run.

### Limitations

- **No publish date.** UCP does not expose `published_at`. `sitemapUpdatedAt` is the closest signal, and it changes on *any* edit, so treat it as "recently modified", not "new product". True new-product detection comes from comparing snapshots over time — that is what `changeType: "new"` does.
- **Stock is a boolean per variant**, not a quantity. Shopify does not expose exact on-hand counts publicly.
- **Prices are variant price ranges**, not per-market pricing. Currency comes from the store's default market.
- **A minority of stores block datacenter IPs.** Measured from Apify's default IPs: 5 of 6 tested stores answered, 1 (`hexclad.com`) returned `403`. Those are reported in `storesFailed` with an explicit message; enable `proxyConfiguration` to get through them.

### Notes for developers

The protocol requires every request to include `meta.ucp-agent.profile` — a publicly reachable JSON document that the store fetches and validates. This actor ships its own at `ucp-agent-profile.json`; override it via the `agentProfileUrl` input if you host your own.

Source: https://github.com/indigo-apple/shopify-radar

# Actor input Schema

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

One domain per entry, e.g. `allbirds.com`, `gymshark.com`, `fashionnova.com`. Full URLs work too — they get normalized. Up to 50 stores per run.

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

Stop after this many products for each store. One product = one result item. Set 0 to take the whole catalog.

## `detectChanges` (type: `boolean`):

Compare against the snapshot stored by the previous run of this actor and tag each product with `changeType`: new / delisted / price_drop / price_rise / sold_out / back_in_stock. The snapshot is kept per store between runs. Turn this off for a plain catalog dump.

## `onlyChanges` (type: `boolean`):

Return only the products that actually changed. Much cheaper if you run this on a daily schedule — you pay per returned item. The very first run always returns everything to establish the baseline.

## `includeDelisted` (type: `boolean`):

When a product seen in the previous run is gone from the catalog, emit a row with `changeType: "delisted"` (title and last known price kept, current price fields empty). Turn off if you only care about products that still exist.

## `includeSitemap` (type: `boolean`):

UCP does not expose a publish date, so `sitemapUpdatedAt` is taken from the store's product sitemap. It tells you when the merchant last touched a product page — a useful proxy for 'recently changed', but not proof of a new listing. Adds a few seconds per store.

## `pageDelaySec` (type: `number`):

Gap between catalog page requests. Stores throttle bursty paging — 1s is safe for normal stores; very large catalogs may need 2–3s to avoid a long cool-down.

## `requestTimeoutSec` (type: `integer`):

Per-request timeout when talking to the store. Large catalogs on slow stores may need more.

## `proxyConfiguration` (type: `object`):

Most Shopify stores answer fine from datacenter IPs (5 of 6 tested). A minority block them and return `403` — for those, enable Apify Proxy (residential works best). Leave off to keep runs free.

## `agentProfileUrl` (type: `string`):

UCP requires every request to reference a public agent profile document that the store fetches and validates. The actor defaults to its own hosted profile — only change this if you host your own copy (the document must contain `ucp.version`, `ucp.services`, `ucp.capabilities` and `ucp.payment_handlers`).

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "fashionnova.com"
  ],
  "maxProductsPerStore": 250,
  "detectChanges": true,
  "onlyChanges": false,
  "includeDelisted": true,
  "includeSitemap": true,
  "pageDelaySec": 1,
  "requestTimeoutSec": 45,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (type: `string`):

One item per product: price, compare-at price, discount %, variant-level stock and the change since the previous run.

## `summary` (type: `string`):

Per-store product counts, change counts and failure reasons (non-UCP store, blocked IP, throttled).

# 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": [
        "allbirds.com",
        "fashionnova.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("drizzly_twilight/shopify-store-radar").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": [
        "allbirds.com",
        "fashionnova.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("drizzly_twilight/shopify-store-radar").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": [
    "allbirds.com",
    "fashionnova.com"
  ]
}' |
apify call drizzly_twilight/shopify-store-radar --silent --output-dataset

```

## MCP server setup

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

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/3b1vixbwEbwnIqB5E/builds/mwn4wlMhN7Ipwet7E/openapi.json
