SPX Graphics / API v1

SPX Host-ID: 8247ca53

http/get commands available for external systems to trigger SPX events.
SPX will need to be open in a browser (in the same network as the server) for most of these to work.

API connections can be restricted with an apikey parameter set in the config file and in the URL ?apikey=1234567890

Remember, SPX is primarily targeted to live, manually operated workflows and API allows only limited modifications of template data or other advanced procedures.


Direct commands

Commands which does not require rundown to be loaded

GET v1.0.12 Uses an invoke handler to call a function in a template. See required parameters in the example call above. JSON objects can be passed as params by urlEncoding stringified JSON. Search SPX Knowledge Base for more info with keyword 'invoke'.
 
POST v1.0.12 Populate template and execute a play/continue/stop -command to it. Post request body example here as stringified JSON: {"casparServer": "OVERLAY", "casparChannel": "1", "casparLayer": "20", "webplayoutLayer": "20", "relativeTemplatePath": "/vendor/pack/template.html", "DataFields": [{field: "f0", value: "Lorem"},{field: "f1", value: "Ipsum"}]; "command": "play"} The casparServer refers to a named CasparCG connection in SPX configuration.
 
GET v1.1.0 Play / stop an item from a known rundown. (Remember you can rename rundown items from SPX GUI)
 

Helpers

Utility API calls

GET v1.0.14 A proxy endpoint for passing feed data from CORS protected datasources. Implemented for SPX SocialPlayout Extension.
 
GET v1.1.0 Force clear to all output layers without out-animations. (Note, this does NOT save on-air state of rundown items to false, so when UI is reloaded the items will show the state before panic was triggered.) This is to be used for emergency situations only and not as a normal STOP command substitute.
 
GET v1.1.1 Returns projects as an array of strings.
 
GET v1.1.1 Returns rundown names of a given project as an array of strings.
 
GET v1.1.1 Returns current rundown as json.
 
GET v1.1.1 Returns current memory state of web-playout layers of the server (not UI). Please note, if API commands are used to load templates, this may not return them as expected!
 
GET v1.1.2 Returns SPX version info
 
GET v1.1.3 Returns templates and their settings from a given project.
 
GET v1.1.4 Execute a shell script/batch file in ASSETS/scripts folder using a shell associated with a given file extension.
 

Rundown commands and navigation

Commands to load playlists, move focus on the opened rundown etc.

GET 1.0 Open rundown from project / file.
 
GET 1.0 Move focus to the first item on the rundown.
 
GET 1.0 Move focus down to next item, will not circle back to top when end is reached.
 
GET 1.0 Move focus up to previous item, will not circle back to bottom when top is reached.
 
GET 1.0 Move focus to the last item on the rundown.
 
GET 1.0 Move focus by ID on the rundown.
 
GET 1.0 Animate all layers (used by the current rundown) out, but does not clear layers.
 

Playback controls

Commands for rundown items. API response is rundown reference, id of rundown item and it's current playout status and server info.

GET 1.0 Start focused item.
 
GET 1.0 Start item by ID on the active rundown.
 
GET 1.0 Issue continue command to selected item. Notice this needs support from the template itself and does not work as play or stop.
 
GET 1.0 Continue to item by ID on the active rundown. Notice this needs support from the template itself and does not work as play or stop.
 
GET 1.0 Stop focused item.
 
GET 1.0 Stop item by ID on the active rundown.
 


If you have needs for additional integrations or graphics, please contact us.