Download OpenAPI specification:Download
API Specifications for the local webserver that accompanies PavlovTV
Returns information such as match time, teams if applicable, etc.
{- "MatchActive": true,
- "MapName": "Oilrig",
- "RoundState": "Playing Round",
- "RoundTime": 97,
- "Teams": true,
- "RoundsLeft": 4,
- "Team0Score": 7,
- "Team1Score": 8,
- "AttackingTeamId": 0,
- "Team0": [
- {
- "Name": "Parl4224h",
- "Cash": 4000,
- "Score": 30,
- "Kills": 13,
- "Deaths": 8,
- "Dead": false,
- "Health": 100,
- "Armour": 100,
- "Helmet": true,
- "Bot": false
}
], - "Team0Cash": 4000,
- "Team1": [
- {
- "Name": "Parl4224h",
- "Cash": 4000,
- "Score": 30,
- "Kills": 13,
- "Deaths": 8,
- "Dead": false,
- "Health": 100,
- "Armour": 100,
- "Helmet": true,
- "Bot": false
}
], - "Team1Cash": 4000
}Returns path info in the form of an array of positions with times
| camId required | integer <int32> ID of camera to return |
{- "MapName": "Stockpile",
- "MapId": "UGC4397184",
- "PathNumber": 0,
- "Points": [
- {
- "Time": 0,
- "X": 9170.89565213566,
- "Y": 1080.3925747653223,
- "Z": 3920.31887346049,
- "Pitch": -34.82500100135806,
- "Yaw": -166.59328386187553,
- "Roll": 9.686180695440608e-16
}
]
}Returns a list of available replays along with some basic info
{- "Replays": [
- {
- "Id": "Stockpile-SND-2024.11.24-00.58.32",
- "Name": "Stockpile",
- "GameMode": "SND",
- "TimeStamp": "2024-11-24T00:58:32.098Z",
- "Shack": true,
- "LocalReplay": true,
- "Live": false
}
]
}Returns position data including look direction, and bomb position if applicable
{- "Players": [
- {
- "Name": "Parl4224h",
- "TeamId": 0,
- "X": 9170.89565213566,
- "Y": 1080.3925747653223,
- "Z": 3920.31887346049,
- "Yaw": -34.82500100135806
}
], - "CameraX": 9170.89565213566,
- "CameraY": 1080.3925747653223,
- "CameraZ": 3920.31887346049,
- "CameraYaw": -34.82500100135806,
- "BombX": 9170.89565213566,
- "BombY": 1080.3925747653223,
- "BombZ": 3920.31887346049,
- "BombState": 0
}Sets path info for the specified camera
| camId required | integer <int32> ID of camera to return |
Data to overwrite a camera path with
| MapName | string |
| MapId | string |
| PathNumber | integer <int32> |
Array of objects (CameraPathPoint) |
{- "MapName": "Stockpile",
- "MapId": "UGC4397184",
- "PathNumber": 0,
- "Points": [
- {
- "Time": 0,
- "X": 9170.89565213566,
- "Y": 1080.3925747653223,
- "Z": 3920.31887346049,
- "Pitch": -34.82500100135806,
- "Yaw": -166.59328386187553,
- "Roll": 9.686180695440608e-16
}
]
}Sets the pause state of the player
Whether to pause player or not
| Paused | boolean |
{- "Paused": true
}{- "Successful": true,
- "Reason": "string"
}Sets the match time in the player
Time to set match to
| MatchTime | number <double> |
{- "MatchTime": 743.8695068359375
}{- "Successful": true,
- "Reason": "string"
}Loads the replay corresponding to the id provided
Time to set match to
| Id | string |
{- "Id": "string"
}{- "Successful": true,
- "Reason": "string"
}