qstring必填
Parameter defines the query you want to search. You can use anything that you would use in a regular AutoZone search (e.g., `oil filter`, `brake pads`, or a part number like `S9972`).
https://api.sandbase.ai/v1/api/autozone/searchSearch AutoZone auto parts by keyword, optionally for a specific vehicle and store, with part number, brand, price, rating and availability.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Search AutoZone auto parts by keyword, optionally for a specific vehicle and store, with part number, brand, price, rating and availability.
curl -X POST "https://api.sandbase.ai/v1/api/autozone/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "oil filter"}'
The result is returned in outputs[0].data as structured JSON.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Parameter defines the query you want to search. You can use anything that you would use in a regular AutoZone search (e.g., oil filter, brake pads, or a part number like S9972). |
store_id | string | No | Parameter defines the AutoZone store to search (e.g., 4254). The store changes the order of the results and adds their in_store_pickup availability. It defaults to 6997, the store AutoZone uses when no store is selected. |
vehicle_year | string | No | Parameter defines the year of the vehicle to find parts for (e.g., 2015). Parameter requires vehicle_make and vehicle_model parameters to also be set. |
vehicle_make | string | No | Parameter defines the make of the vehicle, as named on AutoZone (e.g., Toyota). Parameter requires vehicle_year and vehicle_model parameters to also be set. |
vehicle_model | string | No | Parameter defines the model of the vehicle, as named on AutoZone (e.g., Camry). Parameter requires vehicle_year and vehicle_make parameters to also be set. |
vehicle_engine | string | No | Parameter defines the engine of the vehicle, as named on AutoZone (e.g., 4 Cylinders 2.5L GAS). Parameter requires vehicle_year, vehicle_make, and vehicle_model parameters to also be set. |
vehicle_submodel | string | No | Parameter defines the submodel of the vehicle, as named on AutoZone (e.g., LE). Without it, parts that only fit some submodels have a fitment: needs_more_info. Parameter requires vehicle_year, vehicle_make, and vehicle_model param |
vehicle_type | string | No | Parameter defines the type of the vehicle. It defaults to car_truck when vehicle_year, vehicle_make, and vehicle_model are set. Available options: car_truck - Car & Truck motorcycle - Motorcycle recreational - Recreational Par |
sort | string | No | Parameter defines the sorting of the results. It defaults to featured. Available options: featured - Featured price_low - Price (low to high) price_high - Price (high to low) recently_added - Recently Added rating_high - Custome |
facet | string | No | Parameter defines the filters to apply. It's a comma-separated list of filter values (e.g., sub_brand_name_display_s:Duralast,avg_rating_range_ss:2~4 TO *~4 and up for Duralast with 4 stars and up). Filter values are available in |
min_price | string | No | Parameter defines the minimum price of the products, in whole US dollars (e.g., 20). |
max_price | string | No | Parameter defines the maximum price of the products, in whole US dollars (e.g., 50). |
page | string | No | Value is used to get results on a specific page. (e.g., 1 (default) is the first page of results, 2 is the 2nd page of results, 3 is the 3rd page of results, etc.). |
ps | string | No | Parameter defines the number of results per page, between 1 and 100. It defaults to 24. |
json_restrictor | string | No | Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
include_filters | string | No | Parameter defines whether to include the filters of the search in the JSON response, with the values to use in facet. It can be set to true or false (default). |
$0.010 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/autozone/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "oil filter"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
qstring必填Parameter defines the query you want to search. You can use anything that you would use in a regular AutoZone search (e.g., `oil filter`, `brake pads`, or a part number like `S9972`).
store_idstringParameter defines the AutoZone store to search (e.g., `4254`). The store changes the order of the results and adds their `in_store_pickup` availability. It defaults to `6997`, the store AutoZone uses when no store is selected.
vehicle_yearstringParameter defines the year of the vehicle to find parts for (e.g., `2015`). Parameter requires `vehicle_make` and `vehicle_model` parameters to also be set.
vehicle_makestringParameter defines the make of the vehicle, as named on AutoZone (e.g., `Toyota`). Parameter requires `vehicle_year` and `vehicle_model` parameters to also be set.
vehicle_modelstringParameter defines the model of the vehicle, as named on AutoZone (e.g., `Camry`). Parameter requires `vehicle_year` and `vehicle_make` parameters to also be set.
vehicle_enginestringParameter defines the engine of the vehicle, as named on AutoZone (e.g., `4 Cylinders 2.5L GAS`). Parameter requires `vehicle_year`, `vehicle_make`, and `vehicle_model` parameters to also be set.
vehicle_submodelstringParameter defines the submodel of the vehicle, as named on AutoZone (e.g., `LE`). Without it, parts that only fit some submodels have a `fitment: needs_more_info`. Parameter requires `vehicle_year`, `vehicle_make`, and `vehicle_model` parameters to also be set.
vehicle_typestringParameter defines the type of the vehicle. It defaults to `car_truck` when `vehicle_year`, `vehicle_make`, and `vehicle_model` are set. Available options: `car_truck` - Car & Truck `motorcycle` - Motorcycle `recreational` - Recreational Parameter requires `vehicle_year`, `vehicle_make`, and `vehicle_model` parameters to also be set.
sortstringParameter defines the sorting of the results. It defaults to `featured`. Available options: `featured` - Featured `price_low` - Price (low to high) `price_high` - Price (high to low) `recently_added` - Recently Added `rating_high` - Customer Rating `best_seller` - Best Sellers
facetstringParameter defines the filters to apply. It's a comma-separated list of filter values (e.g., `sub_brand_name_display_s:Duralast,avg_rating_range_ss:2~4 TO *~4 and up` for **Duralast** with **4 stars and up**). Filter values are available in `filters[].options[].value` of the results when `include_filters` is set to `true`.
min_pricestringParameter defines the minimum price of the products, in whole US dollars (e.g., `20`).
max_pricestringParameter defines the maximum price of the products, in whole US dollars (e.g., `50`).
pagestringValue is used to get results on a specific page. (e.g., `1` (default) is the first page of results, `2` is the 2nd page of results, `3` is the 3rd page of results, etc.).
psstringParameter defines the number of results per page, between `1` and `100`. It defaults to `24`.
json_restrictorstringParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
include_filtersstringParameter defines whether to include the `filters` of the search in the JSON response, with the values to use in `facet`. It can be set to `true` or `false` (default).
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
AutoZone Search此 API AutoZone | 每次呼叫 $0.01 | JSON |
AutoZone | 每次呼叫 $0.01 | JSON |
AutoZone | 每次呼叫 $0.012 | 非同步 JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/autozone/search。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:q (string)。 選填:store_id (string), vehicle_year (string), vehicle_make (string), vehicle_model (string), vehicle_engine (string) 和 vehicle_submodel (string),以及另外 9 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。
不需要。AutoZone Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 AutoZone API 存取權。