Get post performance
sprkly_get_analyticsHow the user's published posts actually performed: total views and engagement, week-on-week / month-on-month / year-on-year change, their best posting hour, weekday and content category, and the top posts behind those numbers. Every recommendation carries a samples count — say how thin the evidence is rather than presenting a one-post pattern as a finding. Every period-on-period percentage carries the post counts and raw totals it came from: quote those, because a big percentage off a tiny base is not a big change. topPosts is grouped by platform and ranked only inside each group; relativeToPlatformBest compares a post with others on its OWN platform and never across platforms, so use the absolute value and its metric label to weigh one platform against another. Instagram contributes reach, saves, shares and views only for accounts connected or reconnected with the insights permission, and likes and comments only for the rest. Threads and Facebook produce no metrics at all. Read coverage before comparing platforms, and never rank platforms on a metric one of them lacks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back to analyse. Default 30. | |
| profile_ids | No | Limit to these accounts. Omit for every account this connection can see. |