7digital · JSON Structure

Streaming Platform Playback Event Batch Structure

PlaybackEventBatch schema from 7digital API

Type: object Properties: 1 Required: 1
MusicStreamingLicensingCatalogueB2BRoyalty ReportingPublic APIs

PlaybackEventBatch is a JSON Structure definition published by 7digital, describing 1 property, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

events

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "type": "object",
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/7digital/refs/heads/main/json-structure/streaming-platform-playback-event-batch-structure.json",
  "name": "PlaybackEventBatch",
  "description": "PlaybackEventBatch schema from 7digital API",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "trackId": {
            "type": "string",
            "example": "123456"
          },
          "eventType": {
            "type": "string",
            "enum": [
              "start",
              "complete",
              "skip",
              "pause",
              "resume"
            ],
            "example": "complete"
          },
          "timestamp": {
            "type": "datetime",
            "example": "2026-05-28T14:30:45Z"
          },
          "durationPlayed": {
            "type": "int32",
            "description": "Seconds of the track that were played.",
            "example": 259
          }
        },
        "required": [
          "trackId",
          "eventType",
          "timestamp"
        ]
      }
    }
  },
  "required": [
    "events"
  ]
}