obs-websocket · protocol v5 · rpcVersion 1

WebSocket API

obs-studio-rust ships the upstream obs-websocket plugin unmodified as its compatibility check, so clients written for obs-websocket v5 (OBS 28 and later) are expected to work against it unchanged. This reference is generated from protocol.json at the exact commit obs-studio ships.

Live console disconnected

Connect straight to your own OBS: enable it under Tools → WebSocket Server Settings. Everything stays between this tab and your machine. The password only feeds the SHA-256 challenge and is never stored. No OBS at hand? Replay a session.

Press Connect, or Replay a session to watch one scripted exchange. Click "Try ▸" on any request below to load it here.
147 requests60 events7 enumsobs-websocket@c2366e8d2protocol.json ↓protocol.md ↓
op 0 → 1Hello → Identify (auth), then Identified (op 2)
op 6 → 7Request → RequestResponse, matched by requestId
op 5Event, filtered by eventSubscriptions bitmask
op 8 → 9RequestBatch → RequestBatchResponse
GetCanvasListrequestcanvasesGets an array of canvases in OBS.
v5.7.0●●●○○#GetCanvasList

Gets an array of canvases in OBS.

Response fields

canvasesArray<Object>Array of canvases
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetCanvasList",
    "requestId": "1"
  }
}
GetPersistentDatarequestconfigGets the value of a "slot" from the selected persistent data realm.
v5.0.0●●○○○#GetPersistentData

Gets the value of a "slot" from the selected persistent data realm.

Request fields

realmStringThe data realm to select. OBS_WEBSOCKET_DATA_REALM_GLOBAL or OBS_WEBSOCKET_DATA_REALM_PROFILE
slotNameStringThe name of the slot to retrieve data from

Response fields

slotValueAnyValue associated with the slot. null if not set
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetPersistentData",
    "requestId": "1",
    "requestData": {
      "realm": "",
      "slotName": ""
    }
  }
}
SetPersistentDatarequestconfigSets the value of a "slot" from the selected persistent data realm.
v5.0.0●●○○○#SetPersistentData

Sets the value of a "slot" from the selected persistent data realm.

Request fields

realmStringThe data realm to select. OBS_WEBSOCKET_DATA_REALM_GLOBAL or OBS_WEBSOCKET_DATA_REALM_PROFILE
slotNameStringThe name of the slot to retrieve data from
slotValueAnyThe value to apply to the slot
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetPersistentData",
    "requestId": "1",
    "requestData": {
      "realm": "",
      "slotName": "",
      "slotValue": null
    }
  }
}
GetSceneCollectionListrequestconfigGets an array of all scene collections
v5.0.0●○○○○#GetSceneCollectionList

Gets an array of all scene collections

Response fields

currentSceneCollectionNameStringThe name of the current scene collection
sceneCollectionsArray<String>Array of all available scene collections
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneCollectionList",
    "requestId": "1"
  }
}
SetCurrentSceneCollectionrequestconfigSwitches to a scene collection.
v5.0.0●○○○○#SetCurrentSceneCollection

Switches to a scene collection.

Note: This will block until the collection has finished changing.

Request fields

sceneCollectionNameStringName of the scene collection to switch to
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetCurrentSceneCollection",
    "requestId": "1",
    "requestData": {
      "sceneCollectionName": ""
    }
  }
}
CreateSceneCollectionrequestconfigCreates a new scene collection, switching to it in the process.
v5.0.0●○○○○#CreateSceneCollection

Creates a new scene collection, switching to it in the process.

Note: This will block until the collection has finished changing.

Request fields

sceneCollectionNameStringName for the new scene collection
Example message
{
  "op": 6,
  "d": {
    "requestType": "CreateSceneCollection",
    "requestId": "1",
    "requestData": {
      "sceneCollectionName": ""
    }
  }
}
GetProfileListrequestconfigGets an array of all profiles
v5.0.0●○○○○#GetProfileList

Gets an array of all profiles

Response fields

currentProfileNameStringThe name of the current profile
profilesArray<String>Array of all available profiles
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetProfileList",
    "requestId": "1"
  }
}
SetCurrentProfilerequestconfigSwitches to a profile.
v5.0.0●○○○○#SetCurrentProfile

Switches to a profile.

Request fields

profileNameStringName of the profile to switch to
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetCurrentProfile",
    "requestId": "1",
    "requestData": {
      "profileName": ""
    }
  }
}
CreateProfilerequestconfigCreates a new profile, switching to it in the process
v5.0.0●○○○○#CreateProfile

Creates a new profile, switching to it in the process

Request fields

profileNameStringName for the new profile
Example message
{
  "op": 6,
  "d": {
    "requestType": "CreateProfile",
    "requestId": "1",
    "requestData": {
      "profileName": ""
    }
  }
}
RemoveProfilerequestconfigRemoves a profile.
v5.0.0●○○○○#RemoveProfile

Removes a profile. If the current profile is chosen, it will change to a different profile first.

Request fields

profileNameStringName of the profile to remove
Example message
{
  "op": 6,
  "d": {
    "requestType": "RemoveProfile",
    "requestId": "1",
    "requestData": {
      "profileName": ""
    }
  }
}
GetProfileParameterrequestconfigGets a parameter from the current profile's configuration.
v5.0.0●●●●○#GetProfileParameter

Gets a parameter from the current profile's configuration.

Request fields

parameterCategoryStringCategory of the parameter to get
parameterNameStringName of the parameter to get

Response fields

parameterValueStringValue associated with the parameter. null if not set and no default
defaultParameterValueStringDefault value associated with the parameter. null if no default
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetProfileParameter",
    "requestId": "1",
    "requestData": {
      "parameterCategory": "",
      "parameterName": ""
    }
  }
}
SetProfileParameterrequestconfigSets the value of a parameter in the current profile's configuration.
v5.0.0●●●●○#SetProfileParameter

Sets the value of a parameter in the current profile's configuration.

Request fields

parameterCategoryStringCategory of the parameter to set
parameterNameStringName of the parameter to set
parameterValueStringValue of the parameter to set. Use null to delete
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetProfileParameter",
    "requestId": "1",
    "requestData": {
      "parameterCategory": "",
      "parameterName": "",
      "parameterValue": ""
    }
  }
}
GetVideoSettingsrequestconfigGets the current video settings.
v5.0.0●●○○○#GetVideoSettings

Gets the current video settings.

Note: To get the true FPS value, divide the FPS numerator by the FPS denominator. Example: 60000/1001

Response fields

fpsNumeratorNumberNumerator of the fractional FPS value
fpsDenominatorNumberDenominator of the fractional FPS value
baseWidthNumberWidth of the base (canvas) resolution in pixels
baseHeightNumberHeight of the base (canvas) resolution in pixels
outputWidthNumberWidth of the output resolution in pixels
outputHeightNumberHeight of the output resolution in pixels
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetVideoSettings",
    "requestId": "1"
  }
}
SetVideoSettingsrequestconfigSets the current video settings.
v5.0.0●●○○○#SetVideoSettings

Sets the current video settings.

Note: Fields must be specified in pairs. For example, you cannot set only baseWidth without needing to specify baseHeight.

Request fields

fpsNumeratoroptionalNumberNumerator of the fractional FPS value
>= 1
fpsDenominatoroptionalNumberDenominator of the fractional FPS value
>= 1
baseWidthoptionalNumberWidth of the base (canvas) resolution in pixels
>= 1, <= 4096
baseHeightoptionalNumberHeight of the base (canvas) resolution in pixels
>= 1, <= 4096
outputWidthoptionalNumberWidth of the output resolution in pixels
>= 1, <= 4096
outputHeightoptionalNumberHeight of the output resolution in pixels
>= 1, <= 4096
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetVideoSettings",
    "requestId": "1",
    "requestData": {}
  }
}
GetStreamServiceSettingsrequestconfigGets the current stream service settings (stream destination).
v5.0.0●●●●○#GetStreamServiceSettings

Gets the current stream service settings (stream destination).

Response fields

streamServiceTypeStringStream service type, like rtmp_custom or rtmp_common
streamServiceSettingsObjectStream service settings
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetStreamServiceSettings",
    "requestId": "1"
  }
}
SetStreamServiceSettingsrequestconfigSets the current stream service settings (stream destination).
v5.0.0●●●●○#SetStreamServiceSettings

Sets the current stream service settings (stream destination).

Note: Simple RTMP settings can be set with type rtmp_custom and the settings fields server and key.

Request fields

streamServiceTypeStringType of stream service to apply. Example: rtmp_common or rtmp_custom
streamServiceSettingsObjectSettings to apply to the service
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetStreamServiceSettings",
    "requestId": "1",
    "requestData": {
      "streamServiceType": "",
      "streamServiceSettings": {}
    }
  }
}
GetRecordDirectoryrequestconfigGets the current directory that the record output is set to.
v5.0.0●●○○○#GetRecordDirectory

Gets the current directory that the record output is set to.

Response fields

recordDirectoryStringOutput directory
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetRecordDirectory",
    "requestId": "1"
  }
}
SetRecordDirectoryrequestconfigSets the current directory that the record output writes files to.
v5.3.0●●○○○#SetRecordDirectory

Sets the current directory that the record output writes files to.

Request fields

recordDirectoryStringOutput directory
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetRecordDirectory",
    "requestId": "1",
    "requestData": {
      "recordDirectory": ""
    }
  }
}
GetSourceFilterKindListrequestfiltersGets an array of all available source filter kinds.
v5.4.0●●○○○#GetSourceFilterKindList

Gets an array of all available source filter kinds.

Similar to GetInputKindList

Response fields

sourceFilterKindsArray<String>Array of source filter kinds
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSourceFilterKindList",
    "requestId": "1"
  }
}
GetSourceFilterListrequestfiltersGets an array of all of a source's filters.
v5.0.0●●○○○#GetSourceFilterList

Gets an array of all of a source's filters.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source
sourceUuidoptionalStringUUID of the source

Response fields

filtersArray<Object>Array of filters
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSourceFilterList",
    "requestId": "1",
    "requestData": {}
  }
}
GetSourceFilterDefaultSettingsrequestfiltersGets the default settings for a filter kind.
v5.0.0●●●○○#GetSourceFilterDefaultSettings

Gets the default settings for a filter kind.

Request fields

filterKindStringFilter kind to get the default settings for

Response fields

defaultFilterSettingsObjectObject of default settings for the filter kind
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSourceFilterDefaultSettings",
    "requestId": "1",
    "requestData": {
      "filterKind": ""
    }
  }
}
CreateSourceFilterrequestfiltersCreates a new filter, adding it to the specified source.
v5.0.0●●●○○#CreateSourceFilter

Creates a new filter, adding it to the specified source.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source to add the filter to
sourceUuidoptionalStringUUID of the source to add the filter to
filterNameStringName of the new filter to be created
filterKindStringThe kind of filter to be created
filterSettingsoptionalObjectSettings object to initialize the filter with
Example message
{
  "op": 6,
  "d": {
    "requestType": "CreateSourceFilter",
    "requestId": "1",
    "requestData": {
      "filterName": "",
      "filterKind": ""
    }
  }
}
RemoveSourceFilterrequestfiltersRemoves a filter from a source.
v5.0.0●●○○○#RemoveSourceFilter

Removes a filter from a source.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source the filter is on
sourceUuidoptionalStringUUID of the source the filter is on
filterNameStringName of the filter to remove
Example message
{
  "op": 6,
  "d": {
    "requestType": "RemoveSourceFilter",
    "requestId": "1",
    "requestData": {
      "filterName": ""
    }
  }
}
SetSourceFilterNamerequestfiltersSets the name of a source filter (rename).
v5.0.0●●○○○#SetSourceFilterName

