O'Reilly Auto Parts
O'Reilly Auto Parts Vehicles API
O'Reilly Auto Parts' vehicle selector (oreillyauto.com, the US auto parts retailer) one level at a time: vehicle types, years, makes, models, submodels and engines with their ids; resolve turns them into the base_vehicle_id that search, category, brand and product take as vehicle; vin decodes a 17-character VIN to year, make and model with submodel and engine ids. Costs 2 credits.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonlevelenum<string>default:yearsWhich level to read.
Example: resolve
types— Vehicle types (Automotive, Motorcycle & Scooter, ATV & UTV, Personal Watercraft, Snowmobile).years— Years (the default).makes— Makes for a year.models— Models for year + make_id.submodels— Submodels for year + make_id + model_id.engines— Engines for year + make_id + model_id + submodel_id.resolve— The base_vehicle_id for year + make_id + model_id (optional submodel_id / engine_id).vin— Decode a 17-character VIN.
type_idintegerdefault:1Vehicle type (types[].id): 1 Automotive (default), 2 Motorcycle & Scooter, 3 ATV & UTV, 4 Personal Watercraft, 5 Snowmobile.
Example: 1
yearintegerModel year (makes and below).
Example: 2015
make_idintegermakes[].id (23076 = Ford).
Example: 23076
model_idintegermodels[].id (31549 = F-150).
Example: 31549
submodel_idintegersubmodels[].id (engines, resolve).
engine_idintegerengines[].id (resolve; needs submodel_id).
vinstringA 17-character VIN (level vin).
Example: 1HGCM82633A004352
countrystringdefault:usus (oreillyauto.com), the default and the only market this endpoint serves. mx answers 400, not charged: O'Reilly's Mexican site shows no prices, so mx serves stores and store only (the Mexican store directory, in Spanish). Any other value answers 400, not charged.
Example: us
us— United States, oreillyauto.com, English, USD. 2 credits. The default.
Notes
Store. O'Reilly Auto Parts (oreillyauto.com, the US auto parts retailer): country us, the default, on every endpoint. O'Reilly also runs stores in Mexico and Canada, but its Mexican web store shows no prices and there is no Canadian web store, so mx serves only stores and store (O'Reilly's Mexican store directory, in Spanish, as O'Reilly writes it) and Canada is not served. Field names are English; prices are USD numbers. Every answer echoes country, language and currency. Walk it top down: types, years (the default), makes (year), models (year + make_id), submodels (+ model_id), engines (+ submodel_id), each answering [{ id, name }]. resolve (year + make_id + model_id, optional submodel_id / engine_id) answers vehicle { base_vehicle_id, vehicle_id, type, subtype, year, make_id, make, model_id, model, submodel_id, submodel, engine_id, engine, slug, path }: send { base_vehicle_id } as vehicle in the lists and product. On 2026-11-23 the 2015 Ford F-150 (make_id 23076, model_id 31549) resolved to base_vehicle_id 129927, and 2015 listed 88 makes. O'Reilly pins year, make and model with base_vehicle_id; submodel and engine show in each item's fit_notes. level vin decodes a 17-character VIN (letters except I, O and Q, and digits) to vehicle { year, make_id, make, model_id, model, submodels [{ id, name }], engines [{ id, name }] }; send those ids to resolve for the base_vehicle_id. 1HGCM82633A004352 decoded to a 2003 Honda Accord EX with a 3.0L V6. A VIN O'Reilly cannot decode is a charged 404. License-plate lookup is not offered.
| country | Site | Language, currency | This endpoint |
|---|---|---|---|
us (default) | United States, oreillyauto.com | English, USD | 2 credits |
mx | Mexico, store directory | Spanish, no prices | 400, not charged: O'Reilly's Mexican site shows no prices, so mx serves stores and store only (the Mexican store directory, in Spanish). |
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=210)
# VIN -> ids -> base_vehicle_id -> the brake pads for that vehicle.
v = client.oreilly.vehicles(level="vin", vin="1HGCM82633A004352")["data"]["vehicle"]
r = client.oreilly.vehicles(level="resolve", year=v["year"], make_id=int(v["make_id"]), model_id=int(v["model_id"]))["data"]["vehicle"]
pads = client.oreilly.search(query="brake pads", vehicle={"base_vehicle_id": r["base_vehicle_id"]})["data"]
print(r["year"], r["make"], r["model"], pads["total"])Response