Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APICarGurus

    cargurus.search

    Used cars for sale on CarGurus near a US ZIP code, by make, model, price, year and mileage: price, CarGurus's market value and deal rating, VIN, specification and the dealer.

    Id
    cargurus.search
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/cargurus.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of cargurus.search
    FieldTypeDescription
    ziprequiredstringThe US ZIP code to search around, e.g. 60601.Limit: matches ^\d{5}$.
    makestringThe make as CarGurus names it, e.g. Honda, Land Rover, Mercedes-Benz. Empty: every make.Limit: at most 40 characters.
    modelstringThe model as CarGurus names it, e.g. Civic, CR-V, F-150. Needs a make.Limit: at most 60 characters.
    radius10 | 25 | 50 | 75 | 100 | 150 | 200 | 500 | "nationwide"How far from the ZIP code to search, in miles, or nationwide.Default: 50.
    price_minintegerThe lowest price, in US dollars.Limit: 0 to 10000000.
    price_maxintegerThe highest price, in US dollars.Limit: 0 to 10000000.
    year_minintegerThe oldest model year.Limit: 1900 to 2100.
    year_maxintegerThe newest model year.Limit: 1900 to 2100.
    mileage_maxintegerThe highest mileage, in miles.Limit: 0 to 1000000.
    include_deliverybooleanAlso return cars further away that the seller offers to deliver. Off: only cars within the radius.Default: false.
    sort"best_match" | "best_deal" | "price_low" | "price_high" | "mileage_low" | "mileage_high" | "distance" | "year_newest" | "year_oldest" | "newest_listing"The order of the results, as the site offers them. Sponsored results come first in every order; a price order counts the dealer's fees.Default: "best_match".
    pageintegerThe page of the results, from 1. A page holds about 22 cars.Limit: 1 to 100. Default: 1.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of cargurus.search
    FieldTypeNotes
    listing_idintegerCarGurus's id of the listing.
    urlstringThe listing's page on cargurus.com.
    titlestringThe year, make, model and trim, e.g. 2017 Honda Civic LX.
    sponsoredbooleanTrue for a result CarGurus places as featured, priority or highlighted (paid placement); such results come first whatever the order asked for.
    vinstring or nullThe vehicle identification number.
    yearinteger or nullThe model year.
    makestring or nullThe make, e.g. Honda.
    modelstring or nullThe model, e.g. Civic.
    trimstring or nullThe trim, e.g. LX.
    body_stylestring or nullThe body style, e.g. Sedan, SUV / Crossover, Pickup Truck.
    pricenumber or nullThe asking price before the dealer's fees, in US dollars. Null when the seller does not state one.
    total_pricenumber or nullThe price with the dealer's stated fees, in US dollars: the price the result prints. Null where CarGurus shows none.
    market_pricenumber or nullCarGurus's estimate of the car's market value (its instant market value), in US dollars.
    deal_ratingstring or nullCarGurus's rating of the price against that value: GREAT_PRICE, GOOD_PRICE, FAIR_PRICE, HIGH_PRICE, OVERPRICED, OUTLIER or NA.
    mileageinteger or nullThe odometer reading, in miles.
    days_on_marketinteger or nullHow many days the car has been listed on CarGurus.
    exterior_colorstring or nullThe exterior colour, e.g. Black.
    interior_colorstring or nullThe interior colour.
    drivetrainstring or nullThe drive, e.g. Front-Wheel Drive, All-Wheel Drive.
    enginestring or nullThe engine, e.g. 158 hp 2L I4.
    transmissionstring or nullThe transmission, e.g. Automatic, Continuously Variable Transmission.
    fuel_typestring or nullThe fuel, e.g. Gasoline, Hybrid, Electric.
    doorsstring or nullThe number of doors as printed, e.g. 4 doors.
    optionsarray of stringThe options the result lists, e.g. Backup Camera, CarPlay.
    imagestring or nullThe listing's main photo.
    photo_countinteger or nullHow many photos the listing has.
    stock_numberstring or nullThe dealer's stock number for the car.
    distance_milesnumber or nullHow far the seller is from the ZIP code searched, in miles. Beyond the radius only for a car offered for delivery.
    dealer_namestring or nullThe selling dealer's name. Null for a private seller.
    dealer_phonestring or nullThe dealer's phone number as the result gives it. Null for a private seller.
    dealer_citystring or nullThe seller's town.
    dealer_statestring or nullThe seller's state, as a two-letter code.
    dealer_postal_codestring or nullThe seller's ZIP code.
    seller_typestring or nullDEALER or PRIVATE, as CarGurus marks the seller.
    fetched_atstring (date-time)When the results were read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/cargurus.search/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"zip":"60601","make":"Honda","model":"Civic","sort":"price_low"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("cargurus.search", {
        "zip": "60601",
        "make": "Honda",
        "model": "Civic",
        "sort": "price_low",
    })
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    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 a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("cargurus.search", {
      zip: "60601",
      make: "Honda",
      model: "Civic",
      sort: "price_low",
    });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    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(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "cargurus.search", map[string]any{"zip": "60601", "make": "Honda", "model": "Civic", "sort": "price_low"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.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.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("cargurus.search", Map.of("zip", "60601", "make", "Honda", "model", "Civic", "sort", "price_low"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run cargurus.search --input-json '{"zip":"60601","make":"Honda","model":"Civic","sort":"price_low"}'

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

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "zip": "60601",
        "make": "Honda",
        "model": "Civic",
        "sort": "price_low"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "cargurus.search",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "zip": "60601",
        "make": "Honda",
        "model": "Civic",
        "sort": "price_low"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "listing_id": 464285716,
          "url": "https://www.cargurus.com/details/464285716",
          "title": "2025 Honda Civic LX FWD",
          "sponsored": true,
          "vin": "2HGFE2F28SH604668",
          "year": 2025,
          "make": "Honda",
          "model": "Civic",
          "trim": "LX FWD",
          "body_style": "Sedan",
          "price": 21750,
          "total_price": 22162,
          "market_price": 22655,
          "deal_rating": "GOOD_PRICE",
          "mileage": 31730,
          "days_on_market": 5,
          "exterior_color": "Crystal Black Pearl",
          "interior_color": "Black",
          "drivetrain": "Front-Wheel Drive",
          "engine": "150 hp 2L I4",
          "transmission": "Continuously Variable Transmission",
          "fuel_type": "Gasoline",
          "doors": "4 doors",
          "options": [
            "Adaptive Cruise Control",
            "Backup Camera",
            "Android Auto"
          ],
          "image": "https://static.cargurus.com/images/forsale/2026/11/14/06/45/2025_honda_civic-pic-862956209633179424-1024x768.jpeg",
          "photo_count": null,
          "stock_number": "PKC16377",
          "distance_miles": 17.7,
          "dealer_name": "Ed Napleton Acura Kia of Elmhurst",
          "dealer_phone": "(708) 540-2815",
          "dealer_city": "Elmhurst",
          "dealer_state": "IL",
          "dealer_postal_code": "60126",
          "seller_type": "DEALER",
          "fetched_at": "2026-11-19T18:07:39.632076Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: options: 4 items, the first 3 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the CarGurus scrapers are in their own section there.