Get the analytics overview
app_get_analyticsCalled by Reeflip's app in the chat, never by you. Visits and enquiries over a range of days, for every flipbook and catalog of the business, one kind of them, or one flipbook or catalog: the totals, the same totals for the period of the same length just before it, each day's, each flipbook's and catalog's, each tracked link's, and the top products and countries. The dashboard's Analytics page shows this answer as it is.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "app_get_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The last UTC day counted, included. Leave it out, or give a later day, for today. | |
| from | No | The first UTC day counted. Leave it out for the 30 days that end with `to`. Visits and taps are kept 90 days, so an earlier day counts from the oldest one kept; the answer's `from` says which. | |
| kind | No | A flipbook or a catalog. | |
| catalog_id | No | Count only this catalog. Not with `flipbook_id`, or with `kind` flipbook. | |
| flipbook_id | No | Count only this flipbook. Not with `catalog_id`, or with `kind` catalog. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The last UTC day counted. | |
| from | Yes | The first UTC day counted. | |
| daily | Yes | Every day from `from` to `to`, oldest first, days with nothing included. | |
| items | Yes | Each flipbook and catalog counted that had any visit or enquiry, the most visits first. | |
| links | Yes | Flipbooks' visits and enquiries by the tracked link they came through, with one line of empty code for those that came through none, each line that had any, the most visits first. Catalogs have no tracked links, so this is empty when only catalogs are counted. | |
| shown | Yes | How much the business's plan shows. `opens` (Free): only `current.visits` and `previous.visits`; the enquiries are 0 and the lists empty. `basic` (Starter): the visits, enquiries, `daily` and `items`; `links`, `products` and `countries` are empty. `advanced` (Pro and Business): everything. | |
| current | Yes | Visits and enquiries in a period. | |
| previous | Yes | The same numbers for the period of the same length just before `from`; null when its days are not all kept, which is always so for 90 days. | |
| products | Yes | The ten products in the most enquiries. | |
| countries | Yes | The ten countries with the most visits. | |
| previous_to | Yes | The last day of the period compared with, the day before from; null with previous_from. | |
| previous_from | Yes | The first day of the period compared with; null when that period's days are not all kept. |