Skip to content

nexscope-ai/nexscope-ecommerce-skills / ecommerce-amazon-market-product-search

ecommerce.amazon-market-product-search

Verified

Multi-dimensional Amazon product search and filtering based on Nexscope data, covering 14 marketplaces, with support for historical monthly snapshot lookback. Trigger when the user mentions Nexscope product search, Amazon product filtering, competitor research, category analysis, brand bestsellers, seller analysis, seasonal products, historical snapshot review, product search, monthly sales/revenue, ABA keyword product discovery, price range filtering, new product discovery, multi-condition combined filtering, product search, competitor research, category analysis, brand bestsellers, seller analysis, seasonal products, historical snapshot. Even if the user does not explicitly mention "Nexscope", if their need involves Amazon product search, filtering, comparison, or product exploration by category/brand/seller dimensions, this skill should also be triggered.

FileKindSize
SKILL.mdskill md11.8 KB
manifest.jsonconfig249 B
references/api.mdmarkdown9.7 KB
scripts/amazon_market_product_search.pyscript6.6 KB

references/api.md

View on GitHub
# Nexscope Amazon Product Search API Reference

## API Specification

- **Endpoint**: `${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sorftime/amazon/productQuery`
- **HTTP Method**: POST, Content-Type: application/json
- **Authentication**: Header `Authorization: <api_key>`, api_key is read from environment variable `NEXSCOPE_API_KEY` or `NEXSCOPE_API_KEY` (if not configured, follow the **## Resolving Authentication and Credits Issues** section in SKILL.md)

## Request Parameters

POST Body (JSON):

| Parameter | Type | Required | Description |
|------|------|------|------|
| marketplace | string | Yes | Amazon site code: us, gb, de, fr, in, ca, jp, es, it, mx, ae, au, br, sa |
| queryMode | integer | No | Query mode. `1`: single condition query (default); `2`: multi-condition combined query (AND relationship) |
| queryType | integer | No | Query type (1-16), only effective when queryMode=1. See the complete Query Types description in SKILL.md |
| queryValue | string | No | Query condition value, format varies by queryMode and queryType. See the format description for each queryType in SKILL.md |
| page | integer | No | Page number, default 1. Max 100 products per page |
| queryMonth | string | No | Historical month lookback, format `yyyy-MM`. When not specified, queries real-time data |

- When `queryMode=2` (multi-condition combined query), `queryType` is ignored; all conditions are passed via `queryValue` as a JSON array: `[{"QueryType":1,"Content":"B0CVM8TXHP"},{"QueryType":8,"Content":"100,500"}]`
- When the user explicitly requests pagination, adjust the `page` parameter

## Nexscope response envelope

These research endpoints return a platform object with numeric `code`, nullable `msg`, and business `data`. Only outer `code: 0` means success; `200`, string codes, missing codes, and HTTP 200 alone do not. A nonzero code is a platform error: show `msg` and do not interpret the payload as a successful result.

`msg` preserves the upstream message when available; Chinese messages are translated to English by Nexscope. A successful response without a message has `msg: null`. Do not infer success or retry behavior from the message text. On both success and failure, the direct fields `code`, `errcode`, `errorCode`, `msg`, `errmsg`, `message`, and `errorMsg` are removed from public `data`. Read the message only from outer `msg`; deeper business fields are preserved, including nested `code` and `status`.

Business field tables and abbreviated business examples below describe `data`, unless explicitly labeled as a complete platform response. For example, a business `products` field is at HTTP `data.products`, and a business `data` array is at HTTP `data.data`. The research endpoints already had this outer envelope; no additional wrapper is added.

```json
{"code":0,"msg":null,"data":{}}
```

Metadata includes string `ts` (epoch milliseconds), string `cost` (elapsed milliseconds, not credits), `time`, and nullable `traceId`. Handle network/HTTP failures before the platform code; gateway failures may not be platform JSON. Keep the existing billing-header guidance separate from elapsed time.

## Response Structure

### Top-Level Fields

| Field | Type | Description |
|------|------|------|
| total | integer | Total result count |
| page | integer | Current page number |
| pageCount | integer | Total page count (max 200 pages) |
| costTime | integer | Latency (ms) |
| costToken | integer | Tokens consumed |
| requestConsumed | integer | Requests consumed |
| type | string | Render style |
| columns | array | Render columns |
| products | array | Product list (see below) |

### Product Object Fields (products Array Elements)

| Field | Type | Description |
|------|------|------|
| asin | string | ASIN |
| title | string | Product title |
| brand | string | Brand |
| asinUrl | string | Product link, Amazon Listing detail page URL |
| imageUrl | string | Main image URL |
| productImageUrls | array | Main image list (all product image URLs) |
| parentAsin | string | Parent ASIN, the parent ASIN if variants exist, null if no variants |
| variationNum | integer | Number of variations |
| weight | string | Weight, unit g |
| size | array | Dimensions, outer packaging [longest side, second longest side, shortest side], unit cm |
| price | number | Current price, before coupon, in local currency (e.g. USD) |
| oldPrice | number | Strikethrough price, in local currency (e.g. USD) |
| salesPrice | number | Final price, actual price after coupon deduction, in local currency (e.g. USD) |
| coupon | integer | Coupon policy. Value >= 0 = deduction amount (e.g. 500 = $5), value < 0 = discount percentage (e.g. -10 = 10% discount) |
| fbaFees | number | FBA fees, in local currency (e.g. USD) |
| fbaDetail | array | FBA detail. First item is delivery fee, subsequent items are month:storage fee, e.g. [475,"1-9:5","10-12:15"] |
| platformFee | number | Platform commission, in local currency (e.g. USD) |
| profitAmount | number | Profit, final price - FBA fee - commission, in local currency (e.g. USD) |
| profitRate | number | Profit margin, e.g. 25.83 means 25.83% |
| monthlySalesUnits | integer | Monthly sales volume, last 30 days Listing-level (does not split by variant), recommended for evaluating sales, value -1 means unable to estimate |
| monthlySalesRevenue | number | Monthly sales revenue, estimated value, in local currency (e.g. USD), value -1 means unable to estimate |
| listingSalesVolumeOfDaily | integer | Daily sales volume, Listing-level (does not split by variant), value -1 means unable to estimate |
| listingSalesOfDaily | number | Daily sales revenue, in local currency (e.g. USD), value -1 means unable to estimate |
| salesRank | integer | BSR rank, main category rank |
| category | array | Main category, [category name, NodeId] |
| bsrCategory | array | Subcategory rank list, each entry containing nodeId (node ID), name (category name), rank (rank), date (date, format yyyyMMdd) |
| rating | number | Current rating (0.0-5.0, e.g. 4.8) |
| ratings | integer | Number of ratings |
| availableDate | string | Listing time, format yyyy-MM-dd |
| onlineDays | integer | Days since listing |
| buyboxSeller | string | Buybox seller name |
| buyBoxSellerId | string | Buybox seller ID |
| buyboxSellerAddress | string | Seller location, Buybox seller nationality (two-letter code e.g. CN, US), null if Amazon's own |
| isFBA | boolean | Whether FBA, whether Buybox seller uses FBA logistics |
| sellerNum | integer | Number of sellers |
| aPlus | boolean | Has A+ |
| hasVideo | boolean | Has video |
| hasBrandStore | boolean | Has brand store |


## Error Codes

HTTP 200 does not prove business success. Read only the numeric outer platform `code`: `0` succeeds and any other value fails. Show outer `msg`; never test removed provider codes or nested business `code` as the platform status. Authentication, permissions, balance, and validation failures may be platform errors even with HTTP 200; also handle non-2xx HTTP and non-JSON responses.

### Recovery guidance

| Condition | Action |
|---|---|
| Authentication failed | HTTP 401 or authorized error: follow the **## Resolving Authentication and Credits Issues** section in SKILL.md. |
| Insufficient balance | HTTP 402: follow the **## Resolving Authentication and Credits Issues** section in SKILL.md. |

## curl Example

**Single Condition - ASIN Similar Products:**

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sorftime/amazon/productQuery \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"marketplace": "us", "queryMode": 1, "queryType": 1, "queryValue": "B0CVM8TXHP"}'
```

**Single Condition - Category Browsing:**

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sorftime/amazon/productQuery \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"marketplace": "us", "queryMode": 1, "queryType": 2, "queryValue": "3743561"}'
```

**Single Condition - Brand Best Sellers:**

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sorftime/amazon/productQuery \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"marketplace": "us", "queryMode": 1, "queryType": 3, "queryValue": "Anker"}'
```

**Single Condition - Historical Snapshot Lookback:**

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sorftime/amazon/productQuery \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"marketplace": "us", "queryMode": 1, "queryType": 2, "queryValue": "3743561", "queryMonth": "2024-11"}'
```

**Multi-Condition Combined - New Products + High Sales + FBA:**

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sorftime/amazon/productQuery \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"marketplace": "us", "queryMode": 2, "queryValue": "[{\"QueryType\":11,\"Content\":\"2024-06-01,\"},{\"QueryType\":9,\"Content\":\"300,\"},{\"QueryType\":15,\"Content\":\"FBA\"}]"}'
```

---

## API Key request rate and retries

All API Keys of one Nexscope user share the public API execution request-rate allowance, measured in any rolling 1-second window. The allowed RPS depends on that user's entitlements; it is not a universal 1 RPS. One Skill operation may issue multiple public API requests, each of which uses the allowance.

HTTP 429 with Nexscope outer code `13012` means request-rate exhaustion: honor the response's `Retry-After`. Outer code `13013` means concurrent-request exhaustion, not rate exhaustion; honor `Retry-After` when supplied. Check the HTTP status and outer JSON code separately. Do not automatically replay writes or requests with uncertain outcomes; first reconcile the operation's state.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall