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

opencode · E-commerce

How to Use Autotrader car listings search in opencode

Returns matching vehicles advertised on Autotrader. Use it to build a shortlist or examine a dealership's advertised inventory before opening individual listings.

Prompts to try with Autotrader car listings search in opencode

Copy an example into opencode, or ask in your own words.

Use Autotrader car listings search to retrieve 2022 through 2024 Honda Accord advertisements around Seattle, then build a comparison view showing the returned vehicle identities, mileage, and listing links.

Autotrader car listings searchopencode
Try asking
  • Use Autotrader car listings search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Autotrader car listings search and tell me what changed since last week.

  • Check Autotrader car listings search and summarize what you find in three bullet points.

  • Pull the newest data from Autotrader car listings search and give me the result as a table.

How to set up Autotrader car listings search in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Autotrader car listings search

    One request; the result comes back by polling or a webhook.

    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>"
        }
      }'

Then paste one of the prompts above: opencode finds Autotrader car listings search on Spiral, shows the price and runs it.

Autotrader car listings search providers and prices

Spiral runs Autotrader car listings search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaE-commerce
Autotrader · Search listings
autotrader-com/vehicles/search_listings

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Sortrelevance, derivedpriceASC, derivedpriceDESC, mileageASC, mileageDESC, yearASC, yearDESC, distanceASC and 1 more

Sort order. Default relevance.

End year1900 to 2100

Latest model year.

Dealer IDa number from 1

Restrict to one seller's inventory: the owner_id of a listing's seller (also dealer.dealer_id). Not with dealer_website.

Max pricea number from 0

Maximum asking price in USD.

Min pricea number from 0

Minimum asking price in USD.

Page size1 to 100

Listings per page, 1-100. Default 25.

Start year1900 to 2100

Earliest model year.

Max mileagea number from 0

Maximum odometer miles.

Listing typeNEW, USED, or CERTIFIED

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

Radius miles0 to 500

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

Every API field of Autotrader · Search listings is on its tool page: open its card above.

What can you do with Autotrader car listings search in opencode?

Build a vehicle comparison view that connects Autotrader model references, inventory breakdowns, advertisements, and specifications. Keep seller descriptions and reference specifications distinct in the project's comparison tables.

Build a used-car shortlist

Resolve Toyota Camry and Honda Accord names, examine available years and trims, and retrieve matching advertisements. Open the strongest candidates and compare their vehicle specifications before choosing cars to inspect.

Compare trims that are actually advertised

Resolve a Honda CR-V search, identify trims represented in inventory, and retrieve examples of each. Compare listing details with reference specifications to prepare questions about equipment before visiting a dealer.

Decide whether to widen a vehicle search

Resolve the Porsche 911 model reference and compare inventory breakdowns near Atlanta with a nationwide search. Inspect comparable advertisements and specifications so differences in configuration do not get mistaken for differences in availability.

Compare certified and other used inventory

Resolve Toyota RAV4 names, examine the years and trims advertised as certified or used, and retrieve candidates from each search. Read individual advertisements and compare specifications before investigating the applicable certification program.

Prepare a dealership visit

Find advertised Toyota Tacoma vehicles at a public dealership, open a short list of advertisements, and compare their configurations. Produce a compact list of vehicles and equipment questions for a visit.

Choose useful search categories

Resolve Chevrolet Silverado model references and inspect inventory breakdowns before retrieving advertisements. Use the returned model and trim distinctions to avoid combining different vehicles in one comparison.

Review a dealer's marketplace advertisements

Retrieve one dealership's Autotrader inventory and inspect selected advertisements. For a review covered by the relevant data-use permission, compare vehicle identities and descriptions with the dealership's own public listings.

Autotrader car listings search success rate and speed on Spiral

Success and speed over the last 24 hours, across every run of these tools on Spiral.

Success rate
92.1%
Fastest median run time
3.0s
Runs, last 24 hours
63
ToolSuccessMedian timeRuns
Autotrader · Search listings92.1%3.0s63

Questions about Autotrader car listings search in opencode

Can opencode use Autotrader car listings search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Autotrader car listings search like any built-in tool.

How much does Autotrader car listings search cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use Autotrader car listings search in opencode?

No. Spiral runs Autotrader car listings search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Autotrader car listings search in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Autotrader car listings search runs?

Autotrader car listings search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does Autotrader cover dealer inventory or private advertisements?

Autotrader includes both dealer and private-seller inventory, covering new, used, and certified vehicles. These are advertisements on Autotrader, so the results describe its marketplace coverage.

How fresh is Autotrader inventory?

Autotrader says it updates inventory daily. It also says it cannot guarantee that every vehicle displayed remains available for sale.

How quickly should sold dealer vehicles disappear?

Autotrader requires dealers to remove sold vehicles from their inventory feeds immediately and no later than 24 hours after sale. That requirement is a dealer obligation, not a guarantee that every visible listing is available.

What does Newly Listed mean?

Autotrader uses Newly Listed for an advertisement posted within the last seven days. The label describes the listing's arrival on Autotrader.

Where does the information in a vehicle advertisement come from?

Autotrader says new-car listing information is supplied by the selling dealer, including the VIN and often a stock number. Its dealer guidelines require accurate vehicle identity, equipment, and mileage information.

Get started

Start using Autotrader car listings search in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options