-
-
Notifications
You must be signed in to change notification settings - Fork 103
API Documentation
Erik Bigler edited this page Sep 9, 2020
·
16 revisions
Firebot hosts a local API that developers can use to get data from Firebot or tell it to run effects.
- The API is hosted on port 7472. All endpoints have the root http://localhost:7472/api/v1
- All responses are in JSON.
- Don't forget that Firebot must be running for the API to be available.
Get the connection status of Twitch Chat
None
None
{
"connections": {
"chat": true
}
}
Get a list of Firebot effects
None
- trigger=[triggerType] - Filter to effects that support the given trigger
- dependency=[dependencyType] - Filter to effects that require the given dependency
- onlynames=true - Return an array of effect names instead of the full effect objects
Note: Example only contains one effect in the list to keep it short. Actual response has a longer list.
[
{
"id": "firebot:chat",
"name": "Chat",
"description": "Send a chat message.",
"icon": "fad fa-comment-lines",
"categories": [
"common",
"chat based"
],
"dependencies": [
"chat"
],
"triggers": {
"command": true,
"custom_script": true,
"api": true,
"event": true,
"hotkey": true,
"timer": true,
"counter": true,
"preset": true,
"manual": true
}
},
]
Get info on a particular effect.
- effect - Either the effect name or id.
None
{
"id": "firebot:chat",
"name": "Chat",
"description": "Send a chat message.",
"icon": "fad fa-comment-lines",
"categories": [
"common",
"chat based"
],
"dependencies": [
"chat"
],
"triggers": {
"command": true,
"custom_script": true,
"api": true,
"event": true,
"hotkey": true,
"timer": true,
"counter": true,
"preset": true,
"manual": true
}
},
Get the accepted triggers for an effect
- effect - Either the effect name or id.
None
[
"chat",
"custom_script",
"api"
]
Get the dependencies for an effect
- effect - Either the effect name or id.
None
[
"chat"
]
Run a list of effects
None
None
{
"effects": {
"queue": null,
"list": [
{
"type": "firebot:chat",
"chatter": "Streamer",
"message": "Test chat message"
}
]
},
"triggerData": {
"username": "ebiggz"
}
}
- effects.list - A list of effects that you want Firebot to run.
- effects.queue - Optional (string | null) The id of the effect queue that these effects should be placed in
- triggerData - Optional An object containing trigger data used for certain effects (such as Chat)
{
"status": "success"
}
Run a preset effect list
- presetListId - The id of the preset effect list
None
None
{
"status": "success"
}
Still need help? Come chat with us in the #help channel of our Discord server.