CarGurus · Search listings
cargurus-com/vehicles/search_listingsGet product, price and seller data with CarGurus · Search listings from Alexandria through one Spiral API key. Finding used vehicles for sale near a US ZIP code, comparing prices against CarGurus' market value, or enumerating trims and counts for a model in an area. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
zip required | text | — | 5-digit US ZIP code the search radius is centred on. A ZIP the site cannot resolve is invalid_input. Pattern: ^[0-9]{5}$. |
page | number 1 to 10000 | — | 1-based page number (page 1 carries 18 organic results, later pages 21, plus sponsored tiles); use next_page from the previous result. A page past the last one is invalid_input. |
end_year | number 1900 to 2100 | — | Latest model year. |
sort_dir | one of ASC, DESC | — | Sort direction. Default ASC. |
entity_id | text | — | CarGurus ontology id to search: a make (m7 = Toyota), model (d292 = Toyota Camry), model year (c33246) or trim (t56819), from suggest_vehicles, list_makes or list_models. Omit to search all vehicles. Pattern: ^[mdct][0-9]{1,9}$. |
max_price | number 0 to … | — | Maximum listing price in USD. |
min_price | number 0 to … | — | Minimum listing price in USD. |
sort_type | one of BEST_MATCH, DEAL_SCORE, PRICE, MILEAGE, PROXIMITY, NEWEST_CAR_YEAR, AGE_IN_DAYS | — | Sort key: BEST_MATCH (default), DEAL_SCORE (best deals first), PRICE, MILEAGE, PROXIMITY, NEWEST_CAR_YEAR, AGE_IN_DAYS (listing age). |
start_year | number 1900 to 2100 | — | Earliest model year. |
max_mileage | number 0 to … | — | Maximum odometer miles. |
max_results | number 1 to 24 | — | Return only the first N listings of the page (the site's page is 24 tiles; next_page still advances by site page). Default: the whole page. |
min_mileage | number 0 to … | — | Minimum odometer miles. |
distance_miles | number 1 to 50000 | — | Search radius in miles; the site offers 10, 25, 50, 75, 100, 150, 200, 500 and 50000 (nationwide). Default 50. Only listings physically within the radius are returned (the site's nationwide store-transfer / home-delivery padding is switched off). |
transmission_types | list | — | Transmission filter. |
body_type_group_ids | list | — | Body style group ids: 0 Coupe, 1 Convertible, 3 Hatchback, 4 Minivan, 5 Pickup Truck, 6 Sedan, 7 SUV / Crossover, 8 Van, 9 Wagon (the numeric part of a listing's body_type_group_id bg<n>). |
make_model_trim_paths | list | — | Make/model/trim paths as the site encodes them, e.g. ["m7", "m7/d292"] or ["m7/d292/XLE AWD"] (a trims facet value). Usually unnecessary: the site derives them from entity_id. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "cargurus-com/vehicles/search_listings",
"input": {
"zip": "<zip>"
}
}'Frequently asked questions
How much does CarGurus · Search listings cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use CarGurus · Search listings through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "cargurus-com/vehicles/search_listings"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use CarGurus · Search listings?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use CarGurus · Search listings?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.