Get Aggregate Rating Count and 1–5 Star Histogram
get_app_ratingsFetch an app's total rating count and 1-to-5 star histogram by numeric trackId and country storefront, enabling comparison of rating volume and star distribution across regions.
Instructions
Fetch the total user ratings count (ratings) and the 1-to-5 star breakdown (histogram with keys '1' through '5') for an application in a regional App Store storefront.
When to use: Call this tool when you already have the app's numeric id (trackId) and only need rating volume and star distribution (for example, comparing star histograms across multiple country storefronts).
When NOT to use: If you also need general app metadata (title, price, version, developer) for the same storefront in the same step, call get_app with ratings: true instead to avoid redundant tool calls. If you need written user comments, call get_app_reviews. Does not accept appId (resolve bundle IDs via get_app or search_apps first).
Behavior: Read-only, cached for 5 minutes. Performs 1 lightweight HTML fragment request to Apple's customer-reviews endpoint and computes the exact ratings total by summing the 5 star buckets (fixing upstream's comma-truncation bug). Fails with 404 if the id is not found.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_app_ratings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric Apple iTunes trackId uniquely identifying the app (e.g. 553834731 for Candy Crush Saga). Obtainable from the `id` field returned by `search_apps`, `list_top_apps`, `list_developer_apps`, or `list_similar_apps`. | |
| country | No | Two-letter ISO 3166-1 alpha-2 country code selecting the regional App Store storefront (e.g. 'us', 'gb', 'de', 'jp'). Defaults to 'us'. Determines regional app availability, pricing currency, chart rankings, review pool, and default localized text language. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratings | Yes | Total number of user ratings in the storefront, accurately summed across all 5 buckets of `histogram`. | |
| histogram | Yes | Star rating breakdown mapping star level ('1', '2', '3', '4', '5') to its rating count in the storefront. |