---
title: "Analytics · API docs — Reeflip"
description: "Visits and enquiries over a range of days. Reading only."
url: "https://reeflip.com/docs/analytics"
---

# Analytics · API docs — Reeflip

Visits and enquiries over a range of days. Reading only.

Needs a key with Analytics access: Read.

Every request follows [How requests work](https://reeflip.com/docs/requests.md).

## Get the analytics overview

`GET /analytics/overview`

Visits and enquiries over a range of days: for all your flipbooks and catalogs, for one kind, or for one flipbook or catalog.

You get the totals, the same totals for the period of the same length just before, each day's numbers, each flipbook's and catalog's, each tracked link's, and the top products and countries. The Analytics page in the dashboard shows the same numbers.

How much you get depends on the plan, as `shown` says: on Free only how often buyers opened your flipbooks and catalogs, in all (asking for one kind, flipbook or catalog gets `plan_limit`); on Starter the visits, enquiries, days and each flipbook and catalog; on Pro and Business the links, products and countries too. What a plan does not show comes empty, never made up.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | date | 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. |
| `to` | date | No | The last UTC day counted, included. Leave it out, or give a later day, for today. |
| `kind` | flipbook · catalog | No | Count only flipbooks, or only catalogs. Leave it out for both. |
| `flipbook_id` | id | No | Count only this flipbook. Not with `catalog_id`, or with `kind` catalog. |
| `catalog_id` | id | No | Count only this catalog. Not with `flipbook_id`, or with `kind` flipbook. |

### Example

```sh
curl https://app.reeflip.com/api/v1/analytics/overview \
  -H "Authorization: Bearer $REEFLIP_KEY"
```

### Response: 200 OK

```json
{
  "shown": "opens",
  "from": "2026-12-02",
  "to": "2026-12-02",
  "previous_from": "2026-12-02",
  "previous_to": "2026-12-02",
  "current": {
    "visits": 214,
    "enquiries": 9
  },
  "previous": {
    "visits": 214,
    "enquiries": 9
  },
  "daily": [
    {
      "day": "2026-12-02",
      "visits": 214,
      "enquiries": 9
    }
  ],
  "items": [
    {
      "kind": "flipbook",
      "id": "d8d19606-0c0d-4dc7-a76d-58d6d0715dc2",
      "name": "Oak dining chair",
      "visits": 214,
      "enquiries": 9
    }
  ],
  "links": [
    {
      "code": "",
      "name": "Oak dining chair",
      "visits": 214,
      "enquiries": 9
    }
  ],
  "products": [
    {
      "product_id": "853945dc-b347-4653-a023-7ecdf1205c64",
      "name": "Oak dining chair",
      "photo": {
        "id": "d8d19606-0c0d-4dc7-a76d-58d6d0715dc2",
        "filename": "oak-chair.jpg",
        "content_type": "image/jpeg",
        "size_bytes": 482133,
        "status": "ready",
        "created_at": "2026-12-02T09:30:00Z",
        "width": 1600,
        "height": 1200,
        "placeholder": "",
        "jpeg_width": 1600,
        "webp_widths": [
          480,
          960,
          1600
        ],
        "avif_widths": [
          480,
          960,
          1600
        ],
        "url": "https://reeflip.com/northwood/spring"
      },
      "in_enquiries": 1
    }
  ],
  "countries": [
    {
      "country": "US",
      "visits": 214
    }
  ]
}
```

Other errors: `flipbook_not_found`, `catalog_not_found`, `plan_limit`

## Get a product's analytics

`GET /analytics/products/{product_id}`

How often a product was in sent enquiries over a range of days, counted as in the overview: in all, and in each flipbook and catalog where it was. A deleted product is not found, though the overview still lists it by id. Part of Pro and Business; a smaller plan gets `plan_limit`.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `product_id` | id | Yes | The product's id. |
| `from` | date | 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. |
| `to` | date | No | The last UTC day counted, included. Leave it out, or give a later day, for today. |

### Example

```sh
curl https://app.reeflip.com/api/v1/analytics/products/9bea82de-f865-44d0-a499-eb252805f127 \
  -H "Authorization: Bearer $REEFLIP_KEY"
```

### Response: 200 OK

```json
{
  "product_id": "853945dc-b347-4653-a023-7ecdf1205c64",
  "title": "Oak dining chair",
  "from": "2026-12-02",
  "to": "2026-12-02",
  "in_enquiries": 1,
  "items": [
    {
      "kind": "flipbook",
      "id": "d8d19606-0c0d-4dc7-a76d-58d6d0715dc2",
      "name": "Oak dining chair",
      "in_enquiries": 1
    }
  ]
}
```

Other errors: `product_not_found`, `plan_limit`
