Skip to content

nexscope-ai/nexscope-ecommerce-skills / ecommerce-amazon-asin-traffic-summary

ecommerce.amazon-asin-traffic-summary

Verified

Use Nexscope (Search Intelligence Framework) data to analyze ASIN traffic source composition and exposure distribution, covering current period/previous period/newly entered/exited period comparisons. Trigger when the user mentions ASIN traffic sources, traffic structure analysis, organic traffic vs paid traffic share, exposure score breakdown, period comparison, new/exited traffic keywords, competitor traffic analysis, SP ad keyword count, brand ad exposure, Amazon's Choice exposure, editorial recommendation exposure, Top Rated exposure, video ad exposure, organic search exposure ratio, PPC traffic sources, promotional deal traffic sources, recommendation slot structure breakdown, ASIN traffic analysis, traffic sources, organic traffic share, ad traffic share, exposure analysis, traffic structure, period-over-period comparison, keyword churn, Nexscope. Even if the user does not explicitly mention "Nexscope", if their need involves analyzing an ASIN's traffic sources, exposure channel distribution, cross-period comparison, or competitor traffic structure comparison, this skill should also be triggered.

FileKindSize
SKILL.mdskill md18.3 KB
manifest.jsonconfig241 B
references/api.mdmarkdown12.2 KB
scripts/amazon_asin_traffic_summary.pyscript6.6 KB

references/api.md

View on GitHub
# Nexscope - ASIN Traffic Sources API Reference

## API Specification

- **Endpoint**: `${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sif/asinSummary`
- **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 |
|------|------|------|------|
| searchValue | string | Yes | Search value, ASIN codes, comma-separated, max 10 ASINs, max length 1000 characters |
| country | string | No | Country site, default `US`. Options (13 total): `US`, `UK`, `DE`, `CA`, `JP`, `FR`, `ES`, `IT`, `MX`, `AU`, `AE`, `BR`, `SA` |
| last7d | boolean | No | Whether to get last 7 days data, default `true`. When `false`, use `startDate`/`endDate` range |
| startDate | string | No | Start date `yyyy-MM-dd` (effective when `last7d=false`; if omitted, the latest system week is used) |
| endDate | string | No | End date `yyyy-MM-dd` (paired with `startDate`) |
| conditions | string | No | Condition filters, comma-separated. Options: `nf` (natural traffic), `sp` (SP ads), `sb` (SB regular), `sbv` (video ads), `ad` (ad traffic), `acAd` (SP recommendation), `totalPeriod.in` (new incoming traffic keywords) |
| sortBy | string | No | Sort field. Options: `totalKeywordNum` (all traffic keywords), `naturalKeywordNum` (natural traffic keywords), `brandKeywordNum` (brand ad keywords), `vedioKeywordNum` (video ad keywords), `acKeywordNum` (AC recommended keywords), `erKeywordNum` (ER recommended keywords), `trKeywordNum` (TR recommended keywords), `sumScore` (total keyword exposure score), `totalNfScore` (total natural rank exposure score), `totalSpSocre` (total SP ad exposure score, note spelling), `totalBrandScore` (total brand ad exposure score), `totalVedioScore` (total video ad exposure score), `totalAcScore` (total AC recommendation exposure score), `totalTrScore` (total TR recommendation exposure score), `totalErScore` (total ER recommendation exposure score) |
| pageNum | integer | No | Page number, default `1` |
| pageSize | integer | No | Results per page, min 10, max **10000**, default `10000` |
| desc | boolean | No | Whether to sort descending, default `true` |

## 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

| Field | Type | Description |
|------|------|------|
| total | integer | Number of data records actually returned |
| data | array | Return data, ASIN summary object array (see below) |
| columns | array | Render columns |
| type | string | Render style |
| title | string | Title |
| isParentAsin | boolean | Whether the search value is a parent ASIN |
| variantsNum | integer | Number of variant products with keywords |
| noKeywordVariantsNum | integer | Number of variant products without keywords |
| costTime | integer | Latency (ms) |
| costToken | integer | Tokens consumed |

### data Array Element Fields

> Field suffix convention: `*Prev` is the previous period's value; `*In` / `*Out` are new incoming / outgoing counts compared to the previous period, used for week-over-week comparison.

