querystringrequerido
Free-text search keyword, e.g. one shape is a product type like a shoe or phone name. Must be non-empty.
https://api.sandbase.ai/v1/api/shop-app/search-productsSearches 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).
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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).
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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Free-text search keyword, e.g. one shape is a product type like a shoe or phone name. Must be non-empty. |
after | string | No | Pagination cursor taken unchanged from a previous response's end_cursor field. Omit for the first page. |
first | integer | No | Number of products to return for this page (1-100). Takes precedence over page_size when both are given; when omitted, page_size applies. |
page_size | integer | No | Legacy page-size control (1-100), used only when first is omitted. |
Flat $0.03 per call. Failed calls are not charged.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/shop-app/search-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"first": 10,
"query": "running shoes",
"page_size": 30
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
querystringrequeridoFree-text search keyword, e.g. one shape is a product type like a shoe or phone name. Must be non-empty.
afterstringPagination cursor taken unchanged from a previous response's end_cursor field. Omit for the first page.
firstintegerNumber of products to return for this page (1-100). Takes precedence over page_size when both are given; when omitted, page_size applies.
page_sizeintegerLegacy page-size control (1-100), used only when first is omitted.
Valor predeterminado: 30
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Shop Search ProductsEsta API Shop | $0.03 por llamada | JSON |
Shop | $0.03 por llamada | JSON |
Shop | $0.03 por llamada | JSON |
Shop | $0.03 por llamada | JSON |
Shop | $0.03 por llamada | JSON |
Shop | $0.03 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/shop-app/search-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.
$0.03 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: query (string). Opcionales: after (string), first (integer) y page_size (integer). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).
No. Shop Search 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.