Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Shop Merchant Products

Documentación de la 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.

Precio
$0.03USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 2 opcionales

Entorno de pruebas

Entrada
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.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Shop$0.03 por llamadaJSON
Shop$0.03 por llamadaJSON
Shop$0.03 por llamadaJSON
Shop$0.03 por llamadaJSON
Shop$0.03 por llamadaJSON
Shop$0.03 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Shop Merchant Products?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/shop-app/merchant-products con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Shop Merchant Products?

$0.03 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Shop Merchant Products?

Requeridos: broker_id (string). Opcionales: after (string) y first (integer). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Shop Merchant Products?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).

¿Necesito una cuenta de desarrollador o una clave API de Shop?

No. Shop Merchant Products funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Shop por separado.