PlaybooksE-commerce
Amazon Marketplace Flips (Europe)
Products cheaper on one European Amazon than another, by the same ASIN, with the price gap and margin in euros.
- Id
marketplace-flips- Version
- 1.0.0
- Category
- E-commerce
- Status
- Live
- Saved, it runs
- daily, weekly
- Unit cap
- 300 by default, 1 to 3000
Reads products on the Amazon marketplace you buy from (by ASIN or a search) and reads the same ASIN on the euro marketplaces you sell on: Germany, France, Italy, Spain and the Netherlands. Each pair shows both prices, the gap and the margin after your referral fee and fulfilment cost, and whether the product is in stock on the selling side. Only prices in the same currency are compared, so every figure is in euros.
Use when an Amazon seller wants products priced lower on one European Amazon marketplace than another, for cross-marketplace arbitrage within the euro area.
Run it with POST /v1/formulas/marketplace-flips/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 MarketplaceFlipsParams.
| Parameter | Type | Required or default | What it is |
|---|---|---|---|
buy_marketplaceBasics | string | "de" | Buy on. The Amazon you buy from (amazon.de, .it, .es or .nl).One of de, it, es, nl. |
sell_marketplacesBasics | list of strings | ["fr","it","es"] | Sell on. The Amazons whose price is compared. The one you buy on is skipped.One of de, fr, it, es, nl.1 or more. |
queriesBasics | list of strings | required | Search words. Searched on the Amazon you buy from, such as lego technic. Not needed when ASINs are given.up to 10, each up to 120 characters. |
asinsBasics | list of strings | [] | ASINs. Products to compare, instead of a search.up to 50. |
min_gap_pctFilters | number | 15 | Least price gap (%). The selling price above the buying price, as a share of the buying price.at least 0, at most 500. |
referral_fee_pctFilters | number | 15 | Referral fee (%). The share of the sale price Amazon keeps.at least 0, at most 50. |
fulfilment_costFilters | number | 4 | Fulfilment and shipping a unit (EUR). Your fulfilment fee and the cost of moving a unit between countries.at least 0, at most 100. |
results_per_searchFilters | integer | 15 | Products per search. How many products of each search are compared.at least 1, at most 48. |
max_resultsOutput | integer | 100 | Most rows. The run stops at this many pairs, widest gap first.at least 1, at most 1000. |
Presets
Ready-made answers to start from: give them as params, with any of your own beside them.
Buy in Germany, sell in France, Italy and Spain germany-to-south
{
"buy_marketplace": "de",
"sell_marketplaces": [
"fr",
"it",
"es"
],
"queries": [
"lego technic",
"playmobil"
]
}Buy in Spain, sell in Germany spain-to-germany
{
"buy_marketplace": "es",
"sell_marketplaces": [
"de"
],
"queries": [
"lego"
]
}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 |
|---|---|---|---|
asin | ASIN | string | yes |
title | Product | string | yes |
buy_on | Buy on | string | yes |
buy_price | Buy price | number | yes |
sell_on | Sell on | string | yes |
sell_price | Sell price | number | yes |
currency | Currency | string | yes |
gap_pct | Price gap (%) | number | yes |
profit | Profit a unit | number | yes |
sell_in_stock | In stock where sold | boolean | yes |
sell_seller | Seller where sold | string | no |
sell_reviews | Reviews where sold | integer | no |
sell_title | Title where sold | string | no |
match_method | Matched by | string | yes |
match_confidence | Match confidence | number | yes |
buy_url | Buy page | url | yes |
sell_url | Sell page | url | yes |
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/marketplace-flips/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params":{"buy_marketplace":"de","sell_marketplaces":["fr","it","es"],"queries":["lego technic","playmobil"],"asins":[],"min_gap_pct":15,"referral_fee_pct":15,"fulfilment_cost":4,"results_per_search":15,"max_results":100},"unit_cap":300}'
# 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 = {
"buy_marketplace": "de",
"sell_marketplaces": ["fr", "it", "es"],
"queries": ["lego technic", "playmobil"],
"asins": [],
"min_gap_pct": 15,
"referral_fee_pct": 15,
"fulfilment_cost": 4,
"results_per_search": 15,
"max_results": 100,
}
result = client.run_formula("marketplace-flips", params, unit_cap=300)
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 = {
buy_marketplace: "de",
sell_marketplaces: ["fr", "it", "es"],
queries: ["lego technic", "playmobil"],
asins: [],
min_gap_pct: 15,
referral_fee_pct: 15,
fulfilment_cost: 4,
results_per_search: 15,
max_results: 100,
};
const { run, rows } = await client.runFormula("marketplace-flips", params, { unitCap: 300 });
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{"buy_marketplace": "de", "sell_marketplaces": []any{"fr", "it", "es"}, "queries": []any{"lego technic", "playmobil"}, "asins": []any{}, "min_gap_pct": 15, "referral_fee_pct": 15, "fulfilment_cost": 4, "results_per_search": 15, "max_results": 100}
run, rows, err := client.RunFormula(ctx, "marketplace-flips", params, &enrichednow.RunFormulaParams{UnitCap: 300})
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("marketplace-flips", Map.of("buy_marketplace", "de", "sell_marketplaces", List.of("fr", "it", "es"), "queries", List.of("lego technic", "playmobil"), "asins", List.of(), "min_gap_pct", 15, "referral_fee_pct", 15, "fulfilment_cost", 4, "results_per_search", 15, "max_results", 100), FormulaRunOptions.builder().unitCap(300).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 marketplace-flips --params-json '{"buy_marketplace":"de","sell_marketplaces":["fr","it","es"],"queries":["lego technic","playmobil"],"asins":[],"min_gap_pct":15,"referral_fee_pct":15,"fulfilment_cost":4,"results_per_search":15,"max_results":100}' --unit-cap 300Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
{
"name": "run_formula",
"arguments": {
"formula_id": "marketplace-flips",
"params": {
"buy_marketplace": "de",
"sell_marketplaces": [
"fr",
"it",
"es"
],
"queries": [
"lego technic",
"playmobil"
],
"asins": [],
"min_gap_pct": 15,
"referral_fee_pct": 15,
"fulfilment_cost": 4,
"results_per_search": 15,
"max_results": 100
}
}
}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 62 rows, after 92 scraper calls charged 92 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.
[
{
"asin": "B07P581CK8",
"title": "PLAYMOBIL Dollhouse 70205 Mein Großes Puppenhaus, Mit funktionsfähiger Türklingel, Ab 4 Jahren",
"buy_on": "amazon.de",
"buy_price": 89.99,
"sell_on": "amazon.es",
"sell_price": 159.99,
"currency": "EUR",
"gap_pct": 77.8,
"profit": 42,
"sell_in_stock": true,
"sell_seller": "Amazon",
"sell_reviews": 4667,
"sell_title": "PLAYMOBIL Dollhouse 70205 Casa de Muñecas, con Timbre Real, A partir de 4 años",
"match_method": "asin",
"match_confidence": 0.95,
"buy_url": "https://www.amazon.de/dp/B07P581CK8",
"sell_url": "https://www.amazon.es/dp/B07P581CK8",
"score": 90
},
{
"asin": "B0CWH3TBGB",
"title": "LEGO Technic McLaren P1 42172",
"buy_on": "amazon.de",
"buy_price": 286.99,
"sell_on": "amazon.es",
"sell_price": 375.99,
"currency": "EUR",
"gap_pct": 31,
"profit": 28.6,
"sell_in_stock": true,
"sell_seller": "Todo En-Caja",
"sell_reviews": 1021,
"sell_title": "LEGO Technic McLaren P1 42172",
"match_method": "asin",
"match_confidence": 0.95,
"buy_url": "https://www.amazon.de/dp/B0CWH3TBGB",
"sell_url": "https://www.amazon.es/dp/B0CWH3TBGB",
"score": 80
},
{
"asin": "B0CWH3TBGB",
"title": "LEGO Technic McLaren P1 42172",
"buy_on": "amazon.de",
"buy_price": 286.99,
"sell_on": "amazon.it",
"sell_price": 372.38,
"currency": "EUR",
"gap_pct": 29.8,
"profit": 25.53,
"sell_in_stock": true,
"sell_seller": "Amazon",
"sell_reviews": 1021,
"sell_title": "LEGO Technic McLaren P1 - 42172",
"match_method": "asin",
"match_confidence": 0.95,
"buy_url": "https://www.amazon.de/dp/B0CWH3TBGB",
"sell_url": "https://www.amazon.it/dp/B0CWH3TBGB",
"score": 60
}
]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: 300 units unless you give another (at least 1, at most 3000).
With the answers above, a run is estimated at about 92 units for about 62 rows, and at most 92: 2 searches and 90 lookups across 2 sources, about 62 rows. An estimate for no history; POST /v1/formulas/marketplace-flips/estimate gives yours, free.
A preview, mode: preview, is the first 10 rows, charged at what they cost: about 92 units with the answers above. POST /v1/formulas/marketplace-flips/estimate with mode: preview gives yours, free.
How a playbook is charged has the rule for every playbook.