Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Shop Search Products

API dokümanları
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).

Fiyat
$0.03USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 3 isteğe bağlı

Oynatma Alanı

Girdi
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.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Shop$0.03 çağrı başınaJSON
Shop$0.03 çağrı başınaJSON
Shop$0.03 çağrı başınaJSON
Shop$0.03 çağrı başınaJSON
Shop$0.03 çağrı başınaJSON
Shop$0.03 çağrı başınaJSON

Sorular

SSS

Shop Search Products API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/shop-app/search-products adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Shop Search Products API'sinin fiyatı nedir?

çağrı başına $0.03, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Shop Search Products API'si hangi parametreleri kabul eder?

Gerekli: query (string). İsteğe bağlı: after (string), first (integer) ve page_size (integer). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Shop Search Products API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).

Bir Shop geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Shop Search Products, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Shop API erişimi için ayrıca başvuru yapmanız gerekmez.