Sand AISand AI MAGI-2MAGI-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 / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 4 件

プレイグラウンド

入力
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.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

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

質問

FAQ

NAPA Auto Parts Search API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/napa/search に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

NAPA Auto Parts Search API の料金はいくらですか?

1回あたり $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 は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。

NAPA の開発者アカウントまたは API key は必要ですか?

いいえ。NAPA Auto Parts Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。NAPA の API アクセスを別途申請する必要はありません。