NetworkCreatorAnalyticsResult network.creator-analytics-result@1
Generated at from
openvibe-contracts v0.76.0 and
openvibe-sdk v0.20.1.
- Version
- 1.0.0
- Owner
- network
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Decision
- ADR-021
- Schema
https://openvibe.network/contracts/network/creator-analytics-result.v1.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 |
| |
days | integer | yes |
| |
full | boolean | yes | ||
totals | https://openvibe.network/contracts/network/creator-analytics-result.v1.json#/$defs/counts | yes | ||
daily | array of object | yes |
| |
daily[].day | string | yes |
| |
streams | array of object | yes |
| |
streams[].stream_id | integer | yes |
| |
streams[].title | string | null |
| ||
streams[].category | string | null |
| ||
streams[].started_at | string | yes |
| |
streams[].ended_at | string | yes |
| |
streams[].duration_seconds | integer | yes |
| |
streams[].peak_viewers | integer |
| ||
streams[].avg_viewers | number |
| ||
streams[].unique_chatters | integer |
| ||
streams[].messages | integer |
| ||
streams[].watch_minutes | integer |
|
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 }] }