Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

NAPA Auto Parts Search

https://api.sandbase.ai/v1/api/napa/search

Search NAPA auto parts by keyword with part number, brand, price, rating and store availability.

ราคา
$0.01USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 4 ไม่บังคับ

Playground

อินพุต
Parameter defines the search query. You can use anything that you would use in a regular NAPA Auto Parts search: a part name, a brand, or a part number, including the part numbers of other brands that NAPA products replace (e.g., `brake cleaner`, `Brakleen`, `CRC 05050`, or `PH3614`). Like on napaonline.com, some queries lead to a category of products (e.g., `oil filter` leads to Oil Filters). The category is returned in `search_information.category`. Others lead to another search (e.g., `generator` leads to `portable generator`), returned in `search_information.showing_results_for`.
Parameter defines the NAPA Auto Parts store to get the prices, promotions, and availability from. It's the number at the end of the URL of the store page on napaonline.com (e.g., `22706` for `https://www.napaonline.com/en/ca/healdsburg/store/22706`). It defaults to `28693`, a store in Chicago, IL. Prices and availability differ between stores, and only the products available to the store are listed.
Parameter defines the sorting of the results. It defaults to `relevance`. Available options: `relevance` - Relevance `price_low_to_high` - Price - low to high `price_high_to_low` - Price - high to low `product_description` - Product description `line_abbreviation` - Product line abbreviation `part_number` - Part number
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.). NAPA returns up to 12 results per page.
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.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

NAPA Auto Parts Search

Search NAPA auto parts by keyword with part number, brand, price, rating and store availability.

Request

curl -X POST "https://api.sandbase.ai/v1/api/napa/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "brake pads"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
qstringYesParameter defines the search query. You can use anything that you would use in a regular NAPA Auto Parts search: a part name, a brand, or a part number, including the part numbers of other brands that NAPA products replace (e.g., `brake cle
store_idstringNoParameter defines the NAPA Auto Parts store to get the prices, promotions, and availability from. It's the number at the end of the URL of the store page on napaonline.com (e.g., 22706 for `https://www.napaonline.com/en/ca/healdsburg/stor
sortstringNoParameter defines the sorting of the results. It defaults to relevance. Available options: relevance - Relevance price_low_to_high - Price - low to high price_high_to_low - Price - high to low product_description - Product descrip
pagestringNoValue 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.). NAPA returns up to 12 results per page.
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
NAPA$0.01 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ NAPA Auto Parts Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/napa/search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

NAPA Auto Parts Search API ราคาเท่าไร?

$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

NAPA Auto Parts Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: q (string). ตัวเลือก: store_id (string), sort (string), page (string) และ json_restrictor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

NAPA Auto Parts Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ NAPA ไหม?

ไม่จำเป็น NAPA Auto Parts Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง NAPA API แยกต่างหาก