Compare before and after each event
compare_eventsCompares metrics before and after each app event to show what followed, using visibility score or keyword rank, with adjustable window.
Instructions
Measure what followed each event of an application: the user's notes and the app updates detected, newest first, over the last year. For each event, the average over the window days before against the same number of days after (the event day itself in neither): the app's visibility score (0-100, higher is better) by default, or with keyword_id, that keyword's rank for the app (lower is better, so a negative change means the app climbed; a day outside the top 100 counts as #101, and unranked_days says how many there were). Returns metric, window_days, history_start, total (how many events there are) and comparisons[] (the newest limit) of { day, notes[], app_updates[], before, after, change, locked, alongside }, where before/after hold { from, to, average, measured_days, pending_days (not measured yet), hidden_days (before the plan's history) }. alongside names the other notes, app updates and store algorithm updates inside the same days: a comparison describes what followed an event, not what caused it, so read it with them. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many comparisons, newest first: 1 to 100, default 20 | |
| app_id | Yes | The application internal ID (numeric, from list_applications results) | |
| window | No | Days compared on each side of an event: 7 (default), 14 or 30 | |
| keyword_id | No | A keyword internal ID (from list_keywords) to compare its rank for this app instead of the visibility score |