# RockAuto Search API Documentation

<p><strong>RockAuto Search API</strong> searches public car-part listings. Send <code>query</code> with a <code>carcode</code>, or <code>part_number</code> alone. Each item has brand, part number, price and core charge as numbers with currency, availability, a full-size image URL, and the ids (<code>part_key</code>, <code>car_code</code>, <code>part_type</code>) that the product route accepts unchanged.</p><p>Only page 1 is available; RockAuto has no public continuation token, so <code>page</code> accepts only 1. Shipped language variants are en, de and fr. Prices are numbers; RockAuto shows no list price, so original_price and discount are null, and core_charge is a refundable deposit. A request with no results or a failed request is never billed. Costs 1 credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/rockauto-api/rockauto_search](https://scrappa.co/docs/rockauto-api/rockauto_search)
- **API group:** RockAuto API
- **Endpoint:** `GET https://scrappa.co/api/rockauto/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search text, 1 to 120 characters, for example brake pad. Requires carcode. |
| `part_number` | string | Yes | A part number to look up, for example 10032116C. Use this or query, not both. |
| `make` | string | No | Optional vehicle filter for query search. Cannot be combined with part_number. |
| `year` | string | No | Optional vehicle filter for query search. Cannot be combined with part_number. |
| `model` | string | No | Optional vehicle filter for query search. Cannot be combined with part_number. |
| `carcode` | string | No | Numeric vehicle id from a RockAuto vehicle catalog URL or from car_code in a previous search. Required with query; forbidden with part_number. |
| `language` | string | No | en, de or fr (default en). Other variants are not available. |
| `page` | integer | No | Only 1 is available. Any other value answers 422. |

## Example response

```json
{
    "data": {
        "page": 1,
        "count": 1,
        "items": [
            {
                "name": "FMG PSG1056",
                "brand": "FMG",
                "price": 9.5,
                "total": 9.5,
                "rating": null,
                "car_code": "3440320",
                "currency": "EUR",
                "discount": null,
                "part_key": "18570437",
                "position": 1,
                "image_url": "https://www.rockauto.com/info/1277/1277_PSG1056_1.jpg",
                "part_type": "1684",
                "detail_url": "https://www.rockauto.com/en/moreinfo.php?pk=18570437&cc=3440320&pt=1684",
                "partnumber": "PSG1056",
                "sale_price": 9.5,
                "scraped_at": "2026-11-17T12:00:00+00:00",
                "core_charge": 0,
                "part_number": "PSG1056",
                "availability": true,
                "review_count": null,
                "quality_group": "Economy",
                "original_price": null,
                "warehouse_stock": null
            }
        ],
        "query": "brake pad",
        "vehicle": {
            "make": "DODGE",
            "year": "2018",
            "model": "CHARGER",
            "engine": "3.6L V6",
            "car_code": "3440320",
            "part_type": "1684"
        },
        "currency": "EUR",
        "language": "en",
        "part_number": null,
        "has_next_page": false
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Invalid Parameter | A filter cannot be honoured, for example page above 1 or an unavailable language. Not billed. |
| 404 | Not Found | No parts were found. Not billed. |
| 503 | Upstream Unavailable | RockAuto could not be reached. Not billed. Retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
