Build a dealer sales leaderboard for a metro you define, from one Sold Vehicles Summary API call
Define a metro as a list of cities, and one Sold Vehicles Summary call ranks every dealer website in it by vehicles sold. The worked example is Nashville in Sep 2026, with the checks a board needs before anyone reads it.
MarketCheck··11 min read
For developers building market benchmarks for dealers, dealer groups and manufacturers
A used-car manager walks into the Monday meeting knowing the store's own count for last month to the unit. The missing numbers are everyone else's: which dealer websites in the metro sold the most vehicles, who moved up, who sells fastest, and where the store stands. A dealer group's operations lead wants those numbers for each of its markets, and a manufacturer's regional sales analyst wants them for the metros where the brand has stores.
MarketCheck's Sold Vehicles Summary API, GET https://api.marketcheck.com/v2/sold-vehicles/summary, returns monthly counts of vehicles sold, ranked by the dimension you name, and with ranking_dimensions=source each row is a dealer website. Sold is the API's inferred sale, meaning a listing that left a dealer website. Every price is a listed price, and what a buyer paid is not in the data.
The API has no metro field, so a metro is a list of cities you choose. For Nashville that list is eight cities, in which 277 websites sold 10,775 used vehicles in Sep 2026. The calls were recorded on Nov 13, 2026, when Sep 2026 was the latest complete month.
In short. Call /v2/sold-vehicles/summary with summary_by=state, a comma-separated city list and ranking_dimensions=source, and the listed cities come back as one metro: one row per dealer website and month, each with a sold count and a rank, plus metro medians. Ask for every row with a high top_n and rank again in your own code after removing rows. Check the month for stale-listing dumps (a website clearing a backlog of old listings at once) before anyone reads the board.
The board: one metro, one month
Websites ranked 1 to 15 by used vehicles sold across the eight cities in Sep 2026, each with its share of the metro's 10,775. Two websites tie at 15 with 116 each, so the board has 16 rows. The numbers
Websites ranked 1 to 15 by used vehicles sold, eight-city Nashville metro, Sep 2026
Rank
Website
Used sold
Share of metro
Rank in Aug 2026
Median listed price
Median days on market
1
carmax.com
1,430
13.3%
1
$27,998
24
2
hertzcarsales.com
502
4.7%
2
$23,823
31.5
3
carvana.com
472
4.4%
3
$25,590
27
4
bmwofnashville.com
292
2.7%
4
$34,698
15
5
beamantoyota.com
261
2.4%
5
$29,910
24
6
echopark.com
225
2.1%
6
$21,836
37
7
hyundaiofcolumbia.com
170
1.6%
22
$27,850
33
8
serrachevroletmadison.com
155
1.4%
32
$30,117
17
9
toyotaofcoolsprings.com
147
1.4%
13
$33,199
13
10
loguesauto.com
145
1.3%
163
$7,499
10
11
cityautomitsubishi.com
144
1.3%
10
$26,817
30.5
11
enterprisecarsales.com
144
1.3%
7
$23,154
18
13
toyotaofmurfreesboro.com
141
1.3%
8
$30,992
14
14
cresthonda.com
123
1.1%
11
$24,348
18
15
robertstoyota.com
116
1.1%
15
$25,799
19
15
wyattjohnsonford.com
116
1.1%
19
$27,445
22.5
With 1,430 used vehicles sold, carmax.com leads at 13.3% of the metro, and the 16 websites on the board hold 42.5% between them. The table under the chart adds each website's rank in Aug 2026 and its two medians, days on market and listed price. The row at rank 14, cresthonda.com with 123 sold, shows a median of 18 days on market against 24 for the metro.
One city, one call
The obvious first request names one city: summary_by=city_state with state and city sets the geography, inventory_type chooses used or new, ranking_dimensions=source makes each row a website, and two dates bound the month.
Three fields make a board: source is the website's domain, sold_count the number sold in the month, and rank the website's place within the geography you asked for. Ties share a rank and the next rank is skipped, so this response has two websites at 9 and none at 10. The price block covers listed price and dom_active covers days on market, the days a vehicle was for sale on any website. Percentile keys are strings, so the median listed price is price.percentiles["50.0"].
One domain can be several stores
The trade counts rooftops, its word for single physical stores, and the API counts domains (the dealer directory guide looks dealers up by website). On the board, the 1,430 beside carmax.com is one domain's sales in 4 cities: Nashville 439, Madison 425, Murfreesboro 291 and Franklin 275. One domain's sales can also land in a single city, and carvana.com, a national online retailer, shows 424 of its 472 in Old Hickory. Two more names, hertzcarsales.com and enterprisecarsales.com, are rental companies' fleet sales.
Those websites, together with echopark.com and drivetime.com, make up the national names: retailers and rental fleets' sales sites that hold 2,880 of the metro's 10,775 used vehicles sold, 26.7%. That list and the kind of seller behind each name are outside knowledge. No field in the response says either, so the list lives in your code, where you can edit it. The local board is the same month drawn without them.
Removed: carmax.com, carvana.com, drivetime.com, echopark.com, hertzcarsales.com, enterprisecarsales.com (national retailers and rental fleets' sales sites, a list to edit for your own market). Shares stay against the whole metro's 10,775, national names included. darrellwaltriphonda.com and musiccityautoplex.com tie at 15.
The local board for Sep 2026. bmwofnashville.com and beamantoyota.com lead it from ranks 4 and 5 on the full count, and ranks 12 to 15 belong to websites that stood at 17 to 20. The numbers
Websites ranked 1 to 15 by used vehicles sold after the 6 national names are removed, eight-city Nashville metro, Sep 2026
Rank
Website
Used sold
Share of the whole metro
Rank among all websites
1
bmwofnashville.com
292
2.7%
4
2
beamantoyota.com
261
2.4%
5
3
hyundaiofcolumbia.com
170
1.6%
7
4
serrachevroletmadison.com
155
1.4%
8
5
toyotaofcoolsprings.com
147
1.4%
9
6
loguesauto.com
145
1.3%
10
7
cityautomitsubishi.com
144
1.3%
11
8
toyotaofmurfreesboro.com
141
1.3%
13
9
cresthonda.com
123
1.1%
14
10
robertstoyota.com
116
1.1%
15
10
wyattjohnsonford.com
116
1.1%
15
12
newtonnissan.com
112
1.0%
17
13
murfreesboronissan.com
111
1.0%
18
14
toyotagallatin.com
110
1.0%
19
15
darrellwaltriphonda.com
108
1.0%
20
15
musiccityautoplex.com
108
1.0%
20
A metro is a list of cities
By used vehicles sold, the city of Nashville ranks 2 in Tennessee, with 3,695 to Knoxville's 3,724. The eight cities of its metro sold 10,775, so a board built from the single-city call describes 34.3% of the metro and omits 8 of the 16 websites ranked 1 to 15, which sold nothing inside the city.
Two bars for each of the 16 websites on the board: used vehicles sold in the city of Nashville and across the eight cities, Sep 2026. A missing first bar means no sales in the city. carmax.com sold 439 of its 1,430 there. The numbers
Used vehicles sold in Nashville alone and in the eight-city Nashville metro, Sep 2026, for the websites ranked 1 to 15 in the metro
Metro rank
Website
Used sold in Nashville
Rank in Nashville
Used sold in the metro
1
carmax.com
439
2
1,430
2
hertzcarsales.com
502
1
502
3
carvana.com
48
17
472
4
bmwofnashville.com
292
3
292
5
beamantoyota.com
261
4
261
6
echopark.com
225
5
225
7
hyundaiofcolumbia.com
0
none
170
8
serrachevroletmadison.com
0
none
155
9
toyotaofcoolsprings.com
0
none
147
10
loguesauto.com
0
none
145
11
cityautomitsubishi.com
0
none
144
11
enterprisecarsales.com
0
none
144
13
toyotaofmurfreesboro.com
0
none
141
14
cresthonda.com
123
6
123
15
robertstoyota.com
0
none
116
15
wyattjohnsonford.com
116
7
116
One request covers the metro. city accepts a list, and with summary_by=state the listed cities come back as one metro: one row per website and month, with ranks and percentiles computed across the whole list.
It asks for six months, so one response feeds both the board (the rows whose month is 2026-09) and the rank history. top_n=10000 returns every website, 1,693 rows in all; the default is 10.
Your list of cities
One summary call, every row
Rank and add share
Remove the national names, rank again
Manager reads both boards
That the list behaves as one metro can be checked the long way round: one call per city with every row, summed by website. Against the eight per-city calls the metro response showed 0 count mismatches and 0 rank mismatches in the 859 rows compared, and every month's metro total equals the sum of the eight city totals, 10,775 each way for Sep 2026.
One call per city, every row
Sum by website
Compare counts and ranks with the metro rows
Developer signs off the city list
Which cities go on the list is your decision. These eight are the cities with the most used vehicles sold in Sep 2026 inside the Nashville-Davidson-Murfreesboro-Franklin metropolitan statistical area as OMB Bulletin 23-01 draws it. Membership of the area is outside knowledge; the counts come from a call with summary_by=city_state, the state and ranking_dimensions=none, which returns one row per city.
City
Used vehicles sold, Sep 2026
Share of the metro
Nashville
3,695
34.3%
Murfreesboro
1,931
17.9%
Franklin
1,414
13.1%
Madison
1,347
12.5%
Columbia
853
7.9%
Gallatin
592
5.5%
Brentwood
498
4.6%
Old Hickory
445
4.1%
Madison and Old Hickory are communities inside Nashville-Davidson that the API reports as cities of their own. Old Hickory ranks 20 in Tennessee on the strength of one website. Of its 445, 424 are carvana.com's, and without them its 21 would sit under the 377 of Hendersonville, the next city in the area. It stays on the list, since removing it to tidy the picture would take those 424 sales out of the metro.
Three ways the city-by-city route goes wrong
Without the list form, the metro is built from single-city calls and a sum, and three shortcuts on that route each return a board that looks right.
The first is summing each city's default top 10. Built that way, the metro top 15 has no enterprisecarsales.com, whose 144 are split between Madison (90) and Murfreesboro (54), and it counts carvana.com at 424 where the full count is 472. Asking each city for 15 keeps the second error, because the 48 in Nashville sit under the 59 at the city's rank 15.
Averaging city means is the second. The plain average of two city means gives a city with 48 sold the same weight as a city with 424. For that website it comes to $26,414, where the metro row's price.mean is $27,451. Dividing the sum of price.sum by the sum of price.count is the exact route, and it matches the metro mean to within rounding. City medians cannot be combined into a metro median, and the metro call returns the true one.
The third is filtering before ranking. Ranks are assigned before measure filters, so the single-city request with dom_active.p50=<20 added returns 4 rows carrying ranks 3, 6, 9 and 15, and with rank_after_filters=true it returns 16 rows ranked 1 to 15. Your own code meets the same problem when it removes the national names. The API's rank still describes the full list, so the local board ranks its rows again.
Six months of ranks
Rank 1 is at the top. A month ranked below 20 sits in the 21+ band with its rank printed beside the dot, and a dashed line joins it to the months around it. Hollow dots mark a website in the data only since a month in the window: it had no used sales under that domain in the months before, from Apr 2026, so no line is drawn.
Rank by used vehicles sold in each month from Apr to Sep 2026, for the Sep top 10. carmax.com holds rank 1 in all six months, and hertzcarsales.com moves from 6 in Jul to 2 in Aug. The numbers
Monthly rank by used vehicles sold, Apr 2026 to Sep 2026, for the Sep 2026 top 10 in the eight-city Nashville metro; the table gives the number sold in parentheses after each rank
Website
Apr
May
Jun
Jul
Aug
Sep
carmax.com
1 (1,422)
1 (1,509)
1 (1,429)
1 (1,502)
1 (1,582)
1 (1,430)
hertzcarsales.com
3 (344)
5 (279)
6 (197)
6 (207)
2 (500)
2 (502)
carvana.com
2 (506)
2 (430)
12 (127)
2 (410)
3 (433)
3 (472)
bmwofnashville.com
5 (270)
4 (288)
2 (280)
4 (279)
4 (344)
4 (292)
beamantoyota.com
4 (284)
3 (318)
3 (263)
3 (363)
5 (297)
5 (261)
echopark.com
7 (256)
6 (223)
4 (221)
5 (235)
6 (233)
6 (225)
hyundaiofcolumbia.com
8 (216)
7 (198)
5 (198)
7 (164)
22 (108)
7 (170)
serrachevroletmadison.com
none
none
none
171 (9)
32 (82)
8 (155)
toyotaofcoolsprings.com
9 (174)
9 (181)
7 (158)
8 (162)
13 (135)
9 (147)
loguesauto.com
none
none
none
none
163 (10)
10 (145)
Each row carries the rank for its own month, so the history is the same response pivoted by website. Two of the Sep top 10 start partway through: serrachevroletmadison.com has no rows before Jul 2026 and loguesauto.com none before Aug 2026. A domain that appears from nothing may be a new rooftop or an existing one under a new domain, and the data cannot tell the two apart, so the chart draws no line that would read as a climb.
Among websites with 50 or more used vehicles sold in Sep, the biggest rises since Apr all start from no sales or from 1 sale in Apr, and the next largest are 15 and 14 places. Going the other way, two websites that sold 109 and 69 in Apr have no Sep row.
The metro count of one national retailer reads 506, 430, 127, 410, 433 and 472 from Apr to Sep 2026, which puts its line on the chart at rank 12 in Jun. Its count fell that month in every Tennessee city where it has sales, while its national count rose from 59,957 in May to 66,239 in Jun. A one-month fall that shows across a state while the national count rises is a reason to pull the same website at a wider geography before reading anything into the month, and the recorded calls do not say what caused this one.
Fast against expensive
A ranking by days on market alone mixes websites that list at different prices, so the chart plots each one's median days against its median listed price, both taken from the metro response. The reference points are the medians for all used vehicles: 24 days and $24,848 in the metro, 26 days and $23,998 nationally.
64 websites sold 50 or more used vehicles in Sep 2026. One had no listed price on any of its 57, so 63 appear here.
One dot for each of the 63 websites with 50 or more used vehicles sold in Sep 2026 and a listed price: median listed price across, median days on market up, dot area by number sold. The largest dot, carmax.com, sits on the metro median of 24 days. The numbers
Median listed price and median days on market for the 63 websites with 50 or more used vehicles sold and a listed price, eight-city Nashville metro, Sep 2026
Website
Used sold
Median listed price
Median days on market
carmax.com
1,430
$27,998
24
hertzcarsales.com
502
$23,823
31.5
carvana.com
472
$25,590
27
bmwofnashville.com
292
$34,698
15
beamantoyota.com
261
$29,910
24
echopark.com
225
$21,836
37
hyundaiofcolumbia.com
170
$27,850
33
serrachevroletmadison.com
155
$30,117
17
toyotaofcoolsprings.com
147
$33,199
13
loguesauto.com
145
$7,499
10
cityautomitsubishi.com
144
$26,817
30.5
enterprisecarsales.com
144
$23,154
18
toyotaofmurfreesboro.com
141
$30,992
14
cresthonda.com
123
$24,348
18
robertstoyota.com
116
$25,799
19
wyattjohnsonford.com
116
$27,445
22.5
newtonnissan.com
112
$24,389
25
murfreesboronissan.com
111
$23,612
21
toyotagallatin.com
110
$29,455
20
darrellwaltriphonda.com
108
$29,335
32.5
musiccityautoplex.com
108
$28,369
22
drivetime.com
107
$17,895
11
beamancdjr.com
104
$23,354
31
chryslerdodgejeepramoffranklin.com
104
$35,768
28.5
hyundaiofmurfreesboro.com
99
$22,165
23
lexusofcoolsprings.com
99
$36,791
14
fordofmurfreesboro.com
98
$32,289
19
bentonnissanofcolumbia.com
92
$27,417
20
downtownnashvillenissan.com
92
$24,211
37.5
mercedesbenzofnashville.com
87
$28,799
17
hondaofmurfreesboro.com
86
$28,113
20
speedwaymotorcars.com
86
$13,995
50
audinashville.com
83
$32,547
19
fordofcolumbia.com
80
$26,619
31
gallatinford.com
79
$30,778
15
hyundaiofcoolsprings.com
75
$28,802
17
nashvilletoyotanorth.com
75
$30,719
19
vehiclesnashville.com
75
$19,125
29
mbofmc.com
74
$50,270
23
darrellwaltripbuickgmc.com
73
$38,858
19
chevroletbuickgmcofmurfreesboro.com
72
$33,000
15
autodepottn.com
71
$14,450
33
bbbofnashville.com
71
$18,900
25
darrellwaltripsubaru.com
71
$26,399
19
nelsonmazdamurfreesboro.com
70
$23,887
33.5
rideanddrivellc.com
66
$7,850
19
autocollectionofmurfreesboro.com
65
$65,900
25
globalbellemeade.com
63
$42,280
29
gallatincdjr.com
62
$25,195
22.5
volvocarscoolsprings.com
61
$34,147
29
townsauto.com
60
$8,700
52
gallatinhonda.com
59
$26,785
13
lexusofnashville.com
59
$46,995
15
nissanofcoolsprings.com
59
$24,800
16
evauto.com
56
$30,999
14
volkswagenofnorthnashville.com
54
$23,297
33.5
subaruofgallatin.com
53
$23,309
26
volkswagenofcoolsprings.com
53
$27,899
39
infinitiofcoolsprings.com
52
$37,496
25.5
garyforceacura.com
51
$37,599
15
greenwaykiarivergate.com
51
$21,978
13
walkerchevrolet.com
51
$30,080
42
audinashvilledowntown.com
50
$30,299
18
Both ends of the days axis sit at the low end of the price axis. Of the 63, the fastest median is 10 days, at a website whose median listed price, $7,499, is also the lowest. The longest median is 52 days, at $8,700. Well above the metro's $24,848, toyotaofcoolsprings.com sells at a median of 13 days and lists at a median of $33,199.
New against used
Setting inventory_type=new on the metro request returns the new-vehicle board, with 6,891 sold in the metro against 10,775 used. The two top 10s share bmwofnashville.com, beamantoyota.com and toyotaofcoolsprings.com, and 6 of the new top 10 have toyota in the domain.
The top 10 websites for used and for new vehicles in Sep 2026, on one scale, with the websites that appear in both lists highlighted. beamantoyota.com leads the new list with 759 and holds rank 5 for used with 261. The numbers
Top 10 websites by used and by new vehicles sold, eight-city Nashville metro, Sep 2026
Used rank
Used: website
Used sold
New rank
New: website
New sold
1
carmax.com
1,430
1
beamantoyota.com
759
2
hertzcarsales.com
502
2
carlblackchevy.com
533
3
carvana.com
472
3
toyotaofcoolsprings.com
350
4
bmwofnashville.com
292
4
toyotaofmurfreesboro.com
300
5
beamantoyota.com
261
5
toyotagallatin.com
281
6
echopark.com
225
6
nashvilletoyotanorth.com
200
7
hyundaiofcolumbia.com
170
7
robertstoyota.com
179
8
serrachevroletmadison.com
155
8
cresthonda.com
158
9
toyotaofcoolsprings.com
147
9
bmwofnashville.com
138
10
loguesauto.com
145
9
newtonnissan.com
138
At rank 2 with 533, carlblackchevy.com has 447 Chevrolet BrightDrop in its count and a median of 1 day on market, where the rest of that top 10 have medians from 22 to 92 days. The breakdown came from one more call, filtered with source=carlblackchevy.com and ranked with ranking_dimensions=make,model, and it opens up any row whose medians sit far from its neighbours'. For individual listings, the recently sold cars guide covers Past Inventory Search.
Dealership groups, and the warning attached
ranking_dimensions=dealership_group_name ranks dealership groups in place of websites. The response carries a warning, sparse_dimension_rows_excluded, with this message:
warnings[0].messagetext
Rows with no value for dealership_group_name are excluded from this result, and that dimension is documented as populated on ~38% of rows. sold_count here counts only rows that have a value for every dimension you asked for, so it covers a fraction of sales rather than the whole market.
For Sep 2026 the rows with a group name cover 11,202 of Tennessee's 38,760 used vehicles sold, 28.9%, and 4,320 of the metro's 10,775, 40.1%. A group board ranks that named part of the market, so print the coverage beside it.
Top 10 dealership groups in Tennessee by used vehicles sold, with each group's count in the eight-city Nashville metro, Sep 2026
Rank
Dealership group
Used sold in TN
Share of all used sold in TN
Used sold in the metro
1
Carmax
3,201
8.3%
1,430
2
Hudson Auto Group
2,522
6.5%
580
3
Sonic Automotive Inc.
868
2.2%
660
4
Carvana
631
1.6%
472
5
Victory Automotive Group
440
1.1%
49
6
Lithia Motors Inc.
351
0.9%
110
7
Bowers Automotive Group
338
0.9%
0
8
Friendship Automotive
328
0.8%
0
9
Tim Short Auto Group
272
0.7%
0
10
Hendrick Automotive Group
252
0.7%
252
Only rows with a dealership_group_name are counted: 11,202 of 38,760 used vehicles sold in TN (28.9%). The API returns the warning sparse_dimension_rows_excluded.
The top 10 dealership groups in Tennessee by used vehicles sold in Sep 2026, with each group's count inside the eight-city metro. Carmax and Carvana show the same metro counts as carmax.com and carvana.com, 1,430 and 472.
Two calls that differ only in the city list give the state and metro columns. The groups ranked 7, 8 and 9 in the state show no sales in the eight cities, and the group ranked 10 sold all 252 of its vehicles there.
Checks before the board goes out
A website that clears a backlog of old listings in one month looks like a sales spike, because a sale is inferred from a listing leaving a website. The rule chosen for this board flags such a stale-listing dump when a website sold at least 20 in a month, at least 3 times its own median over the five prior months, at a median days on market at least 2 times the market's. In Sep 2026 the metro had 1 hit: 33 sold against a prior median of 2, at a median of 127 days against the metro's 24, with a price.count of 0. Of six cities screened with the same rule, two had a hit inside their top 15 that month, the largest with 205 sold against a prior median of 0.
Names split by casing and by spelling. National used Kia sales ranked by model for Sep 2026 return Forte with 4,890 beside FORTE with 1,776, and Tennessee's city rows list one city as Mount Juliet (181), Mt Juliet (114), Mt. Juliet (46) and Mt.juliet (30), so a metro list has to name every spelling.
A date range longer than a year is refused: 2025-09-01 to 2026-09-30 returned a 422, Date range cannot exceed 1 year. History starts in Jan 2021, and a longer comparison takes several requests.
The latest complete month trails the calendar. On the day of recording it was Sep 2026, which had ended 44 days earlier, and the response's applied.available_history block names it, so print the month on the board.
The whole board in one script
The script makes the one metro call for the month, with the city list and a top_n high enough to return every website. In code it adds the rows into the metro total and ranks the websites by sold_count, with equal counts sharing a rank, then prints every website ranked 1 to 15 with its share. The local board is the same routine on the rows left once the NATIONAL domains are removed, with shares still measured against the whole metro.
leaderboard.mjsjs
// A used-vehicle sales leaderboard for one metro, from one call to the Sold Vehicles Summary API.
// Run it with Node 22: MARKETCHECK_API_KEY=your_key node leaderboard.mjs
// The metro: a list of cities in one state, counted as one place.
const STATE = 'TN'
const CITIES = ['Nashville', 'Murfreesboro', 'Franklin', 'Madison', 'Columbia', 'Gallatin', 'Brentwood', 'Old Hickory']
const MONTH = { from: '2026-09-01', to: '2026-09-30' }
// National retailers and rental fleets' sales sites, left out of the second board.
// Edit this list for your own market.
const NATIONAL = ['carmax.com', 'carvana.com', 'drivetime.com', 'echopark.com', 'hertzcarsales.com', 'enterprisecarsales.com']
if (!process.env.MARKETCHECK_API_KEY) throw new Error('Set MARKETCHECK_API_KEY')
const params = new URLSearchParams({
api_key: process.env.MARKETCHECK_API_KEY,
inventory_type: 'used',
summary_by: 'state', // one row per website for all the listed cities together
state: STATE,
city: CITIES.join(','),
ranking_dimensions: 'source', // a source is a website domain
top_n: '10000', // every website, so the ranking happens below, in code
date_from: MONTH.from,
date_to: MONTH.to
})
const res = await fetch(`https://api.marketcheck.com/v2/sold-vehicles/summary?${params}`)
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`)
const { data } = await res.json()
// The metro's total: the website rows add up to it.
const total = data.reduce((sum, row) => sum + row.sold_count, 0)
function printBoard(title, rows) {
console.log(`\n${title}`)
const sorted = rows.toSorted((a, b) => b.sold_count - a.sold_count || a.source.localeCompare(b.source))
for (const row of sorted) {
// Rank = 1 + the number of websites that sold more, so equal counts share a rank.
const rank = 1 + sorted.filter(other => other.sold_count > row.sold_count).length
if (rank > 15) break
const share = (100 * row.sold_count / total).toFixed(1)
console.log(`${String(rank).padStart(3)} ${row.source.padEnd(28)}${row.sold_count.toLocaleString('en-US').padStart(7)} ${share}%`)
}
}
printBoard(`Used vehicles sold, ${MONTH.from.slice(0, 7)}: ${total.toLocaleString('en-US')} in the metro`, data)
printBoard('Without the national names (shares still of the whole metro)', data.filter(row => !NATIONAL.includes(row.source)))
Change the state, the city list, the month and the NATIONAL list, and it draws another metro.
Who this is for
The board is a benchmark for people in the business. A used-car manager finds the store's own row and reads its rank and share, then its median days on market against the metro's. For a dealer group's operations lead the script runs once per market, with the state's group ranking beside it. A manufacturer's regional sales analyst gets the brand's stores ranked on the used board and on the new one.