Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    PlaybooksE-commerce

    Reverse Sourcing

    Products that sell on Amazon for more than Target, Best Buy, Newegg or Walmart charge, with profit and ROI after your fees.

    Id
    reverse-sourcing
    Version
    1.0.0
    Category
    E-commerce
    Status
    Live
    Saved, it runs
    daily, weekly
    Unit cap
    200 by default, 1 to 3000

    Takes Amazon products (by ASIN or an Amazon search) and finds the same product at US retailers, or, with the forward scan, takes a retailer's search and finds each product on Amazon. Each pair is matched by brand and model where it can be, and otherwise by title, with a confidence; a title match is marked for review. The margin is Amazon's price less your referral fee and fulfilment cost less the retailer's price, with the return on cost, and only pairs above your minimum are kept, best return first. Amazon's own offer is flagged, since competing with it rarely pays.

    Use when an Amazon seller wants products to buy at US retailers and sell on Amazon at a profit (online arbitrage), from Amazon products or a retailer's search.

    Run it with POST /v1/formulas/reverse-sourcing/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 ReverseSourcingParams.

    Parameters of Reverse Sourcing
    ParameterTypeRequired or defaultWhat it is
    modeBasicsstring"reverse"Start from. reverse starts from Amazon products and looks for them at the retailers; forward starts from the retailers' search and looks for each product on Amazon.One of reverse, forward.
    asinsBasicslist of strings[]Amazon products. For reverse, the ASINs to source. Leave empty to search Amazon for the words below instead.up to 50.
    queriesBasicslist of stringsrequiredSearch words. Searched on Amazon (reverse, without ASINs) or on each retailer (forward), such as lego duplo or air fryer.up to 10, each up to 120 characters.
    retailersBasicslist of strings["target","bestbuy"]Retailers. Where to buy. Walmart often answers automated visits with a check, so its products may be missing from a run.One of target, bestbuy, newegg, walmart.1 or more.
    referral_fee_pctFiltersnumber15Amazon referral fee (%). The share of the sale price Amazon keeps; 15% in most categories, 8% in some.at least 0, at most 50.
    fulfilment_costFiltersnumber5Fulfilment and shipping a unit (USD). Your FBA fee, prep and inbound shipping for one unit.at least 0, at most 100.
    min_roi_pctFiltersnumber15Least return on cost (%). Profit as a share of the retailer's price.at least -100, at most 1000.
    min_profitFiltersnumber2Least profit a unit (USD). Profit after the referral fee and fulfilment cost.at least -1000.
    bestbuy_sortFiltersstring"best_match"Best Buy order. For forward, the order of Best Buy's results; best_discount reads its deepest reductions first.One of best_match, best_discount, best_selling.
    candidates_per_retailerFiltersinteger2Results compared per search. How many search results are checked against each product.at least 1, at most 5.
    amazon_resultsFiltersinteger10Amazon products per search. For reverse without ASINs, how many products of each Amazon search are sourced.at least 1, at most 48.
    retailer_resultsFiltersinteger12Retailer products per search. For forward, how many products of each retailer search are looked up on Amazon.at least 1, at most 48.
    max_resultsOutputinteger100Most rows. The run stops at this many pairs, best return 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.

    Toys, from Amazon's search toys-reverse

    JSON
    {
      "mode": "reverse",
      "queries": [
        "lego duplo"
      ],
      "retailers": [
        "target",
        "bestbuy"
      ]
    }

    Forward scan of Best Buy's reductions forward-scan

    JSON
    {
      "mode": "forward",
      "queries": [
        "headphones",
        "smart home",
        "lego"
      ],
      "retailers": [
        "bestbuy"
      ],
      "bestbuy_sort": "best_discount",
      "retailer_results": 24
    }

    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.

    Columns of Reverse Sourcing
    ColumnLabelTypeShown by default
    amazon_titleAmazon productstringyes
    asinASINstringyes
    amazon_priceAmazon price (USD)numberyes
    amazon_reviewsAmazon reviewsintegeryes
    amazon_ratingAmazon ratingnumberno
    amazon_sells_itAmazon sells itbooleanno
    retailerBuy atstringyes
    retailer_titleRetailer productstringyes
    retailer_priceBuy price (USD)numberyes
    profitProfit a unit (USD)numberyes
    roi_pctReturn on cost (%)numberyes
    match_methodMatched bystringyes
    match_confidenceMatch confidencenumberyes
    needs_reviewNeeds reviewbooleanyes
    amazon_urlAmazon pageurlyes
    retailer_urlRetailer pageurlyes
    scoreScorenumberyes

    Example request

    # Start the run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/formulas/reverse-sourcing/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"params":{"mode":"forward","queries":["headphones","smart home","lego"],"retailers":["bestbuy"],"bestbuy_sort":"best_discount","retailer_results":24,"asins":[],"referral_fee_pct":15,"fulfilment_cost":5,"min_roi_pct":15,"min_profit":2,"candidates_per_retailer":2,"amazon_results":10,"max_results":100},"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 = {
        "mode": "forward",
        "queries": ["headphones", "smart home", "lego"],
        "retailers": ["bestbuy"],
        "bestbuy_sort": "best_discount",
        "retailer_results": 24,
        "asins": [],
        "referral_fee_pct": 15,
        "fulfilment_cost": 5,
        "min_roi_pct": 15,
        "min_profit": 2,
        "candidates_per_retailer": 2,
        "amazon_results": 10,
        "max_results": 100,
    }
    result = client.run_formula("reverse-sourcing", 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 = {
      mode: "forward",
      queries: ["headphones", "smart home", "lego"],
      retailers: ["bestbuy"],
      bestbuy_sort: "best_discount",
      retailer_results: 24,
      asins: [],
      referral_fee_pct: 15,
      fulfilment_cost: 5,
      min_roi_pct: 15,
      min_profit: 2,
      candidates_per_retailer: 2,
      amazon_results: 10,
      max_results: 100,
    };
    const { run, rows } = await client.runFormula("reverse-sourcing", 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{"mode": "forward", "queries": []any{"headphones", "smart home", "lego"}, "retailers": []any{"bestbuy"}, "bestbuy_sort": "best_discount", "retailer_results": 24, "asins": []any{}, "referral_fee_pct": 15, "fulfilment_cost": 5, "min_roi_pct": 15, "min_profit": 2, "candidates_per_retailer": 2, "amazon_results": 10, "max_results": 100}
    	run, rows, err := client.RunFormula(ctx, "reverse-sourcing", 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.fasterxml.jackson.databind.ObjectMapper;
    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.FormulaResult;
    import com.enrichednow.FormulaRunOptions;
    import com.enrichednow.models.FormulaRow;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) throws Exception {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start the run, wait for it to end, and get its rows
            FormulaResult result = client.runFormula("reverse-sourcing", new ObjectMapper().readValue("{\"mode\":\"forward\",\"queries\":[\"headphones\",\"smart home\",\"lego\"],\"retailers\":[\"bestbuy\"],\"bestbuy_sort\":\"best_discount\",\"retailer_results\":24,\"asins\":[],\"referral_fee_pct\":15,\"fulfilment_cost\":5,\"min_roi_pct\":15,\"min_profit\":2,\"candidates_per_retailer\":2,\"amazon_results\":10,\"max_results\":100}", Map.class), 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 reverse-sourcing --params-json '{"mode":"forward","queries":["headphones","smart home","lego"],"retailers":["bestbuy"],"bestbuy_sort":"best_discount","retailer_results":24,"asins":[],"referral_fee_pct":15,"fulfilment_cost":5,"min_roi_pct":15,"min_profit":2,"candidates_per_retailer":2,"amazon_results":10,"max_results":100}' --unit-cap 200

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    {
      "name": "run_formula",
      "arguments": {
        "formula_id": "reverse-sourcing",
        "params": {
          "mode": "forward",
          "queries": [
            "headphones",
            "smart home",
            "lego"
          ],
          "retailers": [
            "bestbuy"
          ],
          "bestbuy_sort": "best_discount",
          "retailer_results": 24,
          "asins": [],
          "referral_fee_pct": 15,
          "fulfilment_cost": 5,
          "min_roi_pct": 15,
          "min_profit": 2,
          "candidates_per_retailer": 2,
          "amazon_results": 10,
          "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 5 rows, after 57 scraper calls charged 57 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.

    JSON
    [
      {
        "amazon_title": "Super Mario LEGO Super Mario Adventures with Interactive Luigi 71440",
        "asin": "B0CV27VY6L",
        "amazon_price": 49.99,
        "amazon_reviews": 1219,
        "amazon_rating": 4.9,
        "amazon_sells_it": false,
        "retailer": "Best Buy",
        "retailer_title": "LEGO - Super Mario Adventures with Interactive Luigi Toy, Nintendo Gift 71440",
        "retailer_price": 20.99,
        "profit": 16.5,
        "roi_pct": 78.6,
        "match_method": "brand_model",
        "match_confidence": 0.85,
        "needs_review": false,
        "amazon_url": "https://www.amazon.com/dp/B0CV27VY6L",
        "retailer_url": "https://www.bestbuy.com/product/lego-super-mario-adventures-with-interactive-luigi-toy-nintendo-gift-71440/JXPLL2HCCF/sku/6582456",
        "score": 85
      },
      {
        "amazon_title": "Friends Fun Indoor Playground 42686",
        "asin": "B0FMS5W9HT",
        "amazon_price": 51.99,
        "amazon_reviews": 27,
        "amazon_rating": 4.9,
        "amazon_sells_it": false,
        "retailer": "Best Buy",
        "retailer_title": "LEGO - Friends Fun Indoor Playground Kids Toy 42686",
        "retailer_price": 21.99,
        "profit": 17.2,
        "roi_pct": 78.2,
        "match_method": "brand_model",
        "match_confidence": 0.85,
        "needs_review": false,
        "amazon_url": "https://www.amazon.com/dp/B0FMS5W9HT",
        "retailer_url": "https://www.bestbuy.com/product/lego-friends-fun-indoor-playground-kids-toy-42686/JXPLL2TZFZ/sku/6648231",
        "score": 70
      },
      {
        "amazon_title": "Marvel Spider-Man vs. Doc Ock Subway Train Scene 76321",
        "asin": "B0DRW735TS",
        "amazon_price": 54.97,
        "amazon_reviews": 1026,
        "amazon_rating": 4.9,
        "amazon_sells_it": false,
        "retailer": "Best Buy",
        "retailer_title": "LEGO - Marvel Spider-Man vs. Doc Ock Subway Train Scene 76321",
        "retailer_price": 32.99,
        "profit": 8.73,
        "roi_pct": 26.5,
        "match_method": "brand_model",
        "match_confidence": 0.85,
        "needs_review": false,
        "amazon_url": "https://www.amazon.com/dp/B0DRW735TS",
        "retailer_url": "https://www.bestbuy.com/product/lego-marvel-spider-man-vs-doc-ock-subway-train-scene-76321/JXPLL2T788/sku/6628882",
        "score": 55
      }
    ]

    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 3000).

    With the answers above, a run is estimated at about 57 units for about 5 rows, and at most 75: 57 searches across 2 sources, about 5 rows. An estimate for no history; POST /v1/formulas/reverse-sourcing/estimate gives yours, free.

    A preview, mode: preview, is the first 10 rows, charged at what they cost: about 57 units with the answers above. POST /v1/formulas/reverse-sourcing/estimate with mode: preview gives yours, free.

    How a playbook is charged has the rule for every playbook.