Sets the name of a source filter (rename).

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source the filter is on
sourceUuidoptionalStringUUID of the source the filter is on
filterNameStringCurrent name of the filter
newFilterNameStringNew name for the filter
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSourceFilterName",
    "requestId": "1",
    "requestData": {
      "filterName": "",
      "newFilterName": ""
    }
  }
}
GetSourceFilterrequestfiltersGets the info for a specific source filter.
v5.0.0●●○○○#GetSourceFilter

Gets the info for a specific source filter.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source
sourceUuidoptionalStringUUID of the source
filterNameStringName of the filter

Response fields

filterEnabledBooleanWhether the filter is enabled
filterIndexNumberIndex of the filter in the list, beginning at 0
filterKindStringThe kind of filter
filterSettingsObjectSettings object associated with the filter
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSourceFilter",
    "requestId": "1",
    "requestData": {
      "filterName": ""
    }
  }
}
SetSourceFilterIndexrequestfiltersSets the index position of a filter on a source.
v5.0.0●●●○○#SetSourceFilterIndex

Sets the index position of a filter on a source.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source the filter is on
sourceUuidoptionalStringUUID of the source the filter is on
filterNameStringName of the filter
filterIndexNumberNew index position of the filter
>= 0
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSourceFilterIndex",
    "requestId": "1",
    "requestData": {
      "filterName": "",
      "filterIndex": 0
    }
  }
}
SetSourceFilterSettingsrequestfiltersSets the settings of a source filter.
v5.0.0●●●○○#SetSourceFilterSettings

Sets the settings of a source filter.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source the filter is on
sourceUuidoptionalStringUUID of the source the filter is on
filterNameStringName of the filter to set the settings of
filterSettingsObjectObject of settings to apply
overlayoptionalBooleanTrue == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings.
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSourceFilterSettings",
    "requestId": "1",
    "requestData": {
      "filterName": "",
      "filterSettings": {}
    }
  }
}
SetSourceFilterEnabledrequestfiltersSets the enable state of a source filter.
v5.0.0●●●○○#SetSourceFilterEnabled

Sets the enable state of a source filter.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source the filter is on
sourceUuidoptionalStringUUID of the source the filter is on
filterNameStringName of the filter
filterEnabledBooleanNew enable state of the filter
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSourceFilterEnabled",
    "requestId": "1",
    "requestData": {
      "filterName": "",
      "filterEnabled": true
    }
  }
}
GetVersionrequestgeneralGets data about the current plugin and RPC version.
v5.0.0●○○○○#GetVersion

Gets data about the current plugin and RPC version.

Response fields

obsVersionStringCurrent OBS Studio version
obsWebSocketVersionStringCurrent obs-websocket version
rpcVersionNumberCurrent latest obs-websocket RPC version
availableRequestsArray<String>Array of available RPC requests for the currently negotiated RPC version
supportedImageFormatsArray<String>Image formats available in GetSourceScreenshot and SaveSourceScreenshot requests.
platformStringName of the platform. Usually windows, macos, or ubuntu (linux flavor). Not guaranteed to be any of those
platformDescriptionStringDescription of the platform, like Windows 10 (10.0)
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetVersion",
    "requestId": "1"
  }
}
GetStatsrequestgeneralrequests).
v5.0.0●●○○○#GetStats

requests). os_cpu_usage_info_query() updates it, and requests run in
parallel on the thread pool. */
Gets statistics about OBS, obs-websocket, and the current session.

Response fields

cpuUsageNumberCPU usage of OBS in percent since this client's previous GetStats (since it connected, for the first)
memoryUsageNumberAmount of memory in MB currently being used by OBS
availableDiskSpaceNumberAvailable disk space on the device being used for recording storage
activeFpsNumberCurrent FPS being rendered
averageFrameRenderTimeNumberAverage time in milliseconds that OBS is taking to render a frame
renderSkippedFramesNumberNumber of frames skipped by OBS in the render thread
renderTotalFramesNumberTotal number of frames outputted by the render thread
outputSkippedFramesNumberNumber of frames skipped by OBS in the output thread
outputTotalFramesNumberTotal number of frames outputted by the output thread
gpuAccelerationObjectGPU acceleration status (state green/yellow/red, adapter, detectedGpus, summary, causes), or null when the frontend does not report it
webSocketSessionIncomingMessagesNumberTotal number of messages received by obs-websocket from the client
webSocketSessionOutgoingMessagesNumberTotal number of messages sent by obs-websocket to the client
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetStats",
    "requestId": "1"
  }
}
BroadcastCustomEventrequestgeneralBroadcasts a CustomEvent to all WebSocket clients.
v5.0.0●○○○○#BroadcastCustomEvent

Broadcasts a CustomEvent to all WebSocket clients. Receivers are clients which are identified and subscribed.

Request fields

eventDataObjectData payload to emit to all receivers
Example message
{
  "op": 6,
  "d": {
    "requestType": "BroadcastCustomEvent",
    "requestId": "1",
    "requestData": {
      "eventData": {}
    }
  }
}
CallVendorRequestrequestgeneralCall a request registered to a vendor.
v5.0.0●●●○○#CallVendorRequest

Call a request registered to a vendor.

A vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.
If a plugin or script implements vendor requests or events, documentation is expected to be provided with them.

Request fields

vendorNameStringName of the vendor to use
requestTypeStringThe request type to call
requestDataoptionalObjectObject containing appropriate request data

Response fields

vendorNameStringEchoed of vendorName
requestTypeStringEchoed of requestType
responseDataObjectObject containing appropriate response data. {} if request does not provide any response data
Example message
{
  "op": 6,
  "d": {
    "requestType": "CallVendorRequest",
    "requestId": "1",
    "requestData": {
      "vendorName": "",
      "requestType": ""
    }
  }
}
GetHotkeyListrequestgeneralGets an array of all hotkey names in OBS.
v5.0.0●●●●○#GetHotkeyList

Gets an array of all hotkey names in OBS.

Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.

Response fields

hotkeysArray<String>Array of hotkey names
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetHotkeyList",
    "requestId": "1"
  }
}
TriggerHotkeyByNamerequestgeneralTriggers a hotkey using its name.
v5.0.0●●●●○#TriggerHotkeyByName

Triggers a hotkey using its name. See GetHotkeyList.

Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.

Request fields

hotkeyNameStringName of the hotkey to trigger
contextNameoptionalStringName of context of the hotkey to trigger
Example message
{
  "op": 6,
  "d": {
    "requestType": "TriggerHotkeyByName",
    "requestId": "1",
    "requestData": {
      "hotkeyName": ""
    }
  }
}
TriggerHotkeyByKeySequencerequestgeneralTriggers a hotkey using a sequence of keys.
v5.0.0●●●●○#TriggerHotkeyByKeySequence

Triggers a hotkey using a sequence of keys.

Note: Hotkey functionality in obs-websocket comes as-is, and we do not guarantee support if things are broken. In 9/10 usages of hotkey requests, there exists a better, more reliable method via other requests.

Request fields

keyIdoptionalStringThe OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h
keyModifiersoptionalObjectObject containing key modifiers to apply
keyModifiers.shiftoptionalBooleanPress Shift
keyModifiers.controloptionalBooleanPress CTRL
keyModifiers.altoptionalBooleanPress ALT
keyModifiers.commandoptionalBooleanPress CMD (Mac)
Example message
{
  "op": 6,
  "d": {
    "requestType": "TriggerHotkeyByKeySequence",
    "requestId": "1",
    "requestData": {}
  }
}
SleeprequestgeneralSleeps for a time duration or number of frames.
v5.0.0●●○○○#Sleep

Sleeps for a time duration or number of frames. Only available in request batches with types SERIAL_REALTIME or SERIAL_FRAME.

Request fields

sleepMillisoptionalNumberNumber of milliseconds to sleep for (if SERIAL_REALTIME mode)
>= 0, <= 50000
sleepFramesoptionalNumberNumber of frames to sleep for (if SERIAL_FRAME mode)
>= 0, <= 10000
Example message
{
  "op": 6,
  "d": {
    "requestType": "Sleep",
    "requestId": "1",
    "requestData": {}
  }
}
GetInputListrequestinputsrenders.
v5.0.0●●○○○#GetInputList

renders. Prune every scene now, as the frontend does after it removes a
scene. The scenes are collected first, so no enumeration lock is held
while a scene takes its video lock. */
Gets an array of all inputs in OBS.

Request fields

inputKindoptionalStringRestrict the array to only inputs of the specified kind

Response fields

inputsArray<Object>Array of inputs
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputList",
    "requestId": "1",
    "requestData": {}
  }
}
GetInputKindListrequestinputsGets an array of all available input kinds in OBS.
v5.0.0●●○○○#GetInputKindList

Gets an array of all available input kinds in OBS.

Request fields

unversionedoptionalBooleanTrue == Return all kinds as unversioned, False == Return with version suffixes (if available)

Response fields

inputKindsArray<String>Array of input kinds
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputKindList",
    "requestId": "1",
    "requestData": {}
  }
}
GetSpecialInputsrequestinputsGets the names of all special inputs.
v5.0.0●●○○○#GetSpecialInputs

Gets the names of all special inputs.

Response fields

desktop1StringName of the Desktop Audio input
desktop2StringName of the Desktop Audio 2 input
mic1StringName of the Mic/Auxiliary Audio input
mic2StringName of the Mic/Auxiliary Audio 2 input
mic3StringName of the Mic/Auxiliary Audio 3 input
mic4StringName of the Mic/Auxiliary Audio 4 input
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSpecialInputs",
    "requestId": "1"
  }
}
CreateInputrequestinputsCreates a new input, adding it as a scene item to the specified scene.
v5.0.0●●●○○#CreateInput

Creates a new input, adding it as a scene item to the specified scene.

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene to add the input to as a scene item
sceneUuidoptionalStringUUID of the scene to add the input to as a scene item
inputNameStringName of the new input to created
inputKindStringThe kind of input to be created
inputSettingsoptionalObjectSettings object to initialize the input with
sceneItemEnabledoptionalBooleanWhether to set the created scene item to enabled or disabled

Response fields

inputUuidStringUUID of the newly created input
sceneItemIdNumberID of the newly created scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "CreateInput",
    "requestId": "1",
    "requestData": {
      "inputName": "",
      "inputKind": ""
    }
  }
}
RemoveInputrequestinputsRemoves an existing input.
v5.0.0●●○○○#RemoveInput

Removes an existing input.

Note: Will immediately remove all associated scene items.

Request fields

inputNameoptionalStringName of the input to remove
inputUuidoptionalStringUUID of the input to remove
Example message
{
  "op": 6,
  "d": {
    "requestType": "RemoveInput",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputNamerequestinputsSets the name of an input (rename).
v5.0.0●●○○○#SetInputName

Sets the name of an input (rename).

Request fields

inputNameoptionalStringCurrent input name
inputUuidoptionalStringCurrent input UUID
newInputNameStringNew name for the input
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputName",
    "requestId": "1",
    "requestData": {
      "newInputName": ""
    }
  }
}
GetInputDefaultSettingsrequestinputsGets the default settings for an input kind.
v5.0.0●●●○○#GetInputDefaultSettings

Gets the default settings for an input kind.

Request fields

inputKindStringInput kind to get the default settings for

Response fields

defaultInputSettingsObjectObject of default settings for the input kind
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputDefaultSettings",
    "requestId": "1",
    "requestData": {
      "inputKind": ""
    }
  }
}
GetInputSettingsrequestinputsGets the settings of an input.
v5.0.0●●●○○#GetInputSettings

Gets the settings of an input.

Note: Does not include defaults. To create the entire settings object, overlay inputSettings over the defaultInputSettings provided by GetInputDefaultSettings.

Request fields

inputNameoptionalStringName of the input to get the settings of
inputUuidoptionalStringUUID of the input to get the settings of

Response fields

