Autotrader · Listing facets
autotrader-com/vehicles/listing_facetsGet product, price and seller data with Autotrader · Listing facets from Alexandria through one Spiral API key. To see which years, trims or cities have inventory before searching, or to pick a trim_code for search_listings. 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 |
|---|---|---|---|
facet required | one of model_years, trims, cities | — | model_years, trims or cities. |
make_code required | text | — | Autotrader make code, e.g. TOYOTA, HONDA, CHEV, MB (resolve free text with suggest_make_model). Pattern: ^[A-Z0-9]{1,20}$. |
zip | text | — | 5-digit US ZIP code; ignored by the cities facet. Pattern: ^[0-9]{5}$. |
model_code | text | — | Autotrader model code, e.g. CAMRY, CIVIC, 911 (from suggest_make_model). Requires make_code. Pattern: ^[A-Z0-9_-]{1,30}$. |
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. |
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/listing_facets",
"input": {
"facet": "model_years",
"make_code": "<make_code>"
}
}'Frequently asked questions
How much does Autotrader · Listing facets 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 · Listing facets through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "autotrader-com/vehicles/listing_facets"` 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 · Listing facets?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Autotrader · Listing facets?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.