get_report
Retrieve aggregated AppMetrica statistics for a chosen app and date range, including users, sessions, crashes, and more.
Instructions
Retrieve aggregated statistics from AppMetrica. Call list_metrics first for the catalogue with namespace grammar and known-bad keys. Quick reference: ym:u:* users · ym:s:* sessions · ym:cr:* crashes · ym:ge:* general events · ym:i:* installs · ym:pc:* push campaigns Common 4002 traps: ym:u:sessions, ym:u:crashes, ym:u:revenue do not exist — use ym:s:, ym:cr:, and event_json from export_events instead. Retention / per-user push opens / per-event aggregates are not exposed via get_report at all (use export_events / export_crashes, or the AppMetrica UI). Mixing ym:u:/ym:s:/ym:cr: in one metrics= call has been observed to work; mixing more distant prefixes (e.g. ym:ge:+ym:pc:) is unsupported per docs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | AppMetrica application ID | |
| metrics | Yes | Metric keys to retrieve, e.g. ['ym:u:users', 'ym:s:sessions', 'ym:cr:crashes'] | |
| dimensions | No | Dimension keys for breakdown, e.g. ['ym:u:date', 'ym:u:appVersion'] | |
| date_from | Yes | Start date in YYYY-MM-DD format | |
| date_to | Yes | End date in YYYY-MM-DD format | |
| limit | No | Maximum number of rows to return |