inputSettingsObjectObject of settings for the input
inputKindStringThe kind of the input
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputSettings",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputSettingsrequestinputsSets the settings of an input.
v5.0.0●●●○○#SetInputSettings

Sets the settings of an input.

Request fields

inputNameoptionalStringName of the input to set the settings of
inputUuidoptionalStringUUID of the input to set the settings of
inputSettingsObjectObject of settings to apply
overlayoptionalBooleanTrue == apply the settings on top of existing ones, False == reset the input to its defaults, then apply settings.
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputSettings",
    "requestId": "1",
    "requestData": {
      "inputSettings": {}
    }
  }
}
GetInputMuterequestinputsGets the audio mute state of an input.
v5.0.0●●○○○#GetInputMute

Gets the audio mute state of an input.

Request fields

inputNameoptionalStringName of input to get the mute state of
inputUuidoptionalStringUUID of input to get the mute state of

Response fields

inputMutedBooleanWhether the input is muted
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputMute",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputMuterequestinputsSets the audio mute state of an input.
v5.0.0●●○○○#SetInputMute

Sets the audio mute state of an input.

Request fields

inputNameoptionalStringName of the input to set the mute state of
inputUuidoptionalStringUUID of the input to set the mute state of
inputMutedBooleanWhether to mute the input or not
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputMute",
    "requestId": "1",
    "requestData": {
      "inputMuted": true
    }
  }
}
ToggleInputMuterequestinputsToggles the audio mute state of an input.
v5.0.0●●○○○#ToggleInputMute

Toggles the audio mute state of an input.

Request fields

inputNameoptionalStringName of the input to toggle the mute state of
inputUuidoptionalStringUUID of the input to toggle the mute state of

Response fields

inputMutedBooleanWhether the input has been muted or unmuted
Example message
{
  "op": 6,
  "d": {
    "requestType": "ToggleInputMute",
    "requestId": "1",
    "requestData": {}
  }
}
GetInputVolumerequestinputsGets the current volume setting of an input.
v5.0.0●●●○○#GetInputVolume

Gets the current volume setting of an input.

Request fields

inputNameoptionalStringName of the input to get the volume of
inputUuidoptionalStringUUID of the input to get the volume of

Response fields

inputVolumeMulNumberVolume setting in mul
inputVolumeDbNumberVolume setting in dB
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputVolume",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputVolumerequestinputsSets the volume setting of an input.
v5.0.0●●●○○#SetInputVolume

Sets the volume setting of an input.

Request fields

inputNameoptionalStringName of the input to set the volume of
inputUuidoptionalStringUUID of the input to set the volume of
inputVolumeMuloptionalNumberVolume setting in mul
>= 0, <= 20
inputVolumeDboptionalNumberVolume setting in dB
>= -100, <= 26
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputVolume",
    "requestId": "1",
    "requestData": {}
  }
}
GetInputAudioBalancerequestinputsGets the audio balance of an input.
v5.0.0●●○○○#GetInputAudioBalance

Gets the audio balance of an input.

Request fields

inputNameoptionalStringName of the input to get the audio balance of
inputUuidoptionalStringUUID of the input to get the audio balance of

Response fields

inputAudioBalanceNumberAudio balance value from 0.0-1.0
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputAudioBalance",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputAudioBalancerequestinputsSets the audio balance of an input.
v5.0.0●●○○○#SetInputAudioBalance

Sets the audio balance of an input.

Request fields

inputNameoptionalStringName of the input to set the audio balance of
inputUuidoptionalStringUUID of the input to set the audio balance of
inputAudioBalanceNumberNew audio balance value
>= 0.0, <= 1.0
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputAudioBalance",
    "requestId": "1",
    "requestData": {
      "inputAudioBalance": 0
    }
  }
}
GetInputAudioSyncOffsetrequestinputsGets the audio sync offset of an input.
v5.0.0●●●○○#GetInputAudioSyncOffset

Gets the audio sync offset of an input.

Note: The audio sync offset can be negative too!

Request fields

inputNameoptionalStringName of the input to get the audio sync offset of
inputUuidoptionalStringUUID of the input to get the audio sync offset of

Response fields

inputAudioSyncOffsetNumberAudio sync offset in milliseconds
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputAudioSyncOffset",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputAudioSyncOffsetrequestinputsSets the audio sync offset of an input.
v5.0.0●●●○○#SetInputAudioSyncOffset

Sets the audio sync offset of an input.

Request fields

inputNameoptionalStringName of the input to set the audio sync offset of
inputUuidoptionalStringUUID of the input to set the audio sync offset of
inputAudioSyncOffsetNumberNew audio sync offset in milliseconds
>= -950, <= 20000
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputAudioSyncOffset",
    "requestId": "1",
    "requestData": {
      "inputAudioSyncOffset": 0
    }
  }
}
GetInputAudioMonitorTyperequestinputsGets the audio monitor type of an input.
v5.0.0●●○○○#GetInputAudioMonitorType

Gets the audio monitor type of an input.

The available audio monitor types are:

- OBS_MONITORING_TYPE_NONE
- OBS_MONITORING_TYPE_MONITOR_ONLY
- OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT

Request fields

inputNameoptionalStringName of the input to get the audio monitor type of
inputUuidoptionalStringUUID of the input to get the audio monitor type of

Response fields

monitorTypeStringAudio monitor type
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputAudioMonitorType",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputAudioMonitorTyperequestinputsSets the audio monitor type of an input.
v5.0.0●●○○○#SetInputAudioMonitorType

Sets the audio monitor type of an input.

Request fields

inputNameoptionalStringName of the input to set the audio monitor type of
inputUuidoptionalStringUUID of the input to set the audio monitor type of
monitorTypeStringAudio monitor type
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputAudioMonitorType",
    "requestId": "1",
    "requestData": {
      "monitorType": ""
    }
  }
}
GetInputAudioTracksrequestinputsGets the enable state of all audio tracks of an input.
v5.0.0●●○○○#GetInputAudioTracks

Gets the enable state of all audio tracks of an input.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input

Response fields

inputAudioTracksObjectObject of audio tracks and associated enable states
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputAudioTracks",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputAudioTracksrequestinputsSets the enable state of audio tracks of an input.
v5.0.0●●○○○#SetInputAudioTracks

Sets the enable state of audio tracks of an input.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input
inputAudioTracksObjectTrack settings to apply
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputAudioTracks",
    "requestId": "1",
    "requestData": {
      "inputAudioTracks": {}
    }
  }
}
GetInputDeinterlaceModerequestinputsGets the deinterlace mode of an input.
v5.6.0●●○○○#GetInputDeinterlaceMode

Gets the deinterlace mode of an input.

Deinterlace Modes:

- OBS_DEINTERLACE_MODE_DISABLE
- OBS_DEINTERLACE_MODE_DISCARD
- OBS_DEINTERLACE_MODE_RETRO
- OBS_DEINTERLACE_MODE_BLEND
- OBS_DEINTERLACE_MODE_BLEND_2X
- OBS_DEINTERLACE_MODE_LINEAR
- OBS_DEINTERLACE_MODE_LINEAR_2X
- OBS_DEINTERLACE_MODE_YADIF
- OBS_DEINTERLACE_MODE_YADIF_2X

Note: Deinterlacing functionality is restricted to async inputs only.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input

Response fields

inputDeinterlaceModeStringDeinterlace mode of the input
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputDeinterlaceMode",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputDeinterlaceModerequestinputsSets the deinterlace mode of an input.
v5.6.0●●○○○#SetInputDeinterlaceMode

Sets the deinterlace mode of an input.

Note: Deinterlacing functionality is restricted to async inputs only.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input
inputDeinterlaceModeStringDeinterlace mode for the input
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputDeinterlaceMode",
    "requestId": "1",
    "requestData": {
      "inputDeinterlaceMode": ""
    }
  }
}
GetInputDeinterlaceFieldOrderrequestinputsGets the deinterlace field order of an input.
v5.6.0●●○○○#GetInputDeinterlaceFieldOrder

Gets the deinterlace field order of an input.

Deinterlace Field Orders:

- OBS_DEINTERLACE_FIELD_ORDER_TOP
- OBS_DEINTERLACE_FIELD_ORDER_BOTTOM

Note: Deinterlacing functionality is restricted to async inputs only.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input

Response fields

inputDeinterlaceFieldOrderStringDeinterlace field order of the input
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputDeinterlaceFieldOrder",
    "requestId": "1",
    "requestData": {}
  }
}
SetInputDeinterlaceFieldOrderrequestinputsSets the deinterlace field order of an input.
v5.6.0●●○○○#SetInputDeinterlaceFieldOrder

Sets the deinterlace field order of an input.

Note: Deinterlacing functionality is restricted to async inputs only.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input
inputDeinterlaceFieldOrderStringDeinterlace field order for the input
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetInputDeinterlaceFieldOrder",
    "requestId": "1",
    "requestData": {
      "inputDeinterlaceFieldOrder": ""
    }
  }
}
GetInputPropertiesListPropertyItemsrequestinputsGets the items of a list property from an input's properties.
v5.0.0●●●●○#GetInputPropertiesListPropertyItems

Gets the items of a list property from an input's properties.

Note: Use this in cases where an input provides a dynamic, selectable list of items. For example, display capture, where it provides a list of available displays.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input
propertyNameStringName of the list property to get the items of

Response fields

propertyItemsArray<Object>Array of items in the list property
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetInputPropertiesListPropertyItems",
    "requestId": "1",
    "requestData": {
      "propertyName": ""
    }
  }
}
PressInputPropertiesButtonrequestinputsPresses a button in the properties of an input.
v5.0.0●●●●○#PressInputPropertiesButton

Presses a button in the properties of an input.

Some known propertyName values are:

- refreshnocache - Browser source reload button

Note: Use this in cases where there is a button in the properties of an input that cannot be accessed in any other way. For example, browser sources, where there is a refresh button.

Request fields

inputNameoptionalStringName of the input
inputUuidoptionalStringUUID of the input
propertyNameStringName of the button property to press
Example message
{
  "op": 6,
  "d": {
    "requestType": "PressInputPropertiesButton",
    "requestId": "1",
    "requestData": {
      "propertyName": ""
    }
  }
}
GetMediaInputStatusrequestmedia inputsGets the status of a media input.
v5.0.0●●○○○#GetMediaInputStatus

Gets the status of a media input.

Media States:

- OBS_MEDIA_STATE_NONE
- OBS_MEDIA_STATE_PLAYING
- OBS_MEDIA_STATE_OPENING
- OBS_MEDIA_STATE_BUFFERING
- OBS_MEDIA_STATE_PAUSED
- OBS_MEDIA_STATE_STOPPED
- OBS_MEDIA_STATE_ENDED
- OBS_MEDIA_STATE_ERROR

Request fields

inputNameoptionalStringName of the media input
inputUuidoptionalStringUUID of the media input

Response fields

mediaStateStringState of the media input
mediaDurationNumberTotal duration of the playing media in milliseconds. null if not playing
mediaCursorNumberPosition of the cursor in milliseconds. null if not playing
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetMediaInputStatus",
    "requestId": "1",
    "requestData": {}
  }
}
SetMediaInputCursorrequestmedia inputsSets the cursor position of a media input.
v5.0.0●●○○○#SetMediaInputCursor

Sets the cursor position of a media input.

This request does not perform bounds checking of the cursor position.

Request fields

inputNameoptionalStringName of the media input
inputUuidoptionalStringUUID of the media input
mediaCursorNumberNew cursor position to set
>= 0
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetMediaInputCursor",
    "requestId": "1",
    "requestData": {
      "mediaCursor": 0
    }
  }
}
OffsetMediaInputCursorrequestmedia inputsOffsets the current cursor position of a media input by the specified value.
v5.0.0●●○○○#OffsetMediaInputCursor

