# Get shared widget data

> Read the data behind one widget on a dashboard shared by public link, optionally for a different date range.

Returns the data for one widget on a shared dashboard: a chart's series, a table's rows, a funnel's steps and so on. Get the widget ids and layout first from [Get a shared dashboard](https://docs.bloxlytics.app/api/public/shared-dashboard). The shared page calls this once per widget, and again whenever a widget refreshes or the viewer changes the date range.

The widget is computed with the dashboard's saved filters, as the dashboard's members see it, with two differences:

- The viewer may choose a different **date range** with the query parameters below. The dashboard's segment and player filters always apply and can't be changed or removed.
- Nothing that identifies individual players is returned. A **Top spenders** table, for example, comes back as a message instead of rows.

The endpoint is on `https://dash.bloxlytics.app`, needs no sign-in, and is subject to the same link rules as the dashboard: a revoked, expired or no-longer-shared link returns `404`.

## Path parameters

- `token` (string, path, required): The token from the share link.

- `widgetId` (string, path, required): The widget's `id` from the dashboard response. Only the first 64 characters are used.

## Query parameters

- `range` (string, query): The date range to show instead of the dashboard's saved one: `today`, `yesterday`, `7d`, `30d`, `90d`, `365d` or `custom`. Ranges are whole UTC days, and all but `yesterday` end with today (`7d` is today and the six days before it). Leave it out to use the dashboard's saved range, or each widget's own range if the dashboard has none.

- `from` (string, query): With `range=custom` only: the first day, as a date such as `2026-11-01`. Up to 40 characters. Ignored with any other range. Defaults to six days before today.

- `to` (string, query): With `range=custom` only: the last day, included in the range. Up to 40 characters. Ignored with any other range. Defaults to today.

## Response

`200 OK` with `Cache-Control: no-store`. The body always has `applied` and `kind`; the other fields depend on `kind`.

- `applied` (object, required): What the widget was actually computed with.  **applied**
  
  - `range` (string | null, required): The date range used, or `null` for widgets that don't take a range (`live` and `text`).
  
  - `from` (string | null, required): Start of the range, as an ISO 8601 timestamp (inclusive), or `null`.
  
  - `to` (string | null, required): End of the range, as an ISO 8601 timestamp (exclusive: midnight UTC after the last day), or `null`.
  
  - `ignored` (string[], required): Dashboard filters this widget type can't take and so left out: any of `segment`, `filters` and `range`. Usually `[]`.

- `kind` (string, required): How to read the rest of the response: `query`, `parts`, `table`, `funnel`, `retention`, `economy`, `live`, `text` or `message`.

### Fields by kind

#### query

Charts, KPIs and custom queries (widget types `kpi`, `line`, `bar`, `event`, `query`, and `pie` widgets that split an event).

- `display` (string, required): How to draw it: `line`, `area`, `bar`, `stacked`, `kpi`, `table` or `pie`.

- `result` (object, required): **result**
  
  - `granularity` (string, required): `hour` for ranges of two days or less, otherwise `day`.
  
  - `from` (string, required): Start of the range, ISO 8601.
  
  - `to` (string, required): End of the range, ISO 8601.
  
  - `series` (Series[], required): Up to five series, or more when one is broken down by a property.  **Series**
    
    - `key` (string, required): Unique within the result: the series id, or `<series id>:<group>` for a breakdown.
    
    - `seriesId` (string, required): The series this came from.
    
    - `label` (string, required): The name to show.
    
    - `group` (string | null, required): The breakdown value, or `null` without a breakdown.
    
    - `format` (string, required): How to format values: `int`, `float`, `pct`, `duration`, `robux` or `robux2`.
    
    - `points` (Point[], required): One point per hour or day: `{ "t": "<ISO 8601>", "v": <number or null> }`.
    
    - `previous` (Point[] | null, required): The same series for the previous period of equal length, when the widget compares periods. Otherwise `null`.
    
    - `total` (number | null, required): The series reduced to one number over the range.
    
    - `previousTotal` (number | null, required): The same for the previous period, or `null`.
    
    - `totalLabel` (string, required): How `total` was worked out: for example `Total in range`, `Peak in range`, `Average per period` or `Over the range`.
    
    - `source` (string, required): `sdk` for values counted from your game's events, `computed` for metrics Bloxlytics derives from them.
  
  - `notes` (string[], required): Plain statements about anything the query couldn't apply, to show under the chart.

