Niveles de ventas por categoría de Amazon
Utiliza la API de Niveles de ventas por categoría de Amazon para análisis de mercados de Amazon. Consulta los parámetros, los campos de respuesta y los ejemplos de código.
/v1 /amazon /markets /sales-tiersEjemplos de datos de la API
Consulta el cuerpo de la solicitud y la estructura completa de la respuesta de este endpoint.
{
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100"
}{
"request_id": "4b5aa785-ca69-559c-afa6-f734b1fad4e5",
"data": {
"rank_range": 1,
"product_count": 100,
"variation_count": 1128,
"monthly_sales_volume": 1737949,
"monthly_sales_amount": 22029084.27,
"avg_price": 14.35,
"avg_rating": 4.7,
"avg_rating_count": 12373,
"new_listings_3m": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"new_listings_6m": {
"monthly_sales_volume": 14890,
"monthly_sales_amount": 284788.93,
"product_count": 2
},
"new_listings_12m": {
"monthly_sales_volume": 81205,
"monthly_sales_amount": 592096.66,
"product_count": 5
},
"old_listings_12m_plus": {
"monthly_sales_volume": 1656744,
"monthly_sales_amount": 21436987.61,
"product_count": 95
},
"old_listings_24m_plus": {
"monthly_sales_volume": 1381914,
"monthly_sales_amount": 17727224.57,
"product_count": 80
},
"delivery": {
"fba": {
"monthly_sales_volume": 1653468,
"monthly_sales_amount": 21514689.69,
"product_count": 94
},
"fbm": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"other": {
"monthly_sales_volume": 84481,
"monthly_sales_amount": 514394.58,
"product_count": 6
}
},
"amazon_owned": {
"monthly_sales_volume": 734008,
"monthly_sales_amount": 6453249.53,
"product_count": 18
},
"top_brands": [
{
"brand": "vailnd",
"product_count": 9,
"monthly_sales_volume": 463014,
"monthly_sales_amount": 5374049.16
},
{
"brand": "Reynolds",
"product_count": 9,
"monthly_sales_volume": 301860,
"monthly_sales_amount": 2047686.84
},
{
"brand": "katbite",
"product_count": 25,
"monthly_sales_volume": 245454,
"monthly_sales_amount": 3954149.76
}
]
}
}Esta página documenta el contrato público de Ecommerce Data API. Conserva los nombres de campos, las rutas y los ejemplos técnicos para que puedas integrarla directamente.
Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. Each call consumes 1 billing unit, including calls that find nothing (
RESULT_NOT_FOUND).
POST /v1/amazon/markets/sales-tiers
The request and response fields below match the current public contract.
Mapeo de la API
| Item | Value |
|---|---|
| MCP Code | amazon_markets_sales_tiers |
Llamada rápida
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/sales-tiers \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100"
}'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 "Amazon Category Sales Tiers" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/es/docs/amazon/markets/sales-tiers
Endpoint: POST https://ecommercedataapi.com/v1/amazon/markets/sales-tiers
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100"
}
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/sales-tiers',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
categoryId: '678533011',
marketplace: 'US',
tier: '1-100',
}),
}
);
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/sales-tiers",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"categoryId": "678533011",
"marketplace": "US",
"tier": "1-100",
},
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 |
|---|---|---|---|---|
categoryId | String | Yes | Amazon category (browse node) ID, from Amazon Product Categories or a product’s category path. | 678533011 |
marketplace | String | No | Amazon marketplace code. Supported values are listed in the schema. Available values (Table 1.2): US, JP, UK, DE, FR, IT, ES, CA, IN, MX, BR, AU, AE | US |
tier | String | No | Sales rank tier: 1-100, 101-200, 201-400, 401+, 1-400 or all. | 1-100 |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Object | 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 |
|---|---|---|---|
rank_range | Integer | The reported tier, same code as the request's tier: 1 = ranks 1-100, 2 = 101-200, 3 = 201-400, 4 = 401+, 5 = 1-400, 6 = all. | 1 |
product_count | Integer | Number of listings in this tier. | 100 |
variation_count | Integer | Total child variations of listings in this tier. | 1128 |
monthly_sales_volume | Integer | Sum of monthly sales volume of listings in this tier. | 1737949 |
monthly_sales_amount | Number | Sum of monthly sales amount of listings in this tier, in USD. | 22029084.27 |
avg_price | Number | Average price in USD of listings whose price is above 0; listings without a valid price are excluded. | 14.35 |
avg_rating | Number | Average star rating of listings whose rating is above 0. | 4.7 |
avg_rating_count | Integer | Average review count of listings in this tier; listings with 0 reviews are included. | 12373 |
new_listings_3m | Object | Listings on sale for 3 months or less: product_count, monthly_sales_volume, monthly_sales_amount. | - |
new_listings_6m | Object | Listings on sale for 6 months or less: product_count, monthly_sales_volume, monthly_sales_amount. | - |
new_listings_12m | Object | Listings on sale for 12 months or less: product_count, monthly_sales_volume, monthly_sales_amount. | - |
old_listings_12m_plus | Object | Listings on sale for more than 12 months: product_count, monthly_sales_volume, monthly_sales_amount. | - |
old_listings_24m_plus | Object | Listings on sale for more than 24 months: product_count, monthly_sales_volume, monthly_sales_amount. | - |
delivery | Object | Fulfillment breakdown with fba, fbm and other, each containing product_count, monthly_sales_volume and monthly_sales_amount; AmzFBA is counted as fba, unknown or empty as other. | - |
amazon_owned | Object | Listings whose buy box seller is Amazon: product_count, monthly_sales_volume, monthly_sales_amount. | - |
top_brands | Array | Top 3 brands by monthly sales volume in this tier; each item contains brand, product_count, monthly_sales_volume and monthly_sales_amount; empty if there is no brand data. | - |
top_brands.brand | String | Brand name. | vailnd |
top_brands.product_count | Integer | Number of listings of this brand in this tier. | 9 |
top_brands.monthly_sales_volume | Integer | Monthly sales volume of this brand's listings in this tier. | 463014 |
top_brands.monthly_sales_amount | Number | Monthly sales amount of this brand's listings in this tier, in USD. | 5374049.16 |
Response example
{
"request_id": "4b5aa785-ca69-559c-afa6-f734b1fad4e5",
"data": {
"rank_range": 1,
"product_count": 100,
"variation_count": 1128,
"monthly_sales_volume": 1737949,
"monthly_sales_amount": 22029084.27,
"avg_price": 14.35,
"avg_rating": 4.7,
"avg_rating_count": 12373,
"new_listings_3m": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"new_listings_6m": {
"monthly_sales_volume": 14890,
"monthly_sales_amount": 284788.93,
"product_count": 2
},
"new_listings_12m": {
"monthly_sales_volume": 81205,
"monthly_sales_amount": 592096.66,
"product_count": 5
},
"old_listings_12m_plus": {
"monthly_sales_volume": 1656744,
"monthly_sales_amount": 21436987.61,
"product_count": 95
},
"old_listings_24m_plus": {
"monthly_sales_volume": 1381914,
"monthly_sales_amount": 17727224.57,
"product_count": 80
},
"delivery": {
"fba": {
"monthly_sales_volume": 1653468,
"monthly_sales_amount": 21514689.69,
"product_count": 94
},
"fbm": {
"monthly_sales_volume": 0,
"monthly_sales_amount": 0,
"product_count": 0
},
"other": {
"monthly_sales_volume": 84481,
"monthly_sales_amount": 514394.58,
"product_count": 6
}
},
"amazon_owned": {
"monthly_sales_volume": 734008,
"monthly_sales_amount": 6453249.53,
"product_count": 18
},
"top_brands": [
{
"brand": "vailnd",
"product_count": 9,
"monthly_sales_volume": 463014,
"monthly_sales_amount": 5374049.16
},
{
"brand": "Reynolds",
"product_count": 9,
"monthly_sales_volume": 301860,
"monthly_sales_amount": 2047686.84
},
{
"brand": "katbite",
"product_count": 25,
"monthly_sales_volume": 245454,
"monthly_sales_amount": 3954149.76
}
]
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.