| Field | Type | Description |
|------|------|------|
| asin | string | ASIN code. Amazon Standard Identification Number |
| productTitle | string | Product title |
| productCategory | string | Product category |
| productPrice | number | Product price |
| productImageUrl | string | Product main image URL |
| productFeatures | array | Product feature list |
| customerRatingCount | integer | Total customer rating count |
| productStarRating | number | Product star rating (0-5 stars) |
| productRatingScore | number | Product rating score value (0-5, as displayed on Amazon page) |
| isVariantProduct | boolean | Whether it is a variant |
| recentMonthlySalesBucket | string | Recent month sales bucket (only has value in keywordSummary path, e.g. `"300+"` or `"1,000+"`) |
| isMonitored | boolean | Whether it is being monitored |
| monitoringStartTime | string | Product monitoring start time |
| dataPeriodStartDate | string | Data period start date (`yyyy-MM-dd`) |
| totalExposureScore | number | Total exposure score. Composite exposure score of this product across all keywords |
| totalExposureScorePrev | number | Previous period total exposure score |
| totalTrafficKeywordCount | integer | Total traffic keyword count |
| totalTrafficKeywordCountIn | integer | New incoming traffic keyword count for this period |
| totalTrafficKeywordCountOut | integer | Outgoing traffic keyword count for this period |
| totalTrafficKeywordCountPrev | integer | Previous period total traffic keyword count |
| naturalSearchExposureScore | number | Natural search exposure total score |
| naturalSearchExposureRatio | number | Natural search exposure ratio |
| naturalSearchExposureScorePrev | number | Previous period natural search exposure score |
| naturalSearchKeywordCount | integer | Natural search keyword count |
| naturalSearchKeywordCountIn | integer | New incoming natural search keyword count for this period |
| naturalSearchKeywordCountOut | integer | Outgoing natural search keyword count for this period |
| naturalSearchKeywordCountPrev | integer | Previous period natural search keyword count |
| sponsoredProductsExposureScore | number | SP ad exposure total score |
| sponsoredProductsExposureRatio | number | SP ad exposure ratio |
| sponsoredProductsExposureScorePrev | number | Previous period SP ad exposure score |
| sponsoredProductsKeywordCount | integer | SP ad keyword count |
| brandAdExposureScore | number | Brand ad exposure total score |
| brandAdExposureRatio | number | Brand ad exposure ratio |
| brandAdExposureScorePrev | number | Previous period brand ad exposure score |
| brandAdKeywordCount | integer | Total brand ad keyword count |
| topBrandAdKeywordCount | integer | Top-of-page brand ad keyword count |
| bottomBrandAdKeywordCount | integer | Bottom-of-page brand ad keyword count |
| videoAdExposureScore | number | Video ad exposure total score |
| videoAdExposureRatio | number | Video ad exposure ratio |
| videoAdExposureScorePrev | number | Previous period video ad exposure score |
| videoAdKeywordCount | integer | Video ad keyword count |
| amazonsChoiceExposureScore | number | Amazon's Choice exposure total score |
| amazonsChoiceExposureRatio | number | Amazon's Choice exposure ratio |
| amazonsChoiceExposureScorePrev | number | Previous period AC exposure score |
| amazonsChoiceKeywordCount | integer | Amazon's Choice keyword count |
| amazonsChoiceKeywordCountIn | integer | New incoming AC keyword count for this period |
| amazonsChoiceKeywordCountOut | integer | Outgoing AC keyword count for this period |
| editorialRecommendationsExposureScore | number | Editorial Recommendations exposure total score |
| editorialRecommendationsExposureRatio | number | Editorial Recommendations exposure ratio |
| editorialRecommendationsKeywordCount | integer | Editorial Recommendations keyword count |
| topRatedExposureScore | number | Top Rated recommendation exposure total score |
| topRatedExposureRatio | number | Top Rated recommendation exposure ratio |
| topRatedKeywordCount | integer | Top Rated recommendation keyword count |
| frequentlyBoughtKeywordCount | integer | Frequently Bought recommendation keyword count (Top Rated Frequently Bought) |
| recommendPositionExposureScore | number | Recommendation position exposure total score |
| recommendAdExposureScore | number | Recommendation position ad exposure score |
| recommendNonadExposureScore | number | Recommendation position non-ad exposure score |
| nonAcRecommendExposureScore | number | Non-AC recommendation position exposure score |
| recommendKeywordCount | integer | Total recommendation position keyword count |
| recommendAdKeywordCount | integer | Recommendation position ad keyword count |
| recommendNonadKeywordCount | integer | Recommendation position non-ad keyword count |
| ppcTrafficSources | array | PPC paid ad traffic source markers. Contains: SP ads, top brand ads, bottom brand ads, video ads |
| naturalSearchTrafficSources | array | Natural search traffic source markers |
| amazonRecommendationSources | array | Amazon recommendation traffic source markers. Contains: Best Seller, AC, ER, TR, TRFOB, etc. |
| promotionalDealSources | array | Promotional deal traffic source markers. Contains: Coupon, Limited Time Deal, Lowest Price in 30 Days, etc. |

## 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 credits | HTTP 402: follow the **## Resolving Authentication and Credits Issues** section in SKILL.md. |

## curl Example

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sif/asinSummary \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"searchValue": "B09V3KXJPB", "country": "US"}'
```

### Multi-ASIN Query

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sif/asinSummary \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"searchValue": "B09V3KXJPB,B0BN1K7WJP", "country": "US", "pageSize": 10000, "pageNum": 1, "desc": true}'
```

### Specified Date Range + Ad Traffic Only

```bash
curl -X POST ${NEXSCOPE_PROXY_BASE}/api/v1/tools/research/sif/asinSummary \
  -H "Authorization: Bearer ${NEXSCOPE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"searchValue": "B09V3KXJPB", "country": "US", "last7d": false, "startDate": "2026-03-08", "endDate": "2026-03-14", "conditions": "ad", "sortBy": "totalSpSocre"}'
```

---

## 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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated 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: 322kUpdated Claude CodeCodexVerifiedInstall