nexscope-ai/nexscope-ecommerce-skills / ecommerce-amazon-product-history
ecommerce-amazon-product-history
VerifiedRetrieve Amazon product details by ASIN, including price, title, main image, listing date, material, weight, variant monthly sales, and up to 12 months of monthly sales history. Triggered when users query Amazon product details, ASIN lookup, product pricing, sales rank history, monthly sales trends, product dimensions, FBA fees, product specifications, batch ASIN query, Nexscope product details, ASIN detail lookup, monthly sales data, pricing info, product specifications, FBA fees, batch ASIN query. Even if users do not explicitly mention "Nexscope", this skill should be triggered whenever the task involves obtaining structured product data for one or more Amazon ASINs.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.8 KB |
| manifest.json | config | 264 B |
| references/api.md | markdown | 9.5 KB |
| scripts/amazon_product_history.py | script | 6.6 KB |
references/api.md
View on GitHub# Nexscope Amazon Product Detail API Reference
## API Specification
- **Endpoint**: `${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/keepa/productRequest`
- **HTTP Method**: POST, Content-Type: application/json
- **Authentication**: Header `Authorization: <api_key>`, read api_key from environment variable `NEXSCOPE_API_KEY` or `NEXSCOPE_API_KEY` (if not configured, follow **## Resolving Authentication and Credit Issues** in SKILL.md)
## Request Parameters
POST Body (JSON):
| Parameter | Type | Required | Description |
|------|------|------|------|
| asin | string | Yes | Amazon Standard Identification Number (ASIN), multiple ASINs separated by English commas, up to 5, max length 300 characters. Example: `B0088PUEPK` or `B0088PUEPK,B00U26V4VQ,B07M68S376` |
| domain | string | Yes | Amazon domain ID. Options: `1` (United States), `2` (United Kingdom), `3` (Germany), `4` (France), `5` (Japan), `6` (Canada), `8` (Italy), `9` (Spain), `10` (India), `11` (Mexico), `12` (Brazil) |
| history | integer | No | Whether to include historical data and historical sales in the response. `1` = include price history, sales rank, historical sales and other time-series data (sales for previous months), `0` = return only basic product information. Default: `0` |
## Listing date and age
Read `products[].availableDate` only when present and nonempty. The date is a data-source listing/first-available date, not a verified brand launch date. It is optional and may be absent or empty. The source timezone is unspecified; use a consistent calendar-date basis for age calculations and leave missing dates unknown. Do not automatically make additional paid calls when a date is missing.
ASIN date lookup example:
```json
{"asin":"B085S2CD7Y","domain":"1","history":0}
```
## 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 rows |
| perPage | integer | Items per page |
| sourceType | string | Source type: Nexscope |
| columns | array | Rendered columns |
| costToken | integer | Token consumption |
| totalCount | integer | Total count |
| currentPage | integer | Current page number |
| type | string | Render style |
| products | array | Product list (see below) |
### Product Object Fields
| Field | Type | Description |
|------|------|------|
| asin | string | ASIN |
| title | string | Product title |
| itemHighlights | string / null | Short Item Highlights separate from the title; up to 125 characters and may be null, blank, or absent |
| brand | string | Brand |
| manufacturer | string | Manufacturer |
| model | string | Model |
| color | string | Color |
| material | string | Product material, the primary material used in its construction |
| price | number | Current price (in local currency, e.g., USD/EUR) |
| primePrice | number | Prime price |
| currency | string | Currency |
| rating | number | Current rating (0.0-5.0, e.g., 4.5 stars) |
| ratings | integer | Number of ratings |
| reviewCount | integer | Number of reviews |
| salesRank | integer | Sales rank |
| salesRank30 | integer | Average sales rank in last 30 days |
| salesRank90 | integer | Average sales rank in last 90 days |
| salesRank180 | integer | Average sales rank in last 180 days |
| monthlySalesUnits | integer | Monthly sales units |
| monthlySalesRevenue | number | Monthly sales revenue |
| monthlySalesUnits1MonthAgo | integer | Monthly sales 1 month ago |
| monthlySalesUnits2MonthsAgo | integer | Monthly sales 2 months ago |
| monthlySalesUnits3MonthsAgo | integer | Monthly sales 3 months ago |
| monthlySalesUnits4MonthsAgo | integer | Monthly sales 4 months ago |
| monthlySalesUnits5MonthsAgo | integer | Monthly sales 5 months ago |
| monthlySalesUnits6MonthsAgo | integer | Monthly sales 6 months ago |
| monthlySalesUnits7MonthsAgo | integer | Monthly sales 7 months ago |
| monthlySalesUnits8MonthsAgo | integer | Monthly sales 8 months ago |
| monthlySalesUnits9MonthsAgo | integer | Monthly sales 9 months ago |
| monthlySalesUnits10MonthsAgo | integer | Monthly sales 10 months ago |
| monthlySalesUnits11MonthsAgo | integer | Monthly sales 11 months ago |
| monthlySalesUnits12MonthsAgo | integer | Monthly sales 12 months ago |
| availableDate | string | Optional listing/first-available date (yyyy-MM-dd HH:mm:ss); timezone unspecified, may be absent or empty; not a verified launch date |
| lastUpdate | string | Last update time (yyyy-MM-dd HH:mm:ss) |
| imageUrl | string | Image URL (request address) |
| productImageUrls | array | Product image list |
| asinUrl | string | Amazon ASIN detail page URL |
| urlSlug | string | URL slug |
| itemLength | integer | Item length in millimeters, 0 or -1 if unavailable |
| itemWidth | integer | Item width in millimeters, 0 or -1 if unavailable |
| itemHeight | integer | Item height in millimeters, 0 or -1 if unavailable |
| dimension | string | Dimensions |
| dimensionsType | string | Dimensions type |
| weight | string | Weight (grams) |
| packageLength | integer | Package length (mm) |
| packageWidth | integer | Package width (mm) |
| packageHeight | integer | Package height (mm) |
| packageWeight | string | Package weight (grams) |
| packageDimensions | string | Package dimensions |
| packageQuantity | integer | Quantity of items in the package, 0 or -1 if unavailable |
| fulfillment | string | Fulfillment method (AMZ, FBA, FBM) |
| fbaFees | number | FBA fulfillment fee (in local currency) |
| referralFeePercentage | number | Referral fee percentage |
| profit | number | Profit margin (percentage, e.g., 25.5 means 25.5%) |
| buyBoxSellerId | string | Buy Box seller ID |
| sellerNum | integer | Number of sellers |
| variationNum | integer | Number of variations |
| parentAsin | string | Parent ASIN |
| rootCategory | integer | Root category ID |
| categoryTree | string | Category tree |
| categoryTreeId | string | Category tree ID |
| subcategories | array | Subcategory list, each element contains `code` (category ID), `rank` (ranking), `label` (category name) |
| isAdultProduct | boolean | Whether it is an adult product |
| isHazmat | boolean | Whether it is hazardous material |
| sourceType | string | Source type: Nexscope |
| sourceTool | string | Source tool |
## 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 **## Resolving Authentication and Credit Issues** in SKILL.md. |
| Insufficient credits | HTTP 402: follow **## Resolving Authentication and Credit Issues** in SKILL.md. |
## curl Example
```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/keepa/productRequest \
-H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"asin": "B0088PUEPK", "domain": "1", "history": 1}'
```
### Batch Query Example
```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/keepa/productRequest \
-H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"asin": "B0088PUEPK,B00U26V4VQ,B07M68S376", "domain": "1", "history": 0}'
```
---
## 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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |