export_events
Export raw event logs from AppMetrica. Filter by date range and event name to analyze in-app purchases and subscriptions.
Instructions
Export raw event logs from AppMetrica Logs API. Revenue and in-app purchase data is stored in the event_json field as structured JSON. Default fields: event_name, event_datetime, event_json, appmetrica_device_id, app_version_name, os_version, device_model, country_iso_code, city. To get subscription/purchase data: filter by event_name (e.g. "subscription_purchase") and parse event_json field.
Logs API is asynchronous — the first request usually returns "data not ready" and the result must be re-polled (this wrapper waits up to 60s, so a busy or wide query may need a manual retry after a few minutes). Start with 1-day windows; multi-day exports take noticeably longer to materialise. Run export_events sequentially — 4+ parallel calls hit HTTP 429.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | AppMetrica application ID | |
| date_from | Yes | Start date YYYY-MM-DD | |
| date_to | Yes | End date YYYY-MM-DD | |
| event_name | No | Filter by specific event name (e.g. subscription_purchase) | |
| fields | No | Comma-separated fields to return. Defaults: event_name,event_datetime,event_json,appmetrica_device_id,app_version_name,os_version,device_model,country_iso_code,city | |
| limit | No | Maximum number of events to return (default 1000) |