Autotrader · Search listings
autotrader-com/vehicles/search_listingsGet product, price and seller data with Autotrader · Search listings from Alexandria through one Spiral API key. Discovering vehicles for sale in the US, or reading one dealership's Autotrader inventory and its new/used/certified counts by dealer_id or dealer website domain (e.g. comparing a dealer's own site against its marketplace syndication). 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. Pattern: ^[0-9]{5}$. |
sort | one of relevance, derivedpriceASC, derivedpriceDESC, mileageASC, mileageDESC, yearASC, yearDESC, distanceASC, datelistedDESC | — | Sort order. Default relevance. |
cursor | text | — | next_cursor from a previous page (the record offset). The site serves at most the first 1000 matches. Pattern: ^[0-9]{1,3}$. |
keyword | text | — | Free-text keyword phrase matched against listing descriptions, e.g. 'leather sunroof'. |
end_year | number 1900 to 2100 | — | Latest model year. |
dealer_id | number 1 to … | — | Restrict to one seller's inventory: the owner_id of a listing's seller (also dealer.dealer_id). Not with dealer_website. |
make_code | text | — | Autotrader make code, e.g. TOYOTA, HONDA, CHEV, MB (resolve free text with suggest_make_model). Pattern: ^[A-Z0-9]{1,20}$. |
max_price | number 0 to … | — | Maximum asking price in USD. |
min_price | number 0 to … | — | Minimum asking price in USD. |
page_size | number 1 to 100 | — | Listings per page, 1-100. Default 25. |
trim_code | text | — | Trim code in MODEL|TRIM form as returned by listing_facets(trims) or a listing's trim_code, e.g. CAMRY|SE. Pattern: ^[A-Z0-9_ .|/-]{1,60}$. |
model_code | text | — | Autotrader model code, e.g. CAMRY, CIVIC, 911 (from suggest_make_model). Requires make_code. Pattern: ^[A-Z0-9_-]{1,30}$. |
start_year | number 1900 to 2100 | — | Earliest model year. |
max_mileage | number 0 to … | — | Maximum odometer miles. |
listing_type | one of NEW, USED, CERTIFIED | — | Filter by NEW, USED or CERTIFIED (certified pre-owned). Omit for all. |
radius_miles | number 0 to 500 | — | Search radius in miles around zip; 0 means nationwide. Default 50. |
dealer_website | text | — | Restrict to one dealership by its own website domain or URL, e.g. alexandriatoyota.com or https://www.alexandriatoyota.com/. Resolved to a dealer_id through the site's dealer finder for the 50 dealers nearest zip, so use the dealership's own ZIP; not_found when no dealer near zip has that website, invalid_input when several do (then pass dealer_id). Not with dealer_id. |
vehicle_style_code | text | — | Body style code, e.g. SEDAN, SUVCROSS, TRUCKS, COUPE, CONVERT, VANS, WAGON, HATCH. Pattern: ^[A-Z_]{1,20}$. |
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": "autotrader-com/vehicles/search_listings",
"input": {
"zip": "<zip>"
}
}'Frequently asked questions
How much does Autotrader · 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 Autotrader · Search listings through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "autotrader-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 Autotrader · Search listings?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Autotrader · Search listings?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.