CarGurus Zipcode Search Scraper: how to get the data as JSON/CSV (API, Python, no code)
Scrape CarGurus vehicle search pages by ZIP code: VIN, make, model, year, trim, price, MSRP, mileage, fuel economy, dealer name and location, and direct listing link. This guide shows the output fields, a working input, and
Python, JavaScript and cURL code for the Actor v0iddo/cargurus-zipcode-search-scraper on Apify.
Open CarGurus Zipcode Search Scraper on Apify
More on voiddo.com
What data you get
One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.
| Field | Label | Type | Example |
|---|---|---|---|
listingId | Listing ID | text | 460003322 |
vin | VIN | text | 1FA6P8CF2T5417539 |
year | Year | number | 2026 |
make | Make | text | Ford |
model | Model | text | Mustang |
trim | Trim | text | GT Fastback RWD |
price | Price USD | number | 58099 |
msrp | MSRP USD | number | 62650 |
mileage | Mileage | number | |
dealerName | Dealer | text | Fred Beans Ford of Mechanicsburg |
dealerState | State | text | PA |
url | Listing URL | URL | https://www.cargurus.com/details/460003322 |
searchUrl | text | https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2 | |
page | number | 1 | |
bodyType | text | Coupe | |
condition | text | NEW | |
engine | text | 480 hp 5L V8 | |
transmission | text | Automatic | |
drivetrain | text | Rear-Wheel Drive | |
exteriorColor | text | Shadow Black | |
fuelType | text | Gasoline | |
mpgCombined | number | 19.6 | |
dealerCity | text | Mechanicsburg | |
dealerZip | text | 17050 | |
distance | number | 86.99595 | |
imageUrl | text | https://static.cargurus.com/images/forsale/2026/09/26/07/04/2026_fo... |
Input example
This is the input that is pre-filled on the Actor page. Change the values for your own run.
{
"searchUrls": [
"https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2"
],
"zipCode": "10001",
"radiusMiles": 100,
"maxPages": 1,
"maxItems": 20
}
| Input field | Type | What it does |
|---|---|---|
searchUrls (required) | array | CarGurus vehicle listing pages such as https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2 or https://www.cargurus.com/Cars/used/nl-Used-Toyota-Camry-d158. |
zipCode | string | 5-digit US ZIP code to center the search on (e.g. |
radiusMiles | integer | Search radius in miles from the ZIP code. |
condition | string | Keep only new listings, only used listings, or all regardless of condition. |
maxPages | integer | How many result pages to read per search URL (around 15-25 listings per page). |
maxItems | integer | The run stops after this many result rows. |
Output sample
Real rows from a run of the Actor. Fields that name people are left out of the sample.
[
{
"searchUrl": "https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2",
"page": 1,
"listingId": "460003322",
"vin": "1FA6P8CF2T5417539",
"year": 2026,
"make": "Ford",
"model": "Mustang",
"trim": "GT Fastback RWD",
"bodyType": "Coupe",
"condition": "NEW",
"price": 58099,
"msrp": 62650,
"engine": "480 hp 5L V8",
"transmission": "Automatic",
"drivetrain": "Rear-Wheel Drive",
"exteriorColor": "Shadow Black",
"fuelType": "Gasoline",
"mpgCombined": 19.6,
"dealerName": "Fred Beans Ford of Mechanicsburg",
"dealerCity": "Mechanicsburg",
"dealerState": "PA",
"dealerZip": "17050",
"distance": 86.99595,
"imageUrl": "https://static.cargurus.com/images/forsale/2026/09/26/07/04/2026_ford_mustang-pic-5048896905568389234-1024x768.jpeg",
"url": "https://www.cargurus.com/details/460003322"
},
{
"searchUrl": "https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2",
"page": 1,
"listingId": "449569122",
"vin": "1FA6P8TH3T5124587",
"year": 2026,
"make": "Ford",
"model": "Mustang",
"trim": "EcoBoost Fastback RWD",
"bodyType": "Coupe",
"condition": "NEW",
"price": 30468,
"msrp": 35695,
"mileage": 20,
"engine": "315 hp 2.3L I4",
"transmission": "Automatic",
"drivetrain": "Rear-Wheel Drive",
"exteriorColor": "Adriatic Blue",
"fuelType": "Gasoline",
"mpgCombined": 26.95,
"dealerName": "Preston Autoplex Group",
"dealerCity": "Hurlock",
"dealerState": "MD",
"dealerZip": "21643",
"distance": 89.102234,
"imageUrl": "https://cdn-img.vincue.net/image/opt-dealerid50362-photoid2416062051-olid416438-overlaymodetopbottom--O6X5Z-ltid1/2416062051.jpg",
"url": "https://www.cargurus.com/details/449569122"
}
]
Code: Python, JavaScript and cURL
Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/cargurus-zipcode-search-scraper.
Python (apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {'searchUrls': ['https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2'],
'zipCode': '10001',
'radiusMiles': 100,
'maxPages': 1,
'maxItems': 20}
run = client.actor("v0iddo/cargurus-zipcode-search-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
JavaScript (apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
"searchUrls": [
"https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2"
],
"zipCode": "10001",
"radiusMiles": 100,
"maxPages": 1,
"maxItems": 20
};
const run = await client.actor('v0iddo/cargurus-zipcode-search-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
cURL
curl -X POST "https://api.apify.com/v2/acts/v0iddo~cargurus-zipcode-search-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchUrls": ["https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2"], "zipCode": "10001", "radiusMiles": 100, "maxPages": 1, "maxItems": 20}'
Price
$0.85 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.59 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.
Good to know
- Paste CarGurus vehicle search page URLs from your browser: https://www.cargurus.com/Cars/new/nl-New-Ford-Mustang-d2 for new cars or https://www.cargurus.com/Cars/used/nl-Used-... for used. Each...
- ZIP code and radius filter results by dealer proximity. CarGurus returns 15-25 listings per page; increase Pages per URL to collect more.
- Dealer phone numbers and private contact details are not included in output.
- Not affiliated with CarGurus.
FAQ
What data does the CarGurus Zipcode Search Scraper return?
Each result is one row in an Apify dataset. Fields include listingId, vin, year, make, model, trim, price, msrp, and more. The table above shows every field with an example value.
How do I use the CarGurus Zipcode Search Scraper from Python?
Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/cargurus-zipcode-search-scraper with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.
Can I use it without writing code?
Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.
How much does it cost?
$0.85 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.59 per 1,000. A new Apify account gets $5 of platform credit every month.
How do I limit the number of results?
Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.
Can I send the results to Google Sheets, Make, Zapier or n8n?
Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.
Open CarGurus Zipcode Search Scraper on Apify
Related guides
- Myntra Product Scraper: Scrape Myntra category and search listing pages into product rows: product ID, name, brand, price, MRP, dis...
- Rakuten Ichiba Listings Scraper: Scrape Rakuten Ichiba search results into product rows: title, JPY price, shop name, review score, review c...
- Made-in-China.com Product Scraper: Scrape Made-in-China.com product search pages by keyword.