---
title: "Publishing analytics"
method: GET
path: "/api/analytics"
tags: ["Analytics"]
---

# Publishing analytics

`GET /api/analytics`

## Request

- Base URL: `https://www.fuxux.com`
- URL: `https://www.fuxux.com/api/analytics`
- Auth: none declared

## Query parameters

- `days` 7 | 14 | 30 | 90

## Response `200`

OK

- AnalyticsResponse
  - `chartDays` 7 | 14 | 30 | 90
  - `summary` object
    - `totalPublished` integer
    - `publishedThisMonth` integer
    - `publishedLastMonth` integer
    - `momChange` integer, nullable
    - `scheduled` integer
    - `successRate` number, nullable: % of variants published successfully in the selected window
  - `dailyPosts` object[]
    - `date` string: YYYY-MM-DD
    - `count` integer
  - `platformBreakdown` object[]
    - `platform` string
    - `name` string
    - `icon` string
    - `published` integer
    - `failed` integer
    - `engagement` EngagementTotals
      - `likes` integer
      - `comments` integer
      - `shares` integer
      - `views` integer
      - `impressions` integer
      - `reach` integer
    - `postsWithInsights` integer: How many of this platform's published posts in the window have synced engagement data
  - `engagement` object: Aggregated real engagement (likes/comments/shares/views/impressions/reach) synced from the platforms for posts published in the selected window. engagement_rate is not summed here since it's a per-post percentage; it's only present per-post on recentPosts[].post_variants[].insights.
    - `likes` integer
    - `comments` integer
    - `shares` integer
    - `views` integer
    - `impressions` integer
    - `reach` integer
    - `postsWithInsights` integer: How many published posts in the window have synced engagement data
  - `recentPosts` object[]

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/fuxux/apis/fuxux-api.md) · [All operations](https://skmtc.dev/fuxux/apis/fuxux-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fuxux/apis/fuxux-api/revisions/e70e5940182d?raw)
