---
title: "network.creator-analytics-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/network.creator-analytics-result"
updated: null
---

# network.creator-analytics-result@1 · OpenVibe.Services

HTML: [network.creator-analytics-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.creator-analytics-result)

# NetworkCreatorAnalyticsResult `network.creator-analytics-result@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-021](/docs/adr/ADR-021)
- Schema: [`https://openvibe.network/contracts/network/creator-analytics-result.v1.json`](/docs/contracts/network.creator-analytics-result.json)

network.creator-analytics-result@1 (roadmap WS-E task 6): GET /api/v1/creators/:creator/analytics?days=1-365 on OpenVibe.Network. A creator's streaming analytics, built from live.stream.ended events: per UTC day and per stream, counts only (never who watched or chatted, no IP address or viewer id). Everyone sees streams, minutes and peak viewers; the creator (signed in) and services holding network.analytics.creator.read also get average viewers, chatters, messages and watch minutes (\`full: true\`).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `creator` | string | yes |  | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `days` | integer | yes |  | - `minimum 1`<br>- `maximum 365` |
| `full` | boolean | yes |  |  |
| `totals` | `https://openvibe.network/contracts/network/creator-analytics-result.v1.json#/$defs/counts` | yes |  |  |
| `daily` | array of object | yes |  | - `maxItems 365` |
| `daily[].day` | string | yes |  | - `pattern ^\d{4}-\d{2}-\d{2}$` |
| `streams` | array of object | yes |  | - `maxItems 100`<br>- `items: no other fields` |
| `streams[].stream_id` | integer | yes |  | - `minimum 1` |
| `streams[].title` | string \| null |  |  | - `maxLength 300` |
| `streams[].category` | string \| null |  |  | - `maxLength 100` |
| `streams[].started_at` | string | yes |  | - `format date-time` |
| `streams[].ended_at` | string | yes |  | - `format date-time` |
| `streams[].duration_seconds` | integer | yes |  | - `minimum 0` |
| `streams[].peak_viewers` | integer |  |  | - `minimum 0` |
| `streams[].avg_viewers` | number |  |  | - `minimum 0` |
| `streams[].unique_chatters` | integer |  |  | - `minimum 0` |
| `streams[].messages` | integer |  |  | - `minimum 0` |
| `streams[].watch_minutes` | integer |  |  | - `minimum 0` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: public

~~~~
{
  "creator": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "days": 30,
  "full": false,
  "totals": {
    "streams": 2,
    "stream_seconds": 5400,
    "peak_viewers": 12
  },
  "daily": [
    {
      "day": "2026-09-26",
      "streams": 2,
      "stream_seconds": 5400,
      "peak_viewers": 12
    }
  ],
  "streams": [
    {
      "stream_id": 2483,
      "title": "Night walk",
      "category": null,
      "started_at": "2026-09-26T14:54:43Z",
      "ended_at": "2026-09-26T15:19:08Z",
      "duration_seconds": 1465,
      "peak_viewers": 12
    }
  ]
}
~~~~

Rejected: viewer-ips

~~~~
{
  "creator": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "days": 30,
  "full": true,
  "totals": {},
  "daily": [],
  "streams": [
    {
      "stream_id": 1,
      "started_at": "2026-09-26T14:54:43Z",
      "ended_at": "2026-09-26T15:19:08Z",
      "duration_seconds": 1,
      "viewer_ips": [
        "1.2.3.4"
      ]
    }
  ]
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('network.creator-analytics-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
