broker_idstringzorunlu
Merchant numeric ID from get_merchant_info or get_search_autocomplete results.
https://api.sandbase.ai/v1/api/shop-app/merchant-productsRetrieves one page of a merchant's in-stock product listing, sorted by the site's most-sales order, in a single upstream request.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Retrieves one page of a merchant's in-stock product listing, sorted by the site's most-sales order, in a single upstream 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/merchant-products", "broker_id": "9658745"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
broker_id | string | Yes | Merchant numeric ID from get_merchant_info or get_search_autocomplete results. |
after | string | No | Pagination cursor taken unchanged from a previous response's endCursor field. Omit or leave empty for the first page. |
first | integer | No | Number of products to retrieve per page; must be an integer from 1 to 100, other values are rejected before any request. |
Flat $0.03 per call. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/shop-app/merchant-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"after": "",
"first": 10,
"broker_id": "9658745"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
broker_idstringzorunluMerchant numeric ID from get_merchant_info or get_search_autocomplete results.
afterstringPagination cursor taken unchanged from a previous response's endCursor field. Omit or leave empty for the first page.
firstintegerNumber of products to retrieve per page; must be an integer from 1 to 100, other values are rejected before any request.
Varsayılan: 30
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Shop Merchant ProductsBu API Shop | $0.03 çağrı başına | JSON |
Shop | $0.03 çağrı başına | JSON |
Shop | $0.03 çağrı başına | JSON |
Shop | $0.03 çağrı başına | JSON |
Shop | $0.03 çağrı başına | JSON |
Shop | $0.03 çağrı başına | JSON |
Sorular
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/merchant-products adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.03, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: broker_id (string). İsteğe bağlı: after (string) ve first (integer). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).
Hayır. Shop Merchant 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.