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.
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.
A playbook is a search you would otherwise run by hand, done for you. Answer 4 questions and get one clean list; run it once, or keep it running daily. The first 1,000 units each month are free.
- For
- Used car dealer, Car flipper and more
- Runs
- Once, hourly, daily and weekdays
- A run
- about 31 units
- Stops at
- 200 units, or your cap
- Rows
- up to 2,000
- Contacts
- not needed
You ask
- Make
- Toyota
- Models
- Camry, Corolla, RAV4
- Model years
- 2,018 to 2,022
- Your ZIP code
- 77073
What it did
- Searched Copart, CarGurus and Autotrader
- duplicates removed
- compared with the last run
- 20rows, best first
It brings back20 rows, best first
- 2021 TOYOTA RAV4 XLE PREMIUMTitle: SALVAGE TITLEPrice used: Buy-it-now priceLot: 71694496
- 2021 TOYOTA CAMRY SETitle: CLEAN TITLEPrice used: Buy-it-now priceLot: 71503786
- 2022 TOYOTA CAMRY SETitle: SALVAGE TITLEPrice used: Buy-it-now priceLot: 69410516
- 2022 TOYOTA COROLLA LETitle: SALVAGE TITLEPrice used: Buy-it-now priceLot: 70024996
- 2018 TOYOTA RAV4 XLETitle: SALVAGE TITLEPrice used: Buy-it-now priceLot: 70642796
Rows from a run on 2026-11-24.
All 20 rowsRun this playbookRows from a run on 2026-11-24, with the answers shown. 5 of its rows are here, best first; all 20 are below.
The rows
20 rows from a real run, as it wrote them, best first. 12 more columns are there when you ask for them.
| Vehicle | Lot | Miles | Damage | Title | Condition | Current bid (before the sale) | Buy it now | Retail median | Spread at today's price | Spread (%) | Price used | Comparables | Compared on | Auction | Yard | Change | Bid before | Lot page |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 TOYOTA RAV4 XLE PREMIUM | 71694496 | 54,714 | FRONT END | SALVAGE TITLE | ENHANCED VEHICLES | 0 | 9,200 | 25,500 | 16,300 | 63.9 | Buy-it-now price | 24 | Similar mileage | 2026-11-25T15:00:00Z | WEST MIFFLIN, PA | New | – | copart.com/lot/71694496/salvage-2021-toyota-rav4-xle-premium-pa-pittsburgh-west |
| 2021 TOYOTA CAMRY SE | 71503786 | 60,914 | FRONT END | CLEAN TITLE | ENHANCED VEHICLES | 7,200 | 7,500 | 22,765 | 15,265 | 67.1 | Buy-it-now price | 15 | Similar mileage | 2026-11-25T02:00:00Z | COLUMBUS, OH | New | – | copart.com/lot/71503786/clean-title-2021-toyota-camry-se-oh-columbus |
| 2022 TOYOTA CAMRY SE | 69410516 | 91,470 | REAR END | SALVAGE TITLE | RUNS AND DRIVES | 0 | 6,800 | 21,495 | 14,695 | 68.4 | Buy-it-now price | 15 | Similar mileage | 2026-11-25T15:00:00Z | WEST MIFFLIN, PA | New | – | copart.com/lot/69410516/salvage-2022-toyota-camry-se-pa-pittsburgh-west |
| 2022 TOYOTA COROLLA LE | 70024996 | 37,113 | SIDE | SALVAGE TITLE | RUNS AND DRIVES | 225 | 4,500 | 18,986 | 14,486 | 76.3 | Buy-it-now price | 12 | Similar mileage | 2026-11-25T15:00:00Z | FREDERICKSBURG, VA | New | – | copart.com/lot/70024996/salvage-2022-toyota-corolla-le-va-fredericksburg |
| 2018 TOYOTA RAV4 XLE | 70642796 | 44,185 | FRONT END | SALVAGE TITLE | RUNS AND DRIVES | 1,100 | 7,900 | 21,716 | 13,816 | 63.6 | Buy-it-now price | 8 | Similar mileage | 2026-11-25T15:00:00Z | JACKSONVILLE, FL | New | – | copart.com/lot/70642796/salvage-2018-toyota-rav4-xle-fl-jacksonville-north |
| 2018 TOYOTA CAMRY SE | 70214806 | 97,785 | FRONT END | CLEAN TITLE | ENHANCED VEHICLES | 2,600 | 5,000 | 17,098 | 12,098 | 70.8 | Buy-it-now price | 12 | Similar mileage | 2026-11-25T15:00:00Z | EAST GRANBY, CT | New | – | copart.com/lot/70214806/clean-title-2018-toyota-camry-se-ct-hartford-springfield |
| 2022 TOYOTA COROLLA LE | 71417926 | 28,586 | REAR END | SALVAGE TITLE | RUNS AND DRIVES | 850 | 9,200 | 19,379 | 10,179 | 52.5 | Buy-it-now price | 9 | Similar mileage | 2026-11-25T15:00:00Z | CONCORD, NC | New | – | copart.com/lot/71417926/salvage-2022-toyota-corolla-le-nc-concord |
| 2020 TOYOTA CAMRY SE NIGHTSHADE | 70169486 | 139,478 | MINOR DENT/SCRATCHES | CLEAN TITLE | ENGINE START PROGRAM | 6,000 | 7,700 | 15,820 | 8,120 | 51.3 | Buy-it-now price | 11 | Similar mileage | 2026-11-25T15:00:00Z | HARLEYVILLE, SC | New | – | copart.com/lot/70169486/clean-title-2020-toyota-camry-se-nightshade-sc-north-charleston |
| 2019 TOYOTA RAV4 LE | 70372356 | 143,833 | MINOR DENT/SCRATCHES | CLEAN TITLE | RUNS AND DRIVES | 8,000 | 10,500 | 17,995 | 7,495 | 41.7 | Buy-it-now price | 11 | Similar mileage | 2026-11-25T15:00:00Z | APOPKA, FL | New | – | copart.com/lot/70372356/clean-title-2019-toyota-rav4-le-fl-orlando-north |
| 2022 TOYOTA COROLLA LE | 76099876 | 128,996 | NORMAL WEAR | CLEAN TITLE | RUNS AND DRIVES | 7,900 | 8,200 | 14,200 | 6,000 | 42.3 | Buy-it-now price | 4 | Similar mileage | 2026-11-25T02:00:00Z | NORTH BILLERICA, MA | New | – | copart.com/lot/76099876/clean-title-2022-toyota-corolla-le-ma-north-boston |
| 2022 TOYOTA CAMRY SE | 75444806 | 52,441 | MINOR DENT/SCRATCHES | CLEAN TITLE | RUNS AND DRIVES | 12,400 | 17,500 | 23,244 | 5,744 | 24.7 | Buy-it-now price | 18 | Similar mileage | 2026-11-25T02:00:00Z | HILLSBOROUGH, NJ | New | – | copart.com/lot/75444806/clean-title-2022-toyota-camry-se-nj-somerville |
| 2019 TOYOTA RAV4 XLE PREMIUM | 74737436 | 134,179 | MECHANICAL | CLEAN TITLE | ENGINE START PROGRAM | 12,500 | 12,700 | 17,995 | 5,295 | 29.4 | Buy-it-now price | 11 | Similar mileage | 2026-11-25T02:00:00Z | BROOKHAVEN, NY | New | – | copart.com/lot/74737436/clean-title-2019-toyota-rav4-xle-premium-ny-long-island |
| 2020 TOYOTA RAV4 XLE PREMIUM | 75771416 | 22,348 | REAR END | SALVAGE TITLE | RUNS AND DRIVES | 7,200 | – | 26,380 | 19,180 | 72.7 | Current bid; the sale price may be higher | 6 | Similar mileage | 2026-11-25T15:00:00Z | LOGANVILLE, GA | New | – | copart.com/lot/75771416/salvage-2020-toyota-rav4-xle-premium-ga-atlanta-east |
| 2019 TOYOTA RAV4 LE | 73575416 | 152,101 | FRONT END | SALVAGE TITLE | ENGINE START PROGRAM | 6,200 | – | 17,246 | 11,046 | 64.1 | Current bid; the sale price may be higher | 6 | Similar mileage | 2026-11-25T02:00:00Z | ANDERSON, CA | New | – | copart.com/lot/73575416/salvage-2019-toyota-rav4-le-ca-redding |
| 2019 TOYOTA CAMRY XSE V6 | 74259176 | 133,429 | FRONT END | CLEAN TITLE | RUNS AND DRIVES | 6,100 | – | 14,995 | 8,895 | 59.3 | Current bid; the sale price may be higher | 11 | Similar mileage | 2026-11-25T02:00:00Z | MAGNA, UT | New | – | copart.com/lot/74259176/clean-title-2019-toyota-camry-xse-v6-ut-salt-lake-city |
| 2018 TOYOTA CAMRY XSE | 77656436 | 160,740 | MINOR DENT/SCRATCHES | CLEAN TITLE | RUNS AND DRIVES | 6,200 | – | 12,995 | 6,795 | 52.3 | Current bid; the sale price may be higher | 8 | Similar mileage | 2026-11-25T02:00:00Z | HOUSTON, TX | New | – | copart.com/lot/77656436/clean-title-2018-toyota-camry-xse-tx-houston |
| 2020 TOYOTA RAV4 XLE PREMIUM | 74540606 | 52,269 | SIDE | SALVAGE TITLE | RUNS AND DRIVES | 3,250 | – | 25,246 | 21,996 | 87.1 | Early bid; the sale price will likely be much higher | 12 | Similar mileage | 2026-11-25T15:00:00Z | SPARTANBURG, SC | New | – | copart.com/lot/74540606/salvage-2020-toyota-rav4-xle-premium-sc-spartanburg |
| 2021 TOYOTA RAV4 LE | 74763956 | 53,450 | FRONT END | SALVAGE TITLE | RUNS AND DRIVES | 5,800 | – | 25,500 | 19,700 | 77.3 | Early bid; the sale price will likely be much higher | 23 | Similar mileage | 2026-11-25T15:00:00Z | WINDSOR, NJ | New | – | copart.com/lot/74763956/salvage-2021-toyota-rav4-le-nj-trenton |
| 2019 TOYOTA RAV4 LE | 74095496 | 81,620 | SIDE | CLEAN TITLE | RUNS AND DRIVES | 3,250 | – | 21,081 | 17,831 | 84.6 | Early bid; the sale price will likely be much higher | 18 | Similar mileage | 2026-11-25T15:00:00Z | WAYLAND, MI | New | – | copart.com/lot/74095496/clean-title-2019-toyota-rav4-le-mi-wayland |
| 2018 TOYOTA CAMRY XLE V6 | 70700636 | 54,096 | FRONT END | SALVAGE TITLE | RUNS AND DRIVES | 1,950 | – | 17,997 | 16,047 | 89.2 | Early bid; the sale price will likely be much higher | 4 | Similar mileage | 2026-11-25T15:00:00Z | WINDSOR, NJ | New | – | copart.com/lot/70700636/salvage-2018-toyota-camry-xle-v6-nj-trenton |
Rows from a run on 2026-11-24. A value the sources did not give is left empty, never guessed.
What it asks
4 questions to start, and the rest only if you want them: every other answer has a default. The ones that change what a run costs are marked.
Basics
What it asks first. A run needs only these.
- Make
make - The make, such as Toyota or Ford.string · requiredIn the run above:Toyota
- Models
models - The models of that make, named as Copart names them, such as Camry or RAV4.a list of strings · required · up to 10changes the costIn the run above:CamryCorollaRAV4
- Model years
years - The model years to search. Each year of each model is one search for retail comparables.objectdefault
2,018 to 2,022changes the costIn the run above:2,018 to 2,022 - Your ZIP code
zip - Where you would sell the cars. Retail comparables are the listings around it.string · requiredIn the run above:77073
Filters
What narrows the list. Each has a default.
- Lots to watch
watch_lots - Copart lot numbers or lot pages you follow, read on every run whether or not a search finds them.a list of strings · up to 50default
nonechanges the cost - Yard states
states - Two-letter codes of the states whose yards you buy from, such as TX. Leave empty for all.a list of strings · up to 60default
none - Most miles
max_odometer - Lots with more miles on the odometer are left out. 0 for any mileage.integer · 0 to 500,000default
0 - Leave out titles
exclude_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.a list of strings · up to 20default
NON-REPAIRABLE, DESTRUCTION, SCRAP, JUNK, PARTS ONLY - Clean titles only
clean_title_only - Leaves out salvage and other branded titles.booleandefault
No - Runs and drives only
runs_and_drives_only - Keeps the lots Copart marks as running and driving.booleandefault
No - Leave out damage
exclude_damage - Words of the main damage to leave out, such as FLOOD, BURN or ALL OVER.a list of strings · up to 20default
none - Least current bid ($)
min_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.integer · 0 to 100,000default
1,000 - A bid that counts (% of retail)
serious_bid_pct - 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.integer · 0 to 90default
25 - Include lots selling today
include_sale_day - 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.booleandefault
No - Lots read per model
lots_per_model - How many of Copart's lots to read for each model, the soonest sales first.integer · one of 20, 50, 100default
100 - Least spread ($)
min_spread - Lots whose retail median is less than this above their price are left out.integer · 0 to 100,000default
2,000
Enrichment
What is added to each row.
- Retail comparables from
comp_sources - The sites whose dealer listings price each lot. A car listed on both counts once.a list of strings · one of cargurus, autotraderdefault
cargurus, autotraderchanges the cost - Comparables within (miles)
radius - How far from your ZIP code a retail listing may be.integer · one of 25, 50, 75, 100, 200, 500default
100 - Similar mileage (miles either way)
mileage_band - Comparables within this many miles of the lot's odometer are preferred. 0 compares every mileage.integer · 0 to 100,000default
30,000 - Price on any mileage when few are similar
any_mileage_fallback - 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.booleandefault
No - Least comparables
min_comps - A lot priced on fewer retail listings than this is left out.integer · 1 to 20default
3 - Comparables searches
comp_searches - The most retail searches for each site, one for each make, model and year found.integer · 1 to 100default
40changes the cost
Output
How many rows, and when one may come back.
- Most rows
max_results - The run stops at this many lots, widest spread first.integer · 1 to 2,000default
200changes the cost
Or start from a preset
Toyota Camry, Corolla and RAV4 (Houston)
Make: Toyota · Models: Camry, Corolla, RAV4 · Your ZIP code: 77073
Honda Civic, Accord and CR-V (Atlanta)
Make: Honda · Models: Civic, Accord, CR-V · Your ZIP code: 30303
Clean titles that run and drive
Clean titles only: Yes · Runs and drives only: Yes · Leave out damage: FLOOD, BURN, ALL OVER
Texas yards
Yard states: TX
Today's sales too, every bid
Include lots selling today: Yes · Least current bid ($): 0
Under 80,000 miles, close mileage comparables
Most miles: 80,000 · Similar mileage (miles either way): 20,000
What a row holds
31 columns, the same in every row. Each row is scored, and the list comes best first. 19 are shown at first; the other 12 are a choice away, in the console and in every export.
Rows come as JSON, as NDJSON with a row a line, or as CSV, and are kept for 90 days.
- Vehicle
vehiclestring- shown
- Lot
lot_numberstring- shown
- Year
yearinteger- on request
- Model
modelstring- on request
- Trim
trimstring- on request
- Miles
odometernumber- shown
- Odometer
odometer_statusstring- on request
- Damage
damagestring- shown
- Other damage
secondary_damagestring- on request
- Title
titlestring- shown
- Condition
conditionstring- shown
- Keys
has_keysboolean- on request
- Current bid (before the sale)
current_bidnumber- shown
- Buy it now
buy_it_nownumber- shown
- Retail median
retail_mediannumber- shown
- Spread at today's price
spreadnumber- shown
- Spread (%)
spread_pctnumber- shown
- Price used
priced_onstring- shown
- Comparables
comparablesinteger- shown
- Compared on
comparables_basisstring- shown
- Lowest retail
retail_lownumber- on request
- Highest retail
retail_highnumber- on request
- Copart's retail estimate
copart_estimatenumber- on request
- Sale
sale_statusstring- on request
- Auction
auction_datedatetime- shown
- Yard
yardstring- shown
- Change
changestring- shown
- Bid before
bid_beforenumber- shown
- VIN (partly hidden)
vinstring- on request
- Lot page
linkurl- shown
- Score
scorenumber- on request
What a run costs
The units of the work it does: each search and each page it reads, at that scraper’s own rate. Nothing is added for the playbook.
With the answers of the run above
about 31 units
31 searches across 3 sources. At most 83: a run stops at its cap, keeps the rows it has, and ends partial.
- Toyota Camry, Corolla and RAV4 (Houston)
- about 31
- Honda Civic, Accord and CR-V (Atlanta)
- about 31
An estimate, made as the API makes one before a run. Your own runs make the next estimate closer.
- A preview is the first 10 rows, charged at what they cost: about 31 units with the answers of the run above. You see what a run gives before you spend on all of it.
- A search or a page that fails is not charged, as with any scraper run.
Each scraper it can call, at its own rate
Which of them a run calls depends on your answers: a job board you leave out is not searched.
Who it is for
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.
- Used car dealer
- Car flipper
- Auto wholesaler
- Rebuilder
- Run it
- Once, hourly, daily and weekdays. Kept running on a schedule, it delivers only rows it has not delivered before.
- Its sources
- Public pages only: what a site shows every visitor. Nothing behind a sign-in.
The same playbook, by API
One call starts a run with your answers and a cap on what it may spend; another reads its rows, best first, as they are written. Put your key in the variable it reads.
In the API a playbook is a formula: its paths and calls use that word.
- GET/v1/formulas/used-car-arbitrage
- What it asks, its columns and its sample rows. No key needed.
- POST/v1/formulas/used-car-arbitrage/estimate
- What a run would cost. Free.
- POST/v1/formulas/used-car-arbitrage/runs
- Start a run, or a preview.
- GET/v1/formula-runs/{id}/rows
- Its rows, as JSON, NDJSON or CSV.
# 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
},
"preview": true
}
}Near this one
The scrapers it is built on
Each can be called on its own, with a page that shows its record.
Other playbooks
- Agency ListsAgencies by service and place with size, age, rates, minimum project, services and reviews, for partnering or buying.
- App IntelligenceRatings, versions, release notes and chart ranks of apps on the App Store and Google Play, with what changed since last run.
- Freelance Gig FeedNew projects on Upwork and Freelancer that match your skills, with budget and applicants, only the ones you have not seen.
Run it with your own answers.
Make an account and the console opens on this playbook. Preview it, run it, or keep it running daily. The first 1,000 units each month are free.