Offsets the current cursor position of a media input by the specified value.

This request does not perform bounds checking of the cursor position.

Request fields

inputNameoptionalStringName of the media input
inputUuidoptionalStringUUID of the media input
mediaCursorOffsetNumberValue to offset the current cursor position by
Example message
{
  "op": 6,
  "d": {
    "requestType": "OffsetMediaInputCursor",
    "requestId": "1",
    "requestData": {
      "mediaCursorOffset": 0
    }
  }
}
TriggerMediaInputActionrequestmedia inputsTriggers an action on a media input.
v5.0.0●●○○○#TriggerMediaInputAction

Triggers an action on a media input.

Request fields

inputNameoptionalStringName of the media input
inputUuidoptionalStringUUID of the media input
mediaActionStringIdentifier of the ObsMediaInputAction enum
Example message
{
  "op": 6,
  "d": {
    "requestType": "TriggerMediaInputAction",
    "requestId": "1",
    "requestData": {
      "mediaAction": ""
    }
  }
}
GetVirtualCamStatusrequestoutputsGets the status of the virtualcam output.
v5.0.0●○○○○#GetVirtualCamStatus

Gets the status of the virtualcam output.

Response fields

outputActiveBooleanWhether the output is active
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetVirtualCamStatus",
    "requestId": "1"
  }
}
ToggleVirtualCamrequestoutputsToggles the state of the virtualcam output.
v5.0.0●○○○○#ToggleVirtualCam

Toggles the state of the virtualcam output.

Response fields

outputActiveBooleanWhether the output is active
Example message
{
  "op": 6,
  "d": {
    "requestType": "ToggleVirtualCam",
    "requestId": "1"
  }
}
StartVirtualCamrequestoutputsStarts the virtualcam output.
v5.0.0●○○○○#StartVirtualCam

Starts the virtualcam output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "StartVirtualCam",
    "requestId": "1"
  }
}
StopVirtualCamrequestoutputsStops the virtualcam output.
v5.0.0●○○○○#StopVirtualCam

Stops the virtualcam output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "StopVirtualCam",
    "requestId": "1"
  }
}
GetReplayBufferStatusrequestoutputsGets the status of the replay buffer output.
v5.0.0●○○○○#GetReplayBufferStatus

Gets the status of the replay buffer output.

Response fields

outputActiveBooleanWhether the output is active
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetReplayBufferStatus",
    "requestId": "1"
  }
}
ToggleReplayBufferrequestoutputsToggles the state of the replay buffer output.
v5.0.0●○○○○#ToggleReplayBuffer

Toggles the state of the replay buffer output.

Response fields

outputActiveBooleanWhether the output is active
Example message
{
  "op": 6,
  "d": {
    "requestType": "ToggleReplayBuffer",
    "requestId": "1"
  }
}
StartReplayBufferrequestoutputsStarts the replay buffer output.
v5.0.0●○○○○#StartReplayBuffer

Starts the replay buffer output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "StartReplayBuffer",
    "requestId": "1"
  }
}
StopReplayBufferrequestoutputsStops the replay buffer output.
v5.0.0●○○○○#StopReplayBuffer

Stops the replay buffer output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "StopReplayBuffer",
    "requestId": "1"
  }
}
SaveReplayBufferrequestoutputsSaves the contents of the replay buffer output.
v5.0.0●○○○○#SaveReplayBuffer

Saves the contents of the replay buffer output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "SaveReplayBuffer",
    "requestId": "1"
  }
}
GetLastReplayBufferReplayrequestoutputsGets the filename of the last replay buffer save file.
v5.0.0●●○○○#GetLastReplayBufferReplay

Gets the filename of the last replay buffer save file.

Response fields

savedReplayPathStringFile path
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetLastReplayBufferReplay",
    "requestId": "1"
  }
}
GetOutputListrequestoutputsGets the list of available outputs.
v5.0.0●●●●○#GetOutputList

Gets the list of available outputs.

Response fields

outputsArray<Object>Array of outputs
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetOutputList",
    "requestId": "1"
  }
}
GetOutputStatusrequestoutputsGets the status of an output.
v5.0.0●●●●○#GetOutputStatus

Gets the status of an output.

Request fields

outputNameStringOutput name

Response fields

outputActiveBooleanWhether the output is active
outputReconnectingBooleanWhether the output is reconnecting
outputTimecodeStringCurrent formatted timecode string for the output
outputDurationNumberCurrent duration in milliseconds for the output
outputCongestionNumberCongestion of the output
outputBytesNumberNumber of bytes sent by the output
outputSkippedFramesNumberNumber of frames skipped by the output's process
outputTotalFramesNumberTotal number of frames delivered by the output's process
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetOutputStatus",
    "requestId": "1",
    "requestData": {
      "outputName": ""
    }
  }
}
ToggleOutputrequestoutputsToggles the status of an output.
v5.0.0●●●●○#ToggleOutput

Toggles the status of an output.

Request fields

outputNameStringOutput name

Response fields

outputActiveBooleanWhether the output is active
Example message
{
  "op": 6,
  "d": {
    "requestType": "ToggleOutput",
    "requestId": "1",
    "requestData": {
      "outputName": ""
    }
  }
}
StartOutputrequestoutputsStarts an output.
v5.0.0●●●●○#StartOutput

Starts an output.

Request fields

outputNameStringOutput name
Example message
{
  "op": 6,
  "d": {
    "requestType": "StartOutput",
    "requestId": "1",
    "requestData": {
      "outputName": ""
    }
  }
}
StopOutputrequestoutputsStops an output.
v5.0.0●●●●○#StopOutput

Stops an output.

Request fields

outputNameStringOutput name
Example message
{
  "op": 6,
  "d": {
    "requestType": "StopOutput",
    "requestId": "1",
    "requestData": {
      "outputName": ""
    }
  }
}
GetOutputSettingsrequestoutputsGets the settings of an output.
v5.0.0●●●●○#GetOutputSettings

Gets the settings of an output.

Request fields

outputNameStringOutput name

Response fields

outputSettingsObjectOutput settings
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetOutputSettings",
    "requestId": "1",
    "requestData": {
      "outputName": ""
    }
  }
}
SetOutputSettingsrequestoutputsSets the settings of an output.
v5.0.0●●●●○#SetOutputSettings

Sets the settings of an output.

Request fields

outputNameStringOutput name
outputSettingsObjectOutput settings
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetOutputSettings",
    "requestId": "1",
    "requestData": {
      "outputName": "",
      "outputSettings": {}
    }
  }
}
GetRecordStatusrequestrecordGets the status of the record output.
v5.0.0●●○○○#GetRecordStatus

Gets the status of the record output.

Response fields

outputActiveBooleanWhether the output is active
outputPausedBooleanWhether the output is paused
outputTimecodeStringCurrent formatted timecode string for the output
outputDurationNumberCurrent duration in milliseconds for the output
outputBytesNumberNumber of bytes sent by the output
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetRecordStatus",
    "requestId": "1"
  }
}
ToggleRecordrequestrecordToggles the status of the record output.
v5.0.0●○○○○#ToggleRecord

Toggles the status of the record output.

Response fields

outputActiveBooleanThe new active state of the output
Example message
{
  "op": 6,
  "d": {
    "requestType": "ToggleRecord",
    "requestId": "1"
  }
}
StartRecordrequestrecordStarts the record output.
v5.0.0●○○○○#StartRecord

Starts the record output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "StartRecord",
    "requestId": "1"
  }
}
StopRecordrequestrecordStops the record output.
v5.0.0●○○○○#StopRecord

Stops the record output.

Response fields

outputPathStringFile name for the saved recording
Example message
{
  "op": 6,
  "d": {
    "requestType": "StopRecord",
    "requestId": "1"
  }
}
ToggleRecordPauserequestrecordToggles pause on the record output.
v5.0.0●○○○○#ToggleRecordPause

Toggles pause on the record output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "ToggleRecordPause",
    "requestId": "1"
  }
}
PauseRecordrequestrecordPauses the record output.
v5.0.0●○○○○#PauseRecord

Pauses the record output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "PauseRecord",
    "requestId": "1"
  }
}
ResumeRecordrequestrecordResumes the record output.
v5.0.0●○○○○#ResumeRecord

Resumes the record output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "ResumeRecord",
    "requestId": "1"
  }
}
SplitRecordFilerequestrecordSplits the current file being recorded into a new file.
v5.5.0●●○○○#SplitRecordFile

Splits the current file being recorded into a new file.

Example message
{
  "op": 6,
  "d": {
    "requestType": "SplitRecordFile",
    "requestId": "1"
  }
}
CreateRecordChapterrequestrecordAdds a new chapter marker to the file currently being recorded.
v5.5.0●●○○○#CreateRecordChapter

Adds a new chapter marker to the file currently being recorded.

Note: As of OBS 30.2.0, the only file format supporting this feature is Hybrid MP4.

Request fields

chapterNameoptionalStringName of the new chapter
Example message
{
  "op": 6,
  "d": {
    "requestType": "CreateRecordChapter",
    "requestId": "1",
    "requestData": {}
  }
}
GetSceneItemListrequestscene itemsGets a list of all scene items in a scene.
v5.0.0●●●○○#GetSceneItemList

Gets a list of all scene items in a scene.

Scenes only

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene to get the items of
sceneUuidoptionalStringUUID of the scene to get the items of

Response fields

sceneItemsArray<Object>Array of scene items in the scene
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemList",
    "requestId": "1",
    "requestData": {}
  }
}
GetGroupSceneItemListrequestscene itemsBasically GetSceneItemList, but for groups.
v5.0.0●●●○○#GetGroupSceneItemList

Basically GetSceneItemList, but for groups.

Using groups at all in OBS is discouraged, as they are very broken under the hood. Please use nested scenes instead.

Groups only

Request fields

canvasUuidoptionalStringUUID of the canvas the group is in, if using the sceneName field
sceneNameoptionalStringName of the group to get the items of
sceneUuidoptionalStringUUID of the group to get the items of

Response fields

sceneItemsArray<Object>Array of scene items in the group
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetGroupSceneItemList",
    "requestId": "1",
    "requestData": {}
  }
}
GetSceneItemIdrequestscene itemsSearches a scene for a source, and returns its id.
v5.0.0●●●○○#GetSceneItemId

Searches a scene for a source, and returns its id.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene or group is in, if using the sceneName field
sceneNameoptionalStringName of the scene or group to search in
sceneUuidoptionalStringUUID of the scene or group to search in
sourceNameStringName of the source to find
searchOffsetoptionalNumberNumber of matches to skip during search. >= 0 means first forward. -1 means last (top) item
>= -1

Response fields

sceneItemIdNumberNumeric ID of the scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemId",
    "requestId": "1",
    "requestData": {
      "sourceName": ""
    }
  }
}
GetSceneItemSourcerequestscene itemsGets the source associated with a scene item.
v5.4.0●●●○○#GetSceneItemSource

Gets the source associated with a scene item.

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0

Response fields

sourceNameStringName of the source associated with the scene item
sourceUuidStringUUID of the source associated with the scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemSource",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
CreateSceneItemrequestscene itemsCreates a new scene item using a source.
v5.0.0●●●○○#CreateSceneItem

Creates a new scene item using a source.

Scenes only

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene to create the new item in
sceneUuidoptionalStringUUID of the scene to create the new item in
sourceNameoptionalStringName of the source to add to the scene
sourceUuidoptionalStringUUID of the source to add to the scene
sceneItemEnabledoptionalBooleanEnable state to apply to the scene item on creation

Response fields

sceneItemIdNumberNumeric ID of the scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "CreateSceneItem",
    "requestId": "1",
    "requestData": {}
  }
}
RemoveSceneItemrequestscene itemsRemoves a scene item from a scene.
v5.0.0●●●○○#RemoveSceneItem

