Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Shop Merchant Products

Docs API
https://api.sandbase.ai/v1/api/shop-app/merchant-products

Retrieves one page of a merchant's in-stock product listing, sorted by the site's most-sales order, in a single upstream request.

Prix
$0.03USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
Merchant numeric ID from get_merchant_info or get_search_autocomplete results.
Pagination cursor taken unchanged from a previous response's endCursor field. Omit or leave empty for the first page.
Number of products to retrieve per page; must be an integer from 1 to 100, other values are rejected before any request.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

Shop Merchant Products API

Retrieves one page of a merchant's in-stock product listing, sorted by the site's most-sales order, in a single upstream request.

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.

Parameters

NameTypeRequiredDescription
broker_idstringYesMerchant numeric ID from get_merchant_info or get_search_autocomplete results.
afterstringNoPagination cursor taken unchanged from a previous response's endCursor field. Omit or leave empty for the first page.
firstintegerNoNumber of products to retrieve per page; must be an integer from 1 to 100, other values are rejected before any request.

Pricing

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

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Shop$0.03 par appelJSON
Shop$0.03 par appelJSON
Shop$0.03 par appelJSON
Shop$0.03 par appelJSON
Shop$0.03 par appelJSON
Shop$0.03 par appelJSON

Questions

FAQ

Comment utiliser l’API Shop Merchant Products ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/shop-app/merchant-products avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Shop Merchant Products ?

$0.03 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Shop Merchant Products accepte-t-elle ?

Obligatoire : broker_id (string). Facultatif : after (string) et first (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Shop Merchant Products ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone).

Ai-je besoin d’un compte développeur ou d’une clé API Shop ?

Non. Shop Merchant Products fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Shop séparément.