Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaE-commerceAvailable now

Autotrader · Search listings

autotrader-com/vehicles/search_listings

Get 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

FieldKindDefaultDescription
zip requiredtext—

5-digit US ZIP code the search radius is centred on. Pattern: ^[0-9]{5}$.

sortone of
relevance, derivedpriceASC, derivedpriceDESC, mileageASC, mileageDESC, yearASC, yearDESC, distanceASC, datelistedDESC
—

Sort order. Default relevance.

cursortext—

next_cursor from a previous page (the record offset). The site serves at most the first 1000 matches. Pattern: ^[0-9]{1,3}$.

keywordtext—

Free-text keyword phrase matched against listing descriptions, e.g. 'leather sunroof'.

end_yearnumber
1900 to 2100
—

Latest model year.

dealer_idnumber
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_codetext—

Autotrader make code, e.g. TOYOTA, HONDA, CHEV, MB (resolve free text with suggest_make_model). Pattern: ^[A-Z0-9]{1,20}$.

max_pricenumber
0 to …
—

Maximum asking price in USD.

min_pricenumber
0 to …
—

Minimum asking price in USD.

page_sizenumber
1 to 100
—

Listings per page, 1-100. Default 25.

trim_codetext—

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_codetext—

Autotrader model code, e.g. CAMRY, CIVIC, 911 (from suggest_make_model). Requires make_code. Pattern: ^[A-Z0-9_-]{1,30}$.

start_yearnumber
1900 to 2100
—

Earliest model year.

max_mileagenumber
0 to …
—

Maximum odometer miles.

listing_typeone of
NEW, USED, CERTIFIED
—

Filter by NEW, USED or CERTIFIED (certified pre-owned). Omit for all.

radius_milesnumber
0 to 500
—

Search radius in miles around zip; 0 means nationwide. Default 50.

dealer_websitetext—

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_codetext—

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.