Removes a scene item from a scene.

Scenes only

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0
Example message
{
  "op": 6,
  "d": {
    "requestType": "RemoveSceneItem",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
DuplicateSceneItemrequestscene itemsDuplicates a scene item, copying all transform and crop info.
v5.0.0●●●○○#DuplicateSceneItem

Duplicates a scene item, copying all transform and crop info.

Scenes only

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0
destinationSceneNameoptionalStringName of the scene to create the duplicated item in
destinationSceneUuidoptionalStringUUID of the scene to create the duplicated item in

Response fields

sceneItemIdNumberNumeric ID of the duplicated scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "DuplicateSceneItem",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
GetSceneItemTransformrequestscene itemsGets the transform and crop info of a scene item.
v5.0.0●●●○○#GetSceneItemTransform

Gets the transform and crop info of a scene item.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0

Response fields

sceneItemTransformObjectObject containing scene item transform info
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemTransform",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
SetSceneItemTransformrequestscene itemsSets the transform and crop info of a scene item.
v5.0.0●●●○○#SetSceneItemTransform

Sets the transform and crop info of a scene item.

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0
sceneItemTransformObjectObject containing scene item transform info to update
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSceneItemTransform",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0,
      "sceneItemTransform": {}
    }
  }
}
GetSceneItemEnabledrequestscene itemsGets the enable state of a scene item.
v5.0.0●●●○○#GetSceneItemEnabled

Gets the enable state of a scene item.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0

Response fields

sceneItemEnabledBooleanWhether the scene item is enabled. true for enabled, false for disabled
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemEnabled",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
SetSceneItemEnabledrequestscene itemsSets the enable state of a scene item.
v5.0.0●●●○○#SetSceneItemEnabled

Sets the enable state of a scene item.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0
sceneItemEnabledBooleanNew enable state of the scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSceneItemEnabled",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0,
      "sceneItemEnabled": true
    }
  }
}
GetSceneItemLockedrequestscene itemsGets the lock state of a scene item.
v5.0.0●●●○○#GetSceneItemLocked

Gets the lock state of a scene item.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0

Response fields

sceneItemLockedBooleanWhether the scene item is locked. true for locked, false for unlocked
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemLocked",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
SetSceneItemLockedrequestscene itemsSets the lock state of a scene item.
v5.0.0●●●○○#SetSceneItemLocked

Sets the lock state of a scene item.

Scenes and Group

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0
sceneItemLockedBooleanNew lock state of the scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSceneItemLocked",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0,
      "sceneItemLocked": true
    }
  }
}
GetSceneItemIndexrequestscene itemsGets the index position of a scene item in a scene.
v5.0.0●●●○○#GetSceneItemIndex

Gets the index position of a scene item in a scene.

An index of 0 is at the bottom of the source list in the UI.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0

Response fields

sceneItemIndexNumberIndex position of the scene item
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemIndex",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
SetSceneItemIndexrequestscene itemsSets the index position of a scene item in a scene.
v5.0.0●●●○○#SetSceneItemIndex

Sets the index position of a scene item in a scene.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0
sceneItemIndexNumberNew index position of the scene item
>= 0
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSceneItemIndex",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0,
      "sceneItemIndex": 0
    }
  }
}
GetSceneItemBlendModerequestscene itemsGets the blend mode of a scene item.
v5.0.0●●○○○#GetSceneItemBlendMode

Gets the blend mode of a scene item.

Blend modes:

- OBS_BLEND_NORMAL
- OBS_BLEND_ADDITIVE
- OBS_BLEND_SUBTRACT
- OBS_BLEND_SCREEN
- OBS_BLEND_MULTIPLY
- OBS_BLEND_LIGHTEN
- OBS_BLEND_DARKEN

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0

Response fields

sceneItemBlendModeStringCurrent blend mode
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneItemBlendMode",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0
    }
  }
}
SetSceneItemBlendModerequestscene itemsSets the blend mode of a scene item.
v5.0.0●●○○○#SetSceneItemBlendMode

Sets the blend mode of a scene item.

Scenes and Groups

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene the item is in
sceneUuidoptionalStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
>= 0
sceneItemBlendModeStringNew blend mode
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSceneItemBlendMode",
    "requestId": "1",
    "requestData": {
      "sceneItemId": 0,
      "sceneItemBlendMode": ""
    }
  }
}
GetSceneListrequestscenesGets an array of scenes in OBS.
v5.0.0●●○○○#GetSceneList

Gets an array of scenes in OBS.

Request fields

canvasUuidoptionalStringUUID of the canvas the scenes are in

Response fields

currentProgramSceneNameStringCurrent program scene name. Can be null if non-main canvas or internal state desync
currentProgramSceneUuidStringCurrent program scene UUID. Can be null if non-main canvas or internal state desync
currentPreviewSceneNameStringCurrent preview scene name. null if not in studio mode or non-main canvas
currentPreviewSceneUuidStringCurrent preview scene UUID. null if not in studio mode or non-main canvas
scenesArray<Object>Array of scenes
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneList",
    "requestId": "1",
    "requestData": {}
  }
}
GetGroupListrequestscenesGets an array of all groups in OBS.
v5.0.0●●○○○#GetGroupList

Gets an array of all groups in OBS.

Groups in OBS are actually scenes, but renamed and modified. In obs-websocket, we treat them as scenes where we can.

Response fields

groupsArray<String>Array of group names
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetGroupList",
    "requestId": "1"
  }
}
GetCurrentProgramScenerequestscenesGets the current program scene.
v5.0.0●○○○○#GetCurrentProgramScene

Gets the current program scene.

Note 1: This request is slated to have the currentProgram-prefixed fields removed from in an upcoming RPC version.

Note 2: Canvases do not have any concept of a program or preview scene, so this request does not support canvases.

Response fields

sceneNameStringCurrent program scene name. null if there is no program scene
sceneUuidStringCurrent program scene UUID. null if there is no program scene
currentProgramSceneNameStringCurrent program scene name (Deprecated)
currentProgramSceneUuidStringCurrent program scene UUID (Deprecated)
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetCurrentProgramScene",
    "requestId": "1"
  }
}
SetCurrentProgramScenerequestscenesSets the current program scene.
v5.0.0●○○○○#SetCurrentProgramScene

Sets the current program scene.

Request fields

sceneNameoptionalStringScene name to set as the current program scene
sceneUuidoptionalStringScene UUID to set as the current program scene
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetCurrentProgramScene",
    "requestId": "1",
    "requestData": {}
  }
}
GetCurrentPreviewScenerequestscenesGets the current preview scene.
v5.0.0●○○○○#GetCurrentPreviewScene

Gets the current preview scene.

Only available when studio mode is enabled.

Note: This request is slated to have the currentPreview-prefixed fields removed from in an upcoming RPC version.

Response fields

sceneNameStringCurrent preview scene name. null if there is no preview scene
sceneUuidStringCurrent preview scene UUID. null if there is no preview scene
currentPreviewSceneNameStringCurrent preview scene name
currentPreviewSceneUuidStringCurrent preview scene UUID
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetCurrentPreviewScene",
    "requestId": "1"
  }
}
SetCurrentPreviewScenerequestscenesSets the current preview scene.
v5.0.0●○○○○#SetCurrentPreviewScene

Sets the current preview scene.

Only available when studio mode is enabled.

Request fields

sceneNameoptionalStringScene name to set as the current preview scene
sceneUuidoptionalStringScene UUID to set as the current preview scene
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetCurrentPreviewScene",
    "requestId": "1",
    "requestData": {}
  }
}
CreateScenerequestscenesCreates a new scene in OBS.
v5.0.0●●○○○#CreateScene

Creates a new scene in OBS.

Request fields

canvasUuidoptionalStringUUID of the canvas to create the new scene in. Leave default to assume main canvas
sceneNameStringName for the new scene

Response fields

sceneUuidStringUUID of the created scene
Example message
{
  "op": 6,
  "d": {
    "requestType": "CreateScene",
    "requestId": "1",
    "requestData": {
      "sceneName": ""
    }
  }
}
RemoveScenerequestscenesRemoves a scene from OBS.
v5.0.0●●○○○#RemoveScene

Removes a scene from OBS.

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene to remove
sceneUuidoptionalStringUUID of the scene to remove
Example message
{
  "op": 6,
  "d": {
    "requestType": "RemoveScene",
    "requestId": "1",
    "requestData": {}
  }
}
SetSceneNamerequestscenesSets the name of a scene (rename).
v5.0.0●●○○○#SetSceneName

Sets the name of a scene (rename).

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene to be renamed
sceneUuidoptionalStringUUID of the scene to be renamed
newSceneNameStringNew name for the scene
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSceneName",
    "requestId": "1",
    "requestData": {
      "newSceneName": ""
    }
  }
}
GetSceneSceneTransitionOverriderequestscenesGets the scene transition overridden for a scene.
v5.0.0●●○○○#GetSceneSceneTransitionOverride

Gets the scene transition overridden for a scene.

Note: A transition UUID response field is not currently able to be implemented as of 2024-1-18.

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene
sceneUuidoptionalStringUUID of the scene

Response fields

transitionNameStringName of the overridden scene transition, else null
transitionDurationNumberDuration of the overridden scene transition, else null
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneSceneTransitionOverride",
    "requestId": "1",
    "requestData": {}
  }
}
SetSceneSceneTransitionOverriderequestscenesSets the scene transition overridden for a scene.
v5.0.0●●○○○#SetSceneSceneTransitionOverride

Sets the scene transition overridden for a scene.

Request fields

canvasUuidoptionalStringUUID of the canvas the scene is in, if using the sceneName field
sceneNameoptionalStringName of the scene
sceneUuidoptionalStringUUID of the scene
transitionNameoptionalStringName of the scene transition to use as override. Specify null to remove
transitionDurationoptionalNumberDuration to use for any overridden transition. Specify null to remove
>= 50, <= 20000
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetSceneSceneTransitionOverride",
    "requestId": "1",
    "requestData": {}
  }
}
GetSourceActiverequestsourcesGets the active and show state of a source.
v5.0.0●●○○○#GetSourceActive

Gets the active and show state of a source.

**Compatible with inputs and scenes.**

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using sourceName field
sourceNameoptionalStringName of the source to get the active state of
sourceUuidoptionalStringUUID of the source to get the active state of

Response fields

videoActiveBooleanWhether the source is showing in Program
videoShowingBooleanWhether the source is showing in the UI (Preview, Projector, Properties)
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSourceActive",
    "requestId": "1",
    "requestData": {}
  }
}
GetSourceScreenshotrequestsourcesGets a Base64-encoded screenshot of a source.
v5.0.0●●●●○#GetSourceScreenshot

Gets a Base64-encoded screenshot of a source.

The imageWidth and imageHeight parameters are treated as "scale to inner", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.
If imageWidth and imageHeight are not specified, the compressed image will use the full resolution of the source.

**Compatible with inputs and scenes.**

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using sourceName field
sourceNameoptionalStringName of the source to take a screenshot of
sourceUuidoptionalStringUUID of the source to take a screenshot of
imageFormatStringImage compression format to use. Use GetVersion to get compatible image formats
imageWidthoptionalNumberWidth to scale the screenshot to
>= 8, <= 4096
imageHeightoptionalNumberHeight to scale the screenshot to
>= 8, <= 4096
imageCompressionQualityoptionalNumberCompression quality to use. 0 for high compression, 100 for uncompressed. -1 to use "default" (whatever that means, idk)
>= -1, <= 100

Response fields

imageDataStringBase64-encoded screenshot
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSourceScreenshot",
    "requestId": "1",
    "requestData": {
      "imageFormat": ""
    }
  }
}
SaveSourceScreenshotrequestsourcesSaves a screenshot of a source to the filesystem.
v5.0.0●●●○○#SaveSourceScreenshot

