https://api.nexscope.ai/multimodal/analyzeProductSimilarityRun this API
Send a JSON request to execute this API and receive the documented response payload.
Endpoint
| Method | POST |
| Path | https://api.nexscope.ai/multimodal/analyzeProductSimilarity |
| Auth | Bearer API key |
| Content-Type | application/json |
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
similarityThreshold | integer | optional | Similarity threshold from 0 to 100; default 60. Example: 60 |
includeSingleBrandGroups | boolean | optional | Include groups containing only one brand; default true. Example: true |
refResultData | string | required | JSON string containing a root array with a role=tool message, responses[], and responseData.products[] or responseData.tables[].data[]. At least one product needs a nonblank imageUrl (or image_url when imageUrl is absent); asin and brand are optional. Maximum 2024000 characters. Example: [{"role":"tool","responses":[{"responseData":{"products":[{"asin":"B000000001","imageUrl":"https://example.com/one.jpg"}]}}]}] |
userInput | string | optional | Original analysis request; maximum 10000000 characters. Example: Group products by main-image similarity |
Response example
Platform response envelope. code 0 indicates success or acceptance; data contains the business result.
{
"code": 0,
"cost": "-1",
"data": {
"analysisInfo": {
"analysisTimestamp": "2026-11-12T00:00:00Z",
"similarityThreshold": 0.6,
"totalGroupsFound": 1,
"totalProductsAnalyzed": 2
},
"costToken": 100,
"groups": [
{
"asins": [
{
"asin": "B000000001",
"brand": "Brand A"
},
{
"asin": "B000000002",
"brand": "Brand B"
}
],
"brandCount": 2,
"groupNumber": 1,
"reason": "Similar main images"
}
]
},
"msg": null,
"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. |
data: object · variant 1 4 fields
| Name | Type | Required | Description |
|---|---|---|---|
data | object | required | Data value used by this API operation. |
data.analysisInfo | any | optional | Analysis info value used by this API operation. |
data.costToken | any | optional | Cost token value used by this API operation. |
data.groups | any | optional | Groups value used by this API operation. |
data.analysisInfo: object · variant 1 1 fields
| Name | Type | Required | Description |
|---|---|---|---|
data.analysisInfo | object | optional | Analysis info value used by this API operation. |
data.analysisInfo: null · variant 2 1 fields
| Name | Type | Required | Description |
|---|---|---|---|
data.analysisInfo | null | optional | Analysis info value used by this API operation. |
data.costToken: integer · variant 1 1 fields
| Name | Type | Required | Description |
|---|---|---|---|
data.costToken | integer | optional | Cost token value used by this API operation. |
data.costToken: null · variant 2 1 fields
| Name | Type | Required | Description |
|---|---|---|---|
data.costToken | null | optional | Cost token value used by this API operation. |
data.groups: array · variant 1 1 fields
| Name | Type | Required | Description |
|---|---|---|---|
data.groups | array | optional | Groups value used by this API operation. |
data.groups: null · variant 2 1 fields
| Name | Type | Required | Description |
|---|---|---|---|
data.groups | null | optional | Groups value used by this API operation. |
data: null · variant 2 1 fields
| Name | Type | Required | Description |
|---|---|---|---|
data | null | required | Data value used by this API operation. |
Responses
| Code | Description |
|---|---|
| 200 | Default HTTP response for both success and many business errors. Only outer JSON code 0 indicates success or asynchronous acceptance; inspect data for the result. |
| 429 | Execution admission rate limit; honor Retry-After when present. |
| 503 | Execution admission is temporarily unavailable; honor Retry-After when present. |
| Opt-in | X-Nexscope-Http-Status: semantic maps controller-handled business errors to HTTP status on run and task routes. Pre-authentication failures, such as a missing or invalid API key (code 11209, including an incomplete or corrupted copy) or an expired website login session (code 12001), may still return HTTP 200 before this mapping. Always check the outer JSON code; malformed requests and infrastructure failures may also return non-200 HTTP responses. |
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.