# 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/workflows/rockauto
- Handle: `@rockauto`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://rockauto.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with RockAuto.

## Methods

### Search parts

Operation `search_parts`, version 1. 1 credit per call.

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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@rockauto","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with RockAuto?

No. Fous is not affiliated with RockAuto. This workflow reads the public rockauto.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/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/workflows/autotrader.md): Search new, used and certified cars for sale across the United States.
- [Cars.com API](https://fous.com/workflows/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/workflows/carmax.md): Search public CarMax used-car listings.
- [Carvana API](https://fous.com/workflows/carvana.md): Search used vehicles for sale on Carvana.
- [CarGurus API](https://fous.com/workflows/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/workflows/mobile-de.md): Search cars for sale on mobile.de.
- [Carfax API](https://fous.com/workflows/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 workflows](https://fous.com/workflows/category/commerce)
