Ant Media · JSON Structure

Ant Media Broadcast Structure

An Ant Media Server broadcast/stream representing a live or recorded video stream with its configuration and current status.

Type: object Properties: 21 Required: 4
BroadcastingLive StreamingMediaStreamingVideoWebRTC

Broadcast is a JSON Structure definition published by Ant Media, describing 21 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

streamId name status type publishType streamUrl hlsViewerCount webRTCViewerCount rtmpViewerCount mp4Enabled webMEnabled duration startTime absoluteStartTimeMs plannedStartDate description token is360 latitude longitude altitude

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

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ant-media/refs/heads/main/json-structure/ant-media-broadcast-structure.json",
  "description": "An Ant Media Server broadcast/stream representing a live or recorded video stream with its configuration and current status.",
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "description": "Unique identifier for the stream.",
      "example": "stream500123"
    },
    "name": {
      "type": "string",
      "description": "Human-readable name for the broadcast.",
      "example": "Product Launch Livestream"
    },
    "status": {
      "type": "string",
      "enum": [
        "created",
        "broadcasting",
        "finished"
      ],
      "description": "Current broadcast status.",
      "example": "broadcasting"
    },
    "type": {
      "type": "string",
      "enum": [
        "liveStream",
        "ipCamera",
        "streamSource",
        "VOD"
      ],
      "description": "Type of broadcast.",
      "example": "liveStream"
    },
    "publishType": {
      "type": "string",
      "enum": [
        "WebRTC",
        "RTMP",
        "RTSP",
        "SRT"
      ],
      "description": "Protocol used to publish the stream.",
      "example": "WebRTC"
    },
    "streamUrl": {
      "type": "uri",
      "description": "URL for RTSP, SRT, or IP camera source streams.",
      "example": "rtsp://camera.example.com/stream"
    },
    "hlsViewerCount": {
      "type": "int32",
      "description": "Current number of HLS viewers.",
      "example": 1250
    },
    "webRTCViewerCount": {
      "type": "int32",
      "description": "Current number of WebRTC viewers.",
      "example": 45
    },
    "rtmpViewerCount": {
      "type": "int32",
      "description": "Current number of RTMP viewers.",
      "example": 0
    },
    "mp4Enabled": {
      "type": "int32",
      "description": "Whether MP4 recording is enabled (1 = enabled, 0 = disabled).",
      "example": 1
    },
    "webMEnabled": {
      "type": "int32",
      "description": "Whether WebM recording is enabled.",
      "example": 0
    },
    "duration": {
      "type": "int32",
      "description": "Duration of the stream in milliseconds.",
      "example": 300000
    },
    "startTime": {
      "type": "int32",
      "description": "Unix epoch milliseconds when broadcasting started.",
      "example": 1745000000000
    },
    "absoluteStartTimeMs": {
      "type": "int32",
      "description": "Absolute start time in Unix epoch milliseconds.",
      "example": 1745000000000
    },
    "plannedStartDate": {
      "type": "int32",
      "description": "Planned start time in Unix epoch milliseconds for scheduled broadcasts.",
      "example": 1745000000000
    },
    "description": {
      "type": "string",
      "description": "Description of the broadcast.",
      "example": "Live product launch event with Q&A session."
    },
    "token": {
      "type": "string",
      "description": "One-time publish token for secured stream publishing.",
      "example": "abc123def456"
    },
    "is360": {
      "type": "boolean",
      "description": "Whether this is a 360-degree stream.",
      "example": false
    },
    "latitude": {
      "type": "string",
      "description": "GPS latitude for geo-tagged streams.",
      "example": "37.7749"
    },
    "longitude": {
      "type": "string",
      "description": "GPS longitude for geo-tagged streams.",
      "example": "-122.4194"
    },
    "altitude": {
      "type": "string",
      "description": "GPS altitude for geo-tagged streams.",
      "example": "10"
    }
  },
  "required": [
    "streamId",
    "name",
    "status",
    "type"
  ],
  "name": "Broadcast"
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/ant-media-broadcast-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.