PlaybooksE-commerce
Competitor Price Tracker
Every product and price of competitors' Shopify stores and Amazon listings, read on a schedule, with what changed since last time.
- Id
competitor-price-tracker- Version
- 1.0.0
- Category
- E-commerce
- Status
- Live
- Saved, it runs
- hourly, daily, weekdays, weekly
- Unit cap
- 200 by default, 1 to 2000
Reads the whole catalogue of the competitor stores you name (any Shopify store) and the Amazon listings you name, and keeps a table of every product with its price, its compare-at price, whether it is in stock and when the store last changed it. Each run is compared with the last, so a price cut, a new product, a sale or a sell-out shows as a change, ready for repricing.
Use when someone wants to track competitors' product prices over time, from Shopify stores or Amazon listings, to reprice or spot sales.
Run it with POST /v1/formulas/competitor-price-tracker/runs. How runs work is in Running a playbook; what a run costs is below.
Parameters
The fields of params, the Basics first. Only the required ones must be given; every other has a default. A field that is not listed is refused. The OpenAPI document has them as the type CompetitorPriceTrackerParams.
| Parameter | Type | Required or default | What it is |
|---|---|---|---|
storesBasics | list of strings | required | Competitor stores. Shopify stores by domain, such as allbirds.com. Each store's whole catalogue is read.up to 20, each up to 120 characters. |
asinsBasics | list of strings | [] | Amazon listings. Competitors' Amazon products by ASIN, read one by one.up to 100. |
keywordsBasics | list of strings | [] | Only products about. Keep products whose title or type holds one of these. Empty keeps every product.up to 20, each up to 60 characters. |
collectionFilters | string | "" | Store collection. Read only this collection of each store, by its handle (the name in /collections/<handle>). Empty reads the whole catalogue.up to 120 characters. |
products_per_storeFilters | integer | 250 | Products read per store. A store's catalogue is read 250 products at a time; this many are read.at least 10, at most 250. |
amazon_marketplaceFilters | string | "us" | Amazon marketplace. Which Amazon the listings are on.One of us, uk, de, fr, it, es, ca. |
only_changesOutput | boolean | false | Only what changed. Show only products that are new or whose price, compare-at price or stock changed since the last run. |
max_resultsOutput | integer | 1000 | Most rows. The run stops at this many products, changes first.at least 1, at most 5000. |
Presets
Ready-made answers to start from: give them as params, with any of your own beside them.
Direct-to-consumer shoes, with Amazon listings apparel-dtc
{
"stores": [
"allbirds.com",
"rothys.com"
],
"asins": [
"B09GJVTRNZ",
"B004YAVF8I",
"B07CMS5Q6P"
]
}Competitors' Amazon listings amazon-listings
{
"stores": [],
"asins": [
"B09GJVTRNZ",
"B004YAVF8I"
]
}Columns
The columns of each row’s data, in order; rows also carry a score from 0 to 100, and come best first. A value that is not known is null.
| Column | Label | Type | Shown by default |
|---|---|---|---|
store | Store | string | yes |
product | Product | string | yes |
product_type | Type | string | no |
brand | Brand | string | no |
price | Price | number | yes |
currency | Currency | string | yes |
previous_price | Last price | number | yes |
change_pct | Change (%) | number | yes |
compare_at_price | Compare-at price | number | yes |
discount_pct | Off compare-at (%) | number | yes |
in_stock | In stock | boolean | yes |
was_in_stock | In stock last run | boolean | no |
previous_compare_at | Last compare-at price | number | no |
change | Since last run | string | yes |
store_updated_at | Store changed it | datetime | no |
listed_at | Listed | datetime | no |
url | Page | url | yes |
product_id | Product id | string | no |
observed_at | Read at | datetime | no |
score | Score | number | yes |
Example request
# Start the run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/formulas/competitor-price-tracker/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params":{"stores":["allbirds.com","rothys.com"],"asins":["B09GJVTRNZ","B004YAVF8I","B07CMS5Q6P"],"keywords":[],"collection":"","products_per_store":250,"amazon_marketplace":"us","only_changes":false,"max_results":1000},"unit_cap":200}'
# Follow it until it ends, then read its rows, with the id the first call answered
curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID/rows?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start the run, wait for it to end, and get its rows
params = {
"stores": ["allbirds.com", "rothys.com"],
"asins": ["B09GJVTRNZ", "B004YAVF8I", "B07CMS5Q6P"],
"keywords": [],
"collection": "",
"products_per_store": 250,
"amazon_marketplace": "us",
"only_changes": False,
"max_results": 1000,
}
result = client.run_formula("competitor-price-tracker", params, unit_cap=200)
print(result.run.id, result.run.status, result.run.rows_total, result.run.units_spent)
# Read its rows, best first: pages are fetched as you go
for row in result:
print(row.data)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start the run, wait for it to end, and get its rows
const params = {
stores: ["allbirds.com", "rothys.com"],
asins: ["B09GJVTRNZ", "B004YAVF8I", "B07CMS5Q6P"],
keywords: [],
collection: "",
products_per_store: 250,
amazon_marketplace: "us",
only_changes: false,
max_results: 1000,
};
const { run, rows } = await client.runFormula("competitor-price-tracker", params, { unitCap: 200 });
console.log(run.id, run.status, run.rows_total, run.units_spent);
// Read its rows, best first: pages are fetched as you go
for await (const row of rows) console.log(row.data);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
defer cancel()
// Start the run, wait for it to end, and get its rows
params := map[string]any{"stores": []any{"allbirds.com", "rothys.com"}, "asins": []any{"B09GJVTRNZ", "B004YAVF8I", "B07CMS5Q6P"}, "keywords": []any{}, "collection": "", "products_per_store": 250, "amazon_marketplace": "us", "only_changes": false, "max_results": 1000}
run, rows, err := client.RunFormula(ctx, "competitor-price-tracker", params, &enrichednow.RunFormulaParams{UnitCap: 200})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RowsTotal, run.UnitsSpent)
// Read its rows, best first: pages are fetched as you go
for rows.Next() {
fmt.Println(string(rows.Current().Data))
}
if err := rows.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.FormulaResult;
import com.enrichednow.FormulaRunOptions;
import com.enrichednow.models.FormulaRow;
import java.util.List;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start the run, wait for it to end, and get its rows
FormulaResult result = client.runFormula("competitor-price-tracker", Map.of("stores", List.of("allbirds.com", "rothys.com"), "asins", List.of("B09GJVTRNZ", "B004YAVF8I", "B07CMS5Q6P"), "keywords", List.of(), "collection", "", "products_per_store", 250, "amazon_marketplace", "us", "only_changes", false, "max_results", 1000), FormulaRunOptions.builder().unitCap(200).build());
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().rowsTotal() + " " + result.run().unitsSpent());
// Read its rows, best first: pages are fetched as you go
for (FormulaRow row : result.rows()) {
System.out.println(row.data());
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow formulas run competitor-price-tracker --params-json '{"stores":["allbirds.com","rothys.com"],"asins":["B09GJVTRNZ","B004YAVF8I","B07CMS5Q6P"],"keywords":[],"collection":"","products_per_store":250,"amazon_marketplace":"us","only_changes":false,"max_results":1000}' --unit-cap 200Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
{
"name": "run_formula",
"arguments": {
"formula_id": "competitor-price-tracker",
"params": {
"stores": [
"allbirds.com",
"rothys.com"
],
"asins": [
"B09GJVTRNZ",
"B004YAVF8I",
"B07CMS5Q6P"
],
"keywords": [],
"collection": "",
"products_per_store": 250,
"amazon_marketplace": "us",
"only_changes": false,
"max_results": 1000
}
}
}It starts a full run with the answers the sample rows below were made with and the default unit cap, waits for it, and reads its rows a page at a time. The key is read from an environment variable. The MCP tab is the same run asked of an agent connected to the MCP server, which runs a preview first.
Example response
The data of the first 3 rows a real run returned with these answers on 2026-11-24: it ended ok with 503 rows, after 5 scraper calls charged 5 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.
[
{
"store": "allbirds.com",
"product": "Men's Wool Runner NZ Waterproof - Natural Black (Natural Black Sole)",
"product_type": "Shoes",
"brand": "Allbirds",
"price": 105,
"currency": "USD",
"previous_price": null,
"change_pct": null,
"compare_at_price": 150,
"discount_pct": 30,
"in_stock": false,
"was_in_stock": true,
"previous_compare_at": null,
"change": "changed",
"store_updated_at": "2026-11-24T11:15:48-08:00",
"listed_at": "2025-08-29T11:40:33-07:00",
"url": "https://allbirds.com/products/mens-wool-runner-nz-waterproof-natural-black",
"product_id": "7215632482384",
"observed_at": "2026-11-24T19:15:48.711097Z",
"score": 40
},
{
"store": "allbirds.com",
"product": "Women's Cruiser Coastal - Light Anthracite (Medium Gum Sole)",
"product_type": null,
"brand": "Allbirds",
"price": 145,
"currency": "USD",
"previous_price": null,
"change_pct": null,
"compare_at_price": null,
"discount_pct": null,
"in_stock": true,
"was_in_stock": null,
"previous_compare_at": null,
"change": "same",
"store_updated_at": "2026-11-24T11:15:48-08:00",
"listed_at": "2025-12-12T10:50:21-08:00",
"url": "https://allbirds.com/products/womens-cruiser-coastal-light-anthracite-medium-gum-sole",
"product_id": "7264216842320",
"observed_at": "2026-11-24T19:15:48.711097Z",
"score": 0
},
{
"store": "allbirds.com",
"product": "Women's Cruiser Coastal - True Navy (Blizzard Sole)",
"product_type": null,
"brand": "Allbirds",
"price": 145,
"currency": "USD",
"previous_price": null,
"change_pct": null,
"compare_at_price": null,
"discount_pct": null,
"in_stock": true,
"was_in_stock": null,
"previous_compare_at": null,
"change": "same",
"store_updated_at": "2026-11-24T11:15:48-08:00",
"listed_at": "2025-12-12T10:56:20-08:00",
"url": "https://allbirds.com/products/womens-cruiser-coastal-true-navy-blizzard-sole",
"product_id": "7264220971088",
"observed_at": "2026-11-24T19:15:48.711097Z",
"score": 0
}
]Each row also has its id, its score, when it was first seen and its evidence: where each value came from. The run and its rows are described in Running a playbook.
Pricing
A run costs the units of the work it does, and nothing on top: each scraper call it makes is charged at that scraper's rate, when the call ends ok or partial. It never spends past its unit cap: 200 units unless you give another (at least 1, at most 2000).
With the answers above, a run is estimated at about 5 units for about 503 rows, and at most 5: 5 searches across 2 sources, about 503 rows. An estimate for no history; POST /v1/formulas/competitor-price-tracker/estimate gives yours, free.
A preview, mode: preview, is the first 10 rows, charged at what they cost: about 5 units with the answers above. POST /v1/formulas/competitor-price-tracker/estimate with mode: preview gives yours, free.
How a playbook is charged has the rule for every playbook.