• Live sources query examples for the Wowza Streaming Engine REST API

    Wowza Streaming Engine™ live streaming software has a REST Application Programming Interface (API) that can be used to configure, manage, and monitor the media server through HTTP requests. This article demonstrates ways to identify and manage the encoders and cameras that publish live streams to a Wowza Streaming Engine instance using some basic cURL examples to query the Wowza Streaming Engine REST service. For a complete breakdown and documentation of the API, see How to access documentation for the Wowza Streaming Engine REST API.

    Note: Wowza Streaming Engine 4.3.0 or later is required. You must also have working knowledge of cURL and REST-related services.

    Contents


    Get a list of live stream sources (publishers)
    Create a live stream source
    Remove a live stream source

    Get a list of live stream sources (publishers)


    The following example shows how to get a list of all live sources (encoders and cameras) connected to your Wowza media server:
    curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/publishers

    Create a live stream source


    The following example shows how to create a new live source:
    curl -X POST --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/publishers -d'
    {
    "description": "This is my live source encoder.",
    "name": "source1",
    "password": "myPassword"
    }'

    Remove a live stream source


    When you're done with a live source, you can delete it with the following request:
    curl -X DELETE --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/publishers/source1

    Originally Published: 06-16-2015.
    Updated: For Wowza Streaming Engine 4.3.0 on 10-06-2015.

    If you're having problems or want to discuss this article, post in our forum.