https://api.nexscope.ai/api/skill-api/v1/skills/mercado-product-selection/runRun this API
Send a JSON request to execute this API and receive the documented response payload.
Endpoint
| Method | POST |
| Path | https://api.nexscope.ai/api/skill-api/v1/skills/mercado-product-selection/run |
| Auth | Bearer API key |
| Content-Type | application/json |
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
toolName | string | required | Exact Mercado tool name. Example: categorySearch |
arguments | object | required | Arguments for the selected tool. Example: {
"searchText": "Auriculares",
"siteId": "MLM"
} |
Code example
{
"arguments": {
"searchText": "Auriculares",
"siteId": "MLM"
},
"toolName": "categorySearch"
}Response example
Platform response envelope. code 0 indicates success or acceptance; data contains the business result.
{
"code": 0,
"cost": "-1",
"data": {
"charged": false,
"contentText": "Category results...",
"costTime": 308,
"costToken": 0,
"data": {},
"textParsedAsJson": true,
"toolName": "categorySearch",
"total": 1,
"type": "rawMcpToolResult"
},
"msg": "ok",
"time": "2026-01-01 00:00:00",
"traceId": null,
"ts": "0"
}Response fields
| Name | Type | Required | Description |
|---|---|---|---|
code | integer | required | 0 means accepted or successful; nonzero is a platform error. |
cost | string | required | Elapsed milliseconds, never credits; -1 outside web requests. |
data | any | required | Data value used by this API operation. |
msg | string | null | required | Msg value used by this API operation. |
time | string | required | Server local time: yyyy-MM-dd HH:mm:ss. |
traceId | string | null | required | Trace id value used by this API operation. |
ts | string | required | Epoch milliseconds. |
Any of option 1
| Name | Type | Required | Description |
|---|---|---|---|
data | object | required | Data value used by this API operation. |
data.charged | boolean | optional | Whether the selected tool is paid. Example: false |
data.contentText | string | optional | Original concatenated provider text. Example: Category results... |
data.costTime | integer | optional | Gateway execution time in milliseconds. Example: 308 |
data.costToken | integer | optional | Provider-reported token cost; free tools return zero. Example: 0 |
data.data | object | optional | Parsed business data, or provider text when the result is not JSON. Example: {} |
data.dataSnapshotMonth | string | optional | Data snapshot month returned by the upstream provider. Example: null |
data.page | integer | optional | Current page returned by the upstream provider. Example: null |
data.pageItemCount | integer | optional | Item count on the current page returned by the upstream provider. Example: null |
data.pageSize | integer | optional | Page size returned by the upstream provider. Example: null |
data.sourceTool | string | optional | Provider-specific source tool name. Example: null |
data.sourceType | string | optional | Provider-specific source platform type. Example: null |
data.textParsedAsJson | boolean | optional | Whether provider text was parsed as JSON. Example: true |
data.title | string | optional | Provider-specific response title. Example: null |
data.toolName | string | optional | Executed Mercado tool name. Example: categorySearch |
data.total | integer | optional | Inferred result count when available. Example: 1 |
data.totalPage | integer | optional | Total page count returned by the upstream provider. Example: null |
data.type | string | optional | Provider result type. Example: rawMcpToolResult |
Any of option 2
| Name | Type | Required | Description |
|---|---|---|---|
data | null | required | Data value used by this API operation. |
Responses
| Code | Description |
|---|---|
| 200 | HTTP request completed. Check JSON code; only 0 indicates business success or acceptance. |
| 400 | Request JSON or required API parameters are invalid. |
| 401 | API key is missing, invalid, or cannot be matched to a user. |
| 5xx | API execution or upstream service failed. |
Data source, freshness, and limitations
Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.