Product Concentration
Use the Product Concentration API for Amazon market analysis. Review request parameters, response fields, and runnable examples.
/v1 /amazon /markets /product-concentrationAPI data samples
Inspect the request body and complete response shape used by this endpoint.
{
"marketplace": "US",
"nodeIdPath": "172282:281407"
}{
"request_id": "8fb43e59-4ff9-4dc8-a4b7-2ed164e45ab8",
"data": [
{
"title": "POCOCO Realistic Constellation-1 Series Discs, 5K Resolution, Realistic Patterns, 6 Pieces",
"asin": "B0B6G28SXP",
"asinUrl": "https://www.amazon.com/dp/B0B6G28SXP",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/71qOlP597lL._AC_US200_.jpg",
"ranking": 1,
"brand": "POCOCO",
"sellerName": "POCOCO Direct",
"sellerType": "FBA",
"price": 53.99,
"shelfDate": "2022-09-21",
"ratings": 684,
"reviews": 29,
"rating": 4.3,
"newFlag": 0,
"totalUnits": 2067,
"totalRevenue": 111597.34,
"totalUnitsRatio": 0.4646,
"totalRevenueRatio": 0.6737
},
{
"title": "Starlink Mini Case, IP67 Waterproof Hard Case with with Custom Fit Foam, Portable Travel & Camping Storage for Starlink Mini Dish & Accessories, Perfect for Outdoor Use",
"asin": "B0DQPT7F25",
"asinUrl": "https://www.amazon.com/dp/B0DQPT7F25",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/71jsNg3xngL._AC_US200_.jpg",
"ranking": 2,
"brand": "Accecraft",
"sellerName": "NEX001US",
"sellerType": "FBA",
"price": 35.99,
"shelfDate": "2025-03-03",
"ratings": 105,
"reviews": 0,
"rating": 4.7,
"newFlag": 0,
"totalUnits": 599,
"totalRevenue": 21558.01,
"totalUnitsRatio": 0.1346,
"totalRevenueRatio": 0.1301
}
]
}Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. A successful call consumes 1 billing unit.
POST /v1/amazon/markets/product-concentration
The request and response fields below match the current public contract.
Quick call
First create an API key, then store it in a server-side environment variable:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/amazon/markets/product-concentration \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"marketplace": "US",
"nodeIdPath": "172282:281407"
}'Integrate with an AI CLI
Copy for your AI CLI
Paste this task into Codex, Claude Code, Gemini CLI, or another coding agent.
Integrate the "Product Concentration" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/en/docs/amazon/markets/product-concentration
Endpoint: POST https://ecommercedataapi.com/v1/amazon/markets/product-concentration
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"marketplace": "US",
"nodeIdPath": "172282:281407"
}
Requirements:
1. Read the API documentation first, then inspect the repository's language, framework, HTTP client, directory structure, and environment-variable conventions.
2. Reuse the existing API client and error-handling patterns. If none exist, add the smallest reusable Ecommerce Data API client and an endpoint-specific wrapper.
3. Read the key from the server-side ECOMMERCE_DATA_API_KEY environment variable and send Content-Type: application/json plus the X-API-Key header. Never write a real key into source code, browser code, logs, test snapshots, or Git.
4. If the environment variable is missing, tell me to configure ECOMMERCE_DATA_API_KEY myself. Do not request, print, or invent the real key, and continue implementing code and tests that do not require a live request.
5. Implement request and response types from the documentation. Handle non-2xx responses, request_id, error.code, error.message, and 429 rate limits.
6. Add a minimal usage example or test that follows the repository's conventions. Run one minimal live request only when the key is already configured and external requests are allowed; otherwise use mocks or static validation.
7. Run the relevant formatter, type checker, and tests. Report changed files, usage, verification results, and any environment variable I still need to configure.Open this request in Postman
Download the preconfigured collection for this endpoint, then import it into Postman.
Node.js example
const response = await fetch(
'https://ecommercedataapi.com/v1/amazon/markets/product-concentration',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
marketplace: 'US',
nodeIdPath: '172282:281407',
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python example
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/amazon/markets/product-concentration",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"marketplace": "US",
"nodeIdPath": "172282:281407",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])Request body
Send the fields below directly in the JSON body without an extra wrapper. Undefined fields are rejected.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
asins | Array | No | List of Amazon Standard Identification Numbers. | ["B00P19MFYE"] |
marketplace | String | Yes | Amazon marketplace code. Supported values are listed in the schema. | US |
month | String | No | Data month. Use the format documented for this endpoint, usually yyyyMM. | 202507 |
newProduct | Integer | No | New product. | 6 |
nodeIdPath | String | Yes | Amazon category node path. | 1064954:1069242:1069784:1069820:1069838:1069828 |
returnFields | String | No | Optional comma-separated response fields. Omit it to receive the standard payload. | title,asin,asinUrl |
topN | Integer | No | Top n. | 10 |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Array | Endpoint business data. |
The fields below are inside data. For array endpoints they describe one array item; for paginated endpoints they describe one record in items[].
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
title | String | Title. | Pilot G2, Dr. Grip Gel/Ltd, ExecuGel G6, Q7 Rollerball Gel Ink Pen Refills, 0.7mm, Fine Point, Black Ink, 3 Packs of 2 |
asin | String | ASIN. | B00P19MFYE |
asinUrl | String | ASIN URL. | https://www.amazon.com/dp/B00P19MFYE |
imageUrl | String | Image URL. | https://images-na.ssl-images-amazon.com/images/I/51hxvoxGnjL._AC_US200_.jpg |
ranking | Integer | Ranking. | 1 |
brand | String | Brand. | PILOT |
sellerName | String | Seller name. | JA Wholesale LLC |
sellerType | String | Seller type. | FBA |
price | Number | Price. | 6.19 |
shelfDate | String | Shelf date. Date or timestamp value. | 2014-10-30 |
ratings | Integer | Ratings. | 5695 |
reviews | Integer | Reviews. | 133 |
rating | Number | Rating. | 4.8 |
newFlag | Integer | New flag. | 0 |
totalUnits | Integer | Total units. | 2515 |
totalRevenue | Number | Total revenue. | 18837.35 |
totalUnitsRatio | Number | Total units ratio. Percentage or ratio value as documented. | 0.4478 |
totalRevenueRatio | Number | Total revenue ratio. Percentage or ratio value as documented. | 0.3052 |
Response example
{
"request_id": "8fb43e59-4ff9-4dc8-a4b7-2ed164e45ab8",
"data": [
{
"title": "POCOCO Realistic Constellation-1 Series Discs, 5K Resolution, Realistic Patterns, 6 Pieces",
"asin": "B0B6G28SXP",
"asinUrl": "https://www.amazon.com/dp/B0B6G28SXP",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/71qOlP597lL._AC_US200_.jpg",
"ranking": 1,
"brand": "POCOCO",
"sellerName": "POCOCO Direct",
"sellerType": "FBA",
"price": 53.99,
"shelfDate": "2022-09-21",
"ratings": 684,
"reviews": 29,
"rating": 4.3,
"newFlag": 0,
"totalUnits": 2067,
"totalRevenue": 111597.34,
"totalUnitsRatio": 0.4646,
"totalRevenueRatio": 0.6737
},
{
"title": "Starlink Mini Case, IP67 Waterproof Hard Case with with Custom Fit Foam, Portable Travel & Camping Storage for Starlink Mini Dish & Accessories, Perfect for Outdoor Use",
"asin": "B0DQPT7F25",
"asinUrl": "https://www.amazon.com/dp/B0DQPT7F25",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/71jsNg3xngL._AC_US200_.jpg",
"ranking": 2,
"brand": "Accecraft",
"sellerName": "NEX001US",
"sellerType": "FBA",
"price": 35.99,
"shelfDate": "2025-03-03",
"ratings": 105,
"reviews": 0,
"rating": 4.7,
"newFlag": 0,
"totalUnits": 599,
"totalRevenue": 21558.01,
"totalUnitsRatio": 0.1346,
"totalRevenueRatio": 0.1301
}
]
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.