https://api.nexscope.ai/st/walmart/productAnalysisEjecutar 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/st/walmart/productAnalysis |
| Autenticación | Bearer API key |
| Content-Type | application/json |
Parámetros de la solicitud
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
operation | string | opcional | Requerido; sólo `searchByName`, `detail`, `trend`, `salesVolume` |
name | string | opcional | `searchByName` requerido; no vacío idioma natural nombre del producto |
productId | string | opcional | `detail`, `trend`, `salesVolume` requerido; no vacío Walmart ProductId |
queryDate | string | opcional | Fecha de inicio en el formato `yyyy-MM-dd` |
queryEndDate | string | opcional | Fecha de finalización, en el formato de `yyyy-MM-dd`; cuando sólo se da la fecha de inicio, el valor predeterminado es el día actual |
pageIndex | integer | opcional | `searchByName`, `salesVolume` comienza desde 1, por defecto a 1; máximo 100 elementos por página |
Respuesta de ejemplo
Estructura de respuesta de la plataforma. code 0 indica éxito o aceptación; data contiene el resultado de negocio.
No hay un ejemplo de respuesta publicado para esta API. Consulta los campos de respuesta siguientes.
Campos de respuesta
Referencia de campos de respuesta (59 campos)
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
errcode | integer | opcional | Gateway framework layer status code; `200` indicates that the request successfully entered the business response |
errmsg | string | opcional | Gateway framework layer status message; typically `ok` on success |
code | integer | opcional | `200` indicates success |
msg | string | opcional | response message |
data | object | opcional | Fixed response container; `data.value` retains each operation's ST primitive object, array, scalar, or `null` |
operation | string | opcional | `searchByName`, `detail`, `trend` or `salesVolume` actually executed this time |
requestConsumed | integer | opcional | This upstream consumption; when the upstream is missing or returns 0, it is completed according to the document consumption of the operation; when ST explicitly returns `Code=11` (no data), it remains 0 |
costTime | integer | opcional | Time taken, unit is milliseconds |
costToken | integer / absent | opcional | Production gateway response header `X-Cost-Token`; the entry script will be copied to this field, and this field is currently missing when parsing the JSON body directly. |
costCredit | integer / absent | opcional | Production gateway response header `X-Cost-Credit`, which is the actual computing power deducted this time; the entry script will be copied to this field |
sourceType | string | opcional | `st` |
searchByName | array<object> | opcional | Related product summary array |
detail | object | opcional | Single product details object |
trend | object | opcional | Single product trend object |
salesVolume | array<array> | opcional | Sales record row array; each row is `[date, sales, type]` |
Title | string | opcional | Título del producto |
Photo | array<string> | opcional | Product image URL array |
ListingSalesVolumeOfMonth | integer | opcional | Estimated sales volume in the last 30 days in the Listing dimension, without distinguishing between variants |
ListingSalesOfMonth | integer | opcional | Estimated sales in the past 30 days in the Listing dimension; the unit for the US site is cents |
ProductId | string | opcional | Walmart ProductId |
ParentProductId | string | opcional | Parent product ProductId |
Price | integer | opcional | Selling price; the US site unit is cents, such as `1999` means `$19.99` |
Brand | string | opcional | brand |
Seller | string | opcional | Seller name at the time of collection |
Shipedby | string | opcional | The delivery method at the time of collection; the field name is the original spelling of the upstream |
WFSFee | integer | opcional | WFS fee; US site unit is cents |
Attribute | array<string> / null | opcional | Product attributes, interleaved encoding according to `[attribute name, attribute value, ...]` |
FirstReviewsDate | string / null | opcional | Date of first comment in the format `yyyy-MM-dd` |
ReviewsCount | integer | opcional | Number of comments |
Ratings | number | opcional | Rating, like `4.8` |
NodePath | array<string\|null> | opcional | Category and ranking records are grouped and coded according to `[category name, NodeId, ranking date, ranking, ...]`; when the ranking on a certain day is missing, the corresponding position is `null` |
Label | array<string> | opcional | Product tags, such as `pickup`, `savewith`, `bestsell` |
PopularPick | integer | opcional | Popular Pick tag; `1` indicates existence |
Clearance | integer | opcional | Clearance tag; `1` indicates existence |
ReducedPrice | integer | opcional | Reduced Price tag; `1` indicates existence |
Rollback | integer | opcional | Rollback token; `1` indicates existence |
FlashDeal | integer | opcional | Flash Deal tag; `1` indicates existence |
Size | array<string> / null | opcional | Outer packaging size `[longest side, second longest side, shortest side]`, unit is cm |
Weight | number | opcional | Product weight in grams |
Variants | array / null | opcional | Variant data; `searchByName` is encoded differently than `detail`, see below |
NumberOfStar | array<number\|string> / null | opcional | The number of reviews for each star rating, according to `[star rating, number of reviews, ...]` staggered coding |
Pickup | integer | opcional | Detail extension: Pickup tag mark; `1` indicates existence |
Savewith | integer | opcional | Detail extension: Save with label mark; `1` indicates existence |
Bestseller | integer | opcional | Detail extension: Best Seller tag; `1` indicates existence |
UpdateDate | string / null | opcional | Detail extension: product data update time, usually `yyyy-MM-dd` |
VariantId | string | opcional | Variant ProductId |
Url | string | opcional | Variant product URL |
Property | array<string> | opcional | Variant attributes, encoded by `[attribute name, attribute value, ...]` |
PriceUpdate | string / null | opcional | Price update time, usually `yyyy-MM-dd` |
DetailUpdate | string / null | opcional | Details update time, usually `yyyy-MM-dd`; when there is no valid date, upstream placeholders such as `--` may be used |
ProductId | string | opcional | Walmart ProductId |
ListingSalesVolumeOfMonth | integer | opcional | Estimated sales volume of the current Listing dimension in the past 30 days |
ListingSalesOfMonth | integer | opcional | Estimated sales of the current Listing dimension in the past 30 days; the unit for the US site is cents |
ListingSalesVolumeOfMonthTrend | array<string> | opcional | Monthly sales history, coded by `[yyyy-MM-dd, sales volume, ...]` |
ListingSalesOfMonthTrend | array<string> | opcional | Monthly sales history, coded by `[yyyy-MM-dd, sales, ...]`; amount unit is cents |
PriceTrend | array<string> | opcional | Price history, encoded by `[yyyy-MM-dd, price, ...]`; amounts are in cents |
ReviewsTrend | array<string> | opcional | Comment count history, encoded by `[yyyy-MM-dd, comment count, ...]` |
StarTrend | array<string> | opcional | Rating history, encoded as `[yyyy-MM-dd, rating, ...]`; current response example value is `5.00` |
RankTrend | array<array<string>> | opcional | Ranking history of each category; each row is encoded by `[category name, NodeId, date, ranking, date, ranking, ...]` |
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.