oreillyauto.com APIoreillyauto.com ↗
Search O'Reilly Auto Parts products, check pricing and availability, look up vehicle year/make/model compatibility, and find store locations via a structured API.
curl -X GET 'https://api.parse.bot/scraper/cec18493-73b6-4781-a16c-2d0cfd6e9bd6/search_products?query=alternator' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for products by keyword. Returns product listings with names, images, pricing, and store availability for a default store.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Search keyword (e.g. 'alternator', 'brake pads', 'oil filter') |
| zip_code | string | ZIP code for pricing/availability context. Currently uses a default store regardless of value. |
{
"type": "object",
"fields": {
"data": "array of product objects with id, itemId, name, image, lineCodeItemNumber, pricing, and availability"
},
"sample": {
"data": [
{
"id": "7865776",
"name": "BrakeBest Select Ceramic Brake Pads",
"image": "https://images-prod.oreillyauto.com/parts/img/medium/obb/orly_sc1001_202_ang_primary.jpg",
"itemId": "BB|SC1001",
"pricing": {
"price": 69.99,
"onSale": false,
"storeId": 100,
"currency": "USD",
"corePrice": 0,
"retailPrice": 69.99
},
"availability": {
"inStoreNow": false,
"pickupTime": "by 1:30 PM today",
"availPickup": true
},
"lineCodeItemNumber": {
"lineCode": "BB",
"itemNumber": "SC1001"
}
}
],
"status": "success"
}
}About the oreillyauto.com API
The O'Reilly Auto Parts API provides 7 endpoints covering product search, detailed part data, pricing and availability checks, vehicle fitment lookups, and store finder functionality. The search_products endpoint returns part names, images, SKUs, and store availability in a single call, while the vehicle endpoints let you traverse the full year → make → model hierarchy needed to filter parts by fitment.
Product Search and Detail
The search_products endpoint accepts a keyword query (e.g. 'alternator', 'brake pads') and returns an array of product objects, each containing id, itemId, name, image, lineCodeItemNumber, pricing, and store availability. An optional zip_code parameter is accepted but note that pricing and availability are currently returned against a default store regardless of ZIP. To get full product detail — including brand, sku, mpn, manufacturer, primaryImage, and brandInformation — pass a product URL path (as returned in search results) to get_product_details.
Pricing and Availability
get_product_price_availability accepts a JSON array of parts, each identified by itemNumber and lineCode, and an optional store_id. The response object contains a pricingMap keyed by lineCode-itemNumber, plus multiple availability maps: availPickupMap, specialOrderMap, twoDayAvailabilityMap, threeDayAvailabilityMap, and availShipMap, all keyed by broadleaf product ID. This makes it practical to check same-day pickup versus shipping options in one call.
Vehicle Compatibility Lookup
Three endpoints handle vehicle fitment data in sequence. get_vehicle_years returns an array of supported model year integers, newest first. Pass a year to get_vehicle_makes to get an array of make objects with id and name. Pass both year and make_id to get_vehicle_models to get the matching model list. These endpoints form the full year/make/model chain used to narrow parts searches to a specific vehicle.
Store Finder
find_stores takes a city and two-letter state code and returns an array of store objects, each with a store_id and a url pointing to the store's location page. The store_id values returned here feed directly into get_product_price_availability to check inventory at a specific location.
- Build a parts fitment tool that traverses year/make/model to surface compatible parts for a given vehicle.
- Compare same-day pickup vs. two-day or three-day shipping availability across multiple part numbers using the availability maps from
get_product_price_availability. - Aggregate pricing data across a set of SKUs by lineCode and itemNumber for competitive price monitoring.
- Populate an auto repair app's parts catalog with images, brand info, and MPNs from
get_product_details. - Locate the nearest O'Reilly store by city and state, then check local stock for a specific part using the returned
store_id. - Automate inventory checks for fleet maintenance by querying known part line codes and item numbers against a target store.
- Index O'Reilly product data including brand information and manufacturer details for a parts cross-reference database.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does O'Reilly Auto Parts offer an official public developer API?+
What does `get_product_price_availability` return beyond a single price?+
pricingMap keyed by lineCode-itemNumber, plus five separate availability maps: availPickupMap (same-day in-store pickup), specialOrderMap, twoDayAvailabilityMap, threeDayAvailabilityMap, and availShipMap. Each availability map is keyed by broadleaf product ID, so you can distinguish fulfillment method per part in a single response.Does the ZIP code in `search_products` change which store's pricing is returned?+
search_products are returned against a default store regardless of the zip_code value provided. To get store-specific pricing, use find_stores to obtain a store_id and pass it to get_product_price_availability.Does the API return customer reviews or ratings for products?+
Can I retrieve a list of all parts compatible with a specific vehicle, not just search by keyword?+
get_vehicle_years, get_vehicle_makes, get_vehicle_models) return the year/make/model hierarchy, but there is no endpoint that queries all fitment-compatible parts for a resolved vehicle without a keyword. You can fork this API on Parse and revise it to add a vehicle-based parts catalog endpoint.