#### parts

Revenue split by product type (a `pie` widget).

- `items` (object[], required): `{ "label": "Developer products", "value": 12500 }` for each type with revenue: `Developer products`, `Game passes`, `Premium`.

- `format` (string, required): `robux`.

#### table

Tables of events or products.

- `columns` (object[], required): `{ "label": "Count", "format": "int" }` for each column. `format` is absent on text columns.

- `rows` ((string | number | null)[][], required): One array per row, in column order. The events table lists the top 20 events with their count and number of players; the products table lists each product's purchases, revenue and conversion.

Links to pages inside the dashboard, which members see, are left out of shared responses.

#### funnel, retention and economy

- `result` (object, required): The same data the dashboard's funnel, retention and economy views show. These objects are larger and may gain fields:
  
  - **funnel**: `name`, `steps` (each with `index`, `event`, `label`, `players`, `conversion`, `stepConversion`, `dropOff`, `dropOffPlayers` and more), `entered`, `completed`, `overallConversion` and `biggestDropOff`.
  - **retention**: `cohorts` (each with `cohort`, `size` and one `d<n>` value per day measured), `average` and `totalPlayers`.
  - **economy**: `currency`, `totals` (earned, spent, net, earners, spenders, balances and more), time series, `distribution` and `health`.

- `view` (string): Economy only: `flow`, `sources`, `sinks` or `balance`.

#### live

- `ccu` (integer, required): Players in the experience right now.

- `servers` (integer, required): Live servers reporting to Bloxlytics.

- `ccuSeries` (Point[], required): Concurrent players over the last 60 minutes: `{ "t": "<ISO 8601>", "v": <number> }`. Uses Roblox's own player counts when Bloxlytics has them, otherwise counts from your servers.

#### text

- `text` (string, required): The widget's text as written. Blank lines separate paragraphs; it isn't Markdown.

#### message

- `message` (string, required): Why there's no data to show, for example `Top spenders lists individual players, so it isn't shown on shared links.`, `No currencies tracked yet.` or `Choose a metric in the widget settings.`

## Limits

300 requests a minute per IP address, with `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` and, over the limit, `429` with `Retry-After`. A shared page with many auto-refreshing widgets shares this budget between them.

**Request example**

```bash cURL
curl "https://dash.bloxlytics.app/api/public/dashboards/<token>/widgets/w1?range=7d"
```

```bash Custom range
curl "https://dash.bloxlytics.app/api/public/dashboards/<token>/widgets/w1?range=custom&from=2026-11-01&to=2026-11-14"
```

**Response example**

```json 200
{
  "applied": { "range": "7d", "from": "2026-11-18T00:00:00.000Z", "to": "2026-11-25T00:00:00.000Z", "ignored": [] },
  "kind": "query",
  "display": "kpi",
  "result": {
    "granularity": "day",
    "from": "2026-11-18T00:00:00.000Z",
    "to": "2026-11-25T00:00:00.000Z",
    "series": [
      {
        "key": "s1",
        "seriesId": "s1",
        "label": "Daily active players",
        "group": null,
        "format": "int",
        "points": [{ "t": "2026-11-18T00:00:00.000Z", "v": 1840 }, { "t": "2026-11-19T00:00:00.000Z", "v": 1912 }],
        "previous": null,
        "total": 1912,
        "previousTotal": null,
        "totalLabel": "Average per period",
        "source": "sdk"
      }
    ],
    "notes": []
  }
}
```

```json 200 message
{
  "applied": { "range": "30d", "from": "2026-10-26T00:00:00.000Z", "to": "2026-11-25T00:00:00.000Z", "ignored": [] },
  "kind": "message",
  "message": "Top spenders lists individual players, so it isn't shown on shared links."
}
```

```json 400
{
  "error": {
    "code": "bad_request",
    "message": "Some fields need attention.",
    "details": { "fields": { "range": "Invalid option: expected one of \"today\"|\"yesterday\"|\"7d\"|\"30d\"|\"90d\"|\"365d\"|\"custom\"" } }
  }
}
```

```json 404
{ "error": { "code": "not_found", "message": "Widget not found." } }
```
