App Sales (App Store Connect)
sonar_app_salesApp Store Connect sales for one of your own iOS apps: daily first-time downloads, redownloads, in-app purchase units and approximate USD proceeds (proceeds_usd_approx, converted with a static FX table — present it as approximate), window totals, and a per-country breakdown sorted by downloads. Same numbers as the Performance page. iOS only. Requires the Indie or Agency plan AND an App Store Connect connection at /settings/connections. Always check status: anything other than ready (not_connected, not_ios, app_not_in_account, pending, key_lacks_analytics) means there's no data and message says how to fix it — never read an empty series as zero. Days Apple hasn't reported yet have reported: false and null metrics.
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": {
"app_id": "<app_id>"
},
"name": "sonar_app_sales"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last day of the window (YYYY-MM-DD, inclusive). Default yesterday (UTC) — Apple posts a day the next morning at the earliest. | |
| days | No | Window length in days (1-366) when `start` is omitted. Default 30. | |
| start | No | First day of the window (YYYY-MM-DD, inclusive). Omit to count `days` back from `end`. | |
| store | No | Only needed when `app_id` is a store id tracked in both stores. App Store Connect data is iOS-only. | |
| app_id | Yes | Sonar app UUID of one of your own tracked iOS apps — the `id` returned by sonar_list_apps or sonar_create_product. The app's store id (bundle id) also works; pass `store` if it exists in both stores. |