PeerTube · Schema

UserViewingVideo

VideoDecentralizedFederationOpen-SourceActivityPubSelf-HostedStreaming

Properties

Name Type Description
currentTime integer timestamp within the video, in seconds
viewEvent string Event since last viewing call: * `seek` - If the user seeked the video
sessionId string Optional param to represent the current viewer session. Used by the backend to properly count one view per session per video. PeerTube admin can configure the server to not trust this `sessionId` para
client string Client software used to watch the video. For example "Firefox", "PeerTube Approval Android", etc.
device object Device used to watch the video. For example "desktop", "mobile", "smarttv", etc.
operatingSystem string Operating system used to watch the video. For example "Windows", "Ubuntu", etc.
View JSON Schema on GitHub

JSON Schema

UserViewingVideo.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peertube/main/json-schema/UserViewingVideo.json",
  "title": "UserViewingVideo",
  "required": [
    "currentTime"
  ],
  "properties": {
    "currentTime": {
      "type": "integer",
      "format": "seconds",
      "description": "timestamp within the video, in seconds",
      "example": 5
    },
    "viewEvent": {
      "type": "string",
      "enum": [
        "seek"
      ],
      "description": "Event since last viewing call:\n * `seek` - If the user seeked the video\n"
    },
    "sessionId": {
      "type": "string",
      "description": "Optional param to represent the current viewer session. Used by the backend to properly count one view per session per video. PeerTube admin can configure the server to not trust this `sessionId` parameter but use the request IP address instead to identify a viewer.\n"
    },
    "client": {
      "type": "string",
      "description": "Client software used to watch the video. For example \"Firefox\", \"PeerTube Approval Android\", etc.\n"
    },
    "device": {
      "description": "Device used to watch the video. For example \"desktop\", \"mobile\", \"smarttv\", etc.\n",
      "allOf": [
        {
          "$ref": "#/components/schemas/VideoStatsUserAgentDevice"
        }
      ]
    },
    "operatingSystem": {
      "type": "string",
      "description": "Operating system used to watch the video. For example \"Windows\", \"Ubuntu\", etc.\n"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/UserViewingVideo"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.