Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

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.

Preço
$0.01USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 4 opcionais

Playground

Entrada
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.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
NAPA$0.01 por chamadaJSON

Perguntas

FAQ

Como eu uso a API NAPA Auto Parts Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/napa/search com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API NAPA Auto Parts Search?

$0.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API NAPA Auto Parts Search aceita?

Obrigatórios: q (string). Opcionais: store_id (string), sort (string), page (string) e json_restrictor (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API NAPA Auto Parts Search retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona).

Preciso de uma conta de desenvolvedor NAPA ou de uma chave de API?

Não. NAPA Auto Parts Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do NAPA separadamente.