Saves a screenshot of a source to the filesystem.

The imageWidth and imageHeight parameters are treated as "scale to inner", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept.
If imageWidth and imageHeight are not specified, the compressed image will use the full resolution of the source.

**Compatible with inputs and scenes.**

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using sourceName field
sourceNameoptionalStringName of the source to take a screenshot of
sourceUuidoptionalStringUUID of the source to take a screenshot of
imageFormatStringImage compression format to use. Use GetVersion to get compatible image formats
imageFilePathStringPath to save the screenshot file to. Eg. C:\Users\user\Desktop\screenshot.png
imageWidthoptionalNumberWidth to scale the screenshot to
>= 8, <= 4096
imageHeightoptionalNumberHeight to scale the screenshot to
>= 8, <= 4096
imageCompressionQualityoptionalNumberCompression quality to use. 0 for high compression, 100 for uncompressed. -1 to use "default" (whatever that means, idk)
>= -1, <= 100
Example message
{
  "op": 6,
  "d": {
    "requestType": "SaveSourceScreenshot",
    "requestId": "1",
    "requestData": {
      "imageFormat": "",
      "imageFilePath": ""
    }
  }
}
GetStreamStatusrequeststreamGets the status of the stream output.
v5.0.0●●○○○#GetStreamStatus

Gets the status of the stream output.

Response fields

outputActiveBooleanWhether the output is active
outputReconnectingBooleanWhether the output is currently reconnecting
outputTimecodeStringCurrent formatted timecode string for the output
outputDurationNumberCurrent duration in milliseconds for the output
outputCongestionNumberCongestion of the output
outputBytesNumberNumber of bytes sent by the output
outputSkippedFramesNumberNumber of frames skipped by the output's process
outputTotalFramesNumberTotal number of frames delivered by the output's process
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetStreamStatus",
    "requestId": "1"
  }
}
ToggleStreamrequeststreamToggles the status of the stream output.
v5.0.0●○○○○#ToggleStream

Toggles the status of the stream output.

Response fields

outputActiveBooleanNew state of the stream output
Example message
{
  "op": 6,
  "d": {
    "requestType": "ToggleStream",
    "requestId": "1"
  }
}
StartStreamrequeststreamStarts the stream output.
v5.0.0●○○○○#StartStream

Starts the stream output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "StartStream",
    "requestId": "1"
  }
}
StopStreamrequeststreamStops the stream output.
v5.0.0●○○○○#StopStream

Stops the stream output.

Example message
{
  "op": 6,
  "d": {
    "requestType": "StopStream",
    "requestId": "1"
  }
}
SendStreamCaptionrequeststreamSends CEA-608 caption text over the stream output.
v5.0.0●●○○○#SendStreamCaption

Sends CEA-608 caption text over the stream output.

Request fields

captionTextStringCaption text
Example message
{
  "op": 6,
  "d": {
    "requestType": "SendStreamCaption",
    "requestId": "1",
    "requestData": {
      "captionText": ""
    }
  }
}
GetTransitionKindListrequesttransitionsGets an array of all available transition kinds.
v5.0.0●●○○○#GetTransitionKindList

Gets an array of all available transition kinds.

Similar to GetInputKindList

Response fields

transitionKindsArray<String>Array of transition kinds
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetTransitionKindList",
    "requestId": "1"
  }
}
GetSceneTransitionListrequesttransitionsGets an array of all scene transitions in OBS.
v5.0.0●●●○○#GetSceneTransitionList

Gets an array of all scene transitions in OBS.

Response fields

currentSceneTransitionNameStringName of the current scene transition. Can be null
currentSceneTransitionUuidStringUUID of the current scene transition. Can be null
currentSceneTransitionKindStringKind of the current scene transition. Can be null
transitionsArray<Object>Array of transitions
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetSceneTransitionList",
    "requestId": "1"
  }
}
GetCurrentSceneTransitionrequesttransitionsGets information about the current scene transition.
v5.0.0●●○○○#GetCurrentSceneTransition

Gets information about the current scene transition.

Response fields

transitionNameStringName of the transition
transitionUuidStringUUID of the transition
transitionKindStringKind of the transition
transitionFixedBooleanWhether the transition uses a fixed (unconfigurable) duration
transitionDurationNumberConfigured transition duration in milliseconds. null if transition is fixed
transitionConfigurableBooleanWhether the transition supports being configured
transitionSettingsObjectObject of settings for the transition. null if transition is not configurable
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetCurrentSceneTransition",
    "requestId": "1"
  }
}
SetCurrentSceneTransitionrequesttransitionsSets the current scene transition.
v5.0.0●●○○○#SetCurrentSceneTransition

Sets the current scene transition.

Small note: While the namespace of scene transitions is generally unique, that uniqueness is not a guarantee as it is with other resources like inputs.

Request fields

transitionNameStringName of the transition to make active
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetCurrentSceneTransition",
    "requestId": "1",
    "requestData": {
      "transitionName": ""
    }
  }
}
SetCurrentSceneTransitionDurationrequesttransitionsSets the duration of the current scene transition, if it is not fixed.
v5.0.0●●○○○#SetCurrentSceneTransitionDuration

Sets the duration of the current scene transition, if it is not fixed.

Request fields

transitionDurationNumberDuration in milliseconds
>= 50, <= 20000
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetCurrentSceneTransitionDuration",
    "requestId": "1",
    "requestData": {
      "transitionDuration": 0
    }
  }
}
SetCurrentSceneTransitionSettingsrequesttransitionsSets the settings of the current scene transition.
v5.0.0●●●○○#SetCurrentSceneTransitionSettings

Sets the settings of the current scene transition.

Request fields

transitionSettingsObjectSettings object to apply to the transition. Can be {}
overlayoptionalBooleanWhether to overlay over the current settings or replace them
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetCurrentSceneTransitionSettings",
    "requestId": "1",
    "requestData": {
      "transitionSettings": {}
    }
  }
}
GetCurrentSceneTransitionCursorrequesttransitionsGets the cursor position of the current scene transition.
v5.0.0●●○○○#GetCurrentSceneTransitionCursor

Gets the cursor position of the current scene transition.

Note: transitionCursor will return 1.0 when the transition is inactive.

Response fields

transitionCursorNumberCursor position, between 0.0 and 1.0
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetCurrentSceneTransitionCursor",
    "requestId": "1"
  }
}
TriggerStudioModeTransitionrequesttransitionsTriggers the current scene transition.
v5.0.0●○○○○#TriggerStudioModeTransition

Triggers the current scene transition. Same functionality as the Transition button in studio mode.

Example message
{
  "op": 6,
  "d": {
    "requestType": "TriggerStudioModeTransition",
    "requestId": "1"
  }
}
SetTBarPositionrequesttransitionsSets the position of the TBar.
v5.0.0●●●○○#SetTBarPosition

Sets the position of the TBar.

**Very important note**: This will be deprecated and replaced in a future version of obs-websocket.

Request fields

positionNumberNew position
>= 0.0, <= 1.0
releaseoptionalBooleanWhether to release the TBar. Only set false if you know that you will be sending another position update
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetTBarPosition",
    "requestId": "1",
    "requestData": {
      "position": 0
    }
  }
}
GetStudioModeEnabledrequestuiGets whether studio is enabled.
v5.0.0●○○○○#GetStudioModeEnabled

Gets whether studio is enabled.

Response fields

studioModeEnabledBooleanWhether studio mode is enabled
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetStudioModeEnabled",
    "requestId": "1"
  }
}
SetStudioModeEnabledrequestuiEnables or disables studio mode
v5.0.0●○○○○#SetStudioModeEnabled

Enables or disables studio mode

Request fields

studioModeEnabledBooleanTrue == Enabled, False == Disabled
Example message
{
  "op": 6,
  "d": {
    "requestType": "SetStudioModeEnabled",
    "requestId": "1",
    "requestData": {
      "studioModeEnabled": true
    }
  }
}
OpenInputPropertiesDialogrequestuiOpens the properties dialog of an input.
v5.0.0●○○○○#OpenInputPropertiesDialog

Opens the properties dialog of an input.

Request fields

inputNameoptionalStringName of the input to open the dialog of
inputUuidoptionalStringUUID of the input to open the dialog of
Example message
{
  "op": 6,
  "d": {
    "requestType": "OpenInputPropertiesDialog",
    "requestId": "1",
    "requestData": {}
  }
}
OpenInputFiltersDialogrequestuiOpens the filters dialog of an input.
v5.0.0●○○○○#OpenInputFiltersDialog

Opens the filters dialog of an input.

Request fields

inputNameoptionalStringName of the input to open the dialog of
inputUuidoptionalStringUUID of the input to open the dialog of
Example message
{
  "op": 6,
  "d": {
    "requestType": "OpenInputFiltersDialog",
    "requestId": "1",
    "requestData": {}
  }
}
OpenInputInteractDialogrequestuiOpens the interact dialog of an input.
v5.0.0●○○○○#OpenInputInteractDialog

Opens the interact dialog of an input.

Request fields

inputNameoptionalStringName of the input to open the dialog of
inputUuidoptionalStringUUID of the input to open the dialog of
Example message
{
  "op": 6,
  "d": {
    "requestType": "OpenInputInteractDialog",
    "requestId": "1",
    "requestData": {}
  }
}
GetMonitorListrequestuiGets a list of connected monitors and information about them.
v5.0.0●●○○○#GetMonitorList

Gets a list of connected monitors and information about them.

Response fields

monitorsArray<Object>a list of detected monitors with some information
Example message
{
  "op": 6,
  "d": {
    "requestType": "GetMonitorList",
    "requestId": "1"
  }
}
OpenVideoMixProjectorrequestuiOpens a projector for a specific output video mix.
v5.0.0●●●○○#OpenVideoMixProjector

Opens a projector for a specific output video mix.

Mix types:

- OBS_WEBSOCKET_VIDEO_MIX_TYPE_PREVIEW
- OBS_WEBSOCKET_VIDEO_MIX_TYPE_PROGRAM
- OBS_WEBSOCKET_VIDEO_MIX_TYPE_MULTIVIEW

Note: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.

Request fields

videoMixTypeStringType of mix to open
monitorIndexoptionalNumberMonitor index, use GetMonitorList to obtain index
projectorGeometryoptionalStringSize/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with monitorIndex
Example message
{
  "op": 6,
  "d": {
    "requestType": "OpenVideoMixProjector",
    "requestId": "1",
    "requestData": {
      "videoMixType": ""
    }
  }
}
OpenSourceProjectorrequestuiOpens a projector for a source.
v5.0.0●●●○○#OpenSourceProjector

Opens a projector for a source.

Note: This request serves to provide feature parity with 4.x. It is very likely to be changed/deprecated in a future release.

Request fields

canvasUuidoptionalStringUUID of the canvas the source is in, if using the sourceName field
sourceNameoptionalStringName of the source to open a projector for
sourceUuidoptionalStringUUID of the source to open a projector for
monitorIndexoptionalNumberMonitor index, use GetMonitorList to obtain index
projectorGeometryoptionalStringSize/Position data for a windowed projector, in Qt Base64 encoded format. Mutually exclusive with monitorIndex
Example message
{
  "op": 6,
  "d": {
    "requestType": "OpenSourceProjector",
    "requestId": "1",
    "requestData": {}
  }
}
CanvasCreatedeventcanvasesA new canvas has been created.
Canvasesv5.7.0#CanvasCreated

A new canvas has been created.

Data fields

canvasNameStringName of the new canvas
canvasUuidStringUUID of the new canvas
CanvasRemovedeventcanvasesA canvas has been removed.
Canvasesv5.7.0#CanvasRemoved

A canvas has been removed.

Data fields

