# RockAuto API

> RockAuto returns vehicle parts and listed prices as a workflow and API.

RockAuto, also called Rock Auto, returns parts for a vehicle and category, sorted by listed price. Search parts needs a vehicle make, model, year and part category; an engine is optional and defaults to the first listed engine. Results include part details and prices in USD, excluding shipping and taxes.

- Page: https://fous.com/tools/rockauto
- Handle: `@rockauto`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://rockauto.com
- Last verified: Sep 29, 2026

## Methods

### Search parts

Operation `search_parts`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Find RockAuto parts for a vehicle and part category, sorted by listed price. Prices are in USD; listed prices exclude shipping and taxes. When no engine is given, uses the first engine in the catalogue.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `make` | string | yes | `"Honda"` | Vehicle maker, for example Honda. |
| `part` | string | yes | `"spark plugs"` | Part in words, for example brake pads. |
| `year` | integer | yes | `2015` | Vehicle model year, for example 2015. |
| `model` | string | yes | `"Civic"` | Vehicle model, for example Civic. |
| `engine` | string | no | `"1.8L L4"` | Engine, for example 1.8L L4. Defaults to the first listed engine. |
| `max_results` | integer | no | `6` | Maximum parts to return, for example 30. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "year",
    "make",
    "model",
    "part"
  ],
  "properties": {
    "make": {
      "type": "string",
      "description": "Vehicle maker, for example Honda.",
      "examples": [
        "Honda"
      ]
    },
    "part": {
      "type": "string",
      "description": "Part in words, for example brake pads.",
      "examples": [
        "spark plugs",
        "brake pads"
      ]
    },
    "year": {
      "type": "integer",
      "description": "Vehicle model year, for example 2015.",
      "examples": [
        2015
      ]
    },
    "model": {
      "type": "string",
      "description": "Vehicle model, for example Civic.",
      "examples": [
        "Civic"
      ]
    },
    "engine": {
      "type": "string",
      "description": "Engine, for example 1.8L L4. Defaults to the first listed engine.",
      "examples": [
        "1.8L L4"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 30,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum parts to return, for example 30.",
      "x-fous-developer": true,
      "examples": [
        6,
        10
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "make": "Honda",
      "part": "spark plugs",
      "year": 2015,
      "model": "Civic",
      "max_results": 6
    },
    {
      "make": "Honda",
      "part": "brake pads",
      "year": 2015,
      "model": "Civic",
      "engine": "1.8L L4",
      "max_results": 10
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `parts` | array |  |  |
| `parts[].brand` | string | `"CHAMPION"` |  |
| `parts[].notes` | string or null | `"2 Plugs Per Cylinder Required; OE-Recommended Gap: 0.044\""` |  |
| `parts[].price_usd` | number | `1.99` |  |
| `parts[].image_link` | string or null | `"https://www.rockauto.com/info/12/CCH_975_P04_FRO__ra_m.jpg"` |  |
| `parts[].description` | string or null | `"Copper Plus; Pre-Set Gap: 0.042\""` |  |
| `parts[].part_number` | string | `"975"` |  |
| `parts[].quality_tier` | string or null | `"Copper / Nickel"` |  |
| `parts[].core_charge_usd` | number or null |  |  |
| `parts[].catalogue_page_link` | string | `"https://www.rockauto.com/en/catalog/honda,2015,civic,1.5l+l4+electric/gas,3310197,ignition,spark+plug,7212"` |  |
| `vehicle` | object |  |  |
| `vehicle.make` | string | `"HONDA"` |  |
| `vehicle.year` | integer | `2015` |  |
| `vehicle.model` | string | `"CIVIC"` |  |
| `vehicle.engine` | string | `"1.5L L4 ELECTRIC/GAS"` |  |
| `part_category` | string | `"Spark Plug"` |  |

**Example input**

```json
{
  "make": "Honda",
  "part": "spark plugs",
  "year": 2015,
  "model": "Civic",
  "max_results": 6
}
```

**Example output**

```json
{
  "parts": [
    {
      "brand": "CHAMPION",
      "notes": "2 Plugs Per Cylinder Required; OE-Recommended Gap: 0.044\"",
      "price_usd": 1.99,
      "image_link": "https://www.rockauto.com/info/12/CCH_975_P04_FRO__ra_m.jpg",
      "description": "Copper Plus; Pre-Set Gap: 0.042\"",
      "part_number": "975",
      "quality_tier": "Copper / Nickel",
      "core_charge_usd": null,
      "catalogue_page_link": "https://www.rockauto.com/en/catalog/honda,2015,civic,1.5l+l4+electric/gas,3310197,ignition,spark+plug,7212"
    },
    {
      "brand": "ACDELCO",
      "notes": "OE-Recommended Gap: 0.044\" (IN); 2 Plugs Per Cylinder Required",
      "price_usd": 3.24,
      "image_link": "https://www.rockauto.com/info/341/19323046_Primary__ra_m.jpg",
      "description": "Professional; Rapidfire; Pre-Set Gap: 0.045\"",
      "part_number": "21",
      "quality_tier": "Platinum (lasts up to 2x longer than Copper / Nickel)",
      "core_charge_usd": null,
      "catalogue_page_link": "https://www.rockauto.com/en/catalog/honda,2015,civic,1.5l+l4+electric/gas,3310197,ignition,spark+plug,7212"
    },
    {
      "brand": "SKP",
      "notes": "Gap: .044/1.1mm; w/ Dual Spark Plugs",
      "price_usd": 3.55,
      "image_link": "https://www.rockauto.com/info/983/sp1022__ra_m.jpg",
      "description": "Tapered Ground Electrode w/ Platinum Chip",
      "part_number": "SP1022",
      "quality_tier": "Iridium (lasts up to 4x longer than Copper / Nickel)",
      "core_charge_usd": null,
      "catalogue_page_link": "https://www.rockauto.com/en/catalog/honda,2015,civic,1.5l+l4+electric/gas,3310197,ignition,spark+plug,7212"
    }
  ],
  "vehicle": {
    "make": "HONDA",
    "year": 2015,
    "model": "CIVIC",
    "engine": "1.5L L4 ELECTRIC/GAS"
  },
  "part_category": "Spark Plug"
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@rockauto",
  "visibility": "public",
  "operation": "search_parts",
  "version": 1,
  "input": {
    "make": "Honda",
    "part": "spark plugs",
    "year": 2015,
    "model": "Civic",
    "max_results": 6
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@rockauto\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_parts\",\n  \"version\": 1,\n  \"input\": {\n    \"make\": \"Honda\",\n    \"part\": \"spark plugs\",\n    \"year\": 2015,\n    \"model\": \"Civic\",\n    \"max_results\": 6\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@rockauto",
  "visibility": "public",
  "operation": "search_parts",
  "version": 1,
  "input": {
    "make": "Honda",
    "part": "spark plugs",
    "year": 2015,
    "model": "Civic",
    "max_results": 6
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/rockauto`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `search_parts`: Search parts. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-rockauto https://api.fous.com/mcp/tools/rockauto --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare listed prices for parts by vehicle.
- Review brands and part details before choosing a replacement.
- Find part numbers for a vehicle and part category.
- Check whether a part listing includes a core charge.

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this RockAuto tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a RockAuto account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from rockauto.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What parts are listed for my vehicle?

Search parts returns parts for the supplied vehicle and part category.

### How much do the listed parts cost?

Search parts returns listed prices in USD, excluding shipping and taxes.

### Which engine is used if I leave it blank?

Search parts uses the first engine in the catalogue when no engine is supplied.

## Related

- [AutoZone API](https://fous.com/tools/autozone.md): AutoZone finds parts and stores; engine fit may need confirmation, prices or warranties may be missing beyond 24 parts, and store listings cap at 25.
- [Autotrader API](https://fous.com/tools/autotrader.md): Search new, used and certified cars for sale across the United States.
- [Cars.com API](https://fous.com/tools/cars-com.md): Cars.com finds car listings by make, model, and U.S. ZIP code, and provides dealerships’ latest customer reviews when available.
- [CarMax API](https://fous.com/tools/carmax.md): Search public CarMax used-car listings.
- [Carvana API](https://fous.com/tools/carvana.md): Search used vehicles for sale on Carvana.
- [CarGurus API](https://fous.com/tools/cargurus.md): CarGurus helps shoppers browse dealer-listed new and used cars with deal ratings, and view average used prices, price ranges and 12-month price history by model year.
- [mobile.de API](https://fous.com/tools/mobile-de.md): Search cars for sale on mobile.de.
- [Carfax API](https://fous.com/tools/carfax.md): Carfax provides used-car listings near a US ZIP code with free history highlights, plus open safety recalls reported by CARFAX for a VIN or US plate.
- [All Commerce tools](https://fous.com/tools/category/commerce)
