> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eversince.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics

> Results from the connected social accounts: totals, posts, best times, and any metric a platform reports.

`read_social_results` reads what the connected social accounts' posts did. It is free. `from` and `to` bound a read as `YYYY-MM-DD`, 30 days back to today by default; a `metrics` read without them takes its entity's own default, which `catalog` gives as `default_days`. Post numbers are refreshed from the platforms about every hour, and follower counts once a day. X accounts have no results here.

## Views

| `view` | Returns |
| - | - |
| `overview` | Totals for the window (views, impressions, reach, likes, comments, shares, saves, clicks, engagement rate) beside the same length of time before it, followers now and gained, posts and totals per account, and a line per day (per week in a window past 92 days). |
| `posts` | The posts in the window with their own numbers, newest first or top by engagement (`sort`), a `page` at a time. Posts made outside Eversince are included. |
| `best_time` | The days and hours, in UTC, when past posts did best. |
| `metrics` | Anything else, described by `query`. |
| `catalog` | Every metric, grouping and extra each platform reports. |
| `measures` | The workspace's own numbers, each with its value over the window and whether its alert is set off. |

`platform` and `account_id` narrow a read to one platform or one account.

## Metrics queries

`query` names an `entity` and what to read about it:

* `posts`: a list, posts by id, one post day by day, or posts grouped by weekday and hour, by a post's age, or by format.
* `accounts`: followers and totals by day, week or month.
* `insights`: one account's audience by age, gender and country, followers online by hour, or a video's retention.

`metrics`, `group_by` (up to 2), `sort` and `include` take names from `catalog`. `granularity` is total, day, and for accounts week or month. `origin` limits posts to those made here or outside. `attribution` counts an account's interactions on the day of the post or on the day they arrived. A page holds 50 rows by default and 100 at most, and `cursor` continues it.

## Numbers and alerts of the workspace's own

A number of the workspace's own is a name and a formula over what the platforms report: saves per thousand views, comments per post, followers gained per post. `manage_social_accounts` `save_measure` keeps one, with `measure` holding its `name`, its `formula` and how it is written (`shape`: count, percent or times). A formula is arithmetic over views, impressions, reach, likes, comments, shares, saves, clicks, interactions, followers, followers\_gained and posts. `delete_measure` drops one. A workspace keeps up to 12.

A number can carry an alert: `alert_when` above or below, with `alert_value`. Past that value it is listed under Needs attention on the Analytics page, and `measures` returns it with `alerting` true. Each alert is also checked once a day over the last seven days, and a number that has just passed its value sends the workspace's people a phone notification. The same numbers are shown to the user in the app, so a figure an agent settles on is the figure the user sees.

## From a result to its item

A post made here comes back with its `post_id`, `card_id` and `library_items`, so a result leads to the calendar card and the library items it was made from. Posts made outside are read by `platform_post_ids`.

## Timing

A platform that does not report a number reads 0.

A result is kept for ten minutes, so the same read repeated within them returns the same answer. Reads are held to a rate per workspace: one made too fast is refused and can be made again in a minute.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.