canvasNameStringName of the removed canvas
canvasUuidStringUUID of the removed canvas
CanvasNameChangedeventcanvasesThe name of a canvas has changed.
Canvasesv5.7.0#CanvasNameChanged

The name of a canvas has changed.

Data fields

canvasUuidStringUUID of the canvas
oldCanvasNameStringOld name of the canvas
canvasNameStringNew name of the canvas
CurrentSceneCollectionChangingeventconfigThe current scene collection has begun changing.

The current scene collection has begun changing.

Note: We recommend using this event to trigger a pause of all polling requests, as performing any requests during a
scene collection change is considered undefined behavior and can cause crashes!

Data fields

sceneCollectionNameStringName of the current scene collection
CurrentSceneCollectionChangedeventconfigThe current scene collection has changed.

The current scene collection has changed.

Note: If polling has been paused during CurrentSceneCollectionChanging, this is the que to restart polling.

Data fields

sceneCollectionNameStringName of the new scene collection
SceneCollectionListChangedeventconfigThe scene collection list has changed.

The scene collection list has changed.

Data fields

sceneCollectionsArray<String>Updated list of scene collections
CurrentProfileChangingeventconfigThe current profile has begun changing.

The current profile has begun changing.

Data fields

profileNameStringName of the current profile
CurrentProfileChangedeventconfigThe current profile has changed.

The current profile has changed.

Data fields

profileNameStringName of the new profile
ProfileListChangedeventconfigThe profile list has changed.

The profile list has changed.

Data fields

profilesArray<String>Updated list of profiles
SourceFilterListReindexedeventfiltersA source's filter list has been reindexed.

A source's filter list has been reindexed.

Data fields

sourceNameStringName of the source
filtersArray<Object>Array of filter objects
SourceFilterCreatedeventfiltersA filter has been added to a source.

A filter has been added to a source.

Data fields

sourceNameStringName of the source the filter was added to
filterNameStringName of the filter
filterKindStringThe kind of the filter
filterIndexNumberIndex position of the filter
filterSettingsObjectThe settings configured to the filter when it was created
defaultFilterSettingsObjectThe default settings for the filter
SourceFilterRemovedeventfiltersA filter has been removed from a source.

A filter has been removed from a source.

Data fields

sourceNameStringName of the source the filter was on
filterNameStringName of the filter
SourceFilterNameChangedeventfiltersThe name of a source filter has changed.

The name of a source filter has changed.

Data fields

sourceNameStringThe source the filter is on
oldFilterNameStringOld name of the filter
filterNameStringNew name of the filter
SourceFilterSettingsChangedeventfiltersAn source filter's settings have changed (been updated).

An source filter's settings have changed (been updated).

Data fields

sourceNameStringName of the source the filter is on
filterNameStringName of the filter
filterSettingsObjectNew settings object of the filter
SourceFilterEnableStateChangedeventfiltersA source filter's enable state has changed.

A source filter's enable state has changed.

Data fields

sourceNameStringName of the source the filter is on
filterNameStringName of the filter
filterEnabledBooleanWhether the filter is enabled
ExitStartedeventgeneralOBS has begun the shutdown process.
Generalv5.0.0#ExitStarted

OBS has begun the shutdown process.

InputCreatedeventinputsAn input has been created.
Inputsv5.0.0#InputCreated

An input has been created.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
inputKindStringThe kind of the input
unversionedInputKindStringThe unversioned kind of input (aka no _v2 stuff)
inputKindCapsNumberBitflag value for the caps that an input supports. See obs_source_info.output_flags in the libobs docs
inputSettingsObjectThe settings configured to the input when it was created
defaultInputSettingsObjectThe default settings for the input
InputRemovedeventinputsAn input has been removed.
Inputsv5.0.0#InputRemoved

An input has been removed.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
InputNameChangedeventinputsThe name of an input has changed.
Inputsv5.0.0#InputNameChanged

The name of an input has changed.

Data fields

inputUuidStringUUID of the input
oldInputNameStringOld name of the input
inputNameStringNew name of the input
InputSettingsChangedeventinputsAn input's settings have changed (been updated).

An input's settings have changed (been updated).

Note: On some inputs, changing values in the properties dialog will cause an immediate update. Pressing the "Cancel" button will revert the settings, resulting in another event being fired.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
inputSettingsObjectNew settings object of the input
InputActiveStateChangedeventinputsAn input's active state has changed.
InputActiveStateChangedv5.0.0#InputActiveStateChanged

An input's active state has changed.

When an input is active, it means it's being shown by the program feed.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
videoActiveBooleanWhether the input is active
InputShowStateChangedeventinputsAn input's show state has changed.
InputShowStateChangedv5.0.0#InputShowStateChanged

An input's show state has changed.

When an input is showing, it means it's being shown by the preview or a dialog.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
videoShowingBooleanWhether the input is showing
InputMuteStateChangedeventinputsAn input's mute state has changed.

An input's mute state has changed.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
inputMutedBooleanWhether the input is muted
InputVolumeChangedeventinputsAn input's volume level has changed.

An input's volume level has changed.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
inputVolumeMulNumberNew volume level multiplier
inputVolumeDbNumberNew volume level in dB
InputAudioBalanceChangedeventinputsThe audio balance value of an input has changed.

The audio balance value of an input has changed.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
inputAudioBalanceNumberNew audio balance value of the input
InputAudioSyncOffsetChangedeventinputsThe sync offset of an input has changed.

The sync offset of an input has changed.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
inputAudioSyncOffsetNumberNew sync offset in milliseconds
InputAudioTracksChangedeventinputsThe audio tracks of an input have changed.

The audio tracks of an input have changed.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
inputAudioTracksObjectObject of audio tracks along with their associated enable states
InputAudioMonitorTypeChangedeventinputsThe monitor type of an input has changed.

The monitor type of an input has changed.

Available types are:

- OBS_MONITORING_TYPE_NONE
- OBS_MONITORING_TYPE_MONITOR_ONLY
- OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
monitorTypeStringNew monitor type of the input
InputVolumeMeterseventinputsA high-volume event providing volume levels of all active inputs every 50 milliseconds.
InputVolumeMetersv5.0.0#InputVolumeMeters

A high-volume event providing volume levels of all active inputs every 50 milliseconds.

Data fields

inputsArray<Object>Array of active inputs with their associated volume levels
MediaInputPlaybackStartedeventmedia inputsA media input has started playing.

A media input has started playing.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
MediaInputPlaybackEndedeventmedia inputsA media input has finished playing.
MediaInputsv5.0.0#MediaInputPlaybackEnded

A media input has finished playing.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
MediaInputActionTriggeredeventmedia inputsAn action has been performed on an input.

An action has been performed on an input.

Data fields

inputNameStringName of the input
inputUuidStringUUID of the input
mediaActionStringAction performed on the input. See ObsMediaInputAction enum
StreamStateChangedeventoutputsThe state of the stream output has changed.
Outputsv5.0.0#StreamStateChanged

The state of the stream output has changed.

Data fields

outputActiveBooleanWhether the output is active
outputStateStringThe specific state of the output
RecordStateChangedeventoutputsThe state of the record output has changed.
Outputsv5.0.0#RecordStateChanged

The state of the record output has changed.

Data fields

outputActiveBooleanWhether the output is active
outputStateStringThe specific state of the output
outputPathStringFile name for the saved recording, if record stopped. null otherwise
RecordFileChangedeventoutputsThe record output has started writing to a new file.
Outputsv5.5.0#RecordFileChanged

The record output has started writing to a new file. For example, when a file split happens.

Data fields

newOutputPathStringFile name that the output has begun writing to
ReplayBufferStateChangedeventoutputsThe state of the replay buffer output has changed.

The state of the replay buffer output has changed.

Data fields

outputActiveBooleanWhether the output is active
outputStateStringThe specific state of the output
VirtualcamStateChangedeventoutputsThe state of the virtualcam output has changed.

The state of the virtualcam output has changed.

Data fields

outputActiveBooleanWhether the output is active
outputStateStringThe specific state of the output
ReplayBufferSavedeventoutputsThe replay buffer has been saved.
Outputsv5.0.0#ReplayBufferSaved

The replay buffer has been saved.

Data fields

savedReplayPathStringPath of the saved replay file
SceneItemCreatedeventscene itemsA scene item has been created.
SceneItemsv5.0.0#SceneItemCreated

A scene item has been created.

Data fields

sceneNameStringName of the scene the item was added to
sceneUuidStringUUID of the scene the item was added to
sourceNameStringName of the underlying source (input/scene)
sourceUuidStringUUID of the underlying source (input/scene)
sceneItemIdNumberNumeric ID of the scene item
sceneItemIndexNumberIndex position of the item
SceneItemRemovedeventscene itemsA scene item has been removed.
SceneItemsv5.0.0#SceneItemRemoved

A scene item has been removed.

This event is not emitted when the scene the item is in is removed.

Data fields

sceneNameStringName of the scene the item was removed from
sceneUuidStringUUID of the scene the item was removed from
sourceNameStringName of the underlying source (input/scene)
sourceUuidStringUUID of the underlying source (input/scene)
sceneItemIdNumberNumeric ID of the scene item
SceneItemListReindexedeventscene itemsA scene's item list has been reindexed.
SceneItemsv5.0.0#SceneItemListReindexed

A scene's item list has been reindexed.

Data fields

sceneNameStringName of the scene
sceneUuidStringUUID of the scene
sceneItemsArray<Object>Array of scene item objects
SceneItemEnableStateChangedeventscene itemsA scene item's enable state has changed.

A scene item's enable state has changed.

Data fields

sceneNameStringName of the scene the item is in
sceneUuidStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
sceneItemEnabledBooleanWhether the scene item is enabled (visible)
SceneItemLockStateChangedeventscene itemsA scene item's lock state has changed.

A scene item's lock state has changed.

Data fields

sceneNameStringName of the scene the item is in
sceneUuidStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
sceneItemLockedBooleanWhether the scene item is locked
SceneItemSelectedeventscene itemsA scene item has been selected in the Ui.
SceneItemsv5.0.0#SceneItemSelected

A scene item has been selected in the Ui.

Data fields

sceneNameStringName of the scene the item is in
sceneUuidStringUUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
SceneItemTransformChangedeventscene itemsThe transform/crop of a scene item has changed.
SceneItemTransformChangedv5.0.0#SceneItemTransformChanged

The transform/crop of a scene item has changed.

Data fields

sceneNameStringThe name of the scene the item is in
sceneUuidStringThe UUID of the scene the item is in
sceneItemIdNumberNumeric ID of the scene item
sceneItemTransformObjectNew transform/crop info of the scene item
SceneCreatedeventscenesA new scene has been created.
Scenesv5.0.0#SceneCreated

A new scene has been created.

Data fields

sceneNameStringName of the new scene
sceneUuidStringUUID of the new scene
isGroupBooleanWhether the new scene is a group
SceneRemovedeventscenesA scene has been removed.
Scenesv5.0.0#SceneRemoved

A scene has been removed.

Data fields

sceneNameStringName of the removed scene
sceneUuidStringUUID of the removed scene
isGroupBooleanWhether the scene was a group
SceneNameChangedeventscenesThe name of a scene has changed.
Scenesv5.0.0#SceneNameChanged

The name of a scene has changed.

Data fields

sceneUuidStringUUID of the scene
oldSceneNameStringOld name of the scene
sceneNameStringNew name of the scene
CurrentProgramSceneChangedeventscenesThe current program scene has changed.

The current program scene has changed.

Data fields

sceneNameStringName of the scene that was switched to
sceneUuidStringUUID of the scene that was switched to
CurrentPreviewSceneChangedeventscenesThe current preview scene has changed.

The current preview scene has changed.

Data fields

sceneNameStringName of the scene that was switched to
sceneUuidStringUUID of the scene that was switched to
SceneListChangedeventscenesThe list of scenes has changed.
Scenesv5.0.0#SceneListChanged

The list of scenes has changed.

TODO: Make OBS fire this event when scenes are reordered.

Data fields

scenesArray<Object>Updated array of scenes
CurrentSceneTransitionChangedeventtransitionsThe current scene transition has changed.

The current scene transition has changed.

Data fields

transitionNameStringName of the new transition
transitionUuidStringUUID of the new transition
CurrentSceneTransitionDurationChangedeventtransitionsThe current scene transition duration has changed.

The current scene transition duration has changed.

Data fields

transitionDurationNumberTransition duration in milliseconds
SceneTransitionStartedeventtransitionsA scene transition has started.
Transitionsv5.0.0#SceneTransitionStarted

A scene transition has started.

Data fields

transitionNameStringScene transition name
transitionUuidStringScene transition UUID
SceneTransitionEndedeventtransitionsA scene transition has completed fully.
Transitionsv5.0.0#SceneTransitionEnded

A scene transition has completed fully.

Note: Does not appear to trigger when the transition is interrupted by the user.

Data fields

transitionNameStringScene transition name
transitionUuidStringScene transition UUID
SceneTransitionVideoEndedeventtransitionsA scene transition's video has completed fully.

A scene transition's video has completed fully.

Useful for stinger transitions to tell when the video *actually* ends.
SceneTransitionEnded only signifies the cut point, not the completion of transition playback.

Note: Appears to be called by every transition, regardless of relevance.

Data fields

transitionNameStringScene transition name
transitionUuidStringScene transition UUID
StudioModeStateChangedeventuiStudio mode has been enabled or disabled.

Studio mode has been enabled or disabled.

Data fields

studioModeEnabledBooleanTrue == Enabled, False == Disabled
ScreenshotSavedeventuiA screenshot has been saved.

A screenshot has been saved.

Note: Triggered for the screenshot feature available in Settings -> Hotkeys -> Screenshot Output ONLY.
Applications using Get/SaveSourceScreenshot should implement a CustomEvent if this kind of inter-client
communication is desired.

Data fields

savedScreenshotPathStringPath of the saved image file
VendorEventeventgeneralAn event has been emitted from a vendor.
Vendorsv5.0.0#VendorEvent

An event has been emitted from a vendor.

A vendor is a unique name registered by a third-party plugin or script, which allows for custom requests and events to be added to obs-websocket.
If a plugin or script implements vendor requests or events, documentation is expected to be provided with them.

Data fields

vendorNameStringName of the vendor emitting the event
eventTypeStringVendor-provided event typedef
eventDataObjectVendor-provided event data. {} if event does not provide any data
CustomEventeventgeneralfor every client, a client got the usage since any client's call.
Generalv5.0.0#CustomEvent

for every client, a client got the usage since any client's call. */
Custom event emitted by BroadcastCustomEvent.

Data fields

eventDataObjectCustom event data
EventSubscriptionenum18 values: None, General, Config, Scenes, …
None0Subcription value used to disable all events.
General(1 << 0)Subscription value to receive events in the General category.
Config(1 << 1)Subscription value to receive events in the Config category.
Scenes(1 << 2)Subscription value to receive events in the Scenes category.
Inputs(1 << 3)Subscription value to receive events in the Inputs category.
Transitions(1 << 4)Subscription value to receive events in the Transitions category.
Filters(1 << 5)Subscription value to receive events in the Filters category.
Outputs(1 << 6)Subscription value to receive events in the Outputs category.
SceneItems(1 << 7)Subscription value to receive events in the SceneItems category.
MediaInputs(1 << 8)Subscription value to receive events in the MediaInputs category.
Vendors(1 << 9)Subscription value to receive the VendorEvent event.
Ui(1 << 10)Subscription value to receive events in the Ui category.
Canvases(1 << 11)Subscription value to receive events in the Canvases category.
All(General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors | Ui | Canvases)Helper to receive all non-high-volume events.
InputVolumeMeters(1 << 16)Subscription value to receive the InputVolumeMeters high-volume event.
InputActiveStateChanged(1 << 17)Subscription value to receive the InputActiveStateChanged high-volume event.
InputShowStateChanged(1 << 18)Subscription value to receive the InputShowStateChanged high-volume event.
SceneItemTransformChanged(1 << 19)Subscription value to receive the SceneItemTransformChanged high-volume event.
RequestBatchExecutionTypeenum4 values: None, SerialRealtime, SerialFrame, Parallel
None-1Not a request batch.
SerialRealtime0A request batch which processes all requests serially, as fast as possible.

Note: To introduce artificial delay, use the Sleep request and the sleepMillis request field.
SerialFrame1A request batch type which processes all requests serially, in sync with the graphics thread. Designed to provide high accuracy for animations.

Note: To introduce artificial delay, use the Sleep request and the sleepFrames request field.
Parallel2A request batch type which processes all requests using all available threads in the thread pool.

Note: This is mainly experimental, and only really shows its colors during requests which require lots of
active processing, like GetSourceScreenshot.
RequestStatusenum34 values: Unknown, NoError, Success, MissingRequestType, …
Unknown0Unknown status, should never be used.
NoError10For internal use to signify a successful field check.
Success100The request has succeeded.
MissingRequestType203The requestType field is missing from the request data.
UnknownRequestType204The request type is invalid or does not exist.
GenericError205Generic error code.

Note: A comment is required to be provided by obs-websocket.
UnsupportedRequestBatchExecutionType206The request batch execution type is not supported.
NotReady207The server is not ready to handle the request.

Note: This usually occurs during OBS scene collection change or exit. Requests may be tried again after a delay if this code is given.
MissingRequestField300A required request field is missing.
MissingRequestData301The request does not have a valid requestData object.
InvalidRequestField400Generic invalid request field message.

Note: A comment is required to be provided by obs-websocket.
InvalidRequestFieldType401A request field has the wrong data type.
RequestFieldOutOfRange402A request field (number) is outside of the allowed range.
RequestFieldEmpty403A request field (string or array) is empty and cannot be.
TooManyRequestFields404There are too many request fields (eg. a request takes two optionals, where only one is allowed at a time).
OutputRunning500An output is running and cannot be in order to perform the request.
OutputNotRunning501An output is not running and should be.
OutputPaused502An output is paused and should not be.
OutputNotPaused503An output is not paused and should be.
OutputDisabled504An output is disabled and should not be.
StudioModeActive505Studio mode is active and cannot be.
StudioModeNotActive506Studio mode is not active and should be.
ResourceNotFound600The resource was not found.

Note: Resources are any kind of object in obs-websocket, like inputs, profiles, outputs, etc.
ResourceAlreadyExists601The resource already exists.
InvalidResourceType602The type of resource found is invalid.
NotEnoughResources603There are not enough instances of the resource in order to perform the request.
InvalidResourceState604The state of the resource is invalid. For example, if the resource is blocked from being accessed.
InvalidInputKind605The specified input (obs_source_t-OBS_SOURCE_TYPE_INPUT) had the wrong kind.
ResourceNotConfigurable606The resource does not support being configured.

This is particularly relevant to transitions, where they do not always have changeable settings.
InvalidFilterKind607The specified filter (obs_source_t-OBS_SOURCE_TYPE_FILTER) had the wrong kind.
ResourceCreationFailed700Creating the resource failed.
ResourceActionFailed701Performing an action on the resource failed.
RequestProcessingFailed702Processing the request failed unexpectedly.

Note: A comment is required to be provided by obs-websocket.
CannotAct703The combination of request fields cannot be used to perform an action.
ObsOutputStateenum9 values: OBS_WEBSOCKET_OUTPUT_UNKNOWN, OBS_WEBSOCKET_OUTPUT_STARTING, OBS_WEBSOCKET_OUTPUT_STARTED, OBS_WEBSOCKET_OUTPUT_STOPPING, …
OBS_WEBSOCKET_OUTPUT_UNKNOWNOBS_WEBSOCKET_OUTPUT_UNKNOWNUnknown state.
OBS_WEBSOCKET_OUTPUT_STARTINGOBS_WEBSOCKET_OUTPUT_STARTINGThe output is starting.
OBS_WEBSOCKET_OUTPUT_STARTEDOBS_WEBSOCKET_OUTPUT_STARTEDThe input has started.
OBS_WEBSOCKET_OUTPUT_STOPPINGOBS_WEBSOCKET_OUTPUT_STOPPINGThe output is stopping.
OBS_WEBSOCKET_OUTPUT_STOPPEDOBS_WEBSOCKET_OUTPUT_STOPPEDThe output has stopped.
OBS_WEBSOCKET_OUTPUT_RECONNECTINGOBS_WEBSOCKET_OUTPUT_RECONNECTINGThe output has disconnected and is reconnecting.
OBS_WEBSOCKET_OUTPUT_RECONNECTEDOBS_WEBSOCKET_OUTPUT_RECONNECTEDThe output has reconnected successfully.
OBS_WEBSOCKET_OUTPUT_PAUSEDOBS_WEBSOCKET_OUTPUT_PAUSEDThe output is now paused.
OBS_WEBSOCKET_OUTPUT_RESUMEDOBS_WEBSOCKET_OUTPUT_RESUMEDThe output has been resumed (unpaused).
ObsMediaInputActionenum7 values: OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONE, OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY, OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE, OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOP, …
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONEOBS_WEBSOCKET_MEDIA_INPUT_ACTION_NONENo action.
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAYOBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAYPlay the media input.
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSEOBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSEPause the media input.
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOPOBS_WEBSOCKET_MEDIA_INPUT_ACTION_STOPStop the media input.
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTARTOBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTARTRestart the media input.
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXTOBS_WEBSOCKET_MEDIA_INPUT_ACTION_NEXTGo to the next playlist item.
OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUSOBS_WEBSOCKET_MEDIA_INPUT_ACTION_PREVIOUSGo to the previous playlist item.
WebSocketCloseCodeenum13 values: DontClose, UnknownReason, MessageDecodeError, MissingDataField, …
DontClose0For internal use only to tell the request handler not to perform any close action.
UnknownReason4000Unknown reason, should never be used.
MessageDecodeError4002The server was unable to decode the incoming websocket message.
MissingDataField4003A data field is required but missing from the payload.
InvalidDataFieldType4004A data field's value type is invalid.
InvalidDataFieldValue4005A data field's value is invalid.
UnknownOpCode4006The specified op was invalid or missing.
NotIdentified4007The client sent a websocket message without first sending Identify message.
AlreadyIdentified4008The client sent an Identify message while already identified.

Note: Once a client has identified, only Reidentify may be used to change session parameters.
AuthenticationFailed4009The authentication attempt (via Identify) failed.
UnsupportedRpcVersion4010The server detected the usage of an old version of the obs-websocket RPC protocol.
SessionInvalidated4011The websocket session has been invalidated by the obs-websocket server.

Note: This is the code used by the Kick button in the UI Session List. If you receive this code, you must not automatically reconnect.
UnsupportedFeature4012A requested feature is not supported due to hardware/software limitations.
WebSocketOpCodeenum9 values: Hello, Identify, Identified, Reidentify, …
Hello0The initial message sent by obs-websocket to newly connected clients.
Identify1The message sent by a newly connected client to obs-websocket in response to a Hello.
Identified2The response sent by obs-websocket to a client after it has successfully identified with obs-websocket.
Reidentify3The message sent by an already-identified client to update identification parameters.
Event5The message sent by obs-websocket containing an event payload.
Request6The message sent by a client to obs-websocket to perform a request.
RequestResponse7The message sent by obs-websocket in response to a particular request from a client.
RequestBatch8The message sent by a client to obs-websocket to perform a batch of requests.
RequestBatchResponse9The message sent by obs-websocket in response to a particular batch of requests from a client.