openapi_v2_markets_rating_distributions
Function
Select up to 100 Amazon Listings with the highest monthly unit sales or monthly revenue in the market, then group them by star-rating range. Each group returns Listing count and share, monthly unit sales and share, monthly revenue and share, and per-Listing means for price, star rating, rating count, monthly unit sales and monthly revenue.
Use cases
Profile customer-rating patterns by comparing Listing counts, unit sales and revenue across star-rating ranges; assess rating levels and demand distribution in the leading sample.
Example
{"categoryIds":["679399011"],"sampleType":"unitSalesTop100"}
Data range
US marketplace only. Each category is analyzed independently; product coverage can include or exclude descendants. Missing metrics remain null. Based on a leading sample of up to 100 Amazon Listings selected by monthly unit sales or revenue; results describe the sample. Omit the date for the latest available snapshot. An explicit date requires a published snapshot on that day; otherwise return no data. Use the resolvedDate returned by market search to query the same snapshot. Before querying, balance must cover the distinct requested market count at the endpoint unit price; this check does not deduct credits. Billing counts distinct returned markets (site and category ID); empty data costs zero. Price and rating means in this response exclude Listings whose corresponding metric is null; zero values participate. Different means can have different denominators; no valid values returns null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Published snapshot date (YYYY-MM-DD). Omit for the latest available common snapshot; an unpublished explicit date returns no data. Use the resolvedDate returned by market search to query the same snapshot. | |
| sampleType | No | unitSalesTop100 selects up to 100 Amazon Listings by monthly unit sales; revenueTop100 selects up to 100 by monthly revenue. Concentration analysis uses the same metric to rank products, brands or sellers and calculate their sample shares. | unitSalesTop100 |
| categoryIds | Yes | Real category IDs; each ID selects an independent market. | |
| marketplace | No | Marketplace code; currently US only. | US |
| includeDescendantCategoryProducts | No | true includes products from this category and its descendants; false counts only directly assigned products. Controls product statistics, not market-row selection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Response data payload | |
| meta | Yes | Response metadata including pagination info | |
| error | No | Error details if request failed | |
| success | No | Whether the request was successful |