https://api.nexscope.ai/woocommerce/productCollectionDataEjecutar esta API
Envía una solicitud JSON para ejecutar esta API y recibir los datos de respuesta documentados.
Endpoint
| Método | POST |
| Ruta | https://api.nexscope.ai/woocommerce/productCollectionData |
| Autenticación | Bearer API key |
| Content-Type | application/json |
Parámetros de la solicitud
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
attributeTaxonomies | array | opcional | Attribute taxonomies to count, using OR semantics, for example pa_color. Default empty. Cantidad máxima de elementos: 20 |
attributeTaxonomies[] | string | obligatorio | Atribuir taxonomías a contar, usando la semántica de OR, por ejemplo pa_color. Vacío predeterminado. Patrón: ^pa_[a-z0-9_-]{1,28}$ |
calculatePriceRange | boolean | opcional | Calculate this aggregate; default true. Unsupported store fields may be null. |
calculateRatingCounts | boolean | opcional | Calculate this aggregate; default true. Unsupported store fields may be null. |
calculateStockStatusCounts | boolean | opcional | Calculate this aggregate; default true. Unsupported store fields may be null. |
categoryId | string | opcional | Restrict to a public product category. Patrón: ^[1-9][0-9]{0,18}$ |
keyword | string | opcional | Search within this store; at most 200 characters. Longitud máxima: 200 |
storeUrl | string | obligatorio | Public HTTPS store root or WordPress installation path. Longitud máxima: 2048 |
taxonomies | array | opcional | Public taxonomies to count; default empty. Store support varies. Cantidad máxima de elementos: 20 |
taxonomies[] | string | obligatorio | Taxonomías públicas a contar; vacío predeterminado. El soporte de la tienda varía. Permitidos: product_cat, product_tag, product_brand |
Respuesta de ejemplo
Estructura de respuesta de la plataforma. code 0 indica éxito o aceptación; data contiene el resultado de negocio.
{
"code": 0,
"cost": "-1",
"data": {
"cacheHit": false,
"collection": {
"attributeCounts": [
{
"count": 1,
"termId": "16"
}
],
"priceRange": {
"currency": "USD",
"maxPrice": "10.00",
"maxPriceMinor": "1000",
"minPrice": "10.00",
"minPriceMinor": "1000",
"minorUnit": 2
},
"ratingCounts": [
{
"count": 1,
"rating": 5
}
],
"stockStatusCounts": [
{
"count": 1,
"status": "instock"
}
],
"taxonomyCounts": [
{
"count": 1,
"termId": "16"
}
]
},
"fetchedAt": "1792972800000",
"storeUrl": "https://example.com"
},
"msg": null,
"time": "2026-01-01 00:00:00",
"traceId": null,
"ts": "0"
}Campos de respuesta
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
code | integer | obligatorio | 0 means accepted or successful; nonzero is a platform error. |
cost | string | obligatorio | Elapsed milliseconds, never credits; -1 outside web requests. |
data | any | obligatorio | Valor de Data usado por esta operación de API. |
msg | string | null | obligatorio | Valor de Msg usado por esta operación de API. |
time | string | obligatorio | Server local time: yyyy-MM-dd HH:mm:ss. |
traceId | string | null | obligatorio | Valor de Trace id usado por esta operación de API. |
ts | string | obligatorio | Epoch milliseconds. |
Opción 1 de cualquier alternativa — requiere storeUrl, fetchedAt, cacheHit, collection
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data | object | obligatorio | Valor de Data usado por esta operación de API. |
data.cacheHit | boolean | obligatorio | Whether the response was served from the anonymous 60-second cache. Ejemplo: false |
data.collection | object | obligatorio | Normalized public data. Missing optional values are null or empty strings. Ejemplo: {} |
data.collection.attributeCounts | any | opcional | Valor de Attribute counts usado por esta operación de API. |
data.collection.priceRange | any | opcional | Valor de Price range usado por esta operación de API. |
data.collection.ratingCounts | any | opcional | Valor de Rating counts usado por esta operación de API. |
data.collection.stockStatusCounts | any | opcional | Valor de Stock status counts usado por esta operación de API. |
data.collection.taxonomyCounts | any | opcional | Valor de Taxonomy counts usado por esta operación de API. |
data.fetchedAt | string | obligatorio | Fetch time in epoch milliseconds; preserved on cache hits. Ejemplo: 1792972800000 |
data.storeUrl | string | obligatorio | Normalized store identity. Ejemplo: https://example.com |
Opción 1 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.attributeCounts | array | opcional | Null when disabled or unsupported by the store; empty array means no matches. Ejemplo: [] |
data.collection.attributeCounts[] | object | obligatorio | Elemento de data collection attributeCounts. |
data.collection.attributeCounts[].count | integer | obligatorio | Product count in this bucket. Ejemplo: 1 |
data.collection.attributeCounts[].termId | string | obligatorio | Public aggregate bucket. Ejemplo: 16 |
Opción 2 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.attributeCounts | null | opcional | Valor de Attribute counts usado por esta operación de API. |
Opción 1 de cualquier alternativa — requiere currency, minorUnit, minPrice, maxPrice, minPriceMinor, maxPriceMinor
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.priceRange | object | opcional | Null when disabled or unavailable; exact decimal strings. Ejemplo: {} |
data.collection.priceRange.currency | string | obligatorio | Currency code. Ejemplo: USD |
data.collection.priceRange.maxPrice | string | obligatorio | Exact amount; Minor suffix denotes original smallest-unit value. Ejemplo: 10.00 |
data.collection.priceRange.maxPriceMinor | string | obligatorio | Exact amount; Minor suffix denotes original smallest-unit value. Ejemplo: 1000 |
data.collection.priceRange.minPrice | string | obligatorio | Exact amount; Minor suffix denotes original smallest-unit value. Ejemplo: 10.00 |
data.collection.priceRange.minPriceMinor | string | obligatorio | Exact amount; Minor suffix denotes original smallest-unit value. Ejemplo: 1000 |
data.collection.priceRange.minorUnit | integer | obligatorio | Currency decimal precision. Ejemplo: 2 |
Opción 2 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.priceRange | null | opcional | Valor de Price range usado por esta operación de API. |
Opción 1 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.ratingCounts | array | opcional | Null when disabled or unsupported by the store; empty array means no matches. Ejemplo: [] |
data.collection.ratingCounts[] | object | obligatorio | Elemento de data collection ratingCounts. |
data.collection.ratingCounts[].count | integer | obligatorio | Product count in this bucket. Ejemplo: 1 |
data.collection.ratingCounts[].rating | integer | obligatorio | Public aggregate bucket. Ejemplo: 5 |
Opción 2 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.ratingCounts | null | opcional | Valor de Rating counts usado por esta operación de API. |
Opción 1 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.stockStatusCounts | array | opcional | Null when disabled or unsupported by the store; empty array means no matches. Ejemplo: [] |
data.collection.stockStatusCounts[] | object | obligatorio | Elemento de data collection stockStatusCounts. |
data.collection.stockStatusCounts[].count | integer | obligatorio | Product count in this bucket. Ejemplo: 1 |
data.collection.stockStatusCounts[].status | string | obligatorio | Public aggregate bucket. Ejemplo: instock |
Opción 2 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.stockStatusCounts | null | opcional | Valor de Stock status counts usado por esta operación de API. |
Opción 1 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.taxonomyCounts | array | opcional | Null when disabled or unsupported by the store; empty array means no matches. Ejemplo: [] |
data.collection.taxonomyCounts[] | object | obligatorio | Elemento de data collection taxonomyCounts. |
data.collection.taxonomyCounts[].count | integer | obligatorio | Product count in this bucket. Ejemplo: 1 |
data.collection.taxonomyCounts[].termId | string | obligatorio | Public aggregate bucket. Ejemplo: 16 |
Opción 2 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data.collection.taxonomyCounts | null | opcional | Valor de Taxonomy counts usado por esta operación de API. |
Opción 2 de cualquier alternativa
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
data | null | obligatorio | Valor de Data usado por esta operación de API. |
Respuestas
| Código | Descripción |
|---|---|
| 200 | Respuesta HTTP predeterminada tanto para el éxito como para muchos errores de negocio. Solo el código JSON externo 0 indica éxito o aceptación asíncrona; consulta data para obtener el resultado. |
| 429 | Límite de admisión de ejecuciones; respeta Retry-After cuando esté presente. |
| 503 | La admisión de ejecuciones no está disponible temporalmente; respeta Retry-After cuando esté presente. |
| Opcional | X-Nexscope-Http-Status: semantic asigna estados HTTP a los errores de negocio gestionados por el controlador en las rutas de ejecución y tareas. Los fallos previos a la autenticación, como una clave API ausente o no válida (code 11209, incluida una copia incompleta o dañada) o una sesión web caducada (code 12001), pueden seguir devolviendo HTTP 200 antes de esta asignación. Comprueba siempre el código JSON externo; las solicitudes malformadas y los fallos de infraestructura también pueden devolver respuestas HTTP distintas de 200. |
Fuente de datos, vigencia y limitaciones
La fuente, la vigencia, la cobertura, los límites de frecuencia y las notas de estimación no se especifican en esta definición de API salvo que aparezcan en la documentación de campos de solicitud o respuesta anterior. No supongas datos oficiales del mercado ni actualización en tiempo real cuando no estén documentados explícitamente.