To get O'Reilly Auto Parts prices by part number, call Scavio's O'Reilly API: POST /api/v1/oreilly/cross-reference with another brand's, an AutoZone or an OE part number returns O'Reilly's part types and manufacturers for it; send part_type_id and manufacturer back and it returns O'Reilly's replacement parts with price, core_charge, warranty and pickup availability, priced for the O'Reilly store named in priced_for, for 2 credits. POST /api/v1/oreilly/product reads one part in full with deals, rebates and reviews; POST /api/v1/oreilly/store-stock shows which stores near a ZIP can hand it over.
O'Reilly Automotive is the US auto parts retailer, with 6,595 stores in the US and Puerto Rico at the end of September 2026 (10-Q). On oreillyauto.com, a shopper types a FRAM, AutoZone or carmaker number and the site lists the parts O'Reilly sells in its place, priced for the store it has chosen. O'Reilly has no public developer API for any of it.
Every response below is a trimmed capture from Scavio's O'Reilly Auto Parts API on Monday, November 23, 2026, between 10:21 and 11:22 UTC. Image links and most availability flags are cut; prices are numbers in USD. Each call was priced for whichever store O'Reilly assigned, so two samples can carry different stores.
Step 1: Find the part types and manufacturers for a number
Cross-reference with the number alone returns what O'Reilly knows it as. Here is Toyota's OE oil filter element 04152-YZZA1 (dashes are fine):
curl -s https://api.scavio.dev/api/v1/oreilly/cross-reference \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"part_number": "04152-YZZA1"}'{
"data": {
"part_number": "04152YZZA1",
"part_types": [{"id": "02269", "name": "Engine Oil Filter"}],
"part_type_id": "02269",
"manufacturers": [
{"id": "WIX", "name": "WIX"},
{"id": "Balkamp", "name": "Balkamp"},
{"id": "K&N Engineering", "name": "K&N Engineering"},
{"id": "Original Equipment", "name": "Original Equipment"},
{"id": "aFe POWER", "name": "aFe POWER"},
{"id": "OE Part Number", "name": "OE Part Number"}
],
"manufacturer": null,
"count": 0,
"notes": ["Several manufacturers use part number 04152YZZA1 (O'Reilly's own list, in its order). Their cross-references differ, so send manufacturer (one of manufacturers[].id) to get the O'Reilly parts that replace that brand's part."]
},
"credits_used": 4
}Six brands use this number, so the answer is the lists and no parts, 4 credits. When O'Reilly lists no part type, the answer is empty for 2 credits: that happened for 5 of the 10 AutoZone numbers we tried. Always pick the part type yourself. Without part_type_id, the endpoint uses the first part type O'Reilly lists and says so in notes: Bosch's ICON wiper number 26A, sent alone, came back as "Agriculture/HD - Belts" with a Gates V-belt at $26.99. Numbers also collide: AutoZone's Duralast D2036 brake pads are known to O'Reilly as an ACDelco starter part.
Step 2: Cross-reference with the part type and the brand
Send the part_type_id and the manufacturer whose number it is:
curl -s https://api.scavio.dev/api/v1/oreilly/cross-reference \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"part_number": "04152-YZZA1", "part_type_id": "02269", "manufacturer": "OE Part Number"}'{
"data": {
"part_number": "04152YZZA1",
"part_type_id": "02269",
"manufacturer": "OE Part Number",
"replacing_brands": ["OE Part Number"],
"priced_for": {"store_id": "1058", "address": "9009 Cullen Boulevard", "city": "Houston", "state": "TX", "zip": "77051"},
"total": 7,
"count": 7,
"items": [
{
"line_code": "PGF",
"part_number": "04152YZZA1",
"name": "Original Equipment Toyota Oil Filter",
"category": "Engine Oil Filter",
"price": 12.99,
"regular_price": 12.99,
"on_sale": false,
"core_charge": 0,
"warranty": "1 Year Limited Warranty",
"availability": {"store_pickup": true, "in_store_now": true}
},
{
"line_code": "MGD",
"part_number": "MGL57047",
"name": "MicroGard Oil Filter",
"category": "Engine Oil Filter",
"price": 13.99,
"regular_price": 13.99,
"on_sale": false,
"core_charge": 0,
"warranty": "1 Year Limited Warranty",
"availability": {"store_pickup": true, "in_store_now": true}
}
]
},
"credits_used": 2
}Seven replacements at the Houston store, $12.99 to $38.99, among them K&N HP7020 at $18.99 and WIX 57047 at $16.99. Keep part_type_id and manufacturer with the number: the next lookup is 2 credits. For Bosch 26A, {"part_type_id": "03300", "manufacturer": "Bosch"} returned a Valeo Canopy 26-inch wiper blade at $30.99. A number with a single brand and a single part type comes back with its parts on the first call, for 6 credits.
The same number through AutoZone's search returned Toyota's own 04152-YZZA1 at $11.49 and eight other filters AutoZone matches to it, at the AutoZone store in Abbeville, Alabama.
Step 3: Read one part: price, sale, core charge, deals, rebates
Product by link (items[].url, 2 credits) returns everything in the list item plus UPC, specifications, deals with end dates and rebates. A 5-quart Castrol Edge jug:
curl -s https://api.scavio.dev/api/v1/oreilly/product \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.oreillyauto.com/detail/c/edge/castrol-edge-full-synthetic-motor-oil-0w-20-5-quart/cas1/syn0205qt"}'{
"data": {
"priced_for": {"store_id": "1058", "address": "9009 Cullen Boulevard", "city": "Houston", "state": "TX", "zip": "77051"},
"line_code": "CAS",
"part_number": "SYN0-20-5QT",
"name": "Castrol Edge Full Synthetic Motor Oil 0W-20 5 Quart",
"upc": "79191231241",
"price": 41.95,
"regular_price": 43.99,
"sale_price": 41.95,
"on_sale": true,
"discount_percent": 5,
"core_charge": 0,
"warranty": "Manufacturer's Defect Warranty",
"stock_status": "InStock",
"deals": [
{
"title": "Get 5 quarts for $41.95",
"description": "Get 5 quarts of Castrol Synthetic for $41.95; PLUS receive a $15 O'Reilly gift card after rebate.",
"ends": "November 24, 2026"
}
],
"rebates": [
{
"heading": "Rebate Available",
"title": "$15 O’Reilly Gift Card",
"description": "Purchase five quarts of Castrol Edge Full Synthetic or Edge High Mileage Motor Oil and receive a $15 O’Reilly Gift Card. Please see Rebate Center for more details."
}
],
"rating": {"average": 4.8, "count": 116}
},
"credits_used": 2
}core_charge is the refundable deposit on parts like batteries: $22 on the Super Start batteries we read, $0 on filters and oil. discount_percent is computed from regular_price. By line code and part number instead of a link, product costs 4 credits:
curl -s https://api.scavio.dev/api/v1/oreilly/product \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"line_code": "MGD", "part_number": "MGL57047", "vehicle": {"base_vehicle_id": 157443}}'{
"data": {
"priced_for": {"store_id": "2412", "address": "3145 11th St", "city": "Rockford", "state": "IL", "zip": "61109"},
"line_code": "MGD",
"part_number": "MGL57047",
"name": "MicroGard Oil Filter",
"upc": "765809472693",
"price": 13.99,
"core_charge": 0,
"warranty": "1 Year Limited Warranty",
"vehicle": {"base_vehicle_id": "157443", "year": 2022, "make": "Toyota", "model": "Camry"},
"vehicle_fit": {"fits": null, "universal": false, "notes": [], "documents": []},
"rating": {"average": 4.5, "count": 39},
"reviews": [
{"date": "2026-04-20T22:01:13.000Z", "title": "2011 Toyota Camry oil filter", "text": "Toyota oil filter", "rating": 5},
{"date": "2026-04-11T23:35:22.000Z", "title": "Drain plug", "text": "Plastic Drain plug does not work for 2013 CAMRY", "rating": 2}
]
},
"credits_used": 4
}This one was priced for a Rockford, Illinois store, at the same $13.99 the Houston store showed in Step 2. reviews holds the 10 most recent, with no reviewer names. vehicle_fit.fits is true when the page gives the part's application for the vehicle and null when it gives none, as here; it is never false. For "does it fit", use Steps 5 and 6.
Step 4: Turn a vehicle into a base_vehicle_id
Vehicles walks O'Reilly's selector: makes for a year (89 for 2022, Toyota is 23514), models for a make (20 Toyota models, Camry is 30447), then resolve:
curl -s https://api.scavio.dev/api/v1/oreilly/vehicles \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"level": "resolve", "year": 2022, "make_id": 23514, "model_id": 30447}'{
"data": {
"level": "resolve",
"vehicle": {
"base_vehicle_id": "157443",
"type": "Automotive Light Duty",
"year": 2022,
"make": "Toyota",
"model": "Camry",
"slug": "automotive-car-2022-toyota-camry"
},
"count": 1
},
"credits_used": 2
}{"level": "vin", "vin": "<17 characters>"} decodes a VIN to the year, make and model with its submodel and engine ids, 2 credits; a VIN O'Reilly cannot decode is a charged 404.
Step 5: Search for one vehicle
Search with vehicle keeps the parts O'Reilly lists for that year, make and model:
curl -s https://api.scavio.dev/api/v1/oreilly/search \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "oil filter", "vehicle": {"base_vehicle_id": 157443}}'{
"data": {
"query": "oil filter",
"vehicle": {"base_vehicle_id": "157443", "year": 2022, "make": "Toyota", "model": "Camry"},
"priced_for": {"store_id": "1058", "address": "9009 Cullen Boulevard", "city": "Houston", "state": "TX", "zip": "77051"},
"total": 518,
"page_size": 24,
"total_pages": 22,
"max_page": 20,
"items": [
{
"position": 1,
"line_code": "MGD",
"part_number": "MGL51394",
"name": "MicroGard Oil Filter",
"price": 5.99,
"core_charge": 0,
"fit_notes": [{"name": "Oil Filter", "description": "OE Number: 90915YZZF2"}]
}
]
},
"credits_used": 2
}Without the vehicle, "oil filter" returned 2,568 parts. With it, 518, over 22 pages, of which O'Reilly serves the first 20 (480 parts); narrow further with brand, filters or sort (price_asc, best_selling). fit_notes carries the submodel and engine detail, here the OE number the filter replaces.
Step 6: Check which vehicles a part fits
Compatibility lists the models, engines and years for one part and a make:
curl -s https://api.scavio.dev/api/v1/oreilly/compatibility \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"line_code": "MGD", "part_number": "MGL57047", "make": "Toyota"}'{
"data": {
"line_code": "MGD",
"part_number": "MGL57047",
"make": "Toyota",
"count": 124,
"models": [
{"model": "Camry LE", "engine": "L4 - 2.5L 2487cc 152ci GAS DPI type A25A-FKS - 4 valve DOHC", "years": [2022, 2023]},
{"model": "Camry XSE", "engine": "V6 - 3.5L 3456cc GAS DPI type 2GR-FKS - 4 valve DOHC", "years": [2018, 2019, 2020, 2021, 2022, 2023, 2024]}
]
},
"credits_used": 2
}124 Toyota model and engine rows for this filter, 2 credits. Without make, the answer is the list of makes it fits.
Step 7: Pickup at stores near a ZIP
Store stock lists the stores within 50 miles that can hand over one part, nearest first:
curl -s https://api.scavio.dev/api/v1/oreilly/store-stock \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"line_code": "MGD", "part_number": "MGL57047", "zip": "77002"}'{
"data": {
"line_code": "MGD",
"part_number": "MGL57047",
"quantity": 1,
"zip": "77002",
"radius_miles": 50,
"count": 24,
"stores": [
{
"store_id": "4973",
"address": {"line1": "3232 Harrisburg Blvd", "city": "Houston", "state": "TX", "zip": "77003"},
"distance_miles": 1.3,
"hours_message": "Opens at 7:30 AM",
"availability": {"store_pickup": true, "in_store_now": true, "pickup_time": "8:30 AM today"}
}
]
},
"credits_used": 4
}All 24 stores returned had it in store now, ready at "8:30 AM today" (the call ran before opening time). These are availability states, not unit counts. A ZIP costs 4 credits; latitude and longitude instead cost 2. In our other checks, BrakeBest Select SC1001 pads were in store now at 17 of 20 stores returned for Chicago's 60601, not at the nearest one, and Pierre, South Dakota (57501) had one store within 50 miles, 7.6 miles out.
Step 8: Store hours, including Thanksgiving
Stores near a ZIP returns the 25 nearest within 50 miles with phone, hours and holiday adjustments:
curl -s https://api.scavio.dev/api/v1/oreilly/stores \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"zip": "77002"}'{
"data": {
"count": 25,
"stores": [
{
"store_id": "4973",
"phone": "(713) 244-5040",
"address": {"line1": "3232 Harrisburg Blvd", "city": "Houston", "county": "Harris", "state": "TX", "zip": "77003"},
"distance_miles": 1.3,
"open_now": true,
"pickup_opens": "8:30 AM",
"hours": [
{"day": "wednesday", "open": "7:30 AM", "close": "9 PM", "closed": false, "adjustment": null},
{"day": "thursday", "open": "7:30 AM", "close": "5 PM", "closed": false, "adjustment": "holiday"},
{"day": "friday", "open": "7:30 AM", "close": "9 PM", "closed": false, "adjustment": null}
],
"services": {"hydraulic_hoses": false, "paint_mixing": false, "machine_shop": false}
}
]
},
"credits_used": 4
}All 25 Houston stores showed Thursday, November 26 (Thanksgiving) as a holiday, open 7:30 AM to 5 PM. {"state": "tx"} lists the store directory by city for 2 credits, and store reads one store by store_id.
Step 9: Rebates and deals with their dates
Rebates returns O'Reilly's Rebate Center, 2 credits:
curl -s https://api.scavio.dev/api/v1/oreilly/rebates \
-H "Authorization: Bearer $SCAVIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"data": {
"count": 23,
"rebates": [
{
"title": "Castrol Edge Full Synthetic or Edge High Mileage Motor Oil",
"details": "Purchase five quarts of Castrol Edge Full Synthetic or Edge High Mileage Motor Oil and receive a $15 O’Reilly Gift Card.",
"valid_text": "October 28 - November 24, 2026",
"valid_from": "2026-10-28",
"valid_to": "2026-11-24",
"postmark_by": "December 24, 2026",
"terms_url": "https://www.oreillyauto.com/cmsstatic/RTL-4291-ATD-02-Castrol%20Edge%20or%20Edge%20High%20Mileage-OR.pdf"
}
]
},
"credits_used": 2
}Of the 23, 10 ran October 28 to November 24 (Mobil 1, Castrol Edge and Valvoline oil, Bosch and Rain-X wipers, Sylvania bulbs, Chemical Guys, glow plugs, Peak antifreeze), 6 were last month's and still listed, and 7 run all year. Deals (4 credits) returned 17 offers that morning, among them "15% OFF $75+ WITH PROMO CODE: CLEAR15, Online Only", valid 11/20/26 to 11/23/26, "Maximum discount $50", ship to home only.
Step 10: Poll prices through Black Friday week
Scavio keeps no history, so a price series is the readings you store. Cross-reference once per number to find part_type_id and manufacturer, keep them, and re-price for 2 credits a number:
import csv, requests
KEY = "YOUR_SCAVIO_API_KEY"
URL = "https://api.scavio.dev/api/v1/oreilly/cross-reference"
# number, part_type_id, manufacturer: found once with Steps 1 and 2
NUMBERS = [
("PH7317", "02269", "FRAM"),
("FL500S", "02269", "Motorcraft"),
("04152-YZZA1", "02269", "OE Part Number"),
]
spent = 0
with open("oreilly_xref_prices.csv", "a", newline="") as f:
out = csv.writer(f)
for number, part_type_id, manufacturer in NUMBERS:
r = requests.post(URL, headers={"Authorization": f"Bearer {KEY}"}, json={
"part_number": number, "part_type_id": part_type_id, "manufacturer": manufacturer,
}, timeout=180)
r.raise_for_status()
body = r.json()
spent += body["credits_used"]
d = body["data"]
store = d["priced_for"] or {}
for item in d["items"]:
out.writerow([body["fetched_at"], number, manufacturer, store.get("store_id"), store.get("zip"),
item["line_code"], item["part_number"], item["price"], item["regular_price"],
item["core_charge"], item["availability"]["in_store_now"]])
print("credits used:", spent)Three numbers cost 6 credits a run. Twice a day from Monday, November 23 through Cyber Monday, November 30, it is 96 credits. Group rows by store_id before comparing days: O'Reilly may assign a different store on the next run.
All 14 endpoints and their credits
| Endpoint | What it returns | Credits |
|---|---|---|
| cross-reference | Part types and manufacturers for a number, then O'Reilly's replacements | 2 with part type + manufacturer; 4 for the lists; 6 for the full chain; 2 when O'Reilly lists no part type |
| product | One part with UPC, specs, price, core charge, deals, rebates, rating, 10 most recent reviews | 2 by link; 4 by line code + part number |
| search | Keywords or part numbers, optionally for a vehicle, 24 a page, 20 pages | 2 |
| category | One category's parts, sorted, filtered, optionally for a vehicle | 2 |
| brand | One brand's parts, or the brand index | 2; index 4 |
| vehicles | Types, years, makes, models, submodels, engines, resolve, VIN decode | 2 |
| compatibility | The makes, or the models, engines and years, a part fits | 2 |
| categories | The category tree, about 34 departments | 2 |
| suggestions | Part-type suggestions for typed text | 2 |
| store-stock | Stores within 50 miles that can hand over one part, availability states | 4 by ZIP; 2 by point |
| stores | Stores near a ZIP or point with hours; the directory by state (us, mx) | 4 by ZIP; 2 by point or directory |
| store | One store with hours, holiday adjustments and services | 2 |
| rebates | The Rebate Center with valid and postmark dates, forms | 2 |
| deals | Coupons, offers and promotions with codes and validity | 4 |
Every call reports credits_used. A request refused before the call and a failed upstream call are not charged; a not-found is.
What the API does not return: a store or ZIP choice for prices, unit counts in store stock, reviews past the 10 most recent, pages past 20, O'Reilly Pro (commercial) prices, Mexico or Canada prices, the weekly ad, repair guides, price history and checkout.
Getting started
- Sign up and copy your API key: 50 free credits, no card.
- Run a cross-reference with one of your part numbers in the playground.
- Store each number's
part_type_idandmanufacturer, so later lookups cost 2 credits. - Run the poll script through Black Friday week and keep
priced_forwith every row. - Add store-stock for the ZIPs you serve, and the same numbers through the AutoZone API for a second store.
Try the O'Reilly API free, 50 credits, no card.
Reference: O'Reilly Auto Parts API · cross-reference docs · product docs · store stock docs · best O'Reilly cross-reference APIs · is O'Reilly oil cheaper than Walmart after the rebate? · how to get AutoZone parts prices by vehicle
Frequently asked questions
Does O'Reilly Auto Parts have a public API?
No. O'Reilly offers no public developer API. Commercial customers can apply through the O'Reilly Pro Integration Hub for a direct API or punchout ordering connection, and suppliers use EDI. Scavio's O'Reilly API returns O'Reilly's public pages as JSON: 14 endpoints, 2 credits a call, 4 or 6 on the longer lookups.
Can O'Reilly cross-reference AutoZone part numbers?
Sometimes. O'Reilly lists AutoZone among the brands it replaces, but in our November 23, 2026 test 3 of 10 Duralast numbers came back with O'Reilly parts (two batteries and one brake pad set), while all 7 other-brand numbers and all 5 carmaker numbers did.
Are O'Reilly prices the same at every store?
Not necessarily. O'Reilly's own price-match FAQ says pricing at one location may differ from another or from oreillyauto.com. Every Scavio answer names the store it was priced for in priced_for; on November 23, 2026 most of our calls were priced for store #1058 in Houston, with others in Missouri City, Texas, Athens, Georgia and Rockford, Illinois.
How do O'Reilly rebates work?
They are mail-in or online claims paid mostly as O'Reilly gift cards, with a purchase window and a postmark date. On November 23, 2026 O'Reilly's Rebate Center listed 23: the Castrol Edge 5-quart rebate, for example, paid a $15 O'Reilly gift card for purchases from October 28 to November 24, postmarked by December 24, 2026.
What do O'Reilly's terms say about using its data?
Scavio does not collect or store O'Reilly data: each call fetches the public O'Reilly page at the moment your request asks for it and returns what it shows as JSON, with no response cache. O'Reilly's terms cover how its site may be used; read the current terms for your use case and get your own advice. This is not legal advice.