---
title: "Get Portfolio Analytics"
method: GET
path: "/v2/analytics/portfolio"
tags: ["v2 - Analytics"]
---

# Get Portfolio Analytics

`GET /v2/analytics/portfolio`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/analytics/portfolio`
- Auth: HTTP bearer

Get analytics across all content owned by the authenticated user.

## Query parameters

- `workspace_id` string, nullable
- `period` string
- `date_from` string, nullable
- `date_to` string, nullable
- `platforms` string, nullable
- `sort_by` string
- `limit` integer
- `offset` integer
- `extra_periods` string, nullable: Comma-separated periods (7d, 30d, 90d) inside the requested range whose totals are also returned, under period_aggregates, from the same snapshot reads.

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Response `200`

Successful Response

- PortfolioAnalyticsResponse
  - `profile_id` string, required
  - `date_from` string, required
  - `date_to` string, required
  - `total_content_count` integer
  - `offset` integer
  - `limit` integer
  - `has_more` boolean
  - `aggregate` AggregateStatsResponse
    - `total_views` integer
    - `total_likes` integer
    - `total_comments` integer
    - `total_shares` integer
    - `total_reach` integer
    - `total_impressions` integer
    - `best_platform` string, nullable
    - `best_engagement_rate` number
    - `platform_count` integer
    - `platforms_ok` integer
    - `platforms_pending` integer
    - `platforms_error` integer
  - `top_content` object[]
  - `platform_breakdown` object
  - `account_breakdown` object[]
  - `platform_engagement_breakdown` object
  - `platform_view_status` object
  - `platform_view_detail` object
  - `period_aggregates` object
  - `connections_needing_reconnect` object[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
