APIs / Cars / RockAuto

1 credit per call2 endpoints18 datapointsChecked working 6 Dec 2026

RockAuto API

RockAuto API for part search by keyword, part number or vehicle, and part details with prices, core charges and stock as JSON. 1 credit per successful call.

RockAuto
GET/v1/rockauto/search?query=brake+pad&carcode=3440320
{
  "success": true,
  "data": {
    "query": "brake pad",
    "language": "en",
    "page": 1,
    "count": 231,
    "has_next_page": false,
    "currency": "USD",
    "vehicle": {
      "make": "dodge",
      "year": "2018",
      "model": "charger",
      "engine": "3.6l v6",
      "car_code": "3440320",
      "part_type": "1684"
    },
    "items": [
      {
        "name": "FMG PSG1056",
        "brand": "FMG",
        "part_number": "PSG1056",
        "price": 10.46,
        "currency": "USD",
        "sale_price": 10.46,
        "core_charge": 0,
        "total": 10.46,
        "availability": true,
        "quality_group": "Economy",
        "image_url": "https://www.rockauto.com/info/1277/1277_PSG1056_1.jpg",
        "part_key": "18570437",
        "car_code": "3440320",
        "part_type": "1684",
        "detail_url": "https://www.rockauto.com/en/moreinfo.php?pk=18570437&cc=3440320&pt=1684",
        "partnumber": "PSG1056",
        "scraped_at": "2026-11-18T07:13:20+00:00",
        "position": 1
      },
      {
        "name": "PRO LINE PS1057C",
        "brand": "PRO LINE",
        "part_number": "PS1057C",
        "price": 10.54,
        "currency": "USD",
        "sale_price": 10.54,
        "core_charge": 0,
        "total": 10.54,
        "availability": true,
        "quality_group": "Economy",
        "image_url": "https://www.rockauto.com/info/873/873_PS1057C_1.jpg",
        "part_key": "14834021",
        "car_code": "3440320",
        "part_type": "1684",
        "detail_url": "https://www.rockauto.com/en/moreinfo.php?pk=14834021&cc=3440320&pt=1684",
        "partnumber": "PS1057C",
        "scraped_at": "2026-11-18T07:13:20+00:00",
        "position": 2
      },
      {
        "name": "DURAGO BP1057MS",
        "brand": "DURAGO",
        "part_number": "BP1057MS",
        "price": 12.83,
        "currency": "USD",
        "sale_price": 12.83,
        "core_charge": 0,
        "total": 12.83,
        "availability": true,
        "quality_group": "Economy",
        "image_url": "https://www.rockauto.com/info/635/BP1057MS_1.jpg",
        "part_key": "9839061",
        "car_code": "3440320",
        "part_type": "1684",
        "detail_url": "https://www.rockauto.com/en/moreinfo.php?pk=9839061&cc=3440320&pt=1684",
        "partnumber": "BP1057MS",
        "scraped_at": "2026-11-18T07:13:20+00:00",
        "position": 3
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_044f52ed2d204a8e870c71b9c55646fc",
    "credits_charged": 1,
    "credits_remaining": 997
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#namestringbrandstringpart_numberstringpricenumbercurrencystringsale_pricenumbercore_chargeintegertotalnumberavailabilitybooleanquality_groupstringimage_urlurlpart_keystringcar_codestringpart_typestringdetail_urlurlpartnumberstringscraped_atstringpositioninteger
1FMG PSG1056FMGPSG105610.46USD10.46010.46trueEconomyhttps://www.rockauto.com/info/1277/1277_PSG1056_1.jpg1857043734403201684https://www.rockauto.com/en/moreinfo.php?pk=18570437&cc=3440320&pt=1684PSG10562026-11-18T07:13:20+00:001
2PRO LINE PS1057CPRO LINEPS1057C10.54USD10.54010.54trueEconomyhttps://www.rockauto.com/info/873/873_PS1057C_1.jpg1483402134403201684https://www.rockauto.com/en/moreinfo.php?pk=14834021&cc=3440320&pt=1684PS1057C2026-11-18T07:13:20+00:002
3DURAGO BP1057MSDURAGOBP1057MS12.83USD12.83012.83trueEconomyhttps://www.rockauto.com/info/635/BP1057MS_1.jpg983906134403201684https://www.rockauto.com/en/moreinfo.php?pk=9839061&cc=3440320&pt=1684BP1057MS2026-11-18T07:13:20+00:003

Recorded from our API · 3 items shown · 18 datapoints per itemGET /v1/rockauto/search?query=brake+pad&carcode=3440320

18 datapoints

Identity

  • namestring
  • brandstring
  • part_typestring

Contact

  • image_urlurl
  • detail_urlurl

Price

  • pricenumber
  • currencystring
  • sale_pricenumber

Other

  • part_numberstring
  • core_chargeinteger
  • totalnumber
  • availabilityboolean
  • quality_groupstring
  • part_keystring
  • car_codestring
  • partnumberstring
  • scraped_atstring
  • positioninteger

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/rockauto/search?query=brake+pad&carcode=3440320" \
  -H "X-API-Key: $API_KEY"

RockAuto · 2 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/rockauto/product
none+4 optional
namebrandpart_numberoe_numberspricescurrency+6 more
1 credit
GET/v1/rockauto/search
none+8 optional
languagecurrencyvehicleitems
1 credit

Overview

About the RockAuto API

What you can get

The RockAuto API returns RockAuto auto parts, prices and availability as JSON through 2 endpoints.

  • Search: search takes a query or a part_number, with make, year, model, carcode, language (en, de or fr) and page (1).
  • One part: product takes an id or a part's page url, with optional cc and pt.

The recorded search for "brake pad" on carcode 3440320 returns the matched vehicle (a 2018 Dodge Charger with the 3.6L V6), a count of 231 parts and has_next_page false. Each item has name, brand, part_number, price, sale_price, core_charge, total, currency, availability, quality_group, part_key and position. The first result is the FMG PSG1056 at 10.46 USD in the Economy group.

How a call works

Search, then read the part: GET /v1/rockauto/search?query=brake pad&carcode=3440320, with your key in the X-API-Key header, returns each part's part_key. Pass that to product as id, for example GET /v1/rockauto/product?id=18570437, which returned the part's brand, part_number, oe_numbers, prices (price, core_charge and total), availability and warehouse_rows. Every successful call costs 1 credit; failed calls cost nothing.

CarsJSONRESTMCP

More cars APIs

Use cases

Price a part across brands for one vehicle

Use the RockAuto API to price a part across brands for one vehicle

Look up a part by `part_number` and check `availability`

Use the RockAuto API to look up a part by `part_number` and check `availability`

Compare `Economy` and higher `quality_group` options for a repair quote

Use the RockAuto API to compare `Economy` and higher `quality_group` options for a repair quote

Add `core_charge` to a part's cost before you price a job

Use the RockAuto API to add `core_charge` to a part's cost before you price a job

FAQ

Questions

How much does the RockAuto API cost?

Each successful call costs one credit, whichever endpoint you call. New accounts get free credits to start, and credit packs bring the price down as you scale.

Can I search for parts that fit one vehicle?

Yes. Pass `make`, `year` and `model`, or a `carcode`, with your `query`. The response names the matched `vehicle`, with its `make`, `year`, `model`, `engine` and `car_code`.

Can I search by part number?

Yes. `search` takes a `part_number` in place of a `query`.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official RockAuto API?

No. Perceptlayer is an independent service and is not affiliated with RockAuto. It returns RockAuto data as JSON with a Perceptlayer key, so there is no RockAuto developer account, app review or partner approval to get first. It only reads data: if RockAuto has an official API and you need to act on your own RockAuto account, such as posting, managing orders or reading private data, use that one.

Should I build a RockAuto scraper instead?

You can, but a RockAuto scraper is code you maintain: page changes break it, requests get blocked, and RockAuto's terms govern how you collect data. The RockAuto API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the RockAuto API with 100 free credits

No credit card. Failed calls are never billed.