[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [CarGurus used car listings](https://spiral.ai/integrations/codex/cargurus-used-car-listings)

# How to Use CarGurus used car listings in Codex

Returns matching US used-car listings near a ZIP code, with vehicle and market-comparison information. Use it to build a local shortlist before examining each car’s full record.

|  |  |
| --- | --- |
| Model | CarGurus used car listings |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with CarGurus used car listings in Codex

- Use CarGurus used car listings to find Toyota Camry inventory near ZIP 02139 and map the returned mileage, dealer location, and deal rating into our comparison view.
- Use CarGurus used car listings to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from CarGurus used car listings and tell me what changed since last week.
- Check CarGurus used car listings and summarize what you find in three bullet points.
- Pull the newest data from CarGurus used car listings and give me the result as a table.

## How to set up CarGurus used car listings in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run CarGurus used car listings**: One request; the result comes back by polling or a webhook.

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

Then paste one of the prompts above: Codex finds CarGurus used car listings on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## CarGurus used car listings tools and prices

- [CarGurus · Search listings](https://spiral.ai/tools/alexandria/cargurus-com/vehicles/search_listings) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 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 | 1900 to 2100 | — | Latest model year. |
| sort_dir | ASC, DESC | — | Sort direction. Default ASC. |
| entity_id |  | — | 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 | 0 to … | — | Maximum listing price in USD. |
| min_price | 0 to … | — | Minimum listing price in USD. |

## What can you do with CarGurus used car listings in Codex?

Build a vehicle comparison feature that connects CarGurus catalog names with local inventory and ownership research. Use the returned records to keep model-level reviews separate from individual listing details.

### Build a first-car shortlist

Browse makes and models, resolve Toyota Corolla and Honda Civic names, compare local listings, read owner experiences, and inspect the details of the strongest candidates.

### Research cars before relocating

Explore brands and model choices for a move to Denver, resolve the selected vehicle names, find nearby inventory, and combine model reviews with individual vehicle histories.

### Compare used electric-car candidates

Start with available makes and models, identify Nissan Leaf and Chevrolet Bolt matches, compare listings near Seattle, and read owner feedback before examining specific cars.

### Choose an SUV to test-drive

Browse brand and model choices, resolve Subaru Forester and Toyota RAV4 names, compare nearby listings and owner reviews, then inspect each candidate’s specifications and history.

### Prepare questions for a dealer visit

Compare a shortlisted car with nearby listings, examine its price analysis and vehicle history, and use model owner reviews to identify questions worth asking during the visit.

### Follow a personal vehicle shortlist

Revisit selected model names and local listings, then compare the details of shortlisted cars across checks. Keep model-level owner feedback separate from the history of each individual car.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## CarGurus used car listings in other agents

- [Amp](https://spiral.ai/integrations/amp/cargurus-used-car-listings)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/cargurus-used-car-listings)
- [Claude](https://spiral.ai/integrations/claude-desktop/cargurus-used-car-listings)
- [Claude Code](https://spiral.ai/integrations/claude-code/cargurus-used-car-listings)
- [Cline](https://spiral.ai/integrations/cline/cargurus-used-car-listings)
- [Cursor](https://spiral.ai/integrations/cursor/cargurus-used-car-listings)
- [Devin](https://spiral.ai/integrations/devin/cargurus-used-car-listings)
- [dots](https://spiral.ai/integrations/dots/cargurus-used-car-listings)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/cargurus-used-car-listings)
- [Gemini](https://spiral.ai/integrations/gemini/cargurus-used-car-listings)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/cargurus-used-car-listings)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/cargurus-used-car-listings)
- [goose](https://spiral.ai/integrations/goose/cargurus-used-car-listings)
- [Grok](https://spiral.ai/integrations/grok/cargurus-used-car-listings)
- [Grok Build](https://spiral.ai/integrations/grok-build/cargurus-used-car-listings)
- [Hermes](https://spiral.ai/integrations/hermes/cargurus-used-car-listings)
- [Instinct](https://spiral.ai/integrations/instinct/cargurus-used-car-listings)
- [Manus](https://spiral.ai/integrations/manus/cargurus-used-car-listings)
- [Muse](https://spiral.ai/integrations/muse/cargurus-used-car-listings)
- [Muse Code](https://spiral.ai/integrations/muse-code/cargurus-used-car-listings)
- [n8n](https://spiral.ai/integrations/n8n/cargurus-used-car-listings)
- [Notion](https://spiral.ai/integrations/notion/cargurus-used-car-listings)
- [OpenClaw](https://spiral.ai/integrations/openclaw/cargurus-used-car-listings)
- [opencode](https://spiral.ai/integrations/opencode/cargurus-used-car-listings)
- [Perplexity](https://spiral.ai/integrations/perplexity/cargurus-used-car-listings)
- [Raycast](https://spiral.ai/integrations/raycast/cargurus-used-car-listings)
- [VS Code](https://spiral.ai/integrations/vscode/cargurus-used-car-listings)
- [Windsurf](https://spiral.ai/integrations/windsurf/cargurus-used-car-listings)
- [Zapier](https://spiral.ai/integrations/zapier/cargurus-used-car-listings)

## More Codex guides

- [CarGurus model owner reviews](https://spiral.ai/integrations/codex/cargurus-model-owner-reviews)
- [CarGurus vehicle listing details](https://spiral.ai/integrations/codex/cargurus-vehicle-listing-details)
- [CarGurus car models](https://spiral.ai/integrations/codex/cargurus-car-models)
- [CarGurus vehicle name suggestions](https://spiral.ai/integrations/codex/cargurus-vehicle-name-suggestions)
- [CarGurus car makes](https://spiral.ai/integrations/codex/cargurus-car-makes)
- [Christie's auction catalog](https://spiral.ai/integrations/codex/christie-s-auction-catalog)

## Questions about CarGurus used car listings in Codex

**Can Codex use CarGurus used car listings?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run CarGurus used car listings like any built-in tool.

**How much does CarGurus used car listings cost in Codex?**

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

**Do I need an Alexandria account to use CarGurus used car listings in Codex?**

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

**How long does it take to set up CarGurus used car listings in Codex?**

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

**Does Codex wait while CarGurus used car listings runs?**

CarGurus used car listings runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Does this cover every car for sale?**

The documented search covers US used-car listings. CarGurus gathers inventory from participating franchise and independent dealers, so it should not be described as a complete census of cars for sale.

**Are private-party advertisements included?**

CarGurus says it does not currently host advertisements where individuals sell cars directly to other individuals. Its marketplace inventory comes from participating dealers.

**How fresh is CarGurus’ market-value estimate?**

CarGurus updates Instant Market Value daily. That schedule applies to its valuation calculations and does not establish a refresh schedule for every listing, catalog entry, or owner review.

**Does CarGurus provide a guaranteed vehicle appraisal?**

No. CarGurus explicitly describes Instant Market Value as pricing guidance rather than an official appraisal or guarantee.

**Why might a car have no deal rating?**

Missing dealer fee information is one documented reason. CarGurus gives those used listings a “No Rating” price analysis and moves them lower in search results.

