PlaybooksOther
Used-Car Arbitrage
Copart lots selling well below what the same make, model and year fetch at retail near you, ranked by the spread, with bid moves.
- Id
used-car-arbitrage- Version
- 1.0.0
- Category
- Other
- Status
- Beta: it works, and may still change in a minor version
- Saved, it runs
- hourly, daily, weekdays
- Unit cap
- 200 by default, 1 to 1000
Searches Copart's US lots of the make, models and years you buy, and the lots you watch, keeps those that fit your rules (yard states, mileage, title, runs and drives, damage), and prices each against retail listings of the same make, model and model year near your ZIP code on CarGurus and AutoTrader: the median asking price of the cars with a mileage close to the lot's (a lot with too few such cars is left out, unless you choose to price it on every mileage). Cars that can never be titled for the road again are left out too. The spread is that median less the lot's buy-it-now price, or its current bid when it has none. A bid made before the sale is not the price the lot will sell for, so lots with a buy-it-now price come first, then lots whose bid is already a fair share of the retail median, and lots with an early, small bid last; lots selling today or bid under $1,000 are left out unless you ask for them. It compares like with like by make, model, year and mileage; it is not a valuation of the lot's VIN, and repair costs, damage and title are yours to judge. A saved playbook reports new lots and lots whose bid, buy-it-now price or sale date changed, with the bid before.
Use when a car dealer or flipper wants Copart lots that sell well below retail for the same car, and to hear when bids move.
Run it with POST /v1/formulas/used-car-arbitrage/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 UsedCarArbitrageParams.
| Parameter | Type | Required or default | What it is |
|---|---|---|---|
makeBasics | string | required | Make. The make, such as Toyota or Ford.up to 40 characters. |
modelsBasics | list of strings | required | Models. The models of that make, named as Copart names them, such as Camry or RAV4.1 or more, up to 10, each up to 40 characters. |
yearsBasics | object (min, max) | {"min":2018,"max":2022} | Model years. The model years to search. Each year of each model is one search for retail comparables. |
zipBasics | string | required | Your ZIP code. Where you would sell the cars. Retail comparables are the listings around it. |
watch_lotsFilters | list of strings | [] | Lots to watch. Copart lot numbers or lot pages you follow, read on every run whether or not a search finds them.up to 50, each up to 500 characters. |
statesFilters | list of strings | [] | Yard states. Two-letter codes of the states whose yards you buy from, such as TX. Leave empty for all.up to 60. |
max_odometerFilters | integer | 0 | Most miles. Lots with more miles on the odometer are left out. 0 for any mileage.at least 0, at most 500000. |
exclude_titlesFilters | list of strings | ["NON-REPAIRABLE","DESTRUCTION","SCRAP","JUNK","PARTS ONLY"] | Leave out titles. Words of the titles to leave out. By default the cars that can never be titled for the road again, which no retail price fits.up to 20, each up to 40 characters. |
clean_title_onlyFilters | boolean | false | Clean titles only. Leaves out salvage and other branded titles. |
runs_and_drives_onlyFilters | boolean | false | Runs and drives only. Keeps the lots Copart marks as running and driving. |
exclude_damageFilters | list of strings | [] | Leave out damage. Words of the main damage to leave out, such as FLOOD, BURN or ALL OVER.up to 20, each up to 40 characters. |
min_bidFilters | integer | 1000 | Least current bid ($). Leaves out lots whose bidding has barely begun, whose spread on a first small bid says little. A lot with a buy-it-now price is kept. 0 keeps every lot.at least 0, at most 100000. |
serious_bid_pctFilters | integer | 25 | A bid that counts (% of retail). A lot whose current bid is under this share of its retail median ranks after the others, since bidding usually goes well past it. A buy-it-now price always counts.at least 0, at most 90. |
include_sale_dayFilters | boolean | false | Include lots selling today. Lots whose sale is on the day of the run, which may be over when the rows arrive. Days are whole calendar days (UTC). A lot you watch is kept on its sale day. |
lots_per_modelFilters | integer | 100 | Lots read per model. How many of Copart's lots to read for each model, the soonest sales first.One of 20, 50, 100. |
min_spreadFilters | integer | 2000 | Least spread ($). Lots whose retail median is less than this above their price are left out.at least 0, at most 100000. |
comp_sourcesEnrichment | list of strings | ["cargurus","autotrader"] | Retail comparables from. The sites whose dealer listings price each lot. A car listed on both counts once.One of cargurus, autotrader.1 or more. |
radiusEnrichment | integer | 100 | Comparables within (miles). How far from your ZIP code a retail listing may be.One of 25, 50, 75, 100, 200, 500. |
mileage_bandEnrichment | integer | 30000 | Similar mileage (miles either way). Comparables within this many miles of the lot's odometer are preferred. 0 compares every mileage.at least 0, at most 100000. |
any_mileage_fallbackEnrichment | boolean | false | Price on any mileage when few are similar. When too few comparables have a similar mileage, price the lot on every mileage instead of leaving it out. A lot with far more miles than most listings then looks better than it is. |
min_compsEnrichment | integer | 3 | Least comparables. A lot priced on fewer retail listings than this is left out.at least 1, at most 20. |
comp_searchesEnrichment | integer | 40 | Comparables searches. The most retail searches for each site, one for each make, model and year found.at least 1, at most 100. |
max_resultsOutput | integer | 200 | Most rows. The run stops at this many lots, widest spread first.at least 1, at most 2000. |
Presets
Ready-made answers to start from: give them as params, with any of your own beside them.
Toyota Camry, Corolla and RAV4 (Houston) toyota-houston
{
"make": "Toyota",
"models": [
"Camry",
"Corolla",
"RAV4"
],
"zip": "77073"
}Honda Civic, Accord and CR-V (Atlanta) honda-atlanta
{
"make": "Honda",
"models": [
"Civic",
"Accord",
"CR-V"
],
"zip": "30303"
}Clean titles that run and drive clean-runners
{
"clean_title_only": true,
"runs_and_drives_only": true,
"exclude_damage": [
"FLOOD",
"BURN",
"ALL OVER"
]
}Texas yards texas-yards
{
"states": [
"TX"
]
}Today's sales too, every bid todays-sales-too
{
"include_sale_day": true,
"min_bid": 0
}Under 80,000 miles, close mileage comparables low-miles
{
"max_odometer": 80000,
"mileage_band": 20000
}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 |
|---|---|---|---|
vehicle | Vehicle | string | yes |
lot_number | Lot | string | yes |
year | Year | integer | no |
model | Model | string | no |
trim | Trim | string | no |
odometer | Miles | number | yes |
odometer_status | Odometer | string | no |
damage | Damage | string | yes |
secondary_damage | Other damage | string | no |
title | Title | string | yes |
condition | Condition | string | yes |
has_keys | Keys | boolean | no |
current_bid | Current bid (before the sale) | number | yes |
buy_it_now | Buy it now | number | yes |
retail_median | Retail median | number | yes |
spread | Spread at today's price | number | yes |
spread_pct | Spread (%) | number | yes |
priced_on | Price used | string | yes |
comparables | Comparables | integer | yes |
comparables_basis | Compared on | string | yes |
retail_low | Lowest retail | number | no |
retail_high | Highest retail | number | no |
copart_estimate | Copart's retail estimate | number | no |
sale_status | Sale | string | no |
auction_date | Auction | datetime | yes |
yard | Yard | string | yes |
change | Change | string | yes |
bid_before | Bid before | number | yes |
vin | VIN (partly hidden) | string | no |
link | Lot page | url | yes |
score | Score | number | no |
Example request
# Start the run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/formulas/used-car-arbitrage/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params":{"make":"Toyota","models":["Camry","Corolla","RAV4"],"zip":"77073","years":{"min":2018,"max":2022},"watch_lots":[],"states":[],"max_odometer":0,"exclude_titles":["NON-REPAIRABLE","DESTRUCTION","SCRAP","JUNK","PARTS ONLY"],"clean_title_only":false,"runs_and_drives_only":false,"exclude_damage":[],"min_bid":1000,"serious_bid_pct":25,"include_sale_day":false,"lots_per_model":100,"min_spread":2000,"comp_sources":["cargurus","autotrader"],"radius":100,"mileage_band":30000,"any_mileage_fallback":false,"min_comps":3,"comp_searches":40,"max_results":200},"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 = {
"make": "Toyota",
"models": ["Camry", "Corolla", "RAV4"],
"zip": "77073",
"years": {"min": 2018, "max": 2022},
"watch_lots": [],
"states": [],
"max_odometer": 0,
"exclude_titles": [
"NON-REPAIRABLE",
"DESTRUCTION",
"SCRAP",
"JUNK",
"PARTS ONLY",
],
"clean_title_only": False,
"runs_and_drives_only": False,
"exclude_damage": [],
"min_bid": 1000,
"serious_bid_pct": 25,
"include_sale_day": False,
"lots_per_model": 100,
"min_spread": 2000,
"comp_sources": ["cargurus", "autotrader"],
"radius": 100,
"mileage_band": 30000,
"any_mileage_fallback": False,
"min_comps": 3,
"comp_searches": 40,
"max_results": 200,
}
result = client.run_formula("used-car-arbitrage", 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 = {
make: "Toyota",
models: ["Camry", "Corolla", "RAV4"],
zip: "77073",
years: { min: 2018, max: 2022 },
watch_lots: [],
states: [],
max_odometer: 0,
exclude_titles: [
"NON-REPAIRABLE",
"DESTRUCTION",
"SCRAP",
"JUNK",
"PARTS ONLY",
],
clean_title_only: false,
runs_and_drives_only: false,
exclude_damage: [],
min_bid: 1000,
serious_bid_pct: 25,
include_sale_day: false,
lots_per_model: 100,
min_spread: 2000,
comp_sources: ["cargurus", "autotrader"],
radius: 100,
mileage_band: 30000,
any_mileage_fallback: false,
min_comps: 3,
comp_searches: 40,
max_results: 200,
};
const { run, rows } = await client.runFormula("used-car-arbitrage", 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{"make": "Toyota", "models": []any{"Camry", "Corolla", "RAV4"}, "zip": "77073", "years": map[string]any{"min": 2018, "max": 2022}, "watch_lots": []any{}, "states": []any{}, "max_odometer": 0, "exclude_titles": []any{"NON-REPAIRABLE", "DESTRUCTION", "SCRAP", "JUNK", "PARTS ONLY"}, "clean_title_only": false, "runs_and_drives_only": false, "exclude_damage": []any{}, "min_bid": 1000, "serious_bid_pct": 25, "include_sale_day": false, "lots_per_model": 100, "min_spread": 2000, "comp_sources": []any{"cargurus", "autotrader"}, "radius": 100, "mileage_band": 30000, "any_mileage_fallback": false, "min_comps": 3, "comp_searches": 40, "max_results": 200}
run, rows, err := client.RunFormula(ctx, "used-car-arbitrage", 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("used-car-arbitrage", new ObjectMapper().readValue("{\"make\":\"Toyota\",\"models\":[\"Camry\",\"Corolla\",\"RAV4\"],\"zip\":\"77073\",\"years\":{\"min\":2018,\"max\":2022},\"watch_lots\":[],\"states\":[],\"max_odometer\":0,\"exclude_titles\":[\"NON-REPAIRABLE\",\"DESTRUCTION\",\"SCRAP\",\"JUNK\",\"PARTS ONLY\"],\"clean_title_only\":false,\"runs_and_drives_only\":false,\"exclude_damage\":[],\"min_bid\":1000,\"serious_bid_pct\":25,\"include_sale_day\":false,\"lots_per_model\":100,\"min_spread\":2000,\"comp_sources\":[\"cargurus\",\"autotrader\"],\"radius\":100,\"mileage_band\":30000,\"any_mileage_fallback\":false,\"min_comps\":3,\"comp_searches\":40,\"max_results\":200}", 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 used-car-arbitrage --params-json '{"make":"Toyota","models":["Camry","Corolla","RAV4"],"zip":"77073","years":{"min":2018,"max":2022},"watch_lots":[],"states":[],"max_odometer":0,"exclude_titles":["NON-REPAIRABLE","DESTRUCTION","SCRAP","JUNK","PARTS ONLY"],"clean_title_only":false,"runs_and_drives_only":false,"exclude_damage":[],"min_bid":1000,"serious_bid_pct":25,"include_sale_day":false,"lots_per_model":100,"min_spread":2000,"comp_sources":["cargurus","autotrader"],"radius":100,"mileage_band":30000,"any_mileage_fallback":false,"min_comps":3,"comp_searches":40,"max_results":200}' --unit-cap 200Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
{
"name": "run_formula",
"arguments": {
"formula_id": "used-car-arbitrage",
"params": {
"make": "Toyota",
"models": [
"Camry",
"Corolla",
"RAV4"
],
"zip": "77073",
"years": {
"min": 2018,
"max": 2022
},
"watch_lots": [],
"states": [],
"max_odometer": 0,
"exclude_titles": [
"NON-REPAIRABLE",
"DESTRUCTION",
"SCRAP",
"JUNK",
"PARTS ONLY"
],
"clean_title_only": false,
"runs_and_drives_only": false,
"exclude_damage": [],
"min_bid": 1000,
"serious_bid_pct": 25,
"include_sale_day": false,
"lots_per_model": 100,
"min_spread": 2000,
"comp_sources": [
"cargurus",
"autotrader"
],
"radius": 100,
"mileage_band": 30000,
"any_mileage_fallback": false,
"min_comps": 3,
"comp_searches": 40,
"max_results": 200
}
}
}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 25 rows, after 31 scraper calls charged 31 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.
[
{
"vehicle": "2021 TOYOTA RAV4 XLE PREMIUM",
"lot_number": "71694496",
"year": 2021,
"model": "RAV4",
"trim": "XLE PREMIUM",
"odometer": 54714,
"odometer_status": "ACTUAL",
"damage": "FRONT END",
"secondary_damage": "SIDE",
"title": "SALVAGE TITLE",
"condition": "ENHANCED VEHICLES",
"has_keys": true,
"current_bid": 0,
"buy_it_now": 9200,
"retail_median": 25500,
"spread": 16300,
"spread_pct": 63.9,
"priced_on": "Buy-it-now price",
"comparables": 24,
"comparables_basis": "Similar mileage",
"retail_low": 14498,
"retail_high": 34026,
"copart_estimate": 29192,
"sale_status": "Minimum Bid",
"auction_date": "2026-11-25T15:00:00Z",
"yard": "WEST MIFFLIN, PA",
"change": "New",
"bid_before": null,
"vin": "2T3A1RFV8MC******",
"link": "https://www.copart.com/lot/71694496/salvage-2021-toyota-rav4-xle-premium-pa-pittsburgh-west",
"score": 70
},
{
"vehicle": "2021 TOYOTA CAMRY SE",
"lot_number": "71503786",
"year": 2021,
"model": "CAMRY",
"trim": "SE",
"odometer": 60914,
"odometer_status": "ACTUAL",
"damage": "FRONT END",
"secondary_damage": null,
"title": "CLEAN TITLE",
"condition": "ENHANCED VEHICLES",
"has_keys": true,
"current_bid": 7200,
"buy_it_now": 7500,
"retail_median": 22765,
"spread": 15265,
"spread_pct": 67.1,
"priced_on": "Buy-it-now price",
"comparables": 15,
"comparables_basis": "Similar mileage",
"retail_low": 10995,
"retail_high": 30975,
"copart_estimate": null,
"sale_status": "Minimum Bid",
"auction_date": "2026-11-25T02:00:00Z",
"yard": "COLUMBUS, OH",
"change": "New",
"bid_before": null,
"vin": "4T1G11AK5MU******",
"link": "https://www.copart.com/lot/71503786/clean-title-2021-toyota-camry-se-oh-columbus",
"score": 85
},
{
"vehicle": "2022 TOYOTA CAMRY SE",
"lot_number": "69410516",
"year": 2022,
"model": "CAMRY",
"trim": "SE",
"odometer": 91470,
"odometer_status": "ACTUAL",
"damage": "REAR END",
"secondary_damage": null,
"title": "SALVAGE TITLE",
"condition": "RUNS AND DRIVES",
"has_keys": true,
"current_bid": 0,
"buy_it_now": 6800,
"retail_median": 21495,
"spread": 14695,
"spread_pct": 68.4,
"priced_on": "Buy-it-now price",
"comparables": 15,
"comparables_basis": "Similar mileage",
"retail_low": 12488,
"retail_high": 30149,
"copart_estimate": 16540,
"sale_status": "Minimum Bid",
"auction_date": "2026-11-25T15:00:00Z",
"yard": "WEST MIFFLIN, PA",
"change": "New",
"bid_before": null,
"vin": "4T1G11AK7NU******",
"link": "https://www.copart.com/lot/69410516/salvage-2022-toyota-camry-se-pa-pittsburgh-west",
"score": 80
}
]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 1000).
With the answers above, a run is estimated at about 31 units for about 25 rows, and at most 83: 31 searches across 3 sources, about 25 rows. An estimate for no history; POST /v1/formulas/used-car-arbitrage/estimate gives yours, free.
A preview, mode: preview, is the first 10 rows, charged at what they cost: about 31 units with the answers above. POST /v1/formulas/used-car-arbitrage/estimate with mode: preview gives yours, free.
How a playbook is charged has the rule for every playbook.