Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Shop Search Products

Dokumentacja API
https://api.sandbase.ai/v1/api/shop-app/search-products

Searches shop.app products globally by a free-text keyword and returns one page of matching products from the site's global search results (actual product records, not autocomplete suggestions or merchant-only results).

Cena
$0.03USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 3 opcjonalnych

Playground

Wejście
Free-text search keyword, e.g. one shape is a product type like a shoe or phone name. Must be non-empty.
Pagination cursor taken unchanged from a previous response's end_cursor field. Omit for the first page.
Number of products to return for this page (1-100). Takes precedence over page_size when both are given; when omitted, page_size applies.
Legacy page-size control (1-100), used only when first is omitted.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Shop Search Products API

Searches shop.app products globally by a free-text keyword and returns one page of matching products from the site's global search results (actual product records, not autocomplete suggestions or merchant-only results).

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "shop-app/search-products", "first": 10, "query": "running shoes"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesFree-text search keyword, e.g. one shape is a product type like a shoe or phone name. Must be non-empty.
afterstringNoPagination cursor taken unchanged from a previous response's end_cursor field. Omit for the first page.
firstintegerNoNumber of products to return for this page (1-100). Takes precedence over page_size when both are given; when omitted, page_size applies.
page_sizeintegerNoLegacy page-size control (1-100), used only when first is omitted.

Pricing

Flat $0.03 per call. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Shop$0.03 za wywołanieJSON
Shop$0.03 za wywołanieJSON
Shop$0.03 za wywołanieJSON
Shop$0.03 za wywołanieJSON
Shop$0.03 za wywołanieJSON
Shop$0.03 za wywołanieJSON

Pytania

FAQ

Jak używać API Shop Search Products?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/shop-app/search-products z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Shop Search Products?

$0.03 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Shop Search Products?

Wymagane: query (string). Opcjonalne: after (string), first (integer) i page_size (integer). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Shop Search Products?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).

Czy potrzebuję konta deweloperskiego Shop lub klucza API?

Nie. Shop Search